Partial Fractions Integration Calculator

Published on: July 17, 2026
Final Answer: Free | Full Steps: Plus

This Partial Fractions Integration Calculator integrates a fraction of polynomials by splitting it into simpler pieces, and shows the working line by line. The denominator is factored and the fraction is rewritten as a sum whose parts each integrate to a logarithm or a power. Splitting first is what turns an impossible integral into routine ones. Following the same pattern every time keeps the split and the integration as separate moves.

Step-by-step method

  1. Set up the problem.
  2. Write the partial fractions form.
  3. Split the fraction into partial fractions.
  4. Integrate each partial fraction as Step 4a, Step 4b, and so on.
  5. Combine the results and add the constant of integration C.

Formula: Partial Fractions

A fraction whose bottom factors into brackets splits into simpler fractions, one for each bracket.

\(\frac{P\left(x\right)}{Q\left(x\right)} = \frac{A}{x - a} + \frac{B}{x - b} + \cdots\)

Useful Tips to Remember

The degree of the numerator must be less than the degree of the denominator; if not, use polynomial long division first. Factor the denominator completely, then write one fraction for each factor, with extra terms for repeated factors. Solve for the constants, then integrate each fraction, which usually gives logarithms. Add \(+C\) at the end.

Required knowledge

Where Is Partial Fractions Integration Used?

Partial fractions split a rational function into simpler fractions that can each be integrated with logarithms or inverse tangents. This is essential for integrating fractions of polynomials, which appear in population models, chemical reactions and electrical circuits. Engineers use partial fractions to find inverse Laplace transforms, which is how they solve control system and circuit equations. In biology, the logistic model for populations with a limit is solved by separating the variables and integrating with partial fractions.

  • Solving the logistic growth model for populations
  • Finding inverse Laplace transforms in engineering
  • Modelling chemical reaction rates
  • Analysing electrical circuits and control systems
  • Integrating rational functions in calculus

Partial Fractions Integration Practice Problems

Example 1 integrates \(\frac{3x + 5}{x^2 + 3x + 2}\), and Example 2 integrates \(\frac{1}{x^2 - 1}\). Try splitting each fraction yourself before checking. For two more free worked examples, check out the Partial Fractions Integration Notes.

The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.

See Example 1 Hide Example 1

Problem

\(\int \frac{3 x + 5}{x^{2} + 3 x + 2}\, dx\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the partial fractions form.
  3. Split the fraction into partial fractions.
  4. Integrate each partial fraction as Step 4a, Step 4b, and so on.
  5. Combine the results and add the constant of integration C.

Formula

Formula: Partial Fractions

A fraction whose bottom factors into brackets splits into simpler fractions, one for each bracket.

\(\frac{P\left(x\right)}{Q\left(x\right)} = \frac{A}{x - a} + \frac{B}{x - b} + \cdots\)

Step 1

Step 1 - Set up the problem.

In this problem: The numerator is \(3 x + 5\) and the denominator is \(x^{2} + 3 x + 2\). The top has a lower degree than the bottom, and the bottom factors, so the fraction can be split.

\(\int \frac{3 x + 5}{x^{2} + 3 x + 2}\, dx\)

Step 2

Step 2 - Write the partial fractions form.

In this problem: A fraction whose bottom factors into brackets splits into one simpler fraction per bracket.

\(\frac{P\left(x\right)}{Q\left(x\right)} = \frac{A}{x - a} + \frac{B}{x - b} + \cdots\)

Step 3

Step 3 - Split the fraction into partial fractions.

In this problem: The bottom factors as \(\left(x + 1\right) \left(x + 2\right)\), so the fraction splits into one fraction per factor.

\(\frac{3 x + 5}{x^{2} + 3 x + 2} = \frac{1}{x + 2} + \frac{2}{x + 1}\)

Step 4

Step 4 - Integrate each partial fraction as Step 4a, Step 4b, and so on.

In this problem: Integrate each partial fraction on its own, keeping each sign.

\(\int \frac{3 x + 5}{x^{2} + 3 x + 2}\, dx = \int \frac{1}{x + 2}\, dx + \int \frac{2}{x + 1}\, dx\)

Step 4a

Step 4a - Integrate \(\frac{1}{x + 2}\).

In this problem: The partial fraction is \(\frac{1}{x + 2}\).

\(\int \frac{1}{x + 2}\, dx = \ln\left|x + 2\right|\)

Step 4b

Step 4b - Integrate \(\frac{2}{x + 1}\).

In this problem: The partial fraction is \(\frac{2}{x + 1}\).

\(\int \frac{2}{x + 1}\, dx = 2 \ln\left|x + 1\right|\)

Step 5

Step 5 - Combine the results and add the constant of integration C.

In this problem: Put the integral of each partial fraction back together, keeping the signs, and add one constant C.

\(\int \frac{3 x + 5}{x^{2} + 3 x + 2}\, dx = \ln\left|x + 2\right| + 2 \ln\left|x + 1\right| + C\)

Final Answer

\(\int \frac{3 x + 5}{x^{2} + 3 x + 2}\, dx = \ln\left|x + 2\right| + 2 \ln\left|x + 1\right| + C\)
See Example 2 Hide Example 2

Problem

\(\int \frac{1}{x^{2} - 1}\, dx\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the partial fractions form.
  3. Split the fraction into partial fractions.
  4. Integrate each partial fraction as Step 4a, Step 4b, and so on.
  5. Combine the results and add the constant of integration C.

Formula

Formula: Partial Fractions

A fraction whose bottom factors into brackets splits into simpler fractions, one for each bracket.

\(\frac{P\left(x\right)}{Q\left(x\right)} = \frac{A}{x - a} + \frac{B}{x - b} + \cdots\)

Step 1

Step 1 - Set up the problem.

In this problem: The numerator is \(1\) and the denominator is \(x^{2} - 1\). The top has a lower degree than the bottom, and the bottom factors, so the fraction can be split.

\(\int \frac{1}{x^{2} - 1}\, dx\)

Step 2

Step 2 - Write the partial fractions form.

In this problem: A fraction whose bottom factors into brackets splits into one simpler fraction per bracket.

\(\frac{P\left(x\right)}{Q\left(x\right)} = \frac{A}{x - a} + \frac{B}{x - b} + \cdots\)

Step 3

Step 3 - Split the fraction into partial fractions.

In this problem: The bottom factors as \(\left(x - 1\right) \left(x + 1\right)\), so the fraction splits into one fraction per factor.

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

Step 4

Step 4 - Integrate each partial fraction as Step 4a, Step 4b, and so on.

In this problem: Integrate each partial fraction on its own, keeping each sign.

\(\int \frac{1}{x^{2} - 1}\, dx = -\int \frac{1}{2 \left(x + 1\right)}\, dx + \int \frac{1}{2 \left(x - 1\right)}\, dx\)

Step 4a

Step 4a - Integrate \(\frac{1}{2 \left(x + 1\right)}\).

In this problem: The partial fraction is \(\frac{1}{2 \left(x + 1\right)}\).

\(\int \frac{1}{2 \left(x + 1\right)}\, dx = \frac{\ln\left|x + 1\right|}{2}\)

Step 4b

Step 4b - Integrate \(\frac{1}{2 \left(x - 1\right)}\).

In this problem: The partial fraction is \(\frac{1}{2 \left(x - 1\right)}\).

\(\int \frac{1}{2 \left(x - 1\right)}\, dx = \frac{\ln\left|x - 1\right|}{2}\)

Step 5

Step 5 - Combine the results and add the constant of integration C.

In this problem: Put the integral of each partial fraction back together, keeping the signs, and add one constant C.

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

Final Answer

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

Notes and Practice Mode

Example Problems

Click one to load it into the box and solve it.