Solution:
Concept: sin2θ=2sinθcosθ and 1+cos2θ=2cos2θ.
Step 1 — Rewrite with single angles.
In the denominator group 1+cos2θ.
L.H.S.=cosθ+2cos2θsinθ+2sinθcosθ
Step 2 — Factorise.
Take sinθ out of the top and cosθ out of the bottom.
L.H.S.=cosθ(1+2cosθ)sinθ(1+2cosθ)
Step 3 — Cancel (1+2cosθ).
L.H.S.=tanθ
L.H.S. = R.H.S. Hence proved.