Skip to content

Partial Fractions

In this lesson you’ll learn partial fraction decomposition, a technique for breaking complicated rational functions into simpler pieces you can integrate directly.

A rational function is a ratio of two polynomials. When the denominator factors, you can split the fraction into a sum of simpler fractions, each of which integrates to a logarithm or an arctangent.

If the degree of the numerator is greater than or equal to the degree of the denominator, do polynomial long division first. Partial fractions only work on proper fractions (numerator degree strictly less than denominator degree).

After factoring the denominator completely, set up the decomposition based on what you see.

Distinct linear factors. For each factor (x - c), add a term A/(x - c)

P(x)(xa)(xb)=Axa+Bxb\frac{P(x)}{(x - a)(x - b)} = \frac{A}{x - a} + \frac{B}{x - b}

Repeated linear factors. For a factor (x - c) to the n, add one term for each power from 1 to n

P(x)(xc)3=Axc+B(xc)2+C(xc)3\frac{P(x)}{(x - c)^3} = \frac{A}{x - c} + \frac{B}{(x - c)^2} + \frac{C}{(x - c)^3}

Irreducible quadratic factors. For a factor (x² + px + q) that doesn’t factor further, the numerator is linear

P(x)(x2+px+q)=Ax+Bx2+px+q\frac{P(x)}{(x^2 + px + q)} = \frac{Ax + B}{x^2 + px + q}

Two approaches work well.

The cover-up method (for distinct linear factors): plug in the value that makes each factor zero. This isolates one coefficient at a time.

Equating coefficients: expand both sides, then match the coefficients of each power of x. This always works, even for repeated and quadratic factors.

Example 1: Distinct linear factors

Evaluate

5x+2(x1)(x+3)dx\int \frac{5x + 2}{(x - 1)(x + 3)}\,dx

Set up the decomposition

5x+2(x1)(x+3)=Ax1+Bx+3\frac{5x + 2}{(x - 1)(x + 3)} = \frac{A}{x - 1} + \frac{B}{x + 3}

Multiply both sides by (x - 1)(x + 3)

5x+2=A(x+3)+B(x1)5x + 2 = A(x + 3) + B(x - 1)

Cover-up: let x = 1, so 7 = 4A, giving A = 7/4. Let x = -3, so -13 = -4B, giving B = 13/4.

7/4x1+13/4x+3dx=74lnx1+134lnx+3+C\int \frac{7/4}{x - 1} + \frac{13/4}{x + 3}\,dx = \frac{7}{4}\ln|x - 1| + \frac{13}{4}\ln|x + 3| + C

Example 2: Repeated linear factor

Evaluate

x+4(x2)2dx\int \frac{x + 4}{(x - 2)^2}\,dx

Set up the decomposition

x+4(x2)2=Ax2+B(x2)2\frac{x + 4}{(x - 2)^2} = \frac{A}{x - 2} + \frac{B}{(x - 2)^2}

Multiply both sides by (x - 2)²

x+4=A(x2)+Bx + 4 = A(x - 2) + B

Let x = 2, so 6 = B. Expand: x + 4 = Ax - 2A + 6, so matching the x coefficient gives A = 1.

1x2+6(x2)2dx=lnx26x2+C\int \frac{1}{x - 2} + \frac{6}{(x - 2)^2}\,dx = \ln|x - 2| - \frac{6}{x - 2} + C

Example 3: Irreducible quadratic factor

Evaluate

2x+3x2+4dx\int \frac{2x + 3}{x^2 + 4}\,dx

This denominator doesn’t factor (x² + 4 is always positive). Split the integral by separating the numerator

2xx2+4dx+3x2+4dx\int \frac{2x}{x^2 + 4}\,dx + \int \frac{3}{x^2 + 4}\,dx

The first integral uses u = x² + 4, du = 2x dx

ln(x2+4)\ln(x^2 + 4)

The second matches the standard arctangent integral formula. Here a = 2

1x2+a2dx=1aarctan ⁣(xa)+C\int \frac{1}{x^2 + a^2}\,dx = \frac{1}{a}\arctan\!\left(\frac{x}{a}\right) + C 312arctan ⁣(x2)=32arctan ⁣(x2)3 \cdot \frac{1}{2}\arctan\!\left(\frac{x}{2}\right) = \frac{3}{2}\arctan\!\left(\frac{x}{2}\right)

Combining

ln(x2+4)+32arctan ⁣(x2)+C\ln(x^2 + 4) + \frac{3}{2}\arctan\!\left(\frac{x}{2}\right) + C

Partial fractions show up anywhere rational functions need to be integrated or inverse-transformed.

  • In electrical engineering, Laplace transforms turn differential equations into rational functions, and partial fractions are how you invert them back to time-domain solutions
  • In control systems, transfer functions are rational, and partial fractions decompose them into first-order and second-order components
  • In physics, certain potential energy and wave function calculations produce rational integrands
  • In probability, moment-generating functions sometimes require partial fraction techniques
Partial fraction decomposition is used to integrate
Before applying partial fractions, if the numerator degree equals or exceeds the denominator degree, you must first
For the decomposition of $\frac{P(x)}{(x-1)(x+2)}$, the correct setup is
Integrating $\frac{1}{x-3}$ gives
For an irreducible quadratic factor $x^2 + 4$ in the denominator, the partial fraction numerator is