If the roots of the quadratic equation x2+px+y=0 are are tan 30° and tan 15° respectively, then the value of 2+q−p is,
2
3
0
1
It is given that tan 30° and tan 15° are roots of the
given equation.
∴ tan30∘+tan15∘=−p and tan30∘tan15∘=q
Now, tan45∘=tan30∘+tan15∘1−tan30∘tan15∘
⇒ 1=−p1−q⇒1−q=−p⇒q−p=1⇒q−p+2=3