Integrals of Rational Functions

Rational functions are integrated via partial fraction decomposition.

Partial Fraction Decomposition

Steps

  1. Factor the denominator.
  2. Write partial fractions according to the factors.
  3. Solve for coefficients.
  4. Integrate each partial fraction.

Example

Example 1 ∫1x2−1dx\int \dfrac{1}{x^2 - 1} dx

Factor (x−1)(x+1)(x-1)(x+1), set 1x2−1=Ax−1+Bx+1\dfrac{1}{x^2-1} = \dfrac{A}{x-1} + \dfrac{B}{x+1}; solve A=12A=\tfrac12, B=−12B=-\tfrac12.

Result: 12ln⁡∣x−1∣−12ln⁡∣x+1∣+C\tfrac12\ln|x-1| - \tfrac12\ln|x+1| + C.


Practice Problems

Exercise 1

Compute ∫1x2−4dx\int \dfrac{1}{x^2 - 4} dx.

partial fractionsrational function

Approach: Factor the denominator as x2−4=(x−2)(x+2)x^2-4=(x-2)(x+2) and decompose the integrand into partial fractions before integrating term by term.

Steps:

  1. Factor: x2−4=(x−2)(x+2)x^2-4=(x-2)(x+2).
  2. Decompose: 1x2−4=1(x−2)(x+2)=1/4x−2−1/4x+2\dfrac{1}{x^2-4} = \dfrac{1}{(x-2)(x+2)} = \dfrac{1/4}{x-2} - \dfrac{1/4}{x+2}.
  3. Integrate each term: 14ln⁡∣x−2∣−14ln⁡∣x+2∣+C\tfrac14\ln|x-2| - \tfrac14\ln|x+2| + C.

Answer: 14ln⁡∣x−2∣−14ln⁡∣x+2∣+C\dfrac{1}{4}\ln|x-2| - \dfrac{1}{4}\ln|x+2| + C.


Summary

Symbols Used in This Article

SymbolTypePronunciation/ExplanationMeaning in This Article
∫\intmathematical symbolintegralIndefinite/definite integral sign
dxdxmathematical symboldifferential of xThe differential element of the integration variable xx
CCconstantconstant of integrationThe arbitrary constant in every antiderivative
x2−1x^2 - 1mathematical symbolx squared minus oneThe denominator that is factored before the 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, BconstantA, BThe coefficients solved for when the partial fractions are matched
Ax−1+Bx+1\dfrac{A}{x-1} + \dfrac{B}{x+1}mathematical symbolA over x minus one, plus B over x plus oneThe pair of simple fractions the integrand is rewritten as
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
x2−4x^2 - 4mathematical symbolx squared minus fourThe denominator factored in the exercise

Found an issue with this content?

Tell us what could be improved.