Class 12 Maths, Worked in Full Past papersGet updates
Chapter 2 · Inverse Trigonometric Functions

Exercise 2.2 · Q5: Simplest form of tan⁡−1cos⁡x−sin⁡xcos⁡x+sin⁡x\tan^{-1}\frac{\cos x-\sin x}{\cos x+\sin x}

Exercise 2.2Simplest form by compound angles · Section 2.3
The question

Write the following function in the simplest form:

tan⁡−1(cos⁡x−sin⁡xcos⁡x+sin⁡x),−π4<x<3π4.\tan^{-1}\left(\frac{\cos x - \sin x}{\cos x + \sin x}\right), \qquad -\frac{\pi}{4} \lt x \lt \frac{3\pi}{4}.
Exam answer

Let y=tan⁡−1(cos⁡x−sin⁡xcos⁡x+sin⁡x)y = \tan^{-1}\left(\frac{\cos x - \sin x}{\cos x + \sin x}\right)⁠.

As −π4<x<3π4-\frac{\pi}{4} \lt x \lt \frac{3\pi}{4}⁠, 0<x+π4<π0 \lt x + \frac{\pi}{4} \lt \pi⁠.

So cos⁡x+sin⁡x\cos x + \sin x =2sin⁡(x+π4)>0= \sqrt2\sin\left(x + \frac{\pi}{4}\right) \gt 0⁠.

Also cos⁡x−sin⁡x\cos x - \sin x =2cos⁡(x+π4)= \sqrt2\cos\left(x + \frac{\pi}{4}\right)⁠.

cos⁡x−sin⁡xcos⁡x+sin⁡x=2cos⁡(x+π4)2sin⁡(x+π4)=cot⁡(x+π4)=tan⁡(π2−x−π4)=tan⁡(π4−x)\begin{aligned} \frac{\cos x - \sin x}{\cos x + \sin x} &= \frac{\sqrt2\cos\left(x + \frac{\pi}{4}\right)}{\sqrt2\sin\left(x + \frac{\pi}{4}\right)} \\ &= \cot\left(x + \frac{\pi}{4}\right) \\ &= \tan\left(\frac{\pi}{2} - x - \frac{\pi}{4}\right) \\ &= \tan\left(\frac{\pi}{4} - x\right) \end{aligned} y=tan⁡−1(tan⁡(π4−x))y = \tan^{-1}\left(\tan\left(\frac{\pi}{4} - x\right)\right)

∴ y=π4−x\therefore\ y = \dfrac{\pi}{4} - x⁠, as π4−x∈(−π2,π2)\dfrac{\pi}{4} - x \in \left(-\dfrac{\pi}{2}, \dfrac{\pi}{2}\right)⁠.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

The fraction is tan⁡(π4−x)\tan\left(\frac{\pi}{4} - x\right) in disguise. You can see this by dividing by cos⁡x\cos x to get 1−tan⁡x1+tan⁡x\frac{1-\tan x}{1+\tan x}⁠, or, more safely, by writing cos⁡x±sin⁡x\cos x \pm \sin x as 2\sqrt2 times a single sine or cosine. The interval −π4<x<3π4-\frac{\pi}{4} \lt x \lt \frac{3\pi}{4} is exactly the condition −π2<π4−x<π2-\frac{\pi}{2} \lt \frac{\pi}{4} - x \lt \frac{\pi}{2}⁠, so tan⁡−1\tan^{-1} undoes the tan⁡\tan and the answer is π4−x\frac{\pi}{4} - x⁠.

Given, to find, and the plan
Given
The function tan⁡−1cos⁡x−sin⁡xcos⁡x+sin⁡x\tan^{-1}\frac{\cos x - \sin x}{\cos x + \sin x} for −π4<x<3π4-\frac{\pi}{4} \lt x \lt \frac{3\pi}{4}⁠.
To find
Its simplest form.
Plan
(1) Write cos⁡x+sin⁡x\cos x + \sin x and cos⁡x−sin⁡x\cos x - \sin x as single trigonometric functions. (2) Turn the fraction into tan⁡(π4−x)\tan\left(\frac{\pi}{4} - x\right)⁠. (3) Check that π4−x\frac{\pi}{4} - x is in the principal range of tan⁡−1\tan^{-1}⁠. (4) Compare with the divide-by-cos⁡x\cos x route. (5) See what fails outside the interval.

Basics you need

1Compound-angle formulas

sin⁡(A+B)=sin⁡Acos⁡B+cos⁡Asin⁡B\sin(A+B) = \sin A\cos B + \cos A\sin B⁠, cos⁡(A+B)=cos⁡Acos⁡B−sin⁡Asin⁡B\cos(A+B) = \cos A\cos B - \sin A\sin B⁠, and tan⁡(A−B)=tan⁡A−tan⁡B1+tan⁡Atan⁡B\tan(A-B) = \frac{\tan A - \tan B}{1 + \tan A\tan B}⁠. Basics: sin and cos on the unit circle

2The values at π4\frac{\pi}{4}

sin⁡π4=cos⁡π4=12\sin\frac{\pi}{4} = \cos\frac{\pi}{4} = \frac{1}{\sqrt2} and tan⁡π4=1\tan\frac{\pi}{4} = 1⁠. Basics: special angles and reference angles

3Co-function rule

cot⁡α=tan⁡(π2−α)\cot\alpha = \tan\left(\frac{\pi}{2} - \alpha\right)⁠. Basics: tan, cot, sec and cosec

4The principal branch of tan⁡−1\tan^{-1}

Range (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)⁠; tan⁡−1(tan⁡y)=y\tan^{-1}(\tan y) = y exactly for yy in that open interval. Basics: what an inverse needs

Solution

  1. Write cos⁡x±sin⁡x\cos x \pm \sin x as single functions

    Using cos⁡π4=sin⁡π4=12\cos\frac{\pi}{4} = \sin\frac{\pi}{4} = \frac{1}{\sqrt2} and the compound-angle formulas:

    2sin⁡(x+π4)=2(sin⁡x2+cos⁡x2)=cos⁡x+sin⁡x,\begin{aligned} \sqrt2\sin\left(x + \tfrac{\pi}{4}\right) &= \sqrt2\left(\tfrac{\sin x}{\sqrt2} + \tfrac{\cos x}{\sqrt2}\right) \\ &= \cos x + \sin x, \end{aligned} 2cos⁡(x+π4)=2(cos⁡x2−sin⁡x2)=cos⁡x−sin⁡x.\begin{aligned} \sqrt2\cos\left(x + \tfrac{\pi}{4}\right) &= \sqrt2\left(\tfrac{\cos x}{\sqrt2} - \tfrac{\sin x}{\sqrt2}\right) \\ &= \cos x - \sin x. \end{aligned}
    cos⁡x+sin⁡x\cos x + \sin x and cos⁡x−sin⁡x\cos x - \sin x (coefficients of equal size) are each 2\sqrt2 times one shifted sine or cosine. Doing it this way avoids dividing by cos⁡x\cos x⁠, which is 0 at x=π2x = \frac{\pi}{2}⁠, a point inside our interval (see Step 4).
    sin⁡(A+B)\sin(A+B) and cos⁡(A+B)\cos(A+B) with A=xA = x⁠, B=π4B = \frac{\pi}{4} (Basics 1, 2).
  2. Turn the fraction into a tangent

    For −π4<x<3π4-\frac{\pi}{4} \lt x \lt \frac{3\pi}{4} we have 0<x+π4<π0 \lt x + \frac{\pi}{4} \lt \pi⁠, so sin⁡(x+π4)>0\sin\left(x + \frac{\pi}{4}\right) \gt 0 and the denominator is never 0. Then

    cos⁡x−sin⁡xcos⁡x+sin⁡x=cos⁡(x+π4)sin⁡(x+π4)=cot⁡(x+π4).\begin{aligned} \frac{\cos x - \sin x}{\cos x + \sin x} &= \frac{\cos\left(x + \frac{\pi}{4}\right)}{\sin\left(x + \frac{\pi}{4}\right)} \\ &= \cot\left(x + \tfrac{\pi}{4}\right). \end{aligned}

    By the co-function rule,

    cot⁡(x+π4)=tan⁡(π2−x−π4)=tan⁡(π4−x).\cot\left(x + \tfrac{\pi}{4}\right) = \tan\left(\tfrac{\pi}{2} - x - \tfrac{\pi}{4}\right) = \tan\left(\tfrac{\pi}{4} - x\right).
    The 2\sqrt2 cancels and the fraction becomes cos over sin, which is a cotangent. Since the answer must be "tan⁡−1\tan^{-1} of a tangent", we convert cot⁡\cot to tan⁡\tan with cot⁡α=tan⁡(π2−α)\cot\alpha = \tan\left(\frac{\pi}{2} - \alpha\right)⁠. The endpoints −π4-\frac{\pi}{4} and 3π4\frac{3\pi}{4} are exactly where cos⁡x+sin⁡x=0\cos x + \sin x = 0⁠, which is why they are excluded.
    Co-function rule (Basic 3). Basics: tan, cot, sec and cosec
  3. Check the principal range and conclude

    From −π4<x<3π4-\frac{\pi}{4} \lt x \lt \frac{3\pi}{4}⁠, multiply by −1-1 (the inequalities reverse) and add π4\frac{\pi}{4}⁠:

    −3π4<−x<π4  ⇒  −π2<π4−x<π2.-\frac{3\pi}{4} \lt -x \lt \frac{\pi}{4} \;\Rightarrow\; -\frac{\pi}{2} \lt \frac{\pi}{4} - x \lt \frac{\pi}{2}.

    So π4−x\frac{\pi}{4} - x is in the principal range of tan⁡−1\tan^{-1}⁠, and

    tan⁡−1(cos⁡x−sin⁡xcos⁡x+sin⁡x)=tan⁡−1(tan⁡(π4−x))=π4−x.\begin{aligned} \tan^{-1}\left(\frac{\cos x - \sin x}{\cos x + \sin x}\right) &= \tan^{-1}\left(\tan\left(\tfrac{\pi}{4} - x\right)\right) \\ &= \frac{\pi}{4} - x. \end{aligned}
    This step is where the stated interval earns its place: it is precisely the condition −π2<π4−x<π2-\frac{\pi}{2} \lt \frac{\pi}{4} - x \lt \frac{\pi}{2}⁠, rewritten in terms of xx⁠.
    tan⁡−1(tan⁡y)=y\tan^{-1}(\tan y) = y for y∈(−π2,π2)y\in\left(-\frac{\pi}{2}, \frac{\pi}{2}\right) (Section 2.3). Lesson: sin⁻¹(sin x) and the folding rules
  4. The divide-by-cos⁡x\cos x route, and the point x=π2x = \frac{\pi}{2}

    The usual shortcut divides top and bottom by cos⁡x\cos x and uses tan⁡π4=1\tan\frac{\pi}{4} = 1⁠:

    1−tan⁡x1+tan⁡x=tan⁡π4−tan⁡x1+tan⁡π4tan⁡x=tan⁡(π4−x).\begin{aligned} \frac{1 - \tan x}{1 + \tan x} &= \frac{\tan\frac{\pi}{4} - \tan x}{1 + \tan\frac{\pi}{4}\tan x} \\ &= \tan\left(\tfrac{\pi}{4} - x\right). \end{aligned}

    This reaches the same place quickly, but it needs cos⁡x≠0\cos x \ne 0⁠, and x=π2x = \frac{\pi}{2} lies inside our interval with cos⁡π2=0\cos\frac{\pi}{2} = 0⁠. Check that point directly:

    cos⁡π2−sin⁡π2cos⁡π2+sin⁡π2=0−10+1=−1,\frac{\cos\frac{\pi}{2} - \sin\frac{\pi}{2}}{\cos\frac{\pi}{2} + \sin\frac{\pi}{2}} = \frac{0 - 1}{0 + 1} = -1, tan⁡−1(−1)=−π4=π4−π2.\tan^{-1}(-1) = -\frac{\pi}{4} = \frac{\pi}{4} - \frac{\pi}{2}.

    So the answer π4−x\frac{\pi}{4} - x holds there too. The route of Steps 1 and 2 never divides by cos⁡x\cos x⁠, so it covers x=π2x = \frac{\pi}{2} automatically.

    Whenever you divide by something, ask where it is zero. Here the shortcut's only gap is one point, and checking it by hand closes the gap.
    tan⁡(A−B)=tan⁡A−tan⁡B1+tan⁡Atan⁡B\tan(A - B) = \frac{\tan A - \tan B}{1 + \tan A\tan B} with A=π4A = \frac{\pi}{4}⁠, B=xB = x (Basic 1).
  5. What goes wrong outside the interval

    The fraction equals tan⁡(π4−x)\tan\left(\frac{\pi}{4} - x\right) wherever it is defined, but tan⁡−1\tan^{-1} returns an angle in (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)⁠, and tan⁡\tan repeats every π\pi⁠. For 3π4<x<7π4\frac{3\pi}{4} \lt x \lt \frac{7\pi}{4} we get π4−x∈(−3π2,−π2)\frac{\pi}{4} - x \in \left(-\frac{3\pi}{2}, -\frac{\pi}{2}\right)⁠, and adding π\pi brings it into the principal range:

    tan⁡−1(cos⁡x−sin⁡xcos⁡x+sin⁡x)=5π4−x.\tan^{-1}\left(\frac{\cos x - \sin x}{\cos x + \sin x}\right) = \frac{5\pi}{4} - x.

    This differs from π4−x\frac{\pi}{4} - x by π\pi⁠, so the formula fails everywhere there. Example: at x=πx = \pi the fraction is −1−0−1+0=1\frac{-1 - 0}{-1 + 0} = 1 and the value is tan⁡−11=π4\tan^{-1}1 = \frac{\pi}{4}⁠, while π4−π=−3π4\frac{\pi}{4} - \pi = -\frac{3\pi}{4}⁠. Similarly, for −5π4<x<−π4-\frac{5\pi}{4} \lt x \lt -\frac{\pi}{4} the value is −3π4−x-\frac{3\pi}{4} - x⁠.

    −3π/2 −π −π/2 π/2 π −π −π/2 π/2 π 3π/2 2π blue: the given expression gold dashed: π/4 − x green band: −π/4 < x < 3π/4 jump of π
    The given expression (blue) and π4−x\frac{\pi}{4} - x (gold, dashed) for −π≤x≤2π-\pi \le x \le 2\pi (the scales differ). The blue graph is trapped between −π2-\frac{\pi}{2} and π2\frac{\pi}{2}⁠: each time π4−x\frac{\pi}{4} - x passes an odd multiple of π2\frac{\pi}{2} (at x=−π4x = -\frac{\pi}{4}⁠, 3π4\frac{3\pi}{4}⁠, 7π4\frac{7\pi}{4}⁠), the blue graph jumps by π\pi⁠. They agree only on the green band. The open circles are points where cos⁡x+sin⁡x=0\cos x + \sin x = 0 and the expression is undefined.
    The output of tan⁡−1\tan^{-1} can never leave (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)⁠, while π4−x\frac{\pi}{4} - x runs over all real numbers. They can agree only on the piece of the line inside that strip, which is the given interval.
    tan⁡\tan has period π\pi⁠: tan⁡(y+π)=tan⁡y\tan(y + \pi) = \tan y⁠. Lesson: sin⁻¹(sin x) and the folding rules
Result

For −π4<x<3π4-\frac{\pi}{4} \lt x \lt \frac{3\pi}{4}⁠:

tan⁡−1(cos⁡x−sin⁡xcos⁡x+sin⁡x)=π4−x.\tan^{-1}\left(\frac{\cos x - \sin x}{\cos x + \sin x}\right) = \frac{\pi}{4} - x. (Textbook answer: π4−x\frac{\pi}{4} - x⁠.)

Check it with numbers

Inside, x=1x = 1⁠: cos⁡1=0.540302\cos 1 = 0.540302⁠, sin⁡1=0.841471\sin 1 = 0.841471⁠, the fraction is −0.3011691.381773=−0.217958\frac{-0.301169}{1.381773} = -0.217958⁠, and tan⁡−1(−0.217958)=−0.214602\tan^{-1}(-0.217958) = -0.214602⁠. Also π4−1=−0.214602\frac{\pi}{4} - 1 = -0.214602⁠. ✓

Outside, x=3x = 3⁠: the fraction is 1.3324881.332488 and tan⁡−11.332488=0.926991\tan^{-1}1.332488 = 0.926991⁠, which is 5π4−3\frac{5\pi}{4} - 3⁠, not π4−3=−2.214602\frac{\pi}{4} - 3 = -2.214602⁠.

Common mistakes
  1. Getting the order backwards. 1−tan⁡x1+tan⁡x\frac{1 - \tan x}{1 + \tan x} is tan⁡(π4−x)\tan\left(\frac{\pi}{4} - x\right)⁠, not tan⁡(x−π4)\tan\left(x - \frac{\pi}{4}\right)⁠. The second has the opposite sign.
  2. Ignoring x=π2x = \frac{\pi}{2}⁠. Dividing by cos⁡x\cos x is not allowed there; either check that point separately or use the 2\sqrt2 method.
  3. Skipping the range check. The identity tan⁡−1(tan⁡y)=y\tan^{-1}(\tan y) = y needs y∈(−π2,π2)y \in \left(-\frac{\pi}{2}, \frac{\pi}{2}\right)⁠; Step 3 shows this is exactly the given interval.
What to take away
  1. cos⁡x−sin⁡xcos⁡x+sin⁡x=1−tan⁡x1+tan⁡x\frac{\cos x - \sin x}{\cos x + \sin x} = \frac{1-\tan x}{1+\tan x} =tan⁡(π4−x)= \tan\left(\frac{\pi}{4} - x\right)⁠, and similarly cos⁡x+sin⁡xcos⁡x−sin⁡x\frac{\cos x + \sin x}{\cos x - \sin x} =tan⁡(π4+x)= \tan\left(\frac{\pi}{4} + x\right)⁠.
  2. cos⁡x±sin⁡x\cos x \pm \sin x can be written as 2sin⁡(x+π4)\sqrt2\sin\left(x + \frac{\pi}{4}\right) or 2cos⁡(x+π4)\sqrt2\cos\left(x + \frac{\pi}{4}\right)⁠.
  3. Translate the condition "angle in the principal range" into a condition on xx⁠; it usually reproduces the interval given in the question.

Every fact used, and where it comes from

FactUsed inSource
sin⁡(A+B)\sin(A+B)⁠, cos⁡(A+B)\cos(A+B)⁠, tan⁡(A−B)\tan(A-B) formulasSteps 1, 4Class XI trigonometry
sin⁡π4=cos⁡π4=12\sin\frac{\pi}{4} = \cos\frac{\pi}{4} = \frac{1}{\sqrt2}⁠, tan⁡π4=1\tan\frac{\pi}{4} = 1Steps 1, 4Special angles
cot⁡α=tan⁡(π2−α)\cot\alpha = \tan\left(\frac{\pi}{2} - \alpha\right)Step 2Class XI trigonometry
Principal branch of tan⁡−1\tan^{-1}⁠: range (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)Steps 3, 5Section 2.2, table of principal value branches (Lesson: principal values)
tan⁡−1(tan⁡y)=y\tan^{-1}(\tan y) = y for y∈(−π2,π2)y\in\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)Step 3Section 2.3
Answer π4−x\frac{\pi}{4} - xResultAnswers to Exercise 2.2, Q5
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →