Solution:
Concept: The three Pythagorean identities hold for every angle A where the ratios exist: sin2A+cos2A=1, 1+tan2A=sec2A and 1+cot2A=cosec2A. Each can be rearranged, for example sec2A−tan2A=1 or 1−sin2A=cos2A.
Given: xcosA+ysinA=m and xsinA−ycosA=n.
Step 1 — Plan.
The given equations tell us m and n, so we start from m2+n2 (the side with m and n) and turn it into x2+y2.
Step 2 — Square m.
We square the given expression for m with the rule (a+b)2=a2+2ab+b2:
m2=(xcosA+ysinA)2=x2cos2A+2xysinAcosA+y2sin2A
Step 3 — Square n.
We square the given expression for n with the rule (a−b)2=a2−2ab+b2:
n2=(xsinA−ycosA)2=x2sin2A−2xysinAcosA+y2cos2A
Step 4 — Add the two squares.
The middle terms +2xysinAcosA and −2xysinAcosA cancel. Then we take out x2 and y2, and each bracket is sin2A+cos2A=1:
m2+n2=x2cos2A+x2sin2A+y2sin2A+y2cos2A=x2(cos2A+sin2A)+y2(sin2A+cos2A)=x2+y2
Watch out: Square the whole of each given expression; the cross terms cancel only because one has + and the other has −.
Therefore, x2+y2=m2+n2. Hence proved.