Teleport

Main features

On this page

Topics

Arithmetic drills
Grade 7
Grade 8
Grade 9
Math I
Math A
Math II
Math B
Math C
Math III
Calculus
Linear algebra
Differential equations

Display

Theme
Math III

Rational functions and partial fractions

If the denominator factors, partial fractions turn a rational function into a sum of terms that integrate to logarithms.

Basic, Standard: Grade 12 · Term 2 / Advanced: Grade 12 · Exam prep

Math problem generator

Level

The basic idea

1(x+1)(x+3)\dfrac{1}{(x+1)(x+3)} cannot be integrated as it is, but after splitting it into partial fractions,

1(x+1)(x+3)=12(1x+1−1x+3)\frac{1}{(x+1)(x+3)} = \frac{1}{2}\left(\frac{1}{x+1} - \frac{1}{x+3}\right)

we can use ∫dxx+a=log⁡∣x+a∣+C\int \frac{dx}{x+a} = \log|x+a| + C.

∫dx(x+1)(x+3)=12(log⁡∣x+1∣−log⁡∣x+3∣)+C=12log⁡∣x+1x+3∣+C\int \frac{dx}{(x+1)(x+3)} = \frac{1}{2}(\log|x+1| - \log|x+3|) + C = \frac{1}{2}\log\left|\frac{x+1}{x+3}\right| + C

How to find partial fractions

Set 3x+1(x−1)(x+2)=Ax−1+Bx+2\dfrac{3x+1}{(x-1)(x+2)} = \dfrac{A}{x-1} + \dfrac{B}{x+2} and multiply both sides by (x−1)(x+2)(x-1)(x+2):

3x+1=A(x+2)+B(x−1)3x + 1 = A(x+2) + B(x-1)

This holds for all xx. Substituting x=1x = 1 gives 4=3A4 = 3A, and x=−2x = -2 gives −5=−3B-5 = -3B, so A=43A = \frac{4}{3} and B=53B = \frac{5}{3} (comparing coefficients works too).

Tip

Substituting the values of xx that make the denominator zero gives the coefficients at once. For a squared factor (x+a)2(x+a)^2, use two terms: Ax+a+B(x+a)2\dfrac{A}{x+a} + \dfrac{B}{(x+a)^2}.

Divide first if the numerator has a high degree

If the degree of the numerator is at least that of the denominator, divide first to get "polynomial + fraction".

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

Then ∫x2+3x+1x−1 dx=12x2+4x+5log⁡∣x−1∣+C\displaystyle\int \frac{x^2+3x+1}{x-1}\,dx = \frac{1}{2}x^2 + 4x + 5\log|x-1| + C.

When the numerator is the derivative of the denominator

If the numerator is (a multiple of) the derivative of the denominator, as in 2x+1x2+x+1\dfrac{2x+1}{x^2+x+1}, you can skip partial fractions and use ∫f′(x)f(x) dx=log⁡∣f(x)∣+C\int \frac{f'(x)}{f(x)}\,dx = \log|f(x)| + C. Check for this first.

Common mistakes

  • The coefficient: 1(x+a)(x+b)=1x+a−1x+b\frac{1}{(x+a)(x+b)} = \frac{1}{x+a} - \frac{1}{x+b} is wrong; you need a factor 1b−a\frac{1}{b-a}. Recombine the fractions to check.
  • Skipping the division: partial fractions don't work while the numerator's degree is too high.
  • Absolute values: write log⁡∣x+a∣\log|x+a|.