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.
Step 1 — Start from the left-hand side.
We begin with the LHS. We expand both squares.
LHS=(sinA+cosecA)2+(cosA+secA)2
Step 2 — Expand the squares.
Using (a+b)2=a2+2ab+b2, and noting that sinAcosecA=1 and cosAsecA=1, each middle term is 2:
LHS=sin2A+2sinAcosecA+cosec2A+cos2A+2cosAsecA+sec2A=sin2A+2+cosec2A+cos2A+2+sec2A
Step 3 — Group the terms.
We put sin2A+cos2A together (it equals 1) and add the numbers:
LHS=(sin2A+cos2A)+4+cosec2A+sec2A=5+cosec2A+sec2A
Step 4 — Change to tan and cot.
We use cosec2A=1+cot2A and sec2A=1+tan2A:
LHS=5+1+cot2A+1+tan2A=7+tan2A+cot2A
This is exactly the RHS.
Watch out: The middle terms are 2sinAcosecA=2 and 2cosAsecA=2; forgetting them gives 3 instead of 7.
Therefore, LHS = RHS, so (sinA+cosecA)2+(cosA+secA)2=7+tan2A+cot2A. Hence proved.