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

Exercise 7.6 · Q8: ∫xtan⁡−1x dx\int x\tan^{-1}x\,dx

Exercise 7.6Integration by parts · Section 7.6
The question

Integrate the functions in Exercises 1 to 22.

8. xtan⁡−1xx\tan^{-1}x

Exam answer

Let I=∫xtan⁡−1x dxI = \displaystyle\int x\tan^{-1}x\,dx⁠.

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

I=tan⁡−1x⋅x22−∫11+x2⋅x22 dx=x22tan⁡−1x−12∫(1−11+x2)dx=x22tan⁡−1x−12(x−tan⁡−1x)+C\begin{aligned} I &= \tan^{-1}x\cdot\frac{x^2}{2} \\ &\quad - \int\frac{1}{1 + x^2}\cdot\frac{x^2}{2}\,dx \\ &= \frac{x^2}{2}\tan^{-1}x \\ &\quad - \frac12\int\left(1 - \frac{1}{1 + x^2}\right)dx \\ &= \frac{x^2}{2}\tan^{-1}x \\ &\quad - \frac12\left(x - \tan^{-1}x\right) + C \end{aligned}

∴ I=x22tan⁡−1x−x2\therefore\ I = \dfrac{x^2}{2}\tan^{-1}x - \dfrac x2 +12tan⁡−1x+C+ \dfrac12\tan^{-1}x + C⁠.

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

The one idea this problem is built on

Differentiate the inverse tangent (it becomes the algebraic 11+x2\frac{1}{1+x^2}⁠) and integrate xx⁠. The integral that is left, ∫x21+x2 dx\int\frac{x^2}{1+x^2}\,dx⁠, is a fraction whose top has the same degree as the bottom; dividing gives 1−11+x21 - \frac{1}{1+x^2}⁠, and both pieces are standard.

Given, to find, and the plan
Given
The function xtan⁡−1xx\tan^{-1}x⁠, defined and continuous for every real xx (tan⁡−1\tan^{-1} is defined on all of R\mathbf R⁠).
To find
∫xtan⁡−1x dx\int x\tan^{-1}x\,dx⁠.
Plan
(1) Name uu and dvdx\frac{dv}{dx}⁠. (2) Find dudx\frac{du}{dx} and vv⁠. (3) Apply the formula. (4) Split x21+x2\frac{x^2}{1+x^2} and integrate. (5) Differentiate back.

Basics you need

1Integration by parts

Section 7.6, equation (1):

∫u dvdx dx=uv−∫v dudx dx,\int u\,\frac{dv}{dx}\,dx = uv - \int v\,\frac{du}{dx}\,dx,

with uu the first function (differentiated) and dvdx\frac{dv}{dx} the second (integrated to give vv⁠). Lesson: integration by parts

2Which factor should be uu⁠?

Remark (iii) after Example 17: an inverse trigonometric function is taken as the first function. Memory aid ILATE (Inverse trigonometric, Logarithmic, Algebraic, Trigonometric, Exponential; not in the book): I before A.

3The inverse tangent

ddxtan⁡−1x=11+x2\frac{d}{dx}\tan^{-1}x = \frac{1}{1+x^2}⁠, so ∫dx1+x2=tan⁡−1x+C\int\frac{dx}{1+x^2} = \tan^{-1}x + C (standard formula (x)). Basics: trigonometric identities

4Splitting a fraction

When the top and bottom have the same degree, divide first: x21+x2=(1+x2)−11+x2\frac{x^2}{1+x^2} = \frac{(1+x^2) - 1}{1+x^2}⁠. Basics: splitting fractions

Solution

  1. Name uu and dvdx\frac{dv}{dx}

    u=tan⁡−1x(first),dvdx=x(second).\begin{aligned} u &= \tan^{-1}x \quad (\text{first}), \\ \frac{dv}{dx} &= x \quad (\text{second}). \end{aligned}
    ILATE: Inverse trigonometric before Algebraic. We have no formula for ∫tan⁡−1x dx\int\tan^{-1}x\,dx at this point, but its derivative 11+x2\frac{1}{1+x^2} is a simple algebraic fraction. So tan⁡−1x\tan^{-1}x is the function to differentiate.
    Remark (iii) after Example 17, Section 7.6. Lesson: integration by parts
  2. Find dudx\frac{du}{dx} and vv

    dudx=11+x2,v=∫x dx=x22.\frac{du}{dx} = \frac{1}{1+x^2}, \qquad v = \int x\,dx = \frac{x^2}{2}.
    Derivative of the inverse tangent (valid for every real xx⁠); vv by the power rule, with no constant (Remark (ii) after Example 17).
    Standard formulae (x) and (i), Section 7.2. Basics: powers of x
  3. Apply the formula

    ∫xtan⁡−1x dx=uv−∫v dudx dx=x22tan⁡−1x−12∫x21+x2 dx.\begin{aligned} \int x\tan^{-1}x\,dx &= uv - \int v\,\frac{du}{dx}\,dx \\ &= \frac{x^2}{2}\tan^{-1}x - \frac12\int\frac{x^2}{1+x^2}\,dx. \end{aligned}
    The inverse tangent has left the remaining integral, which is now a rational function of xx⁠.
    Section 7.6, equation (1). Lesson: integration by parts
  4. Split the fraction and integrate

    x21+x2=(1+x2)−11+x2=1−11+x2,∫x21+x2 dx=x−tan⁡−1x.\begin{aligned} \frac{x^2}{1+x^2} &= \frac{(1+x^2) - 1}{1+x^2} = 1 - \frac{1}{1+x^2}, \\ \int\frac{x^2}{1+x^2}\,dx &= x - \tan^{-1}x. \end{aligned}

    So

    ∫xtan⁡−1x dx=x22tan⁡−1x−12(x−tan⁡−1x)+C=x22tan⁡−1x−x2+12tan⁡−1x+C.\begin{aligned} \int x\tan^{-1}x\,dx &= \frac{x^2}{2}\tan^{-1}x - \frac12\left(x - \tan^{-1}x\right) + C \\ &= \frac{x^2}{2}\tan^{-1}x - \frac x2 + \frac12\tan^{-1}x + C. \end{aligned}
    Adding and subtracting 1 in the numerator makes the top equal to the bottom plus a constant, so the fraction splits into 1 and a standard fraction. Then multiply by −12-\frac12⁠: the tan⁡−1x\tan^{-1}x term gets a plus sign.
    Splitting fractions; standard formulae (i) and (x). Basics: splitting fractions
  5. Check: differentiate the answer

    Product rule on the first term:

    ddx(x22tan⁡−1x−x2+12tan⁡−1x)=xtan⁡−1x+x22(1+x2)−12+12(1+x2)=xtan⁡−1x+x2+12(1+x2)−12=xtan⁡−1x.\begin{aligned} &\frac{d}{dx}\Big(\frac{x^2}{2}\tan^{-1}x - \frac x2 + \frac12\tan^{-1}x\Big) \\ &= x\tan^{-1}x + \frac{x^2}{2(1+x^2)} - \frac12 + \frac{1}{2(1+x^2)} \\ &= x\tan^{-1}x + \frac{x^2 + 1}{2(1+x^2)} - \frac12 \\ &= x\tan^{-1}x. \end{aligned}
    The two fractions add to 12\frac12⁠, which cancels the −12-\frac12⁠. Only the integrand is left, for every real xx⁠.
    Product rule; ddxtan⁡−1x=11+x2\frac{d}{dx}\tan^{-1}x = \frac{1}{1+x^2}⁠. Basics: integration undoes differentiation
Result ∫xtan⁡−1x dx=x22tan⁡−1x−x2+12tan⁡−1x+C,\int x\tan^{-1}x\,dx = \frac{x^2}{2}\tan^{-1}x - \frac{x}{2} + \frac12\tan^{-1}x + C,

valid for every real xx⁠. It can also be written x2+12tan⁡−1x−x2+C\frac{x^2+1}{2}\tan^{-1}x - \frac x2 + C⁠. (Textbook answer: x22tan⁡−1x−x2+12tan⁡−1x+C\frac{x^2}{2}\tan^{-1}x - \frac x2 + \frac12\tan^{-1}x + C⁠, the same.)

Check it with numbers

Call the answer F(x)F(x)⁠. On [0,1][0, 1]⁠, with tan⁡−11=π4\tan^{-1}1 = \frac\pi4⁠:

F(1)−F(0)=12⋅π4−12+12⋅π4−0=π4−12=0.2853981634…\begin{aligned} F(1) - F(0) &= \frac12\cdot\frac\pi4 - \frac12 + \frac12\cdot\frac\pi4 - 0 \\ &= \frac\pi4 - \frac12 = 0.2853981634\ldots \end{aligned}

Numerical integration of xtan⁡−1xx\tan^{-1}x over [0,1][0, 1] gives 0.2853981634…0.2853981634\ldots⁠, the same.

Common mistakes
  1. Taking u=xu = x⁠. Then v=∫tan⁡−1x dxv = \int\tan^{-1}x\,dx is needed, which we do not have.
  2. Integrating x21+x2\frac{x^2}{1+x^2} as a logarithm. The top is not the derivative of the bottom; divide first.
  3. Sign of the last term. −12(x−tan⁡−1x)=−x2+12tan⁡−1x-\frac12(x - \tan^{-1}x) = -\frac x2 + \frac12\tan^{-1}x⁠.
What to take away
  1. Inverse trigonometric function times a power of xx⁠: the inverse function is uu⁠.
  2. A fraction with top degree at least the bottom degree: divide (or add and subtract) before integrating.
  3. Collecting terms, x2+12tan⁡−1x−x2\frac{x^2+1}{2}\tan^{-1}x - \frac x2 is a neat equivalent form.

Every fact used, and where it comes from

FactUsed inSource
Integration by partsStep 3Section 7.6, equation (1) (Lesson: integration by parts)
Inverse trigonometric function as the first function (ILATE)Step 1Remark (iii) after Example 17, Section 7.6
No constant needed in vvStep 2Remark (ii) after Example 17, Section 7.6
ddxtan⁡−1x=11+x2\frac{d}{dx}\tan^{-1}x = \frac{1}{1+x^2}⁠, ∫dx1+x2=tan⁡−1x+C\int\frac{dx}{1+x^2} = \tan^{-1}x + CSteps 2, 4, 5Standard formula (x), Section 7.2
Power ruleSteps 2, 4Standard formula (i), Section 7.2
Splitting x21+x2\frac{x^2}{1+x^2}Step 4Algebra of fractions (as in Section 7.5, improper fractions)
Product ruleStep 5Chapter 5, Section 5.3
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 →