Given quadratic equation is x+p1+x+q1=r1.
Let α and β be the roots of given equation.
⇒(2x+p+q)r=(x+p)(x+q)
⇒x2+(p+q−2r)x+pq−pr−qr=0
Now, sum of roots (α+β)=a−b=−(p+q−2r)
⇒−(p+q−2r)=0 (∵Given that roots are equal in magnitude and opposite in sign)
⇒p+q=2r...(1)
Product of roots (αβ)=ac=pq−pr−qr
Now, α2+β2=(α+β)2−2αβ
=0−2[pq−pr−qr]=−2pq+2r(p+q)
=−2pq+(p+q)2=p2+q2 (∵ from (1))
=p2+q2