Partial Fractions

Use partial fractions to integrate rational functions.

When to Use It

Basic Steps

  1. Decompose into partial fractions.
  2. Integrate each piece.
  3. Combine results.

Example

Example ∫1x2−1dx\int \dfrac{1}{x^2 - 1} dx
1(x−1)(x+1)=12(1x−1−1x+1)\dfrac{1}{(x-1)(x+1)} = \tfrac12\bigl(\dfrac{1}{x-1}-\dfrac{1}{x+1}\bigr) → 12ln⁡∣x−1x+1∣+C\tfrac12\ln\left|\dfrac{x-1}{x+1}\right| + C.


Exercises

Exercise 1

Decompose 1(x−1)(x+2)\frac{1}{(x-1)(x+2)} into partial fractions, and use the decomposition to compute ∫dx(x−1)(x+2)\int \frac{dx}{(x-1)(x+2)}.

partial fraction decompositionindefinite integralrational function

Approach: The denominator is already factored into two distinct linear factors, so set 1(x−1)(x+2)=Ax−1+Bx+2\frac{1}{(x-1)(x+2)} = \frac{A}{x-1} + \frac{B}{x+2}, determine AA and BB by clearing denominators and comparing coefficients, and then integrate the two terms separately.

Steps:

  1. Set 1(x−1)(x+2)=Ax−1+Bx+2\frac{1}{(x-1)(x+2)} = \frac{A}{x-1} + \frac{B}{x+2} and clear denominators to get 1=A(x+2)+B(x−1)1 = A(x+2) + B(x-1).
  2. Putting x=1x = 1 gives A=13A = \frac{1}{3}, and putting x=−2x = -2 gives B=−13B = -\frac{1}{3}. Hence 1(x−1)(x+2)=13(1x−1−1x+2)\frac{1}{(x-1)(x+2)} = \frac{1}{3}\left(\frac{1}{x-1} - \frac{1}{x+2}\right).
  3. Integrate term by term: ∫dx(x−1)(x+2)=13ln⁡∣x−1∣−13ln⁡∣x+2∣+C=13ln⁡∣x−1x+2∣+C\int \frac{dx}{(x-1)(x+2)} = \frac{1}{3}\ln|x-1| - \frac{1}{3}\ln|x+2| + C = \frac{1}{3}\ln\left|\frac{x-1}{x+2}\right| + C.
  4. Verify by differentiating: ddx[13ln⁡∣x−1∣−13ln⁡∣x+2∣]=13(x−1)−13(x+2)=(x+2)−(x−1)3(x−1)(x+2)=1(x−1)(x+2)\frac{d}{dx}\left[\frac{1}{3}\ln|x-1| - \frac{1}{3}\ln|x+2|\right] = \frac{1}{3(x-1)} - \frac{1}{3(x+2)} = \frac{(x+2)-(x-1)}{3(x-1)(x+2)} = \frac{1}{(x-1)(x+2)}, which matches the original integrand.

Answer: ∫dx(x−1)(x+2)=13ln⁡∣x−1x+2∣+C\int \frac{dx}{(x-1)(x+2)} = \frac{1}{3}\ln\left|\frac{x-1}{x+2}\right| + C.

Exercise 2

Use partial fractions to compute the indefinite integral ∫3x+1(x−1)(x+2)dx\int \frac{3x+1}{(x-1)(x+2)} dx.

partial fraction decompositionindefinite integralundetermined coefficients

Approach: The denominator is the same as in Exercise 1, but the numerator is a non-constant linear expression. The undetermined-coefficient method still works: substituting x=1x = 1 and x=−2x = -2 now gives equations for AA and BB that involve the numerator, and both factors are nonzero at those points.

Steps:

  1. Set 3x+1(x−1)(x+2)=Ax−1+Bx+2\frac{3x+1}{(x-1)(x+2)} = \frac{A}{x-1} + \frac{B}{x+2} and clear denominators to get 3x+1=A(x+2)+B(x−1)=(A+B)x+(2A−B)3x+1 = A(x+2) + B(x-1) = (A+B)x + (2A - B).
  2. Putting x=1x = 1 gives 3+1=3A3 + 1 = 3A, so A=43A = \frac{4}{3}; putting x=−2x = -2 gives −6+1=−3B-6 + 1 = -3B, so B=53B = \frac{5}{3}. Check: (A+B)x+(2A−B)=(43+53)x+(83−53)=3x+1(A+B)x + (2A-B) = \left(\frac{4}{3}+\frac{5}{3}\right)x + \left(\frac{8}{3}-\frac{5}{3}\right) = 3x + 1, as required.
  3. Integrate term by term: ∫3x+1(x−1)(x+2)dx=43ln⁡∣x−1∣+53ln⁡∣x+2∣+C\int \frac{3x+1}{(x-1)(x+2)} dx = \frac{4}{3}\ln|x-1| + \frac{5}{3}\ln|x+2| + C.
  4. Verify by differentiating: ddx[43ln⁡∣x−1∣+53ln⁡∣x+2∣]=43(x−1)+53(x+2)=4(x+2)+5(x−1)3(x−1)(x+2)=3x+1(x−1)(x+2)\frac{d}{dx}\left[\frac{4}{3}\ln|x-1| + \frac{5}{3}\ln|x+2|\right] = \frac{4}{3(x-1)} + \frac{5}{3(x+2)} = \frac{4(x+2) + 5(x-1)}{3(x-1)(x+2)} = \frac{3x+1}{(x-1)(x+2)}, which matches the original integrand.

Answer: ∫3x+1(x−1)(x+2)dx=43ln⁡∣x−1∣+53ln⁡∣x+2∣+C\int \frac{3x+1}{(x-1)(x+2)} dx = \frac{4}{3}\ln|x-1| + \frac{5}{3}\ln|x+2| + C.

Exercise 3

Compute the indefinite integral ∫dxx(x+1)2\int \frac{dx}{x(x+1)^2} (the denominator contains the repeated factor (x+1)2(x+1)^2).

partial fraction decompositionrepeated factorindefinite integralrational function

Approach: When a factor occurs with power 22, a single term is not enough — the decomposition must split it as Bx+1+C(x+1)2\frac{B}{x+1} + \frac{C}{(x+1)^2}, otherwise the degrees cannot be matched. With three unknown coefficients, substituting x=0x = 0 and x=−1x = -1 and then comparing the leading coefficient determines all of them.

Steps:

  1. Set 1x(x+1)2=Ax+Bx+1+C(x+1)2\frac{1}{x(x+1)^2} = \frac{A}{x} + \frac{B}{x+1} + \frac{C}{(x+1)^2} and clear denominators to get 1=A(x+1)2+Bx(x+1)+Cx1 = A(x+1)^2 + Bx(x+1) + Cx.
  2. Putting x=0x = 0 gives A=1A = 1; putting x=−1x = -1 gives C=−1C = -1; comparing the x2x^2 coefficients gives A+B=0A + B = 0, so B=−1B = -1.
  3. Check: (x+1)2−x(x+1)−x=x2+2x+1−x2−x−x=1(x+1)^2 - x(x+1) - x = x^2 + 2x + 1 - x^2 - x - x = 1, as required.
  4. Integrate term by term: ∫dxx(x+1)2=ln⁡∣x∣−ln⁡∣x+1∣+1x+1+C\int \frac{dx}{x(x+1)^2} = \ln|x| - \ln|x+1| + \frac{1}{x+1} + C, where ∫−1(x+1)2dx=1x+1\int \frac{-1}{(x+1)^2} dx = \frac{1}{x+1}.
  5. Verify by differentiating: ddx[ln⁡∣x∣−ln⁡∣x+1∣+1x+1]=1x−1x+1−1(x+1)2=(x+1)2−x(x+1)−xx(x+1)2=1x(x+1)2\frac{d}{dx}\left[\ln|x| - \ln|x+1| + \frac{1}{x+1}\right] = \frac{1}{x} - \frac{1}{x+1} - \frac{1}{(x+1)^2} = \frac{(x+1)^2 - x(x+1) - x}{x(x+1)^2} = \frac{1}{x(x+1)^2}, which matches the original integrand.

Answer: ∫dxx(x+1)2=ln⁡∣x∣−ln⁡∣x+1∣+1x+1+C\int \frac{dx}{x(x+1)^2} = \ln|x| - \ln|x+1| + \frac{1}{x+1} + C.

Exercise 4

Compute the indefinite integral ∫x3x2−1dx\int \frac{x^3}{x^2-1} dx.

partial fraction decompositionimproper fractionindefinite integralpolynomial division

Approach: The degree of the numerator (33) is larger than the degree of the denominator (22), so this is an improper fraction and cannot be decomposed directly. First use polynomial division to write it as a polynomial plus a proper fraction, and only then decompose the proper part.

Steps:

  1. Polynomial division: x3=(x2−1)⋅x+xx^3 = (x^2-1)\cdot x + x, hence x3x2−1=x+xx2−1\frac{x^3}{x^2-1} = x + \frac{x}{x^2-1}.
  2. Decompose the proper fraction: set x(x−1)(x+1)=Ax−1+Bx+1\frac{x}{(x-1)(x+1)} = \frac{A}{x-1} + \frac{B}{x+1} and clear denominators to get x=A(x+1)+B(x−1)=(A+B)x+(A−B)x = A(x+1) + B(x-1) = (A+B)x + (A-B). Comparing coefficients gives A+B=1A + B = 1 and A−B=0A - B = 0, so A=B=12A = B = \frac{1}{2}.
  3. Hence x3x2−1=x+12(1x−1+1x+1)\frac{x^3}{x^2-1} = x + \frac{1}{2}\left(\frac{1}{x-1} + \frac{1}{x+1}\right).
  4. Integrate term by term: ∫x3x2−1dx=x22+12ln⁡∣x−1∣+12ln⁡∣x+1∣+C=x22+12ln⁡∣x2−1∣+C\int \frac{x^3}{x^2-1} dx = \frac{x^2}{2} + \frac{1}{2}\ln|x-1| + \frac{1}{2}\ln|x+1| + C = \frac{x^2}{2} + \frac{1}{2}\ln|x^2-1| + C.
  5. Verify by differentiating: ddx[x22+12ln⁡∣x2−1∣]=x+xx2−1=x(x2−1)+xx2−1=x3x2−1\frac{d}{dx}\left[\frac{x^2}{2} + \frac{1}{2}\ln|x^2-1|\right] = x + \frac{x}{x^2-1} = \frac{x(x^2-1) + x}{x^2-1} = \frac{x^3}{x^2-1}, which matches the original integrand.

Answer: ∫x3x2−1dx=x22+12ln⁡∣x2−1∣+C\int \frac{x^3}{x^2-1} dx = \frac{x^2}{2} + \frac{1}{2}\ln|x^2-1| + C.


Summary

Symbols Used in This Article

SymbolTypePronunciation/ExplanationMeaning in This Article
∫\intmathematical symbolintegralIndefinite integral sign
dxdxmathematical symboldifferential of xThe differential element of the integration variable xx
CCmathematical symbolconstant of integrationThe arbitrary constant in every antiderivative
x2−1x^2 - 1mathematical symbolx squared minus oneThe denominator that is factored before decomposition
(x−1)(x+1)(x-1)(x+1)mathematical symbolthe product of x minus one and x plus oneThe factorisation of the denominator into linear factors
A,BA, Bmathematical symbolA, BThe coefficients determined when the partial fractions are solved for
1x−1−1x+1\frac{1}{x-1} - \frac{1}{x+1}mathematical symbolone over x minus one, minus one over x plus oneThe pair of simple fractions the integrand is split into
ln⁡∣x−1∣\ln\lvert x-1\rvertmathematical symbolnatural logarithm of the absolute value of x minus oneThe antiderivative of the first simple fraction
ln⁡∣x+1∣\ln\lvert x+1\rvertmathematical symbolnatural logarithm of the absolute value of x plus oneThe antiderivative of the second simple fraction

Found an issue with this content?

Tell us what could be improved.