Solution:
Key idea: Expand the square with (a+b)2=a2+2ab+b2. The middle term contains the product tanAcotA; this product equals 1 because the two ratios are reciprocals. Then use 1+tan2A=sec2A, and 1+cot2A=cosec2A.
Step 1 — Expand the square.
We use (a+b)2=a2+2ab+b2, with a=tanA and b=cotA.
LHS=tan2A+2tanAcotA+cot2A
Step 2 — Simplify the middle term.
Since cotA is the reciprocal of tanA, their product is 1, so the middle term is 2.
LHS=tan2A+2+cot2A
Step 3 — Split the 2 as 1+1 and regroup.
We pair one 1 with tan2A and the other 1 with cot2A, because each pair is a Pythagorean identity.
LHS=(1+tan2A)+(1+cot2A)
Step 4 — Use the two identities.
We replace 1+tan2A by sec2A and 1+cot2A by cosec2A.
LHS=sec2A+cosec2A
This is the right side (the order of the two terms does not matter).
Hence proved: (tanA+cotA)2=cosec2A+sec2A.