Class 12 Maths, Worked in Full Past papersGet updates
Chapter 7 · Integrals

Exercise 7.3 · Q8: ∫1−cos⁡x1+cos⁡x dx\int\frac{1-\cos x}{1+\cos x}\,dx

Exercise 7.3Integration using trigonometric identities · Section 7.3.2
The question

Find the integral of the function

1−cos⁡x1+cos⁡x.\frac{1 - \cos x}{1 + \cos x}.
Exam answer

Let I=∫1−cos⁡x1+cos⁡x dxI = \displaystyle\int\frac{1 - \cos x}{1 + \cos x}\,dx⁠.

Using 1−cos⁡x=2sin⁡2x21 - \cos x = 2\sin^2\frac{x}{2} and 1+cos⁡x=2cos⁡2x21 + \cos x = 2\cos^2\frac{x}{2}⁠,

I=∫2sin⁡2x22cos⁡2x2 dx=∫tan⁡2x2 dx\begin{aligned} I &= \int\frac{2\sin^2\frac{x}{2}}{2\cos^2\frac{x}{2}}\,dx \\ &= \int\tan^2\frac{x}{2}\,dx \end{aligned}

Using tan⁡2θ=sec⁡2θ−1\tan^2\theta = \sec^2\theta - 1⁠,

I=∫(sec⁡2x2−1)dx=tan⁡x212−x+C\begin{aligned} I &= \int\left(\sec^2\frac{x}{2} - 1\right)dx \\ &= \frac{\tan\frac{x}{2}}{\frac12} - x + C \end{aligned}

∴ I=2tan⁡x2−x+C\therefore\ I = 2\tan\dfrac{x}{2} - x + C⁠.

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

The one idea this problem is built on

The expressions 1−cos⁡x1 - \cos x and 1+cos⁡x1 + \cos x are both "twice a square" of a half-angle function: 1−cos⁡x=2sin⁡2x21 - \cos x = 2\sin^2\frac{x}{2} and 1+cos⁡x=2cos⁡2x21 + \cos x = 2\cos^2\frac{x}{2}⁠. So the fraction is tan⁡2x2\tan^2\frac{x}{2}⁠, and tan⁡2=sec⁡2−1\tan^2 = \sec^2 - 1 turns it into something whose integral we know: sec⁡2\sec^2 is the derivative of tan⁡\tan⁠.

Given, to find, and the plan
Given
1−cos⁡x1+cos⁡x\dfrac{1-\cos x}{1+\cos x}⁠, defined where 1+cos⁡x≠01 + \cos x \ne 0⁠, that is, x≠(2k+1)πx \ne (2k+1)\pi for integers kk⁠.
To find
∫1−cos⁡x1+cos⁡x dx\displaystyle\int \frac{1-\cos x}{1+\cos x}\,dx⁠.
Plan
(1) Rewrite numerator and denominator with half-angle identities. (2) Turn tan⁡2x2\tan^2\frac{x}{2} into sec⁡2x2−1\sec^2\frac{x}{2} - 1⁠. (3) Integrate. (4) Differentiate back to check and state where the answer is valid. (5) Confirm with a second route.

Basics you need

1Half-angle forms of the double-angle formula

Put θ=x2\theta = \frac{x}{2} in cos⁡2θ=1−2sin⁡2θ=2cos⁡2θ−1\cos 2\theta = 1 - 2\sin^2\theta = 2\cos^2\theta - 1⁠: 1−cos⁡x=2sin⁡2x21 - \cos x = 2\sin^2\frac{x}{2} and 1+cos⁡x=2cos⁡2x21 + \cos x = 2\cos^2\frac{x}{2}⁠. Basics: trigonometric identities for integrals

2tan⁡2\tan^2 in terms of sec⁡2\sec^2

1+tan⁡2θ=sec⁡2θ1 + \tan^2\theta = \sec^2\theta⁠, so tan⁡2θ=sec⁡2θ−1\tan^2\theta = \sec^2\theta - 1⁠, wherever cos⁡θ≠0\cos\theta \ne 0⁠.

3The integral of sec⁡2\sec^2

∫sec⁡2x dx=tan⁡x+C\int\sec^2 x\,dx = \tan x + C (standard formulae, Section 7.2); with t=x2t = \frac{x}{2}⁠, ∫sec⁡2x2 dx=2tan⁡x2+C\int\sec^2\frac{x}{2}\,dx = 2\tan\frac{x}{2} + C⁠. Basics: substitution

4Checking an integral

F(x)+CF(x) + C is right exactly when F′(x)F'(x) is the integrand (Property (I), Section 7.2.1). Basics: integration undoes differentiation

Solution

  1. Where the integrand is defined

    The denominator vanishes when cos⁡x=−1\cos x = -1⁠, that is, at x=±π,±3π,…x = \pm\pi, \pm 3\pi, \dots⁠, the odd multiples of π\pi⁠. We work on any interval between two of them, such as −π<x<π-\pi < x < \pi⁠.

    An antiderivative is only promised on an interval where the integrand is defined. Here the integrand also blows up near those points (the top tends to 2, the bottom to 0), so the answer will have the same break points.
  2. Rewrite with half-angles

    1−cos⁡x1+cos⁡x=2sin⁡2x22cos⁡2x2=tan⁡2x2.\begin{aligned} \frac{1 - \cos x}{1 + \cos x} &= \frac{2\sin^2\frac{x}{2}}{2\cos^2\frac{x}{2}} \\ &= \tan^2\frac{x}{2}. \end{aligned}
    Both identities come from the double-angle formula with θ=x2\theta = \frac{x}{2} (Basic 1). The 2s cancel and sin⁡cos⁡=tan⁡\frac{\sin}{\cos} = \tan⁠. The condition cos⁡x2≠0\cos\frac{x}{2} \ne 0 is the same as 1+cos⁡x≠01 + \cos x \ne 0⁠, because 1+cos⁡x=2cos⁡2x21 + \cos x = 2\cos^2\frac{x}{2}⁠; so this step loses no points of the domain and adds none.
    cos⁡2θ=1−2sin⁡2θ=2cos⁡2θ−1\cos 2\theta = 1 - 2\sin^2\theta = 2\cos^2\theta - 1 (Class XI; Example 7(i), Section 7.3.2). Basics: trigonometric identities
  3. Turn tan⁡2\tan^2 into sec⁡2−1\sec^2 - 1

    tan⁡2x2=sec⁡2x2−1.\tan^2\frac{x}{2} = \sec^2\frac{x}{2} - 1.
    There is no standard formula for tan⁡2\tan^2⁠, but sec⁡2\sec^2 is exactly the derivative of tan⁡\tan⁠. This is the same trick as in Exercise 7.2 Q21 (tan⁡2(2x−3)\tan^2(2x-3)⁠).
    1+tan⁡2θ=sec⁡2θ1 + \tan^2\theta = \sec^2\theta (Pythagorean identity divided by cos⁡2θ\cos^2\theta⁠).
  4. Integrate

    For ∫sec⁡2x2 dx\int\sec^2\frac{x}{2}\,dx put t=x2t = \frac{x}{2}⁠, dx=2 dtdx = 2\,dt⁠: ∫sec⁡2t⋅2 dt=2tan⁡t=2tan⁡x2\int\sec^2 t\cdot 2\,dt = 2\tan t = 2\tan\frac{x}{2}⁠. Hence

    ∫1−cos⁡x1+cos⁡x dx=∫(sec⁡2x2−1)dx=2tan⁡x2−x+C.\begin{aligned} \int \frac{1 - \cos x}{1 + \cos x}\,dx &= \int \Big(\sec^2\frac{x}{2} - 1\Big)dx \\ &= 2\tan\frac{x}{2} - x + C. \end{aligned}
    Since t=x2t = \frac{x}{2} changes half as fast as xx⁠, we multiply by 2 (dividing by the coefficient 12\frac12⁠). A common slip is to write 12tan⁡x2\frac12\tan\frac{x}{2}⁠.
    ∫sec⁡2x dx=tan⁡x+C\int\sec^2 x\,dx = \tan x + C (Section 7.2); substitution, Section 7.3.1. Lesson: integration by substitution
  5. Check: differentiate the answer back

    With F(x)=2tan⁡x2−xF(x) = 2\tan\frac{x}{2} - x and the chain rule:

    F′(x)=2⋅sec⁡2x2⋅12−1=sec⁡2x2−1=tan⁡2x2=1−cos⁡x1+cos⁡x.\begin{aligned} F'(x) &= 2\cdot\sec^2\frac{x}{2}\cdot\frac12 - 1 = \sec^2\frac{x}{2} - 1 \\ &= \tan^2\frac{x}{2} = \frac{1 - \cos x}{1 + \cos x}. \end{aligned}

    The answer is valid on every interval ((2k−1)π, (2k+1)π)\big((2k-1)\pi,\ (2k+1)\pi\big)⁠, that is, wherever cos⁡x≠−1\cos x \ne -1⁠. (Strictly, the constant may be chosen separately on each such interval.)

    tan⁡x2\tan\frac{x}{2} is undefined exactly where x2\frac{x}{2} is an odd multiple of π2\frac{\pi}{2}⁠, that is, where xx is an odd multiple of π\pi⁠: the same points the integrand excludes.
    Chain rule, Theorem 4, Section 5.3.1; ddxtan⁡x=sec⁡2x\frac{d}{dx}\tan x = \sec^2 x⁠. Basics: integration undoes differentiation
  6. A second route gives the same answer

    Multiply top and bottom by 1−cos⁡x1 - \cos x (allowed where also cos⁡x≠1\cos x \ne 1⁠, i.e. sin⁡x≠0\sin x \ne 0⁠):

    (1−cos⁡x)21−cos⁡2x=1−2cos⁡x+cos⁡2xsin⁡2x=cosec⁡2x−2cosec⁡xcot⁡x+cot⁡2x=2cosec⁡2x−2cosec⁡xcot⁡x−1,\begin{aligned} \frac{(1-\cos x)^2}{1 - \cos^2 x} &= \frac{1 - 2\cos x + \cos^2 x}{\sin^2 x} \\ &= \operatorname{cosec}^2 x - 2\operatorname{cosec} x\cot x + \cot^2 x \\ &= 2\operatorname{cosec}^2 x - 2\operatorname{cosec} x\cot x - 1, \end{aligned}

    using cot⁡2x=cosec⁡2x−1\cot^2 x = \operatorname{cosec}^2 x - 1⁠. The standard formulae give ∫=−2cot⁡x+2cosec⁡x−x+C\int = -2\cot x + 2\operatorname{cosec} x - x + C⁠. And

    cosec⁡x−cot⁡x=1−cos⁡xsin⁡x=2sin⁡2x22sin⁡x2cos⁡x2=tan⁡x2,\begin{aligned} \operatorname{cosec} x - \cot x &= \frac{1 - \cos x}{\sin x} \\ &= \frac{2\sin^2\frac{x}{2}}{2\sin\frac{x}{2}\cos\frac{x}{2}} = \tan\frac{x}{2}, \end{aligned}

    so this is 2tan⁡x2−x+C2\tan\frac{x}{2} - x + C again.

    Getting the same result two ways is strong evidence that it is right. The half-angle route is shorter and does not need the extra condition sin⁡x≠0\sin x \ne 0⁠.
    ∫cosec⁡2x dx=−cot⁡x+C\int\operatorname{cosec}^2 x\,dx = -\cot x + C⁠, ∫cosec⁡xcot⁡x dx=−cosec⁡x+C\int\operatorname{cosec} x\cot x\,dx = -\operatorname{cosec} x + C (standard formulae, Section 7.2).
Result ∫1−cos⁡x1+cos⁡x dx=2tan⁡x2−x+C,\int \frac{1 - \cos x}{1 + \cos x}\,dx = 2\tan\frac{x}{2} - x + C,

valid wherever cos⁡x≠−1\cos x \ne -1⁠, i.e. x≠(2k+1)πx \ne (2k+1)\pi⁠. (Textbook answer: 2tan⁡x2−x+C2\tan\dfrac{x}{2} - x + C⁠.)

Check it with numbers

At x=1x = 1 with h=0.001h = 0.001⁠: F(1.001)≈0.092903780975F(1.001) \approx 0.092903780975 and F(0.999)≈0.092306887744F(0.999) \approx 0.092306887744⁠, so the slope is about 0.0005968932310.002≈0.2984466\dfrac{0.000596893231}{0.002} \approx 0.2984466⁠. The integrand is 1−cos⁡11+cos⁡1\dfrac{1 - \cos 1}{1 + \cos 1} ≈0.45969771.5403023\approx \dfrac{0.4596977}{1.5403023} ≈0.2984464\approx 0.2984464⁠. They agree to five significant figures (the gap is the error of the difference quotient).

Common mistakes
  1. Integrating tan⁡2\tan^2 as tan⁡33\frac{\tan^3}{3}⁠. The power rule needs sec⁡2\sec^2 as a factor; instead use tan⁡2=sec⁡2−1\tan^2 = \sec^2 - 1⁠.
  2. 12tan⁡x2\frac12\tan\frac{x}{2} instead of 2tan⁡x22\tan\frac{x}{2}⁠. Dividing by the coefficient 12\frac12 means multiplying by 2.
  3. Mixing the half-angle forms. 1−cos⁡x=2sin⁡2x21 - \cos x = 2\sin^2\frac{x}{2} (minus with sine) and 1+cos⁡x=2cos⁡2x21 + \cos x = 2\cos^2\frac{x}{2} (plus with cosine).
  4. Ignoring the excluded points. The answer is not valid across x=±πx = \pm\pi⁠, where both the integrand and tan⁡x2\tan\frac{x}{2} are undefined.
What to take away
  1. 1±cos⁡x1 \pm \cos x in a fraction: think half-angles. Questions 9 and 12 use the same idea.
  2. tan⁡2=sec⁡2−1\tan^2 = \sec^2 - 1 and cot⁡2=cosec⁡2−1\cot^2 = \operatorname{cosec}^2 - 1 make squares of tan and cot integrable.
  3. State where the answer is valid when the integrand has excluded points.

Every fact used, and where it comes from

FactUsed inSource
1−cos⁡x=2sin⁡2x21 - \cos x = 2\sin^2\frac{x}{2}⁠, 1+cos⁡x=2cos⁡2x21 + \cos x = 2\cos^2\frac{x}{2}Steps 2, 6Double-angle formula with θ=x2\theta = \frac{x}{2} (Class XI)
1+tan⁡2θ=sec⁡2θ1 + \tan^2\theta = \sec^2\theta⁠; 1+cot⁡2θ=cosec⁡2θ1 + \cot^2\theta = \operatorname{cosec}^2\thetaSteps 3, 6Pythagorean identities (Class XI)
∫sec⁡2x dx=tan⁡x+C\int\sec^2 x\,dx = \tan x + C⁠; ∫cosec⁡2x dx=−cot⁡x+C\int\operatorname{cosec}^2 x\,dx = -\cot x + C⁠; ∫cosec⁡xcot⁡x dx=−cosec⁡x+C\int\operatorname{cosec} x\cot x\,dx = -\operatorname{cosec} x + CSteps 4, 6Standard formulae, Section 7.2
Substitution t=x2t = \frac{x}{2}Step 4Section 7.3.1
Chain rule; ddxtan⁡x=sec⁡2x\frac{d}{dx}\tan x = \sec^2 xStep 5Theorem 4, Section 5.3.1
Differentiation undoes integrationStep 5Property (I), Section 7.2.1
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 →