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

Miscellaneous · Q14: ∫dx(x2+1)(x2+4)\int\frac{dx}{(x^2+1)(x^2+4)}

Miscellaneous ExercisePartial fractions in x², then tan⁻¹ · Miscellaneous Exercise
The question

Integrate the function:

1(x2+1)(x2+4)\frac{1}{(x^2+1)(x^2+4)}
Exam answer

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

Put x2=yx^2 = y for the partial fractions only. Let

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

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

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

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

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

The one idea this problem is built on

The fraction contains xx only through x2x^2⁠. Writing yy for x2x^2 turns it into 1(y+1)(y+4)\frac{1}{(y+1)(y+4)}⁠, which splits into two simple fractions exactly as in Example 14. Each piece, 1x2+1\frac{1}{x^2+1} and 1x2+4\frac{1}{x^2+4}⁠, is a standard tan⁡−1\tan^{-1} integral.

Given, to find, and the plan
Given
f(x)=1(x2+1)(x2+4)f(x) = \frac{1}{(x^2+1)(x^2+4)}⁠. Both factors are at least 1, so ff is defined and continuous for every real xx⁠.
To find
∫dx(x2+1)(x2+4)\displaystyle\int\frac{dx}{(x^2+1)(x^2+4)}⁠.
Plan
(1) Choose the method. (2) Split into partial fractions using y=x2y = x^2⁠. (3) Integrate each piece with the tan⁡−1\tan^{-1} formula. (4) Differentiate back. (5) Compare with the textbook's answer.

Basics you need

1Partial fractions (Section 7.5)

For different factors, 1(y−a)(y−b)=Ay−a+By−b\frac{1}{(y-a)(y-b)} = \frac{A}{y-a} + \frac{B}{y-b} (Table 7.2, row 1). Basics: splitting fractions

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

Section 7.4, formula (3); with a=1a = 1 it is standard formula (x) of Section 7.2. Lesson: integrals of particular functions

3Derivative of tan⁡−1\tan^{-1}

ddxtan⁡−1u=11+u2⋅dudx\frac{d}{dx}\tan^{-1}u = \frac{1}{1+u^2}\cdot\frac{du}{dx} (Chapter 5, with the chain rule). Basics: integration undoes differentiation

Solution

  1. Choose the method

    The integrand is a proper rational function (numerator degree 0, denominator degree 4), and its denominator is already factorised into x2+1x^2+1 and x2+4x^2+4⁠. Neither factor has a real root. Table 7.2 has no row for two quadratic factors, but following its row 5 (a quadratic factor that cannot be factorised gets a numerator of the form Bx+CBx + C⁠) the general form would be

    Ax+Bx2+1+Cx+Dx2+4,\frac{Ax+B}{x^2+1} + \frac{Cx+D}{x^2+4} ,

    with four unknowns. Because only x2x^2 appears, there is a shortcut: put y=x2y = x^2 in the fraction alone.

    This is not a substitution in the integral (we do not change dxdx⁠); it is just a name for x2x^2 while we do algebra. The book uses the same device in Example 14, Section 7.5. It works because no odd power of xx appears anywhere, so the AxAx and CxCx terms must turn out to be 0.
    Section 7.5, Example 14. Lesson: partial fractions
  2. Split 1(y+1)(y+4)\frac{1}{(y+1)(y+4)} into partial fractions

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

    Multiply by (y+1)(y+4)(y+1)(y+4)⁠:

    1=A(y+4)+B(y+1).1 = A(y+4) + B(y+1) .

    y=−1y = -1⁠: 1=3A1 = 3A⁠, so A=13A = \frac13⁠.

    y=−4y = -4⁠: 1=−3B1 = -3B⁠, so B=−13B = -\frac13⁠.

    Confirm by coefficients: the coefficient of yy is A+B=0A + B = 0 and the constant is 4A+B=43−13=14A + B = \frac43 - \frac13 = 1⁠, as required.

    The two factors y+1y+1 and y+4y+4 are different linear factors in yy⁠, so Table 7.2, row 1 applies. The identity 1=A(y+4)+B(y+1)1 = A(y+4) + B(y+1) holds for every yy⁠, so we may put in y=−1y = -1 and y=−4y = -4 even though y=x2y = x^2 can never be negative: we are using an identity between polynomials in yy⁠, not the value of x2x^2⁠.
    Table 7.2, row 1. Basics: splitting fractions
  3. Put x2x^2 back

    1(x2+1)(x2+4)=13(1x2+1−1x2+4).\frac{1}{(x^2+1)(x^2+4)} = \frac13\left(\frac{1}{x^2+1} - \frac{1}{x^2+4}\right).

    Direct check: 1x2+1−1x2+4\frac{1}{x^2+1} - \frac{1}{x^2+4} has numerator (x2+4)−(x2+1)=3(x^2+4) - (x^2+1) = 3⁠, so the bracket is 3(x2+1)(x2+4)\frac{3}{(x^2+1)(x^2+4)}⁠, and one third of it is the integrand.

    The identity in yy holds for every y≠−1,−4y \ne -1, -4⁠, in particular for every value y=x2≥0y = x^2 \ge 0⁠. The direct check confirms it without any reference to yy⁠.
  4. Integrate each piece

    ∫dx(x2+1)(x2+4)=13∫dxx2+12−13∫dxx2+22=13tan⁡−1x−13⋅12tan⁡−1x2+C=13tan⁡−1x−16tan⁡−1x2+C.\begin{aligned}&\int\frac{dx}{(x^2+1)(x^2+4)}\\ &= \frac13\int\frac{dx}{x^2+1^2} - \frac13\int\frac{dx}{x^2+2^2}\\ &= \frac13\tan^{-1}x - \frac13\cdot\frac12\tan^{-1}\frac{x}{2} + C\\ &= \frac13\tan^{-1}x - \frac16\tan^{-1}\frac{x}{2} + C .\end{aligned}
    Integral of a difference and constants outside (Properties (III), (IV), Section 7.2.1). The first piece is formula (3) of Section 7.4 with a=1a = 1⁠; the second with a=2a = 2⁠, which brings the factor 12\frac12 and the x2\frac{x}{2} inside.
  5. Check: differentiate the answer

    Using ddxtan⁡−1x2=11+x24⋅12=2x2+4\frac{d}{dx}\tan^{-1}\frac{x}{2} = \frac{1}{1+\frac{x^2}{4}}\cdot\frac12 = \frac{2}{x^2+4}⁠:

    ddx(13tan⁡−1x−16tan⁡−1x2)=13(x2+1)−16⋅2x2+4=13(1x2+1−1x2+4)=1(x2+1)(x2+4). ✓\begin{aligned}&\frac{d}{dx}\left(\frac13\tan^{-1}x - \frac16\tan^{-1}\frac{x}{2}\right)\\ &= \frac{1}{3(x^2+1)} - \frac16\cdot\frac{2}{x^2+4}\\ &= \frac13\left(\frac{1}{x^2+1} - \frac{1}{x^2+4}\right)\\ &= \frac{1}{(x^2+1)(x^2+4)} .\ \checkmark\end{aligned}
    The last line is Step 3 read backwards. The derivative returns the integrand at every real xx⁠, so the answer is valid on the whole real line.
    Chain rule for tan⁡−1x2\tan^{-1}\frac{x}{2}⁠: inner function x2\frac{x}{2}⁠, derivative 12\frac12⁠. Basics: substitution
  6. Compare with the textbook's answer

    The answer key gives 13tan⁡−1x−16tan⁡−1x2+C\frac13\tan^{-1}x - \frac16\tan^{-1}\frac{x}{2} + C⁠, which is exactly our answer.

    Any correct answer may differ from the key by a constant; here the two forms are identical, so there is nothing to convert.
Result

For every real xx⁠:

∫dx(x2+1)(x2+4)=13tan⁡−1x−16tan⁡−1x2+C\int\frac{dx}{(x^2+1)(x^2+4)} = \frac13\tan^{-1}x - \frac16\tan^{-1}\frac{x}{2} + C

(Textbook answer: 13tan⁡−1x−16tan⁡−1x2+C\frac13\tan^{-1}x - \frac16\tan^{-1}\frac{x}{2} + C⁠.)

Check it with numbers

The split at x=1x = 1⁠: the integrand is 12⋅5=0.1\frac{1}{2\cdot 5} = 0.1⁠, and 13(12−15)=13⋅310=0.1\frac13\left(\frac12 - \frac15\right) = \frac13\cdot\frac{3}{10} = 0.1⁠.

Area from 0 to 1, with FF our answer: F(1)−F(0)=π12−16tan⁡−112≈0.1845247863F(1) - F(0) = \frac{\pi}{12} - \frac16\tan^{-1}\frac12 \approx 0.1845247863⁠. Numerical integration of the integrand from 0 to 1 also gives 0.18452478630.1845247863⁠.

Common mistakes
  1. Forgetting the 12\frac12 from a=2a = 2⁠. ∫dxx2+4=12tan⁡−1x2\int\frac{dx}{x^2+4} = \frac12\tan^{-1}\frac{x}{2}⁠, not tan⁡−1x2\tan^{-1}\frac{x}{2} and not tan⁡−1x4\tan^{-1}\frac{x}{4}⁠.
  2. Splitting with the wrong sign. 1x2+1−1x2+4\frac{1}{x^2+1} - \frac{1}{x^2+4} is positive, so it is the bracket with a plus in front of 1x2+1\frac{1}{x^2+1}⁠.
  3. Thinking y=−1y = -1 is "not allowed". The values y=−1,−4y = -1, -4 are used in a polynomial identity in yy⁠, not as values of x2x^2⁠.
What to take away
  1. When a rational function contains xx only through x2x^2⁠, split it as a function of y=x2y = x^2⁠.
  2. For 0<a<b0 < a < b the same steps give ∫dx(x2+a2)(x2+b2)=1b2−a2(1atan⁡−1xa−1btan⁡−1xb)+C;\begin{aligned}&\int\frac{dx}{(x^2+a^2)(x^2+b^2)}\\ &= \frac{1}{b^2-a^2}\left(\frac1a\tan^{-1}\frac{x}{a} - \frac1b\tan^{-1}\frac{x}{b}\right) + C ;\end{aligned} here a=1a = 1⁠, b=2b = 2⁠.

Every fact used, and where it comes from

FactUsed inSource
Proper rational functions; Table 7.2Steps 1, 2Section 7.5 (Lesson: partial fractions)
Treating x2x^2 as yySteps 1 to 3Example 14, Section 7.5
Integral of a sum; constants outsideStep 4Properties (III), (IV), Section 7.2.1
∫dxx2+a2=1atan⁡−1xa+C\int\frac{dx}{x^2+a^2} = \frac1a\tan^{-1}\frac{x}{a} + CStep 4Section 7.4, formula (3)
ddxtan⁡−1x=11+x2\frac{d}{dx}\tan^{-1}x = \frac{1}{1+x^2}⁠; chain ruleStep 5Chapter 5; Section 7.2, list item (x)
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 →