Explanation
To solve this, we will link the coefficients of the quadratic equation to the trigonometric values of the roots.
1. Relation Between Roots and Coefficients
For a quadratic equation ax2+bx+c=0, the sum of roots is −b/a and the product of roots is c/a.
Given x2+px+q=0, let the roots be α=tan30∘ and β=tan15∘:
2. Apply the Tangent Addition Formula
We know that:
tan(A+B)=1−tanAtanBtanA+tanB
Let A=30∘ and B=15∘. Then A+B=45∘:
tan(30∘+15∘)=1−tan30∘tan15∘tan30∘+tan15∘
Substitute the values in terms of p and q:
Since tan45∘=1:
3. Calculate the Final Value
Rearrange the equation 1−q=−p to find the relationship between p and q:
The question asks for the value of 2+q−p:
Final Answer:
The value of 2+q−p is 3. The correct option is A.