Analyzing the Setup
Welcome, fellow traveler on the path to JEE mastery. Today, we are not just solving a quadratic equation; we are witnessing a beautiful dance between two distinct worlds: the world of algebraic coefficients and the world of trigonometric angles.
When you look at the equation x2+px+q=0, do not just see a collection of symbols. See a structure waiting to be unlocked. We are given the roots as α=tan30∘ and β=tan15∘.
Our mission is to find the value of 2+q−p. This is not a brute-force calculation; it is a puzzle of relationships.
The Vieta Connection
Our first step is to invoke the wisdom of Vieta. For any quadratic equation ax2+bx+c=0, the sum of the roots is −ab and the product is ac.
In our specific case, a=1, b=p, and c=q. Therefore, the sum of our roots is:
The product of our roots is:
These two relations are the keys to our kingdom. We have successfully translated the roots into algebraic expressions involving p and q.
The Trigonometric Bridge
Now, we stand at a crossroads. We have p and q, but how do we connect them to the expression 2+q−p?
This is where the beauty of trigonometry shines. We have the sum of two tangents and the product of the same two tangents. Recall the compound angle formula for tangent:
tan(A+B)=1−tanAtanBtanA+tanB
This formula is a masterpiece of design. It places the sum of the tangents in the numerator and the product in the denominator. It is as if the formula was written specifically for this problem.
The Algebraic Dance
Let us set A=30∘ and B=15∘. The sum of these angles is 30∘+15∘=45∘. We know that tan45∘=1.
Now, substitute our Vieta relations into the formula:
This is the moment of transformation. We have moved from the realm of angles to the realm of pure algebra. Cross-multiplying gives us:
Rearranging this, we find q−p=1. This is the hidden truth we were searching for.
The Final Victory
We are almost there. The problem asks for the value of 2+q−p. We now know that q−p=1.
Substituting this into our target expression, we get:
And there it is! The complexity dissolves, leaving behind a simple, elegant integer. The final answer is 3.