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 add the two fractions.
LHS=cosA+cosBsinA−sinB+sinA+sinBcosA−cosB
Step 2 — Find the common denominator.
The common denominator is the product of the two denominators, (cosA+cosB)(sinA+sinB). So the LHS is a single fraction whose numerator N is:
N=(sinA−sinB)(sinA+sinB)+(cosA−cosB)(cosA+cosB)
Step 3 — Simplify the numerator.
Each product is a difference of two squares. Then we group the terms of angle A and the terms of angle B, and each group is 1:
N=sin2A−sin2B+cos2A−cos2B=(sin2A+cos2A)−(sin2B+cos2B)=1−1=0
Step 4 — Conclude.
A fraction with numerator 0 (and a non-zero denominator) is 0:
LHS=(cosA+cosB)(sinA+sinB)0=0
This is the RHS.
Watch out: Group sin2A with cos2A (same angle); sin2A+cos2B is not 1.
Therefore, LHS = RHS, so cosA+cosBsinA−sinB+sinA+sinBcosA−cosB=0. Hence proved.