Solution:
Key idea: Change every ratio into sine and cosine. The numerator and the denominator then have the same top line, cosAcosB+sinAsinB, which cancels.
Step 1 — Simplify the numerator.
We write cotA and tanB in sine and cosine and add over the common denominator sinAcosB.
cotA+tanB=sinAcosA+cosBsinB
=sinAcosBcosAcosB+sinAsinB
Step 2 — Simplify the denominator.
We do the same for cotB+tanA, using the common denominator sinBcosA.
cotB+tanA=sinBcosB+cosAsinA
=sinBcosAcosAcosB+sinAsinB
Step 3 — Divide the two fractions.
Dividing by a fraction means multiplying by its reciprocal; the common factor cosAcosB+sinAsinB then cancels (it is non-zero, since the denominator of the question must be non-zero).
LHS=sinAcosBcosAcosB+sinAsinB×cosAcosB+sinAsinBsinBcosA
=sinAcosBsinBcosA
Step 4 — Split into two ratios.
We separate the fraction into one part in A and one part in B and name each ratio.
LHS=sinAcosA⋅cosBsinB
=cotAtanB
This is the right side.
Hence proved: cotB+tanAcotA+tanB=cotAtanB.