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

Miscellaneous · Q19: ∫1−x1+x dx\int\sqrt{\frac{1-\sqrt x}{1+\sqrt x}}\,dx

Miscellaneous ExerciseTrigonometric substitution x = cos²θ and half angles · Miscellaneous Exercise
The question

Integrate the function:

1−x1+x\sqrt{\frac{1-\sqrt x}{1+\sqrt x}}
Exam answer

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

Put x=cos⁡2θx = \cos^2\theta⁠, 0<θ<π20 < \theta < \frac{\pi}{2}⁠. Then dx=−2sin⁡θcos⁡θ dθdx = -2\sin\theta\cos\theta\,d\theta⁠.

1−x1+x=1−cos⁡θ1+cos⁡θ=2sin⁡2θ22cos⁡2θ2=tan⁡θ2\begin{aligned} \sqrt{\frac{1 - \sqrt x}{1 + \sqrt x}} &= \sqrt{\frac{1 - \cos\theta}{1 + \cos\theta}} \\ &= \sqrt{\frac{2\sin^2\frac{\theta}{2}}{2\cos^2\frac{\theta}{2}}} = \tan\frac{\theta}{2} \end{aligned}

Using sin⁡θ=2sin⁡θ2cos⁡θ2\sin\theta = 2\sin\frac{\theta}{2}\cos\frac{\theta}{2}⁠, tan⁡θ2sin⁡θ=2sin⁡2θ2\tan\frac{\theta}{2}\sin\theta = 2\sin^2\frac{\theta}{2} =1−cos⁡θ= 1 - \cos\theta⁠. Also 2cos⁡2θ=1+cos⁡2θ2\cos^2\theta = 1 + \cos 2\theta⁠.

∴ I=−2∫tan⁡θ2sin⁡θcos⁡θ dθ=−2∫(1−cos⁡θ)cos⁡θ dθ=∫(1+cos⁡2θ−2cos⁡θ) dθ=θ+12sin⁡2θ−2sin⁡θ+C=θ+sin⁡θcos⁡θ−2sin⁡θ+C\begin{aligned} \therefore\ I &= -2\int\tan\frac{\theta}{2}\sin\theta\cos\theta\,d\theta \\ &= -2\int(1 - \cos\theta)\cos\theta\,d\theta \\ &= \int(1 + \cos 2\theta - 2\cos\theta)\,d\theta \\ &= \theta + \frac12\sin 2\theta - 2\sin\theta + C \\ &= \theta + \sin\theta\cos\theta - 2\sin\theta + C \end{aligned}

Here θ=cos⁡−1x\theta = \cos^{-1}\sqrt x⁠, cos⁡θ=x\cos\theta = \sqrt x and sin⁡θ=1−x\sin\theta = \sqrt{1 - x}⁠.

∴ I=−21−x+cos⁡−1x\therefore\ I = -2\sqrt{1 - x} + \cos^{-1}\sqrt x +x−x2+C+ \sqrt{x - x^2} + C⁠.

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

The one idea this problem is built on

The expressions 1−cos⁡θ1 - \cos\theta and 1+cos⁡θ1 + \cos\theta are 2sin⁡2θ22\sin^2\frac{\theta}{2} and 2cos⁡2θ22\cos^2\frac{\theta}{2}⁠, so their quotient is a perfect square, tan⁡2θ2\tan^2\frac{\theta}{2}⁠. Putting x=cos⁡θ\sqrt x = \cos\theta⁠, that is x=cos⁡2θx = \cos^2\theta⁠, therefore removes the outer square root, and the rest is ordinary trigonometric integration.

Given, to find, and the plan
Given
f(x)=1−x1+xf(x) = \sqrt{\frac{1-\sqrt x}{1+\sqrt x}}⁠. We need x≥0x \ge 0 for x\sqrt x⁠, and 1−x≥01 - \sqrt x \ge 0 for the outer root (the denominator 1+x1 + \sqrt x is always positive). So the domain is 0≤x≤10 \le x \le 1⁠.
To find
∫1−x1+x dx\displaystyle\int\sqrt{\frac{1-\sqrt x}{1+\sqrt x}}\,dx⁠.
Plan
(1) Choose the substitution x=cos⁡2θx = \cos^2\theta and the range of θ\theta⁠. (2) Simplify the root. (3) Rewrite the integral in θ\theta⁠. (4) Integrate. (5) Return to xx⁠. (6) Differentiate back. (7) Compare with the key.

Basics you need

1Half-angle identities

1−cos⁡θ=2sin⁡2θ21 - \cos\theta = 2\sin^2\frac{\theta}{2}⁠, 1+cos⁡θ=2cos⁡2θ21 + \cos\theta = 2\cos^2\frac{\theta}{2}⁠, sin⁡θ=2sin⁡θ2cos⁡θ2\sin\theta = 2\sin\frac{\theta}{2}\cos\frac{\theta}{2}⁠, cos⁡2θ=1+cos⁡2θ2\cos^2\theta = \frac{1+\cos 2\theta}{2}⁠. Basics: trigonometric identities

2Substitution with a new variable (Section 7.3.1)

Write x=g(θ)x = g(\theta)⁠, dx=g′(θ) dθdx = g'(\theta)\,d\theta⁠; at the end express θ\theta back in terms of xx⁠. Lesson: integration by substitution

3Principal value of cos⁡−1\cos^{-1}

cos⁡−1y\cos^{-1}y is the unique angle in [0,π][0, \pi] whose cosine is yy (Chapter 2).

Solution

  1. Choose the substitution x=cos⁡2θx = \cos^2\theta⁠, 0≤θ≤π20 \le \theta \le \frac{\pi}{2}

    x=cos⁡2θ,dx=−2cos⁡θsin⁡θ dθ.x = \cos^2\theta ,\qquad dx = -2\cos\theta\sin\theta\,d\theta .

    For each xx in [0,1][0, 1] there is exactly one such θ\theta⁠, namely θ=cos⁡−1x\theta = \cos^{-1}\sqrt x⁠, and then

    x=cos⁡θ,1−x=sin⁡θ.\sqrt x = \cos\theta ,\qquad \sqrt{1-x} = \sin\theta .
    Why this substitution: the integrand is built from 1±x1 \pm \sqrt x⁠, and 1±cos⁡θ1 \pm \cos\theta have the half-angle forms that make the quotient a perfect square. Why this range: x≥0\sqrt x \ge 0 must equal cos⁡θ\cos\theta⁠, and on [0,π2][0, \frac{\pi}{2}] the cosine takes every value in [0,1][0, 1] exactly once, with cos⁡θ≥0\cos\theta \ge 0 and sin⁡θ≥0\sin\theta \ge 0⁠. So cos⁡2θ=cos⁡θ\sqrt{\cos^2\theta} = \cos\theta and 1−cos⁡2θ=sin⁡θ\sqrt{1 - \cos^2\theta} = \sin\theta without sign worries.
    Chain rule: ddθcos⁡2θ=2cos⁡θ⋅(−sin⁡θ)\frac{d}{d\theta}\cos^2\theta = 2\cos\theta\cdot(-\sin\theta)⁠. Basics: substitution
  2. Simplify the root

    1−x1+x=1−cos⁡θ1+cos⁡θ=2sin⁡2θ22cos⁡2θ2=tan⁡2θ2.\begin{aligned}\frac{1-\sqrt x}{1+\sqrt x} &= \frac{1-\cos\theta}{1+\cos\theta}\\ &= \frac{2\sin^2\frac{\theta}{2}}{2\cos^2\frac{\theta}{2}} = \tan^2\frac{\theta}{2} .\end{aligned}

    Since 0≤θ2≤π40 \le \frac{\theta}{2} \le \frac{\pi}{4}⁠, tan⁡θ2≥0\tan\frac{\theta}{2} \ge 0⁠, so

    1−x1+x=tan⁡θ2.\sqrt{\frac{1-\sqrt x}{1+\sqrt x}} = \tan\frac{\theta}{2} .
    u2=∣u∣\sqrt{u^2} = |u|⁠, not uu⁠. The modulus disappears only because the range chosen in Step 1 keeps θ2\frac{\theta}{2} in the first quadrant.
  3. Rewrite the whole integral in θ\theta

    ∫1−x1+x dx=∫tan⁡θ2⋅(−2cos⁡θsin⁡θ)dθ.\int\sqrt{\frac{1-\sqrt x}{1+\sqrt x}}\,dx = \int\tan\frac{\theta}{2}\cdot\left(-2\cos\theta\sin\theta\right)d\theta .

    Now

    tan⁡θ2sin⁡θ=sin⁡θ2cos⁡θ2⋅2sin⁡θ2cos⁡θ2=2sin⁡2θ2=1−cos⁡θ,\begin{aligned}\tan\frac{\theta}{2}\sin\theta &= \frac{\sin\frac{\theta}{2}}{\cos\frac{\theta}{2}}\cdot 2\sin\frac{\theta}{2}\cos\frac{\theta}{2}\\ &= 2\sin^2\frac{\theta}{2} = 1 - \cos\theta ,\end{aligned}

    so the integral is

    −2∫(1−cos⁡θ)cos⁡θ dθ=∫(−2cos⁡θ+2cos⁡2θ)dθ=∫(−2cos⁡θ+1+cos⁡2θ)dθ.\begin{aligned}&-2\int(1 - \cos\theta)\cos\theta\,d\theta\\ &= \int\left(-2\cos\theta + 2\cos^2\theta\right)d\theta\\ &= \int\left(-2\cos\theta + 1 + \cos 2\theta\right)d\theta .\end{aligned}
    Writing sin⁡θ\sin\theta through half angles cancels the cos⁡θ2\cos\frac{\theta}{2} in the denominator of tan⁡θ2\tan\frac{\theta}{2}⁠. The square cos⁡2θ\cos^2\theta is then lowered with 2cos⁡2θ=1+cos⁡2θ2\cos^2\theta = 1 + \cos 2\theta so that every term has a standard integral.
    Section 7.3.2 (integration using trigonometric identities). Basics: trigonometric identities
  4. Integrate in θ\theta

    ∫(−2cos⁡θ+1+cos⁡2θ)dθ=−2sin⁡θ+θ+12sin⁡2θ+C=−2sin⁡θ+θ+sin⁡θcos⁡θ+C.\begin{aligned}&\int\left(-2\cos\theta + 1 + \cos 2\theta\right)d\theta\\ &= -2\sin\theta + \theta + \frac12\sin 2\theta + C\\ &= -2\sin\theta + \theta + \sin\theta\cos\theta + C .\end{aligned}
    Standard formulae (ii) and (i) of Section 7.2, and ∫cos⁡2θ dθ=12sin⁡2θ\int\cos 2\theta\,d\theta = \frac12\sin 2\theta (substitute u=2θu = 2\theta⁠). Then 12sin⁡2θ=sin⁡θcos⁡θ\frac12\sin 2\theta = \sin\theta\cos\theta⁠, which is easier to translate back to xx⁠.
    Standard formula (ii), Section 7.2. Lesson: integration by substitution
  5. Return to xx

    From Step 1: θ=cos⁡−1x\theta = \cos^{-1}\sqrt x⁠, sin⁡θ=1−x\sin\theta = \sqrt{1-x}⁠, cos⁡θ=x\cos\theta = \sqrt x⁠, so sin⁡θcos⁡θ=x1−x=x−x2\sin\theta\cos\theta = \sqrt{x}\sqrt{1-x} = \sqrt{x - x^2}⁠:

    ∫1−x1+x dx=−21−x+cos⁡−1x+x−x2+C.\int\sqrt{\frac{1-\sqrt x}{1+\sqrt x}}\,dx = -2\sqrt{1-x} + \cos^{-1}\sqrt x + \sqrt{x-x^2} + C .
    θ=cos⁡−1x\theta = \cos^{-1}\sqrt x is correct because θ\theta lies in [0,π2]⊂[0,π][0, \frac{\pi}{2}] \subset [0, \pi]⁠, the principal range of cos⁡−1\cos^{-1}⁠, so cos⁡−1(cos⁡θ)=θ\cos^{-1}(\cos\theta) = \theta⁠. Also x1−x=x(1−x)\sqrt x\sqrt{1-x} = \sqrt{x(1-x)} because both factors are ≥0\ge 0⁠.
    Principal range of cos⁡−1\cos^{-1} (Chapter 2).
  6. Check: differentiate the answer

    For 0<x<10 < x < 1⁠, write s=xs = \sqrt x⁠, so dsdx=12s\frac{ds}{dx} = \frac{1}{2s} and x−x2=s1−x\sqrt{x-x^2} = s\sqrt{1-x}⁠. The three terms give

    ddx(−21−x)=11−x,ddxcos⁡−1x=−11−x⋅12s,ddxx−x2=1−2x2s1−x.\begin{aligned}\frac{d}{dx}\left(-2\sqrt{1-x}\right) &= \frac{1}{\sqrt{1-x}} ,\\ \frac{d}{dx}\cos^{-1}\sqrt x &= -\frac{1}{\sqrt{1-x}}\cdot\frac{1}{2s} ,\\ \frac{d}{dx}\sqrt{x-x^2} &= \frac{1-2x}{2s\sqrt{1-x}} .\end{aligned}

    Over the common denominator 2s1−x2s\sqrt{1-x} the numerators add to 2s−1+1−2s2=2s(1−s)2s - 1 + 1 - 2s^2 = 2s(1-s)⁠, so the derivative is

    2s(1−s)2s1−x=1−s(1−s)(1+s)=1−s1+s ✓\frac{2s(1-s)}{2s\sqrt{1-x}} = \frac{1-s}{\sqrt{(1-s)(1+s)}} = \sqrt{\frac{1-s}{1+s}}\ \checkmark
    We used 1−x=(1−s)(1+s)1 - x = (1-s)(1+s) and, for 0<s<10 < s < 1⁠, 1−s1−s=1−s\frac{1-s}{\sqrt{1-s}} = \sqrt{1-s}⁠. With s=xs = \sqrt x the last expression is the integrand. The answer is valid on (0,1)(0, 1)⁠; it is also continuous on the closed interval [0,1][0, 1]⁠.
    ddxcos⁡−1u=−11−u2⋅dudx\frac{d}{dx}\cos^{-1}u = -\frac{1}{\sqrt{1-u^2}}\cdot\frac{du}{dx} (Chapter 5). Basics: integration undoes differentiation
  7. Compare with the textbook, and an equivalent form

    The key gives −21−x+cos⁡−1x+x−x2+C-2\sqrt{1-x} + \cos^{-1}\sqrt x + \sqrt{x-x^2} + C⁠, exactly our answer.

    A solution that substitutes x=sin⁡2ϕx = \sin^2\phi instead ends with −sin⁡−1x-\sin^{-1}\sqrt x in place of cos⁡−1x\cos^{-1}\sqrt x⁠. Since cos⁡−1x=π2−sin⁡−1x\cos^{-1}\sqrt x = \frac{\pi}{2} - \sin^{-1}\sqrt x for 0≤x≤10 \le x \le 1⁠, the two answers differ by the constant π2\frac{\pi}{2}⁠, and both are correct.

    Antiderivatives on an interval differ by a constant (Remark, Section 7.2); sin⁡−1y+cos⁡−1y=π2\sin^{-1}y + \cos^{-1}y = \frac{\pi}{2} for yy in [−1,1][-1, 1] (Chapter 2).
Result

For 0<x<10 < x < 1⁠:

∫1−x1+x dx=−21−x+cos⁡−1x+x−x2+C\begin{aligned}&\int\sqrt{\frac{1-\sqrt x}{1+\sqrt x}}\,dx\\ &= -2\sqrt{1-x} + \cos^{-1}\sqrt x + \sqrt{x-x^2} + C\end{aligned}

(Textbook answer: −21−x+cos⁡−1x+x−x2+C-2\sqrt{1-x} + \cos^{-1}\sqrt x + \sqrt{x-x^2} + C⁠.)

Check it with numbers

The substitution at x=14x = \frac14⁠: θ=cos⁡−112=π3\theta = \cos^{-1}\frac12 = \frac{\pi}{3}⁠, and 1−1/21+1/2=13=tan⁡π6\sqrt{\frac{1 - 1/2}{1 + 1/2}} = \sqrt{\frac13} = \tan\frac{\pi}{6}⁠, as Step 2 says.

Area from 0 to 1: our answer FF is continuous on [0,1][0, 1] with F(1)=0F(1) = 0 and F(0)=−2+π2F(0) = -2 + \frac{\pi}{2}⁠, so F(1)−F(0)=2−π2≈0.4292036732F(1) - F(0) = 2 - \frac{\pi}{2} \approx 0.4292036732⁠. Numerical integration of the integrand from 0 to 1 also gives 0.42920367320.4292036732⁠.

Common mistakes
  1. Not fixing the range of θ\theta⁠. Without 0≤θ≤π20 \le \theta \le \frac{\pi}{2}⁠, tan⁡2θ2\sqrt{\tan^2\frac{\theta}{2}} and 1−cos⁡2θ\sqrt{1 - \cos^2\theta} could carry minus signs.
  2. Forgetting dxdx⁠. The factor −2cos⁡θsin⁡θ dθ-2\cos\theta\sin\theta\,d\theta is essential; replacing dxdx by dθd\theta gives a wrong answer.
  3. Writing sin⁡θ=x\sin\theta = \sqrt x⁠. With x=cos⁡2θx = \cos^2\theta⁠, it is cos⁡θ=x\cos\theta = \sqrt x and sin⁡θ=1−x\sin\theta = \sqrt{1-x}⁠.
What to take away
  1. 1−cos⁡θ1+cos⁡θ=tan⁡2θ2\frac{1-\cos\theta}{1+\cos\theta} = \tan^2\frac{\theta}{2}⁠: a substitution that makes 1±something1 \pm \text{something} into 1±cos⁡θ1 \pm \cos\theta removes such square roots.
  2. For a trigonometric substitution, state the range of the new variable and use it every time a square root is removed.

Every fact used, and where it comes from

FactUsed inSource
Integration by substitutionSteps 1, 3Section 7.3.1 (Lesson: substitution)
Half-angle and double-angle identitiesSteps 2, 3, 4Class XI trigonometry; Section 7.3.2 (Basics)
∫cos⁡θ dθ=sin⁡θ+C\int\cos\theta\,d\theta = \sin\theta + CStep 4Standard formula (ii), Section 7.2
Principal range [0,π][0, \pi] of cos⁡−1\cos^{-1}⁠; sin⁡−1y+cos⁡−1y=π2\sin^{-1}y + \cos^{-1}y = \frac{\pi}{2}Steps 5, 7Chapter 2
Derivative of cos⁡−1u\cos^{-1}u⁠; chain ruleStep 6Chapter 5
Antiderivatives differ by a constantStep 7Remark, Section 7.2
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 →