Question
Simplify tan−1(1+sinxcosx) and express it in its simplest form.
Solution — Step by Step
The denominator 1+sinx screams half-angle. We rewrite both cosx and 1+sinx using x/2 substitutions so something cancels.
cosx=cos22x−sin22x
1+sinx=sin22x+cos22x+2sin2xcos2x=(cos2x+sin2x)2
Substitute back into the fraction:
1+sinxcosx=(cos2x+sin2x)2(cos2x−sin2x)(cos2x+sin2x)
The (cos2x+sin2x) cancels cleanly:
=cos2x+sin2xcos2x−sin2x
Divide numerator and denominator by cos2x:
=1+tan2x1−tan2x
Now recall the tan subtraction identity: tan(A−B)=1+tanAtanBtanA−tanB.
Put A=π/4 (so tanA=1) and B=x/2:
tan(4π−2x)=1+tan2x1−tan2x
tan−1(1+sinxcosx)=tan−1(tan(4π−2x))
Since tan−1(tanθ)=θ when θ lies in (−2π,2π), and the domain here is x∈(−2π,2π), the angle 4π−2x comfortably stays in that range.
4π−2x
Why This Works
The entire trick rests on recognising that 1+sinx is a perfect square in disguise. Once we write 1+sinx=(cos2x+sin2x)2, the numerator cosx factors as a difference of squares and one factor cancels immediately.
After the cancellation, we have a ratio 1+tanθ1−tanθ where θ=x/2. This specific form is the fingerprint of tan(π/4−θ). Memorising this pattern saves you from repeating all steps — you will see it again in JEE Main.
The domain condition matters more than students realise. The identity tan−1(tanθ)=θ only holds when θ∈(−π/2,π/2). For x outside the interval (−π/2,3π/2), the answer would need adjustment.
Alternative Method
Write sinx=cos(2π−x) and cosx=sin(2π−x). Let ϕ=2π−x:
1+sinxcosx=1+cosϕsinϕ=2cos22ϕ2sin2ϕcos2ϕ=tan2ϕ=tan(4π−2x)
Here we used the half-angle identity 1+cosϕsinϕ=tan2ϕ. Same answer, arguably faster once you know that identity cold.
The identity 1+cosθsinθ=tan2θ is a 5-second shortcut worth remembering. It appears in integration problems too — particularly ∫1+cosxdx type integrals in Class 12.
Common Mistake
A very common error is flipping the sign and writing the answer as 2x−4π instead of 4π−2x.
This happens when students divide by cos2x but forget which term was on top. The numerator after cancellation is cos2x−sin2x (cosine first, sine second), which gives 1−tan2x in the numerator. That matches tan(π/4−x/2), not tan(x/2−π/4). The sign swap costs the full 3 marks in CBSE.