If the root of the equation x2+px+q=0 differ from the roots of the equation x2+qx+p=0 by the same quantity then
We have,
x2+px+q=0......(1)
x2+qx+p=0.......(2)
By equation (1)
Let a and b be the roots of equation (1)
Then,
Sum of roots a+b=−p1=−p
Product a.b=q1=q
According to given question,
Difference of roots
a−b=√(a+b)2−4ab
a−b=√(−p)2−4q
a−b=√p2−4q
Now, by equation (2)
Let c and d be the roots of equation (2)
Then,
Sum of roots c+d=−q1=−q
Product a.b=p1=p
According to given question,
Difference of roots
c−d=√(c+d)2−4cd
c−d=√(−p)2−4q
c−d=√p2−4q
Again, according to given question,
Difference of roots of both equations are equal
Therefore,
a−b=c−d
√q2−4p=√p2−4q
q2−4p=p2−4q
q2−p2=4p−4q
(q−p)(q+p)=4(p−q)
(q−p)(p+q)=−4
(q−p)(p+q+4)=0
q=pandp+q+4=0
Hence, this is the answer.