Skip to main content

Thomas’ Calculus · Chapter 08 · Section 8.5

By Muhammad Abdullah Athar · SymPy Verified

Integration of Rational Functions by Partial Fractions

❦

Read this page the way you would a book: first the notes, then the key ideas, then every worked example in order — each step explains not only what to do, but why it works.

Part One

Section Notes

❧

Section 8.5: Integration of Rational Functions by Partial Fractions

Partial fractions decompose complex rational functions into sums of simpler, easily integrable fractions.


1. Denominator Factor Types

  1. Distinct Linear Factors (x−r)(x - r): Ax−r  ⟹  ∫=Aln⁡∣x−r∣\frac{A}{x - r} \implies \int = A \ln|x - r|
  2. Repeated Linear Factors (x−r)k(x - r)^k: A1x−r+A2(x−r)2+⋯+Ak(x−r)k\frac{A_1}{x - r} + \frac{A_2}{(x - r)^2} + \dots + \frac{A_k}{(x - r)^k}
  3. Irreducible Quadratic Factors (x2+bx+c)(x^2 + bx + c): Bx+Cx2+bx+c  ⟹  Linear part gives ln⁡,  constant part gives arctan⁡\frac{Bx + C}{x^2 + bx + c} \implies \text{Linear part gives } \ln, \; \text{constant part gives } \arctan

Part Two

Key Ideas to Remember

1 essential statements for this section, each with a plain-words explanation.

Theorem #1Sec 8.5

Partial Fraction Decomposition Theorem

P(x)Q(x)=∑Ai(x−ri)ki+∑Bjx+Cj(x2+bjx+cj)mj\frac{P(x)}{Q(x)} = \sum \frac{A_i}{(x - r_i)^{k_i}} + \sum \frac{B_j x + C_j}{(x^2 + b_j x + c_j)^{m_j}}

Any proper rational function P(x)/Q(x) with real coefficients can be uniquely decomposed into a sum of partial fractions corresponding to the linear and irreducible quadratic factors of its denominator.

Conditions: deg(P) < deg(Q); Denominator Q(x) factored completely over R

In plain words: Reduces rational integration into elementary logarithms and inverse tangents.

Remember — Linear factors produce logarithms; irreducible quadratics produce inverse tangents.

Part Three

Worked Examples

5 exercises, solved in full. Every answer has been checked symbolically with SymPy before printing.

Example 01(Section 8.5, Exercise 1)

Warm-up

Problem. Evaluate int (5x - 3) / (x^2 - 2x - 3) dx.

Step-by-Step Derivation (3 steps)

1

Factor Denominator and Set Up Decomposition

x2−2x−3=(x−3)(x+1)  ⟹  5x−3(x−3)(x+1)=Ax−3+Bx+1x^2 - 2x - 3 = (x - 3)(x + 1) \implies \frac{5x - 3}{(x - 3)(x + 1)} = \frac{A}{x - 3} + \frac{B}{x + 1}

Distinct linear factors.

Why this works: Partial fractions form.
2

Solve for A and B via Heaviside Cover-Up

5x−3=A(x+1)+B(x−3);x=3  ⟹  12=4A  ⟹  A=3;x=−1  ⟹  −8=−4B  ⟹  B=25x - 3 = A(x + 1) + B(x - 3); \quad x = 3 \implies 12 = 4A \implies A = 3; \quad x = -1 \implies -8 = -4B \implies B = 2

Substitute roots of factors.

Why this works: Evaluating undetermined coefficients.
3

Integrate Term by Term

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

Direct logarithmic antiderivatives.

Why this works: Final evaluated antiderivative.

Answer: 3ln⁡∣x−3∣+2ln⁡∣x+1∣+C3\ln|x - 3| + 2\ln|x + 1| + C

✓ Verified by SymPy CAS

Example 02(Section 8.5, Exercise 2)

Core practice

Problem. Evaluate int (x^2 + 1) / (x(x - 1)^2) dx.

Step-by-Step Derivation (3 steps)

1

Set Up Partial Fraction Decomposition

x2+1x(x−1)2=Ax+Bx−1+C(x−1)2\frac{x^2 + 1}{x(x - 1)^2} = \frac{A}{x} + \frac{B}{x - 1} + \frac{C}{(x - 1)^2}

Include single and repeated powers of (x - 1).

Why this works: Decomposition template.
2

Solve Coefficients

x2+1=A(x−1)2+Bx(x−1)+Cx;x=0  ⟹  1=A;x=1  ⟹  2=C;x2 coeff:1=A+B  ⟹  B=0x^2 + 1 = A(x - 1)^2 + Bx(x - 1) + Cx; \quad x = 0 \implies 1 = A; \quad x = 1 \implies 2 = C; \quad x^2 \text{ coeff}: 1 = A + B \implies B = 0

A = 1, B = 0, C = 2.

Why this works: Determining coefficients.
3

Integrate Terms

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

Integrate 1/x to ln|x| and 2(x-1)^(-2) to -2/(x-1).

Why this works: Final exact antiderivative.

Answer: ln⁡∣x∣−2x−1+C\ln|x| - \frac{2}{x - 1} + C

✓ Verified by SymPy CAS

Example 03(Section 8.5, Exercise 3)

Core practice

Problem. Evaluate int (2x^2 - x + 4) / (x^3 + 4x) dx.

Step-by-Step Derivation (3 steps)

1

Factor Denominator and Set Up Fractions

x3+4x=x(x2+4)  ⟹  2x2−x+4x(x2+4)=Ax+Bx+Cx2+4x^3 + 4x = x(x^2 + 4) \implies \frac{2x^2 - x + 4}{x(x^2 + 4)} = \frac{A}{x} + \frac{Bx + C}{x^2 + 4}

x^2 + 4 has no real roots.

Why this works: Irreducible quadratic template.
2

Solve for A, B, C

2x2−x+4=A(x2+4)+(Bx+C)x=(A+B)x2+Cx+4A;4A=4  ⟹  A=1;C=−1;A+B=2  ⟹  B=12x^2 - x + 4 = A(x^2 + 4) + (Bx + C)x = (A + B)x^2 + Cx + 4A; \quad 4A = 4 \implies A = 1; \quad C = -1; \quad A + B = 2 \implies B = 1

A = 1, B = 1, C = -1.

Why this works: Equating polynomial coefficients.
3

Integrate Decomposition

∫(1x+x−1x2+4)dx=ln⁡∣x∣+12ln⁡(x2+4)−12arctan⁡(x/2)+C\int \left( \frac{1}{x} + \frac{x - 1}{x^2 + 4} \right) dx = \ln|x| + \frac{1}{2}\ln(x^2 + 4) - \frac{1}{2}\arctan(x/2) + C

Split (x - 1)/(x^2 + 4) into x/(x^2 + 4) and -1/(x^2 + 4).

Why this works: Final evaluated antiderivative.

Answer: ln⁡∣x∣+12ln⁡(x2+4)−12arctan⁡(x2)+C\ln|x| + \frac{1}{2}\ln(x^2 + 4) - \frac{1}{2}\arctan\left(\frac{x}{2}\right) + C

✓ Verified by SymPy CAS

Example 04(Section 8.5, Exercise 4)

Core practice

Problem. Evaluate int (x^3) / (x^2 - 1) dx.

Step-by-Step Derivation (2 steps)

1

Perform Long Division

x3x2−1=x+xx2−1\frac{x^3}{x^2 - 1} = x + \frac{x}{x^2 - 1}

Divide x^3 by x^2 - 1.

Why this works: Numerator degree >= denominator degree.
2

Integrate Both Terms

∫x dx+∫xx2−1dx=x22+12ln⁡∣x2−1∣+C\int x \, dx + \int \frac{x}{x^2 - 1} dx = \frac{x^2}{2} + \frac{1}{2}\ln|x^2 - 1| + C

Use simple substitution u = x^2 - 1 for remainder.

Why this works: Direct integration.

Answer: x22+12ln⁡∣x2−1∣+C\frac{x^2}{2} + \frac{1}{2}\ln|x^2 - 1| + C

✓ Verified by SymPy CAS

Example 05(Section 8.5, Exercise 5)

Core practice

Problem. Evaluate int_2^3 1 / (x^2 - 1) dx.

Step-by-Step Derivation (3 steps)

1

Decompose into Partial Fractions

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

Standard difference of squares decomposition.

Why this works: Partial fractions.
2

Find Antiderivative

12[ln⁡∣x−1∣−ln⁡∣x+1∣]=12ln⁡∣x−1x+1∣\frac{1}{2} [\ln|x - 1| - \ln|x + 1|] = \frac{1}{2} \ln\left|\frac{x - 1}{x + 1}\right|

Combine logs.

Why this works: Logarithm quotient law.
3

Evaluate at Limits 2 and 3

12(ln⁡(24)−ln⁡(13))=12ln⁡(1/21/3)=12ln⁡(32)\frac{1}{2} \left( \ln\left(\frac{2}{4}\right) - \ln\left(\frac{1}{3}\right) \right) = \frac{1}{2} \ln\left( \frac{1/2}{1/3} \right) = \frac{1}{2} \ln\left(\frac{3}{2}\right)

Compute ratio of logs.

Why this works: Final exact value.

Answer: ∫231x2−1dx=12ln⁡(32)\int_2^3 \frac{1}{x^2 - 1} dx = \frac{1}{2}\ln\left(\frac{3}{2}\right)

✓ Verified by SymPy CAS