Partial Fractions
Partial fractions break a rational function, a polynomial divided by a polynomial, into a sum of simple fractions you already know how to integrate. Each piece becomes a logarithm, a power or an arctangent.
Step 0: compare degrees
If the numerator's degree is at least the denominator's, do polynomial long division first. Partial fractions only work on proper fractions.
Step 1: factor the denominator
Each factor tells you what terms to write:
| Factor | Terms |
|---|---|
| Distinct linear \((x-a)\) | \(\dfrac{A}{x-a}\) |
| Repeated linear \((x-a)^k\) | \(\dfrac{A_1}{x-a}+\dfrac{A_2}{(x-a)^2}+\cdots+\dfrac{A_k}{(x-a)^k}\) |
| Irreducible quadratic \(x^2+bx+c\) | \(\dfrac{Ax+B}{x^2+bx+c}\) |
Step 2: solve for the constants
Multiply both sides by the denominator. Then plug in the roots (the "cover-up" method), or match coefficients. Plugging in roots is fastest for distinct linear factors.
Example: \(\frac{1}{x^{2} - 1}\)
1Partial fraction decompositiontechnique▶
Factor the denominator and split the fraction into simpler pieces: \(x^{2} - 1 = \left(x - 1\right) \left(x + 1\right)\).
1Split into separate integrals▶
The integral of a sum is the sum of the integrals. Integrate each term:
1Pull out the constant▶
Constants factor out of an integral: move \(- \frac{1}{2}\) outside.
1Substitution (u-sub)technique▶
Let \(u = x + 1\). Then \(du = 1\,dx\). Rewriting the integral in terms of \(u\):
1Reciprocal rule▶
The integral of \(\frac{1}{u}\) is \(\ln\left|u\right|\).
2Substitute back▶
Replace \(u\) with \(x + 1\):
2Multiply back by the constant▶
2Pull out the constant▶
Constants factor out of an integral: move \(\frac{1}{2}\) outside.
1Substitution (u-sub)technique▶
Let \(w = x - 1\). Then \(dw = 1\,dx\). Rewriting the integral in terms of \(w\):
1Reciprocal rule▶
The integral of \(\frac{1}{w}\) is \(\ln\left|w\right|\).
2Substitute back▶
Replace \(w\) with \(x - 1\):
2Multiply back by the constant▶
3Add the results▶
Example: \(\frac{1}{x \left(x + 1\right)^{2}}\)
The repeated factor \((x+1)^2\) needs two terms.
1Partial fraction decompositiontechnique▶
Factor the denominator and split the fraction into simpler pieces: \(x \left(x + 1\right)^{2} = x \left(x + 1\right)^{2}\).
1Split into separate integrals▶
The integral of a sum is the sum of the integrals. Integrate each term:
1Pull out the constant▶
Constants factor out of an integral: move \(-1\) outside.
1Substitution (u-sub)technique▶
Let \(u = x + 1\). Then \(du = 1\,dx\). Rewriting the integral in terms of \(u\):
1Reciprocal rule▶
The integral of \(\frac{1}{u}\) is \(\ln\left|u\right|\).
2Substitute back▶
Replace \(u\) with \(x + 1\):
2Multiply back by the constant▶
2Pull out the constant▶
Constants factor out of an integral: move \(-1\) outside.
1Substitution (u-sub)technique▶
Let \(w = x + 1\). Then \(dw = 1\,dx\). Rewriting the integral in terms of \(w\):
1Power rule▶
Use \(\int x^{n}\,dx = \frac{x^{n+1}}{n+1}\) with \(n = -2\).
2Substitute back▶
Replace \(w\) with \(x + 1\):
2Multiply back by the constant▶
3Reciprocal rule▶
The integral of \(\frac{1}{x}\) is \(\ln\left|x\right|\).
4Add the results▶
Example: \(\frac{x^{3} + 1}{x^{2} - 3 x + 2}\)
The numerator has degree 3 and the denominator degree 2, so divide first.
1Polynomial division + partial fractionstechnique▶
The numerator's degree is at least the denominator's, so divide first, then split the remainder into partial fractions:
1Split into separate integrals▶
The integral of a sum is the sum of the integrals. Integrate each term:
1Power rule▶
Use \(\int x^{n}\,dx = \frac{x^{n+1}}{n+1}\) with \(n = 1\).
2Integrate a constant▶
The integral of a constant is the constant times \(x\).
3Pull out the constant▶
Constants factor out of an integral: move \(-2\) outside.
1Substitution (u-sub)technique▶
Let \(u = x - 1\). Then \(du = 1\,dx\). Rewriting the integral in terms of \(u\):
1Reciprocal rule▶
The integral of \(\frac{1}{u}\) is \(\ln\left|u\right|\).
2Substitute back▶
Replace \(u\) with \(x - 1\):
2Multiply back by the constant▶
4Pull out the constant▶
Constants factor out of an integral: move \(9\) outside.
1Substitution (u-sub)technique▶
Let \(w = x - 2\). Then \(dw = 1\,dx\). Rewriting the integral in terms of \(w\):
1Reciprocal rule▶
The integral of \(\frac{1}{w}\) is \(\ln\left|w\right|\).
2Substitute back▶
Replace \(w\) with \(x - 2\):
2Multiply back by the constant▶
5Add the results▶
Irreducible quadratics
For a term like \(\frac{Ax+B}{x^2+4}\), split it into \(\frac{Ax}{x^2+4}\), which is a u-substitution giving a logarithm, and \(\frac{B}{x^2+4}\), which gives an arctangent. If the quadratic has a linear term, complete the square first.
Example: \(\frac{1}{x^{2} + 2 x + 5}\)
Completing the square gives \((x+1)^2+4\).
1Substitution (u-sub)technique▶
Let \(u = x + 1\). Then \(du = 1\,dx\). Rewriting the integral in terms of \(u\):
1Expandtechnique▶
Multiply out the integrand:
1Standard form: arctan▶
Use \(\int \frac{1}{x^2+a^2}\,dx = \frac{1}{a}\arctan\frac{x}{a}\).
2Substitute back▶
Replace \(u\) with \(x + 1\):
Try your own
Paste any integral into the integral calculator to get the full step-by-step solution and a graph.