According to the question, representation of vectors A and B can be shown as follows
Given, ∣A+B∣=P ⇒∣A+B∣2=P2 P2=A2+B2+2ABcosθ....(i)
Also, ∣A−B∣=Q⇒∣A−B∣2=Q2 ⇒A2+B2+2ABcos(180∘−θ)=Q2 ⇒A2+B2−2ABcosθ=Q2....(ii)
Adding Eqs. (i) and (ii), we get P2+Q2=2(A2+B2)