Solution:
Key idea: When an identity mixes several ratios, a safe method is to write every ratio in terms of sin and cos, using tanθ=cosθsinθ, cotθ=sinθcosθ, secθ=cosθ1 and cosecθ=sinθ1. Then simplify, using sin2θ+cos2θ=1 where it helps.
Step 1 — Write the left side in sine and cosine.
We replace tanθ and cotθ by their sine–cosine forms.
LHS=cosθsinθ+sinθcosθ
Step 2 — Add the two fractions.
The common denominator is sinθcosθ, so we multiply the first fraction above and below by sinθ and the second by cosθ.
LHS=sinθcosθsin2θ+cos2θ
Step 3 — Use the basic identity in the numerator.
The numerator sin2θ+cos2θ equals 1.
LHS=sinθcosθ1
Step 4 — Split into reciprocal ratios.
We write the fraction as a product of two reciprocals and name each one.
LHS=cosθ1⋅sinθ1
=secθcosecθ
This is the right side.
Hence proved: tanθ+cotθ=secθcosecθ.