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

Example 14: ∫x2(x2+1)(x2+4) dx\int\frac{x^2}{(x^2+1)(x^2+4)}\,dx

ExamplesPartial fractions · Section 7.5
The question

Find

∫x2(x2+1)(x2+4) dx\int \frac{x^2}{(x^2+1)(x^2+4)}\,dx
Exam answer

Let I=∫x2 dx(x2+1)(x2+4)I = \displaystyle\int\frac{x^2\,dx}{(x^2 + 1)(x^2 + 4)}⁠.

Put x2=yx^2 = y in the integrand and let

y(y+1)(y+4)=Ay+1+By+4\frac{y}{(y + 1)(y + 4)} = \frac{A}{y + 1} + \frac{B}{y + 4} ⇒ y=A(y+4)+B(y+1)\Rightarrow\ y = A(y + 4) + B(y + 1)

Putting y=−1y = -1⁠: −1=3A-1 = 3A⁠, so A=−13A = -\frac13⁠. Putting y=−4y = -4⁠: −4=−3B-4 = -3B⁠, so B=43B = \frac43⁠.

Using ∫dxx2+a2=1atan⁡−1xa+C\displaystyle\int\frac{dx}{x^2 + a^2} = \frac1a\tan^{-1}\frac xa + C⁠,

∴ I=−13∫dxx2+1+43∫dxx2+22=−13tan⁡−1x+43⋅12tan⁡−1x2+C\begin{aligned} \therefore\ I &= -\frac13\int\frac{dx}{x^2 + 1} \\ &\quad + \frac43\int\frac{dx}{x^2 + 2^2} \\ &= -\frac13\tan^{-1}x \\ &\quad + \frac43\cdot\frac12\tan^{-1}\frac x2 + C \end{aligned}

∴ I=−13tan⁡−1x+23tan⁡−1x2\therefore\ I = -\dfrac13\tan^{-1}x + \dfrac23\tan^{-1}\dfrac x2 +C+ C⁠.

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

The one idea this problem is built on

The integrand contains xx only through x2x^2⁠. So for the algebra of splitting the fraction we may call x2x^2 a single letter yy⁠: then y(y+1)(y+4)\frac{y}{(y+1)(y+4)} has two different linear factors and splits easily. Afterwards we put x2x^2 back, and each piece kx2+a2\frac{k}{x^2 + a^2} integrates to an inverse tangent. The letter yy is only a shorthand for the algebra; we never integrate with respect to yy⁠.

Given, to find, and the plan
Given
x2(x2+1)(x2+4)\frac{x^2}{(x^2+1)(x^2+4)}⁠. Both factors of the bottom are at least 1, so the integrand is defined for every real xx⁠.
To find
Its indefinite integral.
Plan
(1) Put x2=yx^2 = y in the fraction. (2) Split y(y+1)(y+4)\frac{y}{(y+1)(y+4)}⁠. (3) Put y=x2y = x^2 back. (4) Integrate with the formula for ∫dxx2+a2\int\frac{dx}{x^2+a^2}⁠. (5) Differentiate back.

Basics you need

1Partial fractions for two different linear factors

Table 7.2, row 1: py+q(y−a)(y−b)=Ay−a+By−b\frac{py+q}{(y-a)(y-b)} = \frac{A}{y-a} + \frac{B}{y-b}⁠, a≠ba \ne b⁠. Basics: splitting fractions

2The inverse tangent integral

Section 7.4, formula (3): ∫dxx2+a2=1atan⁡−1xa+C\int \frac{dx}{x^2+a^2} = \frac1a\tan^{-1}\frac{x}{a} + C (for a>0a > 0⁠). With a=1a = 1 this is standard formula (x), ∫dx1+x2=tan⁡−1x+C\int\frac{dx}{1+x^2} = \tan^{-1}x + C⁠. Lesson: integrals of particular functions

3Derivative of an inverse tangent

ddxtan⁡−1u=11+u2⋅dudx\frac{d}{dx}\tan^{-1}u = \frac{1}{1+u^2}\cdot\frac{du}{dx}⁠, used in the final check. Basics: the chain rule backwards

Solution

  1. Write the fraction in terms of y=x2y = x^2

    Put x2=yx^2 = y⁠. Then

    x2(x2+1)(x2+4)=y(y+1)(y+4).\frac{x^2}{(x^2+1)(x^2+4)} = \frac{y}{(y+1)(y+4)}.
    In terms of xx the bottom has quadratic factors, which would need the form Ax+Bx2+1+Cx+Dx2+4\frac{Ax+B}{x^2+1} + \frac{Cx+D}{x^2+4} with four unknowns. Because only even powers of xx appear, the letter yy turns the same fraction into one with two linear factors and just two unknowns. This is purely algebra: the identity we find holds for every value of yy (other than −1-1 and −4-4⁠), in particular for every y=x2≥0y = x^2 \ge 0⁠.
    Replacing a repeated expression by a single letter is a relabelling, not a change of the integration variable. Basics: splitting fractions
  2. Split into partial fractions

    The fraction is proper in yy (top degree 1, bottom degree 2). By Table 7.2, row 1,

    y(y+1)(y+4)=Ay+1+By+4,\frac{y}{(y+1)(y+4)} = \frac{A}{y+1} + \frac{B}{y+4}, y=A(y+4)+B(y+1).y = A(y+4) + B(y+1).

    Comparing coefficients of yy and the constants: A+B=1A + B = 1 and 4A+B=04A + B = 0⁠. Subtracting, 3A=−13A = -1⁠, so

    A=−13,B=43.A = -\frac13, \qquad B = \frac43.

    Cross-check: y=−1y = -1 gives −1=3A-1 = 3A⁠; y=−4y = -4 gives −4=−3B-4 = -3B⁠. The same values.

    Two equations, two unknowns. Substituting y=−1y = -1 and y=−4y = -4 into the polynomial identity confirms both values independently.
    An identity between polynomials holds for every value, so its coefficients match. Lesson: partial fractions
  3. Put x2x^2 back

    x2(x2+1)(x2+4)=−13(x2+1)+43(x2+4).\frac{x^2}{(x^2+1)(x^2+4)} = -\frac{1}{3(x^2+1)} + \frac{4}{3(x^2+4)}.
    The identity in yy holds for every y≥0y \ge 0⁠, so replacing yy by x2x^2 gives an identity valid for every real xx⁠. The integration is now done with respect to xx⁠, as in the question.
    Quick test at x=0x = 0⁠: left side 00⁠, right side −13+13=0-\frac13 + \frac13 = 0⁠. Basics: splitting fractions
  4. Integrate with the inverse tangent formula

    ∫x2 dx(x2+1)(x2+4)=−13∫dxx2+1+43∫dxx2+22.\begin{aligned} \int \frac{x^2\,dx}{(x^2+1)(x^2+4)} &= -\frac13\int\frac{dx}{x^2+1} \\ &\quad + \frac43\int\frac{dx}{x^2+2^2}. \end{aligned}

    By formula (3) of Section 7.4 with a=1a = 1 and with a=2a = 2⁠:

    ∫dxx2+1=tan⁡−1x,∫dxx2+4=12tan⁡−1x2.\int\frac{dx}{x^2+1} = \tan^{-1}x, \qquad \int\frac{dx}{x^2+4} = \frac12\tan^{-1}\frac{x}{2}.

    So

    ∫x2 dx(x2+1)(x2+4)=−13tan⁡−1x+43⋅12tan⁡−1x2+C=−13tan⁡−1x+23tan⁡−1x2+C.\begin{aligned} &\int \frac{x^2\,dx}{(x^2+1)(x^2+4)} \\ &= -\frac13\tan^{-1}x + \frac43\cdot\frac12\tan^{-1}\frac x2 + C \\ &= -\frac13\tan^{-1}x + \frac23\tan^{-1}\frac x2 + C. \end{aligned}
    The pieces are 1x2+a2\frac{1}{x^2 + a^2}⁠, not 1x−a\frac{1}{x - a}⁠, so they give inverse tangents, not logarithms. Write 44 as 222^2 to read off a=2a = 2⁠; forgetting the factor 1a=12\frac1a = \frac12 is the usual slip.
    Formula (3): ∫dxx2+a2=1atan⁡−1xa+C\int\frac{dx}{x^2+a^2} = \frac1a\tan^{-1}\frac xa + C⁠. Lesson: integrals of particular functions
  5. Check: differentiate the answer

    By the chain rule, ddxtan⁡−1x2=11+x2/4⋅12=2x2+4\frac{d}{dx}\tan^{-1}\frac x2 = \frac{1}{1 + x^2/4}\cdot\frac12 = \frac{2}{x^2+4}⁠. Hence

    ddx[−13tan⁡−1x+23tan⁡−1x2]=−13(x2+1)+43(x2+4)=−(x2+4)+4(x2+1)3(x2+1)(x2+4)=3x23(x2+1)(x2+4)=x2(x2+1)(x2+4).\begin{aligned} &\frac{d}{dx}\left[-\frac13\tan^{-1}x + \frac23\tan^{-1}\frac x2\right] \\ &= -\frac{1}{3(x^2+1)} + \frac{4}{3(x^2+4)} \\ &= \frac{-(x^2+4) + 4(x^2+1)}{3(x^2+1)(x^2+4)} \\ &= \frac{3x^2}{3(x^2+1)(x^2+4)} = \frac{x^2}{(x^2+1)(x^2+4)}. \end{aligned}
    The derivative returns exactly the integrand, so the answer is correct for every real xx⁠.
    ddxtan⁡−1x=11+x2\frac{d}{dx}\tan^{-1}x = \frac{1}{1+x^2} (formula (x) read backwards) and the chain rule. Basics: integration undoes differentiation
Result ∫x2(x2+1)(x2+4) dx=−13tan⁡−1x+23tan⁡−1x2+C,\begin{aligned} &\int \frac{x^2}{(x^2+1)(x^2+4)}\,dx \\ &= -\frac13\tan^{-1}x + \frac23\tan^{-1}\frac x2 + C, \end{aligned}

valid for every real xx⁠. This is the book's answer.

Check it with numbers

At a point. At x=1x = 1⁠: the integrand is 12⋅5=0.1\frac{1}{2\cdot 5} = 0.1⁠; the derivative of our answer is −16+415=110-\frac16 + \frac{4}{15} = \frac{1}{10}⁠.

Over an interval. On [0,2][0, 2]⁠:

F(2)−F(0)=−13tan⁡−12+23⋅π4=0.1545492030…\begin{aligned} F(2) - F(0) &= -\frac13\tan^{-1}2 + \frac23\cdot\frac\pi4 \\ &= 0.1545492030\ldots \end{aligned}

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

Common mistakes
  1. Integrating with respect to yy⁠. The letter yy was only for the algebra; dxdx is not dydy (in fact dy=2x dxdy = 2x\,dx⁠).
  2. Writing logarithms. ∫dxx2+1\int\frac{dx}{x^2+1} is tan⁡−1x\tan^{-1}x⁠, not log⁡∣x2+1∣\log|x^2+1|⁠.
  3. Losing the 1a\frac1a⁠. ∫dxx2+4=12tan⁡−1x2\int\frac{dx}{x^2+4} = \frac12\tan^{-1}\frac x2⁠, not tan⁡−1x2\tan^{-1}\frac x2⁠.
What to take away
  1. If only x2x^2 appears, call it yy to find the partial fractions with less work, then put x2x^2 back.
  2. kx2+a2\frac{k}{x^2+a^2} integrates to katan⁡−1xa\frac ka\tan^{-1}\frac xa⁠.
  3. The book's next example (Example 15) is different: there the substitution is used for the integration itself.

Every fact used, and where it comes from

FactUsed inSource
Partial fractions, two different linear factorsStep 2Table 7.2, row 1, Section 7.5 (Lesson: partial fractions)
Equal polynomials have equal coefficientsStep 2Algebra (Class XI)
Property V (term by term)Step 4Section 7.2.1
∫dxx2+a2=1atan⁡−1xa+C\int\frac{dx}{x^2+a^2} = \frac1a\tan^{-1}\frac xa + CStep 4Formula (3), Section 7.4 (Lesson: integrals of particular functions)
ddxtan⁡−1x=11+x2\frac{d}{dx}\tan^{-1}x = \frac{1}{1+x^2}⁠; chain ruleStep 5Standard formula (x), Section 7.2; Chapter 5
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 →