The correct option is C p=3,q=1 or p=−3,q=−1
Let the roots be α,β. Using sum and product of roots formula:
α+β=−(p+iq)
αβ=3i
Given: α2+β2=8
α2+β2=(α+β)2−2αβ
⟹8=(p+iq)2−2(3i)
⟹8=p2−q2+(2pq−6)i
Comparing real and imaginary parts on both sides:
p2−q2=8 pq=3
⟹p2−9/p2=8
⟹p4−8p2−9=0
⟹(p2−9)(p2+1)=0
As p∈R, p2+1≠0
impliesp2−9=0⟹p=±3
∵q=3/p:
If p=3, q=1
If p=−3, q=−1