The key idea is to rewrite the given ratio as a single tangent function using the identity tan(A−B)=1+tanAtanBtanA−tanB, then apply the principal value branch of tan−1. The final principal value is 4π−x.
We need the principal value of tan−1(cosx+sinxcosx−sinx) for x in the interval (−π/4,3π/4). The "principal value" of an inverse trigonometric function means the unique angle in its principal branch — for tan−1, that's (−π/2,π/2). So our job is to simplify the expression inside until it matches tan(something), then check that "something" lies in (−π/2,π/2) for the given x range.
The trick is to see the numerator and denominator as a disguised tangent subtraction formula. Divide numerator and denominator by cosx (valid since cosx=0 in most of the interval — we'll check the edge later).
- Rewrite in terms of tanx
cosx+sinxcosx−sinx=1+tanx1−tanx
because cosxsinx=tanx.
- Recognise the tangent subtraction formula
Recall: tan(A−B)=1+tanAtanBtanA−tanB.
If we set A=4π and B=x, then tan4π=1, so
tan(4π−x)=1+1⋅tanx1−tanx=1+tanx1−tanx
Exactly our expression! So
cosx+sinxcosx−sinx=tan(4π−x)
- Apply the inverse tangent
Therefore,
tan−1(cosx+sinxcosx−sinx)=tan−1[tan(4π−x)]
But tan−1(tanθ) equals θ only when θ lies in the principal branch (−π/2,π/2). Otherwise, we need to adjust by adding or subtracting π.
- Check the range of 4π−x
Given −4π<x<43π, multiply by −1 (reversing inequalities):
−43π<−x<4π
Then add 4π:
4π−43π<4π−x<4π+4π
−2π<4π−x<2π …