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

Exercise 7.5 · Q12: ∫x3+x+1x2−1 dx\int\frac{x^3+x+1}{x^2-1}\,dx

Exercise 7.5Integration by partial fractions · Section 7.5
The question

Integrate the rational function:

x3+x+1x2−1\frac{x^3+x+1}{x^2-1}
Exam answer

Let I=∫x3+x+1x2−1 dxI = \displaystyle\int\frac{x^3 + x + 1}{x^2 - 1}\,dx⁠.

The fraction is improper. Dividing x3+x+1x^3 + x + 1 by x2−1x^2 - 1⁠:

x3+x+1x2−1=x+2x+1x2−1\frac{x^3 + x + 1}{x^2 - 1} = x + \frac{2x + 1}{x^2 - 1}

Let

2x+1(x−1)(x+1)=Ax−1+Bx+1\frac{2x + 1}{(x - 1)(x + 1)} = \frac{A}{x - 1} + \frac{B}{x + 1} ⇒ 2x+1=A(x+1)+B(x−1)\Rightarrow\ 2x + 1 = A(x + 1) + B(x - 1)

Putting x=1x = 1⁠: 3=2A3 = 2A⁠, so A=32A = \frac32⁠.

Putting x=−1x = -1⁠: −1=−2B-1 = -2B⁠, so B=12B = \frac12⁠.

∴ I=∫x dx+32∫dxx−1+12∫dxx+1\begin{aligned} \therefore\ I &= \int x\,dx + \frac32\int\frac{dx}{x - 1} \\ &\quad + \frac12\int\frac{dx}{x + 1} \end{aligned}

∴ I=x22+32log⁡∣x−1∣\therefore\ I = \dfrac{x^2}{2} + \dfrac32\log|x - 1| +12log⁡∣x+1∣+C+ \dfrac12\log|x + 1| + C⁠.

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

The one idea this problem is built on

The numerator has degree 3 and the denominator degree 2, so the fraction is improper. Long division gives a polynomial plus a proper fraction: x+2x+1x2−1x + \frac{2x+1}{x^2-1} (Section 7.5). The polynomial is integrated directly; the proper fraction is split into Ax−1+Bx+1\frac{A}{x-1} + \frac{B}{x+1}⁠.

Given, to find, and the plan
Given
f(x)=x3+x+1x2−1f(x) = \frac{x^3+x+1}{x^2-1}⁠, defined for every real xx except x=1x = 1 and x=−1x = -1⁠.
To find
∫x3+x+1x2−1 dx\displaystyle\int\frac{x^3+x+1}{x^2-1}\,dx⁠.
Plan
(1) See that the fraction is improper. (2) Divide. (3) Split the proper remainder fraction (Table 7.2, row 1) and find AA⁠, BB⁠. (4) Integrate. (5) Differentiate back.

Basics you need

1Improper fractions are divided first

P(x)Q(x)=T(x)+P1(x)Q(x)\frac{P(x)}{Q(x)} = T(x) + \frac{P_1(x)}{Q(x)}⁠, with TT a polynomial and P1Q\frac{P_1}{Q} proper (Section 7.5; Example 12 does this). Basics: splitting fractions

2Table 7.2, row 1

For a≠ba \ne b⁠: px+q(x−a)(x−b)=Ax−a+Bx−b\frac{px+q}{(x-a)(x-b)} = \frac{A}{x-a} + \frac{B}{x-b}⁠. Lesson: partial fractions

3Power rule and the logarithm

∫x dx=x22+C\int x\,dx = \frac{x^2}{2} + C (standard formula (i)); ∫dxx+k=log⁡∣x+k∣+C\int\frac{dx}{x+k} = \log|x+k| + C (formula (xii), Section 7.2). Basics: powers of x

Solution

  1. The fraction is improper

    The numerator x3+x+1x^3 + x + 1 has degree 3; the denominator x2−1x^2 - 1 has degree 2. Since 3≥23 \ge 2⁠, the fraction is improper.

    A sum of partial fractions like Ax−1+Bx+1\frac{A}{x-1} + \frac{B}{x+1} is always proper, so it can never equal an improper fraction. The polynomial part must be removed first.
    Section 7.5 (improper rational functions). Lesson: partial fractions
  2. Divide x3+x+1x^3 + x + 1 by x2−1x^2 - 1

    The leading terms give the first quotient term x3x2=x\frac{x^3}{x^2} = x⁠. Subtract x(x2−1)=x3−xx(x^2 - 1) = x^3 - x⁠:

    (x3+x+1)−(x3−x)=2x+1.(x^3 + x + 1) - (x^3 - x) = 2x + 1.

    The remainder 2x+12x + 1 has degree 1, less than 2, so the division stops:

    x3+x+1=x(x2−1)+(2x+1),x3+x+1x2−1=x+2x+1x2−1.(1)\begin{aligned} x^3 + x + 1 &= x(x^2-1) + (2x+1), \\ \frac{x^3+x+1}{x^2-1} &= x + \frac{2x+1}{x^2-1}. \qquad (1) \end{aligned}
    Check: x(x2−1)+2x+1x(x^2-1) + 2x + 1 =x3−x+2x+1= x^3 - x + 2x + 1 =x3+x+1= x^3 + x + 1⁠. ✓ The quotient xx is the polynomial part T(x)T(x)⁠; the remainder fraction is proper.
    Long division of polynomials, Section 7.5 (compare Example 12). Basics: splitting fractions
  3. Split the proper fraction

    Factor x2−1=(x−1)(x+1)x^2 - 1 = (x-1)(x+1) and write

    2x+1(x−1)(x+1)=Ax−1+Bx+1.(2)\frac{2x+1}{(x-1)(x+1)} = \frac{A}{x-1} + \frac{B}{x+1}. \qquad (2)

    Multiply by (x−1)(x+1)(x-1)(x+1)⁠:

    2x+1=A(x+1)+B(x−1).(3)2x + 1 = A(x+1) + B(x-1). \qquad (3)
    Two different linear factors: row 1 of Table 7.2. (3) is a polynomial identity, valid for every real xx⁠.
    Table 7.2, row 1; Remark after Example 11, Section 7.5.
  4. Find AA and BB

    x=1x = 1⁠: 3=2A3 = 2A⁠, so A=32A = \frac32⁠.

    x=−1x = -1⁠: −1=−2B-1 = -2B⁠, so B=12B = \frac12⁠.

    Confirm: the right side of (3) is (A+B)x+(A−B)(A+B)x + (A-B)⁠:

    coefficient of x:A+B=32+12=2,constant term:A−B=32−12=1.\begin{aligned} \text{coefficient of } x:&\quad A + B = \tfrac32 + \tfrac12 = 2, \\ \text{constant term}:&\quad A - B = \tfrac32 - \tfrac12 = 1. \end{aligned}
    Both match the left side 2x+12x + 1⁠.
  5. Integrate

    From (1) and (2):

    x3+x+1x2−1=x+32(x−1)+12(x+1),\frac{x^3+x+1}{x^2-1} = x + \frac{3}{2(x-1)} + \frac{1}{2(x+1)}, ∫f(x) dx=∫x dx+32∫dxx−1+12∫dxx+1=x22+32log⁡∣x−1∣+12log⁡∣x+1∣+C.\begin{aligned} \int f(x)\,dx &= \int x\,dx + \frac32\int\frac{dx}{x-1} \\ &\quad + \frac12\int\frac{dx}{x+1} \\ &= \frac{x^2}{2} + \frac32\log|x-1| \\ &\quad + \frac12\log|x+1| + C. \end{aligned}
    Integral of a sum, constants outside (Properties (III), (IV), Section 7.2.1). The polynomial part xx gives x22\frac{x^2}{2} by the power rule; each simple fraction gives a logarithm.
    Standard formulae (i) and (xii), Section 7.2. Basics: logarithms and 1/x
  6. Check: differentiate the answer

    F′(x)=x+32(x−1)+12(x+1)=x+3(x+1)+(x−1)2(x2−1)=x+4x+22(x2−1)=x+2x+1x2−1=x3−x+2x+1x2−1=x3+x+1x2−1. ✓\begin{aligned} F'(x) &= x + \frac{3}{2(x-1)} + \frac{1}{2(x+1)} \\ &= x + \frac{3(x+1) + (x-1)}{2(x^2-1)} \\ &= x + \frac{4x+2}{2(x^2-1)} = x + \frac{2x+1}{x^2-1} \\ &= \frac{x^3 - x + 2x + 1}{x^2-1} = \frac{x^3+x+1}{x^2-1}. \ \checkmark \end{aligned}
    The derivative returns the original improper fraction. The answer is valid on each interval avoiding x=±1x = \pm 1⁠.
    Power rule and ddxlog⁡∣x∣=1x\frac{d}{dx}\log|x| = \frac1x⁠, Section 7.2. Basics: integration undoes differentiation
Result

For x≠±1x \ne \pm 1⁠:

∫x3+x+1x2−1 dx=x22+12log⁡∣x+1∣+32log⁡∣x−1∣+C.\begin{aligned} &\int\frac{x^3+x+1}{x^2-1}\,dx \\ &= \frac{x^2}{2} + \frac12\log|x+1| + \frac32\log|x-1| + C. \end{aligned}

(Textbook answer: x22+12log⁡∣x+1∣+32log⁡∣x−1∣+C\frac{x^2}{2} + \frac12\log|x+1| + \frac32\log|x-1| + C⁠.)

Check it with numbers

Decomposition at x=2x = 2⁠: the integrand is 8+2+13=113\frac{8 + 2 + 1}{3} = \frac{11}{3}⁠, and 2+32+1/23=2+32+16=1132 + \frac32 + \frac{1/2}{3} = 2 + \frac32 + \frac16 = \frac{11}{3}⁠.

Area check on [2,3][2, 3]⁠, where the integrand is continuous: with FF our answer,

F(3)−F(2)=52+52log⁡2−12log⁡3≈3.6835618.\begin{aligned} F(3) - F(2) &= \tfrac52 + \tfrac52\log 2 - \tfrac12\log 3 \\ &\approx 3.6835618. \end{aligned}

Numerical integration from 2 to 3 also gives 3.68356183.6835618⁠.

Common mistakes
  1. Splitting without dividing. Ax−1+Bx+1\frac{A}{x-1} + \frac{B}{x+1} alone cannot equal an improper fraction; the xx part would be lost.
  2. Wrong remainder. x(x2−1)=x3−xx(x^2-1) = x^3 - x⁠, so the remainder is x+1−(−x)=2x+1x + 1 - (-x) = 2x + 1⁠, not 11⁠.
  3. Forgetting to integrate the quotient xx⁠, which contributes x22\frac{x^2}{2}⁠.
What to take away
  1. Degree of numerator ≥\ge degree of denominator: divide first.
  2. Integrate the quotient as a polynomial and the remainder fraction by partial fractions.

Every fact used, and where it comes from

FactUsed inSource
Improper fraction = polynomial + proper fractionSteps 1, 2Section 7.5; Example 12
x2−1=(x−1)(x+1)x^2 - 1 = (x-1)(x+1)Step 3Algebra (Basics)
Form Ax−a+Bx−b\frac{A}{x-a} + \frac{B}{x-b}Step 3Table 7.2, row 1
The decomposition is an identitySteps 3, 4Remark after Example 11, Section 7.5
Equal polynomials have equal coefficientsStep 4Algebra (Basics)
Integral of a sum; constants outsideStep 5Properties (III), (IV), Section 7.2.1
∫xn dx=xn+1n+1+C\int x^n\,dx = \frac{x^{n+1}}{n+1} + C⁠; ∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + CStep 5Standard formulae (i), (xii), Section 7.2
Derivatives of powers and of log⁡∣x∣\log|x|Step 6Section 7.2
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 →