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

Example 4: Simplest form of tan⁡−1cos⁡x1−sin⁡x\tan^{-1}\frac{\cos x}{1-\sin x}

ExamplesSubstitutions and simplest form · Section 2.3
The question

Express tan⁡−1(cos⁡x1−sin⁡x)\tan^{-1}\left(\dfrac{\cos x}{1-\sin x}\right)⁠, −3π2<x<π2-\dfrac{3\pi}{2} < x < \dfrac{\pi}{2} in the simplest form.

Exam answer

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

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

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

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

Using cos⁡x=cos⁡2x2−sin⁡2x2\cos x = \cos^2\frac{x}{2} - \sin^2\frac{x}{2} and 1−sin⁡x1 - \sin x =(cos⁡x2−sin⁡x2)2= \left(\cos\frac{x}{2} - \sin\frac{x}{2}\right)^2⁠,

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

∴ y=π4+x2\therefore\ y = \dfrac{\pi}{4} + \dfrac{x}{2}⁠, as π4+x2∈(−π2,π2)\dfrac{\pi}{4} + \dfrac{x}{2} \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

Rewrite everything in terms of the half angle x2\frac{x}{2}⁠. Then cos⁡x\cos x is a difference of two squares and 1−sin⁡x1-\sin x is a perfect square, a common factor cancels, and what is left is the tangent addition formula: cos⁡x1−sin⁡x=tan⁡(π4+x2)\frac{\cos x}{1-\sin x} = \tan\left(\frac{\pi}{4}+\frac{x}{2}\right)⁠. Finally tan⁡−1\tan^{-1} undoes tan⁡\tan because the given interval places π4+x2\frac{\pi}{4}+\frac{x}{2} exactly inside (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)⁠.

Given, to find, and the plan
Given
f(x)=tan⁡−1(cos⁡x1−sin⁡x)f(x) = \tan^{-1}\left(\frac{\cos x}{1-\sin x}\right) for −3π2<x<π2-\frac{3\pi}{2} < x < \frac{\pi}{2}⁠.
To find
A simpler expression equal to f(x)f(x) for every xx in that interval.
Plan
(1) Check the fraction is defined and locate x2\frac{x}{2}⁠. (2) Write cos⁡x\cos x and 1−sin⁡x1-\sin x with half angles and factorise. (3) Cancel the common factor, checking it is not zero. (4) Turn the result into tan⁡(π4+x2)\tan\left(\frac{\pi}{4}+\frac{x}{2}\right)⁠. (5) Cancel tan⁡−1(tan⁡ ⋅)\tan^{-1}(\tan\,\cdot)⁠, checking the angle is in (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)⁠.

Basics you need

1Half-angle forms

Put x=2⋅x2x = 2\cdot\frac{x}{2} in the double-angle formulas: cos⁡x=cos⁡2x2−sin⁡2x2\cos x = \cos^2\frac{x}{2} - \sin^2\frac{x}{2} and sin⁡x=2sin⁡x2cos⁡x2\sin x = 2\sin\frac{x}{2}\cos\frac{x}{2}⁠. Also 1=cos⁡2x2+sin⁡2x21 = \cos^2\frac{x}{2} + \sin^2\frac{x}{2}⁠. Basics: sin and cos on the unit circle

2Two algebra patterns

a2−b2=(a+b)(a−b)a^2 - b^2 = (a+b)(a-b) and a2+b2−2ab=(a−b)2a^2+b^2-2ab = (a-b)^2⁠. Cancelling a factor from top and bottom of a fraction is only allowed when that factor is not zero.

3Tangent addition formula

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}⁠, tan⁡A=1\tan A = 1⁠: tan⁡(π4+B)=1+tan⁡B1−tan⁡B\tan\left(\frac{\pi}{4}+B\right) = \frac{1+\tan B}{1-\tan B}⁠. Basics: tan, cot, sec and cosec

4tan⁡−1(tan⁡t)=t\tan^{-1}(\tan t) = t only on (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)

tan⁡−1\tan^{-1} always returns a value in (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)⁠. So tan⁡−1(tan⁡t)=t\tan^{-1}(\tan t) = t exactly when tt is in that interval. For example tan⁡−1(tan⁡π)=tan⁡−10=0≠π\tan^{-1}(\tan\pi) = \tan^{-1}0 = 0 \ne \pi⁠. Lesson: the folding rules

Solution

  1. Check the fraction is defined, and locate x2\frac{x}{2}

    The fraction needs 1−sin⁡x≠01 - \sin x \ne 0⁠. Now sin⁡x=1\sin x = 1 only at x=π2+2nπx = \frac{\pi}{2} + 2n\pi⁠. Two consecutive such values are −3π2-\frac{3\pi}{2} (with n=−1n=-1⁠) and π2\frac{\pi}{2} (with n=0n=0⁠); they are 2π2\pi apart, so no other one lies between them, and they are exactly the endpoints of our interval, which are excluded. Since sin⁡x≤1\sin x\le1 always, on −3π2<x<π2-\frac{3\pi}{2} < x < \frac{\pi}{2} we have 1−sin⁡x>01-\sin x > 0 and the fraction is defined. Halving the interval:

    −3π4<x2<π4.-\frac{3\pi}{4} < \frac{x}{2} < \frac{\pi}{4}.
    The interval in the question is not decoration. It is the gap between two consecutive points where 1−sin⁡x=01-\sin x = 0⁠, and, as Step 5 shows, it is exactly the set of xx for which the final answer is correct. Knowing where x2\frac{x}{2} lies is what lets us justify the cancellations below.
    tan⁡−1\tan^{-1} accepts every real number, so once the fraction is defined, f(x)f(x) is defined. Lesson: principal values
  2. Rewrite the top and bottom with half angles

    Write c=cos⁡x2c = \cos\frac{x}{2} and s=sin⁡x2s = \sin\frac{x}{2} to keep the algebra short. By Basic 1,

    cos⁡x=c2−s2=(c+s)(c−s),1−sin⁡x=(c2+s2)−2sc=(c−s)2.\begin{aligned} \cos x &= c^2 - s^2 = (c+s)(c-s), \\ 1 - \sin x &= (c^2+s^2) - 2sc = (c-s)^2. \end{aligned}

    So

    cos⁡x1−sin⁡x=(c+s)(c−s)(c−s)2.\frac{\cos x}{1-\sin x} = \frac{(c+s)(c-s)}{(c-s)^2}.
    This matches the textbook's first two lines. The trick in the denominator is to write the number 1 as cos⁡2x2+sin⁡2x2\cos^2\frac{x}{2}+\sin^2\frac{x}{2}⁠. Then 1−sin⁡x1 - \sin x has the shape a2+b2−2aba^2+b^2-2ab⁠, a perfect square. The numerator, a difference of two squares, then shares the factor c−sc - s with it.
    cos⁡2θ=cos⁡2θ−sin⁡2θ\cos2\theta = \cos^2\theta-\sin^2\theta and sin⁡2θ=2sin⁡θcos⁡θ\sin2\theta = 2\sin\theta\cos\theta⁠, with θ=x2\theta = \frac{x}{2}⁠.
  3. Cancel c−sc - s⁠, after checking it is not zero

    By the cosine addition formula,

    cos⁡(x2+π4)=12(cos⁡x2−sin⁡x2),\cos\left(\frac{x}{2}+\frac{\pi}{4}\right) = \frac{1}{\sqrt2}\left(\cos\frac{x}{2} - \sin\frac{x}{2}\right),

    so

    c−s=2cos⁡(x2+π4).c - s = \sqrt2\cos\left(\frac{x}{2}+\frac{\pi}{4}\right).

    By Step 1, x2+π4\frac{x}{2}+\frac{\pi}{4} lies in (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)⁠, where cosine is positive. So c−s>0c - s > 0⁠, it is not zero, and we may cancel one factor:

    cos⁡x1−sin⁡x=c+sc−s=cos⁡x2+sin⁡x2cos⁡x2−sin⁡x2.\begin{aligned} \frac{\cos x}{1-\sin x} &= \frac{c+s}{c-s} \\ &= \frac{\cos\frac{x}{2}+\sin\frac{x}{2}}{\cos\frac{x}{2}-\sin\frac{x}{2}}. \end{aligned}
    The textbook cancels without comment. Cancelling a factor that could be 0 would be dividing by zero. Here c−s=0c - s = 0 would need tan⁡x2=1\tan\frac{x}{2} = 1⁠, i.e. x2=π4+nπ\frac{x}{2} = \frac{\pi}{4}+n\pi⁠; none of these is in (−3π4,π4)\left(-\frac{3\pi}{4}, \frac{\pi}{4}\right)⁠, confirming the cancellation is safe.
    cos⁡(A+B)=cos⁡Acos⁡B−sin⁡Asin⁡B\cos(A+B) = \cos A\cos B - \sin A\sin B with B=π4B = \frac{\pi}{4}⁠, where cos⁡π4=sin⁡π4=12\cos\frac{\pi}{4} = \sin\frac{\pi}{4} = \frac{1}{\sqrt2}⁠.
  4. Recognise tan⁡(π4+x2)\tan\left(\frac{\pi}{4}+\frac{x}{2}\right)

    The textbook's route. Divide top and bottom by cos⁡x2\cos\frac{x}{2}⁠:

    cos⁡x2+sin⁡x2cos⁡x2−sin⁡x2=1+tan⁡x21−tan⁡x2=tan⁡(π4+x2),\begin{aligned} \frac{\cos\frac{x}{2}+\sin\frac{x}{2}}{\cos\frac{x}{2}-\sin\frac{x}{2}} &= \frac{1+\tan\frac{x}{2}}{1-\tan\frac{x}{2}} \\ &= \tan\left(\frac{\pi}{4}+\frac{x}{2}\right), \end{aligned}

    the last step by the addition formula with tan⁡π4=1\tan\frac{\pi}{4} = 1 (Basic 3). This division needs cos⁡x2≠0\cos\frac{x}{2}\ne0⁠. In our interval x2=−π2\frac{x}{2} = -\frac{\pi}{2} is possible, at x=−πx = -\pi, where tan⁡x2\tan\frac{x}{2} is undefined. So the textbook's route misses that one point.

    A route with no gap. By the sine addition formula,

    sin⁡(x2+π4)=12(sin⁡x2+cos⁡x2),\sin\left(\frac{x}{2}+\frac{\pi}{4}\right) = \frac{1}{\sqrt2}\left(\sin\frac{x}{2}+\cos\frac{x}{2}\right),

    so c+s=2sin⁡(x2+π4)c + s = \sqrt2\sin\left(\frac{x}{2}+\frac{\pi}{4}\right)⁠. With Step 3,

    c+sc−s=2sin⁡(x2+π4)2cos⁡(x2+π4)=tan⁡(π4+x2).\begin{aligned} \frac{c+s}{c-s} &= \frac{\sqrt2\sin\left(\frac{x}{2}+\frac{\pi}{4}\right)}{\sqrt2\cos\left(\frac{x}{2}+\frac{\pi}{4}\right)} \\ &= \tan\left(\frac{\pi}{4}+\frac{x}{2}\right). \end{aligned}

    This only divides by cos⁡(x2+π4)\cos\left(\frac{x}{2}+\frac{\pi}{4}\right)⁠, which Step 3 showed is positive for every xx in the interval, including x=−πx = -\pi⁠. Directly at x=−πx=-\pi⁠: cos⁡(−π)1−sin⁡(−π)=−11=−1\frac{\cos(-\pi)}{1-\sin(-\pi)} = \frac{-1}{1} = -1⁠, and tan⁡(π4−π2)=tan⁡(−π4)=−1\tan\left(\frac{\pi}{4}-\frac{\pi}{2}\right) = \tan\left(-\frac{\pi}{4}\right) = -1⁠. It agrees.

    Both routes reach the same expression. The textbook's is the one to recognise in an exam, since 1+tan⁡B1−tan⁡B\frac{1+\tan B}{1-\tan B} is a standard pattern; the second shows the result holds at every point of the interval with no exception.
    sin⁡(A+B)=sin⁡Acos⁡B+cos⁡Asin⁡B\sin(A+B) = \sin A\cos B + \cos A\sin B⁠; tan⁡(A+B)=tan⁡A+tan⁡B1−tan⁡Atan⁡B\tan(A+B) = \frac{\tan A+\tan B}{1-\tan A\tan B}⁠.
  5. Cancel tan⁡−1(tan⁡ ⋅)\tan^{-1}(\tan\,\cdot)⁠, after checking the angle

    So far, for every xx in the interval,

    f(x)=tan⁡−1[tan⁡(π4+x2)].f(x) = \tan^{-1}\left[\tan\left(\frac{\pi}{4}+\frac{x}{2}\right)\right].

    Add π4\frac{\pi}{4} to each part of −3π4<x2<π4-\frac{3\pi}{4} < \frac{x}{2} < \frac{\pi}{4}⁠:

    −π2<π4+x2<π2.-\frac{\pi}{2} < \frac{\pi}{4}+\frac{x}{2} < \frac{\pi}{2}.

    The angle is in the principal range of tan⁡−1\tan^{-1}⁠, so by Basic 4

    tan⁡−1(cos⁡x1−sin⁡x)=π4+x2.\tan^{-1}\left(\frac{\cos x}{1-\sin x}\right) = \frac{\pi}{4}+\frac{x}{2}.
    π/2 −π/2 −3π/2 −π π/2 (−π, −π/4) given interval y = π/4 + x/2 outside: off by π outside: off by π x
    Equal scales. The blue curve is y=tan⁡−1(cos⁡x1−sin⁡x)y = \tan^{-1}\left(\frac{\cos x}{1-\sin x}\right)⁠; it is undefined where sin⁡x=1\sin x = 1 (open circles). On the shaded interval it lies exactly on the gold line y=π4+x2y = \frac{\pi}{4}+\frac{x}{2}⁠, including the point (−π,−π4)\left(-\pi, -\frac{\pi}{4}\right)⁠. Outside, it is the same line moved by π\pi⁠.
    This is the step that explains the interval −3π2<x<π2-\frac{3\pi}{2} < x < \frac{\pi}{2}⁠: it is precisely the set of xx for which π4+x2\frac{\pi}{4}+\frac{x}{2} lands in (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)⁠. For xx just beyond π2\frac{\pi}{2}⁠, the angle π4+x2\frac{\pi}{4}+\frac{x}{2} exceeds π2\frac{\pi}{2}⁠, and tan⁡−1\tan^{-1} returns π4+x2−π\frac{\pi}{4}+\frac{x}{2}-\pi instead (see the check below).
    tan⁡−1(tan⁡t)=t\tan^{-1}(\tan t) = t for −π2<t<π2-\frac{\pi}{2} < t < \frac{\pi}{2} (Section 2.3, which states the rule for sin⁡−1\sin^{-1} and adds that "similar results follow for remaining trigonometric functions"). Lesson: substitutions and simplest form
Result

For −3π2<x<π2-\frac{3\pi}{2} < x < \frac{\pi}{2}⁠,

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

This agrees with the textbook. (The textbook's division by cos⁡x2\cos\frac{x}{2} is invalid at x=−πx = -\pi⁠, but the result itself holds there too, as shown in Step 4.)

Check it with numbers

x=π6≈0.523599x = \frac{\pi}{6}\approx0.523599⁠: cos⁡x1−sin⁡x=0.8660250.5=1.732051\frac{\cos x}{1-\sin x} = \frac{0.866025}{0.5} = 1.732051⁠, and tan⁡−1(1.732051)≈1.047198\tan^{-1}(1.732051)\approx1.047198⁠. Also π4+π12=π3≈1.047198\frac{\pi}{4}+\frac{\pi}{12} = \frac{\pi}{3}\approx1.047198⁠. Equal.

x=−2π3≈−2.094395x = -\frac{2\pi}{3}\approx-2.094395⁠: −0.51+0.866025≈−0.267949\frac{-0.5}{1+0.866025} \approx -0.267949⁠, and tan⁡−1(−0.267949)≈−0.261799\tan^{-1}(-0.267949)\approx-0.261799⁠. Also π4−π3=−π12≈−0.261799\frac{\pi}{4}-\frac{\pi}{3} = -\frac{\pi}{12}\approx-0.261799⁠. Equal.

Outside the interval, x=5π6≈2.617994x = \frac{5\pi}{6}\approx2.617994⁠: −0.8660251−0.5=−1.732051\frac{-0.866025}{1-0.5} = -1.732051⁠, and tan⁡−1(−1.732051)≈−1.047198\tan^{-1}(-1.732051)\approx-1.047198⁠. But π4+5π12=2π3≈2.094395\frac{\pi}{4}+\frac{5\pi}{12} = \frac{2\pi}{3}\approx2.094395⁠. Not equal: they differ by π\pi⁠, as the figure shows.

Common mistakes
  1. Dropping the interval. The answer π4+x2\frac{\pi}{4}+\frac{x}{2} is wrong for other xx (check at 5π6\frac{5\pi}{6}⁠). A "simplest form" is only correct together with the interval it was derived on.
  2. Expanding 1−sin⁡x1-\sin x in full angles. Nothing factorises. The half-angle form, with 1=cos⁡2x2+sin⁡2x21 = \cos^2\frac{x}{2}+\sin^2\frac{x}{2}⁠, is what makes it a perfect square.
  3. Writing 1+tan⁡B1−tan⁡B=tan⁡(π4−B)\frac{1+\tan B}{1-\tan B} = \tan\left(\frac{\pi}{4}-B\right)⁠. The plus sign in the numerator goes with π4+B\frac{\pi}{4}+B⁠; 1−tan⁡B1+tan⁡B\frac{1-\tan B}{1+\tan B} is tan⁡(π4−B)\tan\left(\frac{\pi}{4}-B\right)⁠.
  4. Cancelling tan⁡−1(tan⁡t)=t\tan^{-1}(\tan t) = t without checking tt⁠. It needs −π2<t<π2-\frac{\pi}{2}<t<\frac{\pi}{2}⁠.
What to take away
  1. For expressions in 1±sin⁡x1\pm\sin x or 1±cos⁡x1\pm\cos x⁠, go to half angles: 1±sin⁡x=(cos⁡x2±sin⁡x2)21\pm\sin x = \left(\cos\frac{x}{2}\pm\sin\frac{x}{2}\right)^2⁠, 1+cos⁡x=2cos⁡2x21+\cos x = 2\cos^2\frac{x}{2}⁠, 1−cos⁡x=2sin⁡2x21-\cos x = 2\sin^2\frac{x}{2}⁠.
  2. cos⁡t+sin⁡tcos⁡t−sin⁡t=tan⁡(π4+t)\frac{\cos t+\sin t}{\cos t-\sin t} = \tan\left(\frac{\pi}{4}+t\right) is worth remembering. Its partner cos⁡x−sin⁡xcos⁡x+sin⁡x=tan⁡(π4−x)\frac{\cos x-\sin x}{\cos x+\sin x} = \tan\left(\frac{\pi}{4}-x\right) is Exercise 2.2, Q5.
  3. Every cancellation (of a factor, or of tan⁡−1tan⁡\tan^{-1}\tan⁠) is justified by the interval. Say so each time.

Every fact used, and where it comes from

FactUsed inSource
sin⁡x=1  ⟺  x=π2+2nπ\sin x = 1 \iff x = \frac{\pi}{2}+2n\piStep 1Unit circle (Class XI)
cos⁡x=cos⁡2x2−sin⁡2x2\cos x = \cos^2\frac{x}{2}-\sin^2\frac{x}{2}⁠, sin⁡x=2sin⁡x2cos⁡x2\sin x = 2\sin\frac{x}{2}\cos\frac{x}{2}Step 2Class XI double-angle formulas
a2−b2a^2-b^2 and (a−b)2(a-b)^2 factorisationsStep 2Algebra
cos⁡(A+B)\cos(A+B)⁠, sin⁡(A+B)\sin(A+B)⁠, tan⁡(A+B)\tan(A+B)Steps 3, 4Class XI compound-angle formulas
tan⁡−1:R→(−π2,π2)\tan^{-1} : \R\to\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)⁠; tan⁡−1(tan⁡t)=t\tan^{-1}(\tan t)=t thereStep 5Section 2.2 table; Section 2.3 (Lesson: the folding rules)
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 →