If x2+px+q=0 has the roots αandβ, then the value of (α-β)2 is
p2-4q
p2-4q2
p2+4q
p2+4q2
Explanation for the correct option:
In the given equation x2+px+q=0, a=1,b=p,andc=q.
Sum of roots α+β=-ba=-p
Product of roots αβ=ca=q
(α-β)2=(α+β)2-4αβ=p2-4q
Hence, option A is correct.