girgit.org

Integrals

Integration by partial fractions

The big ideaA fraction of two polynomials can be broken into a sum of simple fractions, one for each factor of the denominator; each simple fraction integrates to a log, a power or a tan⁻¹.

In simple words

When you add \( \frac{1}{2} \) and \( \frac{1}{3} \) you get \( \frac{5}{6} \). Partial fractions run that backwards: given a big fraction, find the small fractions that were added to make it. The small ones are easy to deal with one at a time, even when the big one is not.

Proper and improper rational functions

A rational function is \( \frac{P(x)}{Q(x)} \), where P and Q are polynomials and Q(x) ≠ 0. It is proper if the degree of P is less than the degree of Q, and improper otherwise. An improper one is first reduced by long division:

\[ \frac{P(x)}{Q(x)} = T(x) + \frac{P_1(x)}{Q(x)}, \]

where T(x) is a polynomial (easy to integrate) and \( \frac{P_1(x)}{Q(x)} \) is proper. Then the proper part is split by partial fraction decomposition.

Guess first: \( \int \frac{x^2}{x^2 - 1}\,dx \)

The bottom is (x − 1)(x + 1). Guess: can you just write \( \frac{x^2}{x^2 - 1} = \frac{A}{x - 1} + \frac{B}{x + 1} \)?

See what happens
No. Add the right side and the top is A(x + 1) + B(x − 1), which has no x² term, so it can never equal x². The fraction is improper (degree 2 over degree 2). Divide first: \( \frac{x^2}{x^2 - 1} = 1 + \frac{1}{x^2 - 1} \). Now the proper part splits, and the answer is \( x + \frac{1}{2}\log\left| \frac{x - 1}{x + 1} \right| + C \).

The table of forms

A, B and C are numbers to be found. The quadratic \( x^2 + bx + c \) in the last row is one that cannot be factorised further over the real numbers.

Rational functionPartial fractions
1\( \frac{px + q}{(x - a)(x - b)},\ a \ne b \)\( \frac{A}{x - a} + \frac{B}{x - b} \)
2\( \frac{px + q}{(x - a)^2} \)\( \frac{A}{x - a} + \frac{B}{(x - a)^2} \)
3\( \frac{px^2 + qx + r}{(x - a)(x - b)(x - c)} \)\( \frac{A}{x - a} + \frac{B}{x - b} + \frac{C}{x - c} \)
4\( \frac{px^2 + qx + r}{(x - a)^2(x - b)} \)\( \frac{A}{x - a} + \frac{B}{(x - a)^2} + \frac{C}{x - b} \)
5\( \frac{px^2 + qx + r}{(x - a)(x^2 + bx + c)} \)\( \frac{A}{x - a} + \frac{Bx + C}{x^2 + bx + c} \)

The pattern: each linear factor gets a constant on top; a repeated factor gets one fraction for each power; an unfactorisable quadratic gets a linear top Bx + C.

Finding A, B, C

Clear the denominators. What is left is an identity: true for every x, not just some. So you may either compare coefficients of each power of x, or put in handy values of x that kill terms. Putting x = a may look illegal, since the original fraction is undefined there, but after clearing denominators both sides are polynomials that agree at every other x, so they agree at x = a too.

Try it: tune A and B by hand until the two simple fractions add up to the big one.

Worked examples

  1. \( \int \frac{x + 7}{(x - 1)(x + 3)}\,dx \) (form 1). x + 7 = A(x + 3) + B(x − 1). Put x = 1: 8 = 4A, A = 2. Put x = −3: 4 = −4B, B = −1. Answer: \( 2\log|x - 1| - \log|x + 3| + C \).
  2. \( \int \frac{2x + 1}{(x - 1)^2(x + 2)}\,dx \) (form 4). 2x + 1 = A(x − 1)(x + 2) + B(x + 2) + C(x − 1)². x = 1: B = 1. x = −2: −3 = 9C, \( C = -\frac{1}{3} \). Coefficient of x²: A + C = 0, \( A = \frac{1}{3} \). Answer: \( \frac{1}{3}\log\left| \frac{x - 1}{x + 2} \right| - \frac{1}{x - 1} + C \).
  3. \( \int \frac{dx}{(x + 1)(x^2 + 1)} \) (form 5). 1 = A(x² + 1) + (Bx + C)(x + 1). x = −1: \( A = \frac{1}{2} \). Coefficient of x²: A + B = 0, \( B = -\frac{1}{2} \). Constant: A + C = 1, \( C = \frac{1}{2} \). Answer: \( \frac{1}{2}\log|x + 1| - \frac{1}{4}\log(x^2 + 1) + \frac{1}{2}\tan^{-1} x + C \).

Two useful tricks

Only x² appears. For \( \int \frac{x^2\,dx}{(x^2 + 4)(x^2 + 9)} \), put y = x² only for the splitting: \( \frac{y}{(y + 4)(y + 9)} = \frac{-4/5}{y + 4} + \frac{9/5}{y + 9} \). Put x² back and integrate each with tan⁻¹: \( -\frac{2}{5}\tan^{-1}\frac{x}{2} + \frac{3}{5}\tan^{-1}\frac{x}{3} + C \).

Substitute first, then split. For \( \int \frac{e^x\,dx}{(e^x + 1)(e^x + 2)} \), put t = eˣ: \( \int \frac{dt}{(t + 1)(t + 2)} = \log\left| \frac{t + 1}{t + 2} \right| \), so the answer is \( \log\frac{e^x + 1}{e^x + 2} + C \).

Words to know

Rational function
A polynomial divided by a nonzero polynomial.
Proper / improper
Top degree less than bottom degree / not less. Improper ones need long division first.
Partial fractions
The simple fractions that add up to the given rational function.
Identity
An equation true for every allowed value of x (some books write ≡).
Irreducible quadratic
A quadratic with no real factors (negative discriminant), such as x² + 1.

Which is the right form for \( \frac{3x + 1}{(x - 2)^2(x + 1)} \)?

  1. \( \frac{A}{(x - 2)^2} + \frac{B}{x + 1} \)
  2. \( \frac{A}{x - 2} + \frac{B}{(x - 2)^2} + \frac{C}{x + 1} \)
  3. \( \frac{Ax + B}{(x - 2)^2} \)

\( \frac{1}{x(x + 1)} = \frac{A}{x} + \frac{B}{x + 1} \). What are A and B?

  1. A = 1, B = −1
  2. A = 1, B = 1
  3. A = −1, B = 1

Before splitting \( \frac{x^3 + 1}{x^2 - 4} \), what must you do?

  1. Factorise the top
  2. Divide, because it is improper
  3. Substitute t = x²