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

Exercise 7.6 · Q22: ∫sin⁡−12x1+x2 dx\int\sin^{-1}\frac{2x}{1+x^2}\,dx

Exercise 7.6Integration by parts · Section 7.6
The question

Integrate the functions in Exercises 1 to 22.

22.

sin⁡−1(2x1+x2)\sin^{-1}\left(\frac{2x}{1+x^2}\right)
Exam answer

Let I=∫sin⁡−1(2x1+x2)dxI = \displaystyle\int\sin^{-1}\left(\frac{2x}{1 + x^2}\right)dx⁠.

Put x=tan⁡θx = \tan\theta⁠. For ∣x∣≤1|x| \le 1 we have −π4≤θ≤π4{-\frac{\pi}{4} \le \theta \le \frac{\pi}{4}} and so −π2≤2θ≤π2{-\frac{\pi}{2} \le 2\theta \le \frac{\pi}{2}}⁠.

sin⁡−12x1+x2=sin⁡−12tan⁡θ1+tan⁡2θ=sin⁡−1(sin⁡2θ)=2θ=2tan⁡−1x\begin{aligned} &\sin^{-1}\frac{2x}{1 + x^2} \\ &= \sin^{-1}\frac{2\tan\theta}{1 + \tan^2\theta} \\ &= \sin^{-1}(\sin 2\theta) = 2\theta \\ &= 2\tan^{-1}x \end{aligned}

Taking tan⁡−1x\tan^{-1}x as the first function, by parts:

I=2∫tan⁡−1x⋅1 dx=2[xtan⁡−1x−∫x dx1+x2]\begin{aligned} I &= 2\int\tan^{-1}x\cdot 1\,dx \\ &= 2\left[x\tan^{-1}x - \int\frac{x\,dx}{1 + x^2}\right] \end{aligned}

Put 1+x2=t1 + x^2 = t⁠. Then 2x dx=dt2x\,dx = dt⁠.

I=2xtan⁡−1x−∫dtt=2xtan⁡−1x−log⁡∣t∣+C\begin{aligned} I &= 2x\tan^{-1}x - \int\frac{dt}{t} \\ &= 2x\tan^{-1}x - \log|t| + C \end{aligned}

∴ I=2xtan⁡−1x−log⁡(1+x2)\therefore\ I = 2x\tan^{-1}x - \log(1 + x^2) +C+ C (for ∣x∣≤1|x| \le 1⁠).

The answer key prints this formula without the restriction ∣x∣≤1|x| \le 1⁠. It agrees with the answer above on [−1,1][-1, 1]⁠, but it is not an antiderivative for ∣x∣>1|x| > 1⁠; there the integral is π∣x∣−2xtan⁡−1x\pi|x| - 2x\tan^{-1}x +log⁡(1+x2)+C+ \log(1 + x^2) + C instead.

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

The one idea this problem is built on

First simplify the integrand. With x=tan⁡θx = \tan\theta⁠, the fraction 2x1+x2\frac{2x}{1+x^2} becomes sin⁡2θ\sin 2\theta⁠, and sin⁡−1(sin⁡2θ)=2θ=2tan⁡−1x\sin^{-1}(\sin 2\theta) = 2\theta = 2\tan^{-1}x⁠, but only when 2θ2\theta lies in the principal range [−π2,π2]\left[-\frac{\pi}{2}, \frac{\pi}{2}\right], that is for −1≤x≤1-1 \le x \le 1⁠. There the question becomes ∫2tan⁡−1x dx\int 2\tan^{-1}x\,dx⁠, done by parts exactly as in Question 13. Outside [−1,1][-1, 1] the simplification changes, and so does the answer.

Given, to find, and the plan
Given
sin⁡−12x1+x2\sin^{-1}\frac{2x}{1+x^2}⁠, defined and continuous for every real xx (Step 1).
To find
∫sin⁡−12x1+x2 dx\int\sin^{-1}\frac{2x}{1+x^2}\,dx⁠.
Plan
(1) Check the domain. (2) Simplify with x=tan⁡θx = \tan\theta and find where the integrand equals 2tan⁡−1x2\tan^{-1}x⁠. (3) Integrate 2tan⁡−1x2\tan^{-1}x by parts. (4) Differentiate back. (5) Work out what happens for ∣x∣>1|x| > 1⁠. (6) Join the pieces into one antiderivative valid for all real xx⁠.

Basics you need

1Principal value branch of sin⁡−1\sin^{-1}

sin⁡−1\sin^{-1} has range [−π2,π2]\left[-\frac{\pi}{2}, \frac{\pi}{2}\right]⁠, so sin⁡−1(sin⁡ϕ)=ϕ\sin^{-1}(\sin\phi) = \phi only when ϕ\phi lies in that interval (Chapter 2, Section 2.2). Basics: trigonometric identities

2sin⁡2θ\sin 2\theta in terms of tan⁡θ\tan\theta

sin⁡2θ=2tan⁡θ1+tan⁡2θ\sin 2\theta = \frac{2\tan\theta}{1+\tan^2\theta} (Class XI, Chapter 3). Basics: trigonometric identities

3∫tan⁡−1x dx\int\tan^{-1}x\,dx by parts

∫tan⁡−1x dx=xtan⁡−1x−12log⁡(1+x2)+C\int\tan^{-1}x\,dx = x\tan^{-1}x - \frac12\log(1+x^2) + C (Exercise 7.6 Question 13). Lesson: integration by parts

Solution

  1. The integrand is defined for every real xx

    sin⁡−1\sin^{-1} needs its input in [−1,1][-1, 1]⁠. For every real xx⁠,

    1+x2−2∣x∣=(∣x∣−1)2≥0,1 + x^2 - 2|x| = (|x| - 1)^2 \ge 0,

    so 2∣x∣≤1+x22|x| \le 1 + x^2⁠, that is ∣2x1+x2∣≤1\left|\frac{2x}{1+x^2}\right| \le 1⁠. Equality holds only at x=±1x = \pm 1⁠.

    So the integrand is defined, and continuous (a composition of continuous functions), on the whole real line. That matters at the end: a continuous function on an interval has an antiderivative on that whole interval (the area function of the First fundamental theorem, Theorem 1 in Section 7.8.2, stated there without proof), so we should be able to give one formula that works everywhere.
    Completing the square: 1+x2−2∣x∣=(∣x∣−1)21 + x^2 - 2|x| = (|x| - 1)^2⁠, and a square is never negative. Basics: completing the square
  2. Simplify with x=tan⁡θx = \tan\theta

    Put x=tan⁡θx = \tan\theta with θ=tan⁡−1x∈(−π2,π2)\theta = \tan^{-1}x \in \left(-\frac{\pi}{2}, \frac{\pi}{2}\right)⁠; every real xx arises this way. Then

    2x1+x2=2tan⁡θ1+tan⁡2θ=sin⁡2θ,\frac{2x}{1+x^2} = \frac{2\tan\theta}{1+\tan^2\theta} = \sin 2\theta,

    so the integrand is sin⁡−1(sin⁡2θ)\sin^{-1}(\sin 2\theta)⁠. This equals 2θ2\theta exactly when −π2≤2θ≤π2-\frac{\pi}{2} \le 2\theta \le \frac{\pi}{2}⁠, that is −π4≤θ≤π4-\frac{\pi}{4} \le \theta \le \frac{\pi}{4}⁠, that is −1≤x≤1-1 \le x \le 1⁠. Hence

    sin⁡−12x1+x2=2tan⁡−1xfor −1≤x≤1.\sin^{-1}\frac{2x}{1+x^2} = 2\tan^{-1}x \quad\text{for } -1 \le x \le 1.
    sin⁡−1\sin^{-1} always returns an angle in [−π2,π2]\left[-\frac{\pi}{2}, \frac{\pi}{2}\right]⁠. If 2θ2\theta is already in that interval, sin⁡−1\sin^{-1} gives 2θ2\theta back; if not, it gives a different angle with the same sine (Step 5). Since tan⁡\tan is increasing on (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)⁠, ∣θ∣≤π4|\theta| \le \frac{\pi}{4} is the same as ∣x∣≤1|x| \le 1⁠.
    Principal value branch of sin⁡−1\sin^{-1} (Chapter 2, Section 2.2). Basics: trigonometric identities
  3. Integrate 2tan⁡−1x2\tan^{-1}x by parts (for −1≤x≤1-1 \le x \le 1⁠)

    Take tan⁡−1x\tan^{-1}x as the first function and 11 as the second, as in Question 13:

    ∫tan⁡−1x dx=xtan⁡−1x−∫x1+x2 dx=xtan⁡−1x−12log⁡(1+x2).\begin{aligned} \int\tan^{-1}x\,dx &= x\tan^{-1}x - \int\frac{x}{1+x^2}\,dx \\ &= x\tan^{-1}x - \frac12\log(1+x^2). \end{aligned}

    Multiplying by 2,

    ∫sin⁡−12x1+x2 dx=2xtan⁡−1x−log⁡(1+x2)+C\int\sin^{-1}\frac{2x}{1+x^2}\,dx = 2x\tan^{-1}x - \log(1+x^2) + C

    for −1≤x≤1-1 \le x \le 1⁠.

    The inverse tangent is the first function because we can differentiate it but not yet integrate it (Remark (iii), Section 7.6; in the memory aid ILATE, not in the book, I comes before A). The derivative of the first function is 11+x2\frac{1}{1+x^2} and the integral of the second is xx⁠. The leftover ∫x1+x2 dx\int\frac{x}{1+x^2}\,dx is 12log⁡(1+x2)\frac12\log(1+x^2) by the substitution t=1+x2t = 1 + x^2⁠, dt=2x dxdt = 2x\,dx⁠; no absolute value is needed because 1+x2>01 + x^2 > 0⁠.
    Integration by parts; inverse trigonometric function as first function (Remark (iii), Section 7.6). Lesson: integration by parts
  4. Check: differentiate the answer

    ddx[2xtan⁡−1x−log⁡(1+x2)]=2tan⁡−1x+2x1+x2−2x1+x2=2tan⁡−1x.\begin{aligned} &\frac{d}{dx}\big[2x\tan^{-1}x - \log(1+x^2)\big] \\ &= 2\tan^{-1}x + \frac{2x}{1+x^2} - \frac{2x}{1+x^2} \\ &= 2\tan^{-1}x. \end{aligned}

    By Step 2 this equals sin⁡−12x1+x2\sin^{-1}\frac{2x}{1+x^2} for −1≤x≤1-1 \le x \le 1⁠, so the answer is correct on that interval.

    Product rule on 2xtan⁡−1x2x\tan^{-1}x and chain rule on log⁡(1+x2)\log(1+x^2)⁠; the two fractions cancel. Note that the derivative is 2tan⁡−1x2\tan^{-1}x for every xx⁠, but it equals the integrand only on [−1,1][-1, 1]⁠. That is exactly why the formula fails outside.
    Product rule; chain rule (Chapter 5). Basics: integration undoes differentiation
  5. What happens for ∣x∣>1|x| > 1

    For x>1x > 1⁠: θ∈(π4,π2)\theta \in \left(\frac{\pi}{4}, \frac{\pi}{2}\right)⁠, so 2θ∈(π2,π)2\theta \in \left(\frac{\pi}{2}, \pi\right)⁠. The angle π−2θ\pi - 2\theta lies in (0,π2)\left(0, \frac{\pi}{2}\right) and has the same sine, so

    sin⁡−12x1+x2=π−2tan⁡−1x.\sin^{-1}\frac{2x}{1+x^2} = \pi - 2\tan^{-1}x.

    For x<−1x < -1⁠: 2θ∈(−π,−π2)2\theta \in \left(-\pi, -\frac{\pi}{2}\right)⁠. The angle −π−2θ-\pi - 2\theta lies in (−π2,0)\left(-\frac{\pi}{2}, 0\right) and has the same sine, so

    sin⁡−12x1+x2=−π−2tan⁡−1x.\sin^{-1}\frac{2x}{1+x^2} = -\pi - 2\tan^{-1}x.

    Both cases read π sgn(x)−2tan⁡−1x\pi\,\text{sgn}(x) - 2\tan^{-1}x⁠. Integrating (with Step 3 for the tan⁡−1\tan^{-1} part, and ∫π sgn(x) dx=π∣x∣\int\pi\,\text{sgn}(x)\,dx = \pi|x|⁠):

    ∫sin⁡−12x1+x2 dx=π∣x∣−2xtan⁡−1x+log⁡(1+x2)+C\begin{aligned} &\int\sin^{-1}\frac{2x}{1+x^2}\,dx \\ &= \pi|x| - 2x\tan^{-1}x + \log(1+x^2) + C \end{aligned}

    for ∣x∣>1|x| > 1 (on each of the two intervals).

    sin⁡(π−ϕ)=sin⁡ϕ\sin(\pi - \phi) = \sin\phi and sin⁡(−π−ϕ)=sin⁡ϕ\sin(-\pi - \phi) = \sin\phi⁠, and sin⁡−1\sin^{-1} picks the one angle with that sine that lies in [−π2,π2]\left[-\frac{\pi}{2}, \frac{\pi}{2}\right]⁠. Here sgn(x)\text{sgn}(x) is 11 for x>0x > 0 and −1-1 for x<0x < 0⁠. The textbook formula is not valid here: its derivative 2tan⁡−1x2\tan^{-1}x is not the integrand (see the figure).
    Principal value branch of sin⁡−1\sin^{-1} (Chapter 2). Basics: trigonometric identities
  6. One antiderivative for all real xx

    Since the integrand is continuous everywhere (Step 1), the pieces can be joined. Choose the constants so the values match at x=±1x = \pm 1⁠: the formula of Step 3 gives π2−log⁡2\frac{\pi}{2} - \log 2 at both x=1x = 1 and x=−1x = -1⁠, and the formula of Step 5 gives π2+log⁡2\frac{\pi}{2} + \log 2 there, so subtract 2log⁡22\log 2 from the latter:

    for ∣x∣≤1|x| \le 1⁠,

    G(x)=2xtan⁡−1x−log⁡(1+x2),G(x) = 2x\tan^{-1}x - \log(1+x^2),

    and for ∣x∣>1|x| > 1⁠,

    G(x)=π∣x∣−2xtan⁡−1x+log⁡1+x24.G(x) = \pi|x| - 2x\tan^{-1}x + \log\frac{1+x^2}{4}.

    Then ∫sin⁡−12x1+x2 dx=G(x)+C\int\sin^{-1}\frac{2x}{1+x^2}\,dx = G(x) + C for every real xx⁠.

    GG is continuous at ±1\pm 1 by the choice of constant, and its one-sided derivatives at x=1x = 1 are 2tan⁡−11=π22\tan^{-1}1 = \frac{\pi}{2} (left) and π−2tan⁡−11=π2\pi - 2\tan^{-1}1 = \frac{\pi}{2} (right), equal to the integrand's value sin⁡−11=π2\sin^{-1}1 = \frac{\pi}{2}⁠; similarly at x=−1x = -1⁠. So G′G' equals the integrand everywhere. (log⁡1+x24=log⁡(1+x2)−2log⁡2\log\frac{1+x^2}{4} = \log(1+x^2) - 2\log 2⁠.)
    Antiderivatives on an interval differ by a constant (Section 7.2). Basics: integration undoes differentiation
−3 −2 −1 1 2 3 π/2 π −π/2 −π (1, π/2) (−1, −π/2) y = sin⁻¹(2x/(1 + x²)) y = 2 tan⁻¹x shaded: the curves agree x y
The integrand y=sin⁡−12x1+x2y = \sin^{-1}\frac{2x}{1+x^2} (blue) and y=2tan⁡−1xy = 2\tan^{-1}x (gold, dashed). They coincide on the shaded strip −1≤x≤1-1 \le x \le 1⁠, meeting the lines y=±π2y = \pm\frac{\pi}{2} at x=±1x = \pm 1⁠. Beyond that the blue curve turns back towards 0 (it is π sgn(x)−2tan⁡−1x\pi\,\text{sgn}(x) - 2\tan^{-1}x⁠) while the gold one keeps climbing towards ±π\pm\pi⁠, so the book's antiderivative, whose derivative is the gold curve, is only correct on the strip.
Result

For −1≤x≤1-1 \le x \le 1⁠:

∫sin⁡−12x1+x2 dx=2xtan⁡−1x−log⁡(1+x2)+C.\int\sin^{-1}\frac{2x}{1+x^2}\,dx = 2x\tan^{-1}x - \log(1+x^2) + C.

For ∣x∣>1|x| > 1 the integral is π∣x∣−2xtan⁡−1x+log⁡(1+x2)+C\pi|x| - 2x\tan^{-1}x + \log(1+x^2) + C⁠, and Step 6 joins the two into one antiderivative valid for all real xx⁠. (Textbook answer: 2xtan⁡−1x−log⁡(1+x2)+C2x\tan^{-1}x - \log(1+x^2) + C⁠, which agrees with ours on [−1,1][-1, 1]⁠; the book does not state this restriction, and the formula is not an antiderivative for ∣x∣>1|x| > 1⁠.)

Check it with numbers

Inside [−1,1][-1, 1]⁠. On [0,1][0, 1]⁠, the book's formula gives

F(1)−F(0)=2⋅π4−log⁡2=π2−log⁡2=0.8776491462…\begin{aligned} F(1) - F(0) &= 2\cdot\frac{\pi}{4} - \log 2 \\ &= \frac{\pi}{2} - \log 2 = 0.8776491462\ldots \end{aligned}

Numerical integration of the integrand over [0,1][0, 1] gives 0.8776491462…0.8776491462\ldots⁠, the same.

Outside. On [1,2][1, 2]⁠, numerical integration gives 1.2000848411…1.2000848411\ldots⁠. The formula of Step 5 gives

3π2−4tan⁡−12+log⁡52=1.2000848411…,\begin{aligned} &\tfrac{3\pi}{2} - 4\tan^{-1}2 + \log\tfrac52 \\ &= 1.2000848411\ldots, \end{aligned}

the same, while the book's formula would give 4tan⁡−12−log⁡5−π2+log⁡2=1.9415078125…4\tan^{-1}2 - \log 5 - \frac{\pi}{2} + \log 2 = 1.9415078125\ldots⁠, which is wrong.

At a point. At x=2x = 2⁠: the integrand is sin⁡−10.8=0.9272952180…\sin^{-1}0.8 = 0.9272952180\ldots⁠; π−2tan⁡−12=0.9272952180…\pi - 2\tan^{-1}2 = 0.9272952180\ldots (equal), but 2tan⁡−12=2.2142974356…2\tan^{-1}2 = 2.2142974356\ldots (not equal).

Common mistakes
  1. Writing sin⁡−1(sin⁡2θ)=2θ\sin^{-1}(\sin 2\theta) = 2\theta without checking the range. It needs 2θ∈[−π2,π2]2\theta \in \left[-\frac{\pi}{2}, \frac{\pi}{2}\right]⁠, i.e. ∣x∣≤1|x| \le 1⁠.
  2. Thinking the integrand is only defined on [−1,1][-1, 1]⁠. The input 2x1+x2\frac{2x}{1+x^2} is always in [−1,1][-1, 1]⁠, so the integrand is defined for every xx⁠; it is the simplification 2tan⁡−1x2\tan^{-1}x that is limited.
  3. Dropping the factor 2 in front of ∫tan⁡−1x dx\int\tan^{-1}x\,dx⁠: the 12log⁡\frac12\log becomes a whole log⁡(1+x2)\log(1+x^2)⁠.
What to take away
  1. Simplify an inverse trigonometric integrand by a substitution first, and record the interval on which the simplification holds; the answer holds on that interval only.
  2. sin⁡−12x1+x2=2tan⁡−1x\sin^{-1}\frac{2x}{1+x^2} = 2\tan^{-1}x for ∣x∣≤1|x| \le 1⁠; =π−2tan⁡−1x= \pi - 2\tan^{-1}x for x>1x > 1⁠; =−π−2tan⁡−1x= -\pi - 2\tan^{-1}x for x<−1x < -1⁠.
  3. Then ∫2tan⁡−1x dx=2xtan⁡−1x−log⁡(1+x2)+C\int 2\tan^{-1}x\,dx = 2x\tan^{-1}x - \log(1+x^2) + C by parts.

Every fact used, and where it comes from

FactUsed inSource
Principal value branch of sin⁡−1\sin^{-1}⁠: range [−π2,π2]\left[-\frac{\pi}{2}, \frac{\pi}{2}\right]Steps 2, 5Chapter 2, Section 2.2
sin⁡2θ=2tan⁡θ1+tan⁡2θ\sin 2\theta = \frac{2\tan\theta}{1+\tan^2\theta}⁠; sin⁡(π−ϕ)=sin⁡ϕ\sin(\pi - \phi) = \sin\phiSteps 2, 5Class XI, Chapter 3
Integration by parts; ∫tan⁡−1x dx\int\tan^{-1}x\,dxSteps 3, 5Section 7.6 (Lesson: integration by parts); Exercise 7.6 Question 13
ddxtan⁡−1x=11+x2\frac{d}{dx}\tan^{-1}x = \frac{1}{1+x^2}⁠; ∫dtt=log⁡∣t∣\int\frac{dt}{t} = \log|t|Steps 3, 4Standard formulae (x), (xii), Section 7.2
Antiderivatives on an interval differ by a constantStep 6Section 7.2
Product rule, chain ruleStep 4Chapter 5, Sections 5.3 and 5.3.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 →