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

Exercise 7.5 · Q18: ∫(x2+1)(x2+2)(x2+3)(x2+4) dx\int\frac{(x^2 + 1)(x^2 + 2)}{(x^2 + 3)(x^2 + 4)}\,dx

Exercise 7.5Integration by partial fractions · Section 7.5
The question

Integrate the rational function

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

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

Put x2=yx^2 = y for the split only. Dividing,

(y+1)(y+2)(y+3)(y+4)=y2+3y+2y2+7y+12=1−4y+10(y+3)(y+4)\begin{aligned} &\frac{(y + 1)(y + 2)}{(y + 3)(y + 4)} \\ &= \frac{y^2 + 3y + 2}{y^2 + 7y + 12} \\ &= 1 - \frac{4y + 10}{(y + 3)(y + 4)} \end{aligned}

Let

4y+10(y+3)(y+4)=Ay+3+By+4\frac{4y + 10}{(y + 3)(y + 4)} = \frac{A}{y + 3} + \frac{B}{y + 4} ⇒ 4y+10=A(y+4)+B(y+3)\begin{aligned} \Rightarrow\ 4y + 10 &= A(y + 4) \\ &\quad + B(y + 3) \end{aligned}

Putting y=−3y = -3⁠: A=−2A = -2⁠. Putting y=−4y = -4⁠: B=6B = 6⁠.

∴ I=∫dx+2∫dxx2+3−6∫dxx2+4\begin{aligned} \therefore\ I &= \int dx + 2\int\frac{dx}{x^2 + 3} \\ &\quad - 6\int\frac{dx}{x^2 + 4} \end{aligned}

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

I=x+2⋅13tan⁡−1x3−6⋅12tan⁡−1x2+C\begin{aligned} I &= x + 2\cdot\frac{1}{\sqrt3}\tan^{-1}\frac{x}{\sqrt3} \\ &\quad - 6\cdot\frac12\tan^{-1}\frac x2 + C \end{aligned}

∴ I=x+23tan⁡−1x3\therefore\ I = x + \dfrac{2}{\sqrt3}\tan^{-1}\dfrac{x}{\sqrt3} −3tan⁡−1x2+C- 3\tan^{-1}\dfrac x2 + C⁠.

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

The one idea this problem is built on

Numerator and denominator both have degree 4, so the fraction is improper: first divide to get a whole number part plus a proper fraction. Everything is a function of x2x^2⁠, so (as in Example 14) we do the algebra with y=x2y = x^2⁠. The proper part splits into 2x2+3−6x2+4\frac{2}{x^2 + 3} - \frac{6}{x^2 + 4}⁠, and each of those is an inverse tangent (Section 7.4, formula (3)).

Given, to find, and the plan
Given
The integrand (x2+1)(x2+2)(x2+3)(x2+4)\frac{(x^2 + 1)(x^2 + 2)}{(x^2 + 3)(x^2 + 4)}⁠, defined for every real xx (the denominator is at least 12).
To find
∫(x2+1)(x2+2)(x2+3)(x2+4) dx\int\frac{(x^2 + 1)(x^2 + 2)}{(x^2 + 3)(x^2 + 4)}\,dx⁠.
Plan
(1) Put y=x2y = x^2 for the algebra. (2) Divide out the improper fraction. (3) Split the proper part. (4) Integrate with formula (3) of Section 7.4. (5) Differentiate back.

Basics you need

1Improper fractions are divided first

If deg⁡P≥deg⁡Q\deg P \ge \deg Q⁠, write PQ=T+P1Q\frac{P}{Q} = T + \frac{P_1}{Q} with TT a polynomial and P1Q\frac{P_1}{Q} proper (Section 7.5). Basics: splitting fractions

2Table 7.2, row 1 (in yy⁠)

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⁠. Lesson: partial fractions

3Section 7.4, formula (3)

∫dxx2+a2=1atan⁡−1xa+C\int\frac{dx}{x^2 + a^2} = \frac1a\tan^{-1}\frac xa + C⁠, a>0a > 0⁠. Lesson: integrals of particular functions

Solution

  1. Write everything in y=x2y = x^2

    With y=x2y = x^2⁠,

    (x2+1)(x2+2)(x2+3)(x2+4)=(y+1)(y+2)(y+3)(y+4)=y2+3y+2y2+7y+12.\begin{aligned} \frac{(x^2 + 1)(x^2 + 2)}{(x^2 + 3)(x^2 + 4)} &= \frac{(y + 1)(y + 2)}{(y + 3)(y + 4)} \\ &= \frac{y^2 + 3y + 2}{y^2 + 7y + 12}. \end{aligned}
    Only even powers of xx appear, so treating x2x^2 as one quantity halves the degrees and makes the algebra easier. As after Example 14, yy is used only for the algebra; we still integrate with respect to xx⁠.
    Example 14, Section 7.5. Lesson: partial fractions
  2. Divide: the fraction is improper

    Numerator and denominator have the same degree, so subtract one copy of the denominator:

    y2+3y+2y2+7y+12=1+(y2+3y+2)−(y2+7y+12)y2+7y+12=1−4y+10(y+3)(y+4).\begin{aligned} \frac{y^2 + 3y + 2}{y^2 + 7y + 12} &= 1 + \frac{(y^2 + 3y + 2) - (y^2 + 7y + 12)}{y^2 + 7y + 12} \\ &= 1 - \frac{4y + 10}{(y + 3)(y + 4)}. \end{aligned}
    Partial fractions in the forms of Table 7.2 need a proper fraction. Long division of y2+3y+2y^2 + 3y + 2 by y2+7y+12y^2 + 7y + 12 gives quotient 1 and remainder −4y−10-4y - 10⁠; the remainder has degree 1, less than 2, so the leftover fraction is proper.
    Improper rational functions, Section 7.5. Basics: splitting fractions
  3. Split the proper part

    4y+10(y+3)(y+4)=Ay+3+By+4,4y+10=A(y+4)+B(y+3).\begin{gathered} \frac{4y + 10}{(y + 3)(y + 4)} = \frac{A}{y + 3} + \frac{B}{y + 4}, \\ 4y + 10 = A(y + 4) + B(y + 3). \end{gathered}

    Put y=−3y = -3⁠: −2=A-2 = A⁠. Put y=−4y = -4⁠: −6=−B-6 = -B⁠, so B=6B = 6⁠. Coefficient check: A+B=4A + B = 4 ✓ and 4A+3B=−8+18=104A + 3B = -8 + 18 = 10 ✓.

    The two linear factors y+3y + 3 and y+4y + 4 are different, so row 1 of Table 7.2 applies. Substituting the roots of the factors isolates each constant; the coefficient check confirms both.
    Table 7.2, row 1. Basics: splitting fractions
  4. The integrand in its final form

    1−(−2y+3+6y+4)=1+2x2+3−6x2+4.\begin{aligned} &1 - \Big(\frac{-2}{y + 3} + \frac{6}{y + 4}\Big) \\ &= 1 + \frac{2}{x^2 + 3} - \frac{6}{x^2 + 4}. \end{aligned}
    Distribute the minus sign over both pieces, then put y=x2y = x^2 back. Each piece is now a standard form: a constant, and two of the type 1x2+a2\frac{1}{x^2 + a^2}⁠.
  5. Integrate each piece

    Section 7.4, formula (3), with a=3a = \sqrt3 and with a=2a = 2⁠:

    ∫2 dxx2+3=23tan⁡−1x3,∫6 dxx2+4=62tan⁡−1x2=3tan⁡−1x2.\begin{aligned} \int\frac{2\,dx}{x^2 + 3} &= \frac{2}{\sqrt3}\tan^{-1}\frac{x}{\sqrt3}, \\ \int\frac{6\,dx}{x^2 + 4} &= \frac62\tan^{-1}\frac x2 = 3\tan^{-1}\frac x2. \end{aligned}

    So

    ∫(x2+1)(x2+2)(x2+3)(x2+4) dx=x+23tan⁡−1x3−3tan⁡−1x2+C.\begin{aligned} \int\frac{(x^2 + 1)(x^2 + 2)}{(x^2 + 3)(x^2 + 4)}\,dx &= x + \frac{2}{\sqrt3}\tan^{-1}\frac{x}{\sqrt3} \\ &\quad - 3\tan^{-1}\frac x2 + C. \end{aligned}
    x2+3=x2+(3)2x^2 + 3 = x^2 + (\sqrt3)^2 and x2+4=x2+22x^2 + 4 = x^2 + 2^2⁠, so formula (3) applies with these values of aa⁠. The constant 1 integrates to xx⁠. Constant multiples come outside the integral (Property (IV)).
    Section 7.4, formula (3); standard formula (i), Section 7.2. Lesson: integrals of particular functions
  6. Check: differentiate the answer

    Chain rule: ddxtan⁡−1xa=11+x2/a2⋅1a=ax2+a2\frac{d}{dx}\tan^{-1}\frac xa = \frac{1}{1 + x^2/a^2}\cdot\frac1a = \frac{a}{x^2 + a^2}⁠. So

    ddx(23tan⁡−1x3)=23⋅3x2+3=2x2+3,ddx(3tan⁡−1x2)=3⋅2x2+4=6x2+4.\begin{aligned} \frac{d}{dx}\Big(\frac{2}{\sqrt3}\tan^{-1}\frac{x}{\sqrt3}\Big) &= \frac{2}{\sqrt3}\cdot\frac{\sqrt3}{x^2 + 3} \\ &= \frac{2}{x^2 + 3}, \\ \frac{d}{dx}\Big(3\tan^{-1}\frac x2\Big) &= 3\cdot\frac{2}{x^2 + 4} \\ &= \frac{6}{x^2 + 4}. \end{aligned}

    The derivative of the answer is therefore 1+2x2+3−6x2+41 + \frac{2}{x^2 + 3} - \frac{6}{x^2 + 4}⁠, and over the common denominator the numerator is

    (x2+3)(x2+4)+2(x2+4)−6(x2+3)=x4+7x2+12+2x2+8−6x2−18=x4+3x2+2=(x2+1)(x2+2). ✓\begin{aligned} &(x^2 + 3)(x^2 + 4) + 2(x^2 + 4) - 6(x^2 + 3) \\ &= x^4 + 7x^2 + 12 + 2x^2 + 8 - 6x^2 - 18 \\ &= x^4 + 3x^2 + 2 = (x^2 + 1)(x^2 + 2). \ \checkmark \end{aligned}
    This rebuilds the original fraction (x2+1)(x2+2)(x2+3)(x2+4)\frac{(x^2 + 1)(x^2 + 2)}{(x^2 + 3)(x^2 + 4)} for every real xx⁠, which confirms both the division and the partial fractions.
    Property (I), Section 7.2.1. Basics: integration undoes differentiation
Result ∫(x2+1)(x2+2)(x2+3)(x2+4) dx=x+23tan⁡−1x3−3tan⁡−1x2+C,\begin{aligned} &\int\frac{(x^2 + 1)(x^2 + 2)}{(x^2 + 3)(x^2 + 4)}\,dx \\ &= x + \frac{2}{\sqrt3}\tan^{-1}\frac{x}{\sqrt3} - 3\tan^{-1}\frac x2 + C, \end{aligned}

for every real xx⁠. (Textbook answer: x+23tan⁡−1x3−3tan⁡−1x2+Cx + \frac{2}{\sqrt3}\tan^{-1}\frac{x}{\sqrt3} - 3\tan^{-1}\frac x2 + C⁠, the same.)

Check it with numbers

Decomposition at x=1x = 1⁠: 2⋅34⋅5=0.3\frac{2\cdot 3}{4\cdot 5} = 0.3 and 1+24−65=0.31 + \frac24 - \frac65 = 0.3⁠. ✓

Definite integral from 0 to 1: F(1)−F(0)=1+23⋅π6−3tan⁡−112F(1) - F(0) = 1 + \frac{2}{\sqrt3}\cdot\frac{\pi}{6} - 3\tan^{-1}\frac12 ≈0.2136570\approx 0.2136570 (using tan⁡−113=π6\tan^{-1}\frac{1}{\sqrt3} = \frac{\pi}{6}⁠). A numerical integration over [0,1][0, 1] gives 0.21365700.2136570 too. ✓

Common mistakes
  1. Splitting without dividing first. The fraction is improper; skipping the division loses the term xx from the answer.
  2. Sign after the division. The remainder is −(4y+10)-(4y + 10)⁠; distributing the minus gives +2x2+3+\frac{2}{x^2 + 3} and −6x2+4-\frac{6}{x^2 + 4}⁠.
  3. Forgetting 1a\frac1a in formula (3). ∫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. Compare degrees first: equal or higher degree on top means divide.
  2. For functions of x2x^2 only, do the algebra in y=x2y = x^2⁠, then return to xx before integrating.
  3. ∫dxx2+a2=1atan⁡−1xa+C\int\frac{dx}{x^2 + a^2} = \frac1a\tan^{-1}\frac xa + C⁠.

Every fact used, and where it comes from

FactUsed inSource
Working in y=x2y = x^2 for the algebra onlyStep 1Example 14 and the note after it, Section 7.5
Improper fractions: divide firstStep 2Section 7.5 (Lesson: partial fractions)
Ay−a+By−b\frac{A}{y - a} + \frac{B}{y - b}Step 3Table 7.2, row 1, Section 7.5
∫dxx2+a2=1atan⁡−1xa+C\int\frac{dx}{x^2 + a^2} = \frac1a\tan^{-1}\frac xa + CStep 5Section 7.4, formula (3)
Constant multiples; ∫dx=x+C\int dx = x + CStep 5Property (IV), Section 7.2.1; standard formula (i), Section 7.2
Derivative of an antiderivative is the integrandStep 6Property (I), Section 7.2.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 →