4. Partial Fractions

Rational Function Integration

Rational Function Integration

students, in this lesson you will learn how calculus uses partial fractions to integrate rational functions, which are fractions made from polynomials πŸ“˜. The big idea is simple: some complicated-looking fractions can be rewritten as a sum of easier fractions, and then each piece can be integrated using familiar rules. By the end of this lesson, you should be able to explain what rational function integration is, identify when partial fractions are useful, and solve standard problems involving linear factors, irreducible quadratic factors, and repeated factors.

Why rational function integration matters

A rational function is a function of the form $\frac{P(x)}{Q(x)}$, where $P(x)$ and $Q(x)$ are polynomials and $Q(x) \neq 0$. In Calculus 2, one major goal is to find antiderivatives of these functions, meaning we want to compute $\int \frac{P(x)}{Q(x)}\,dx$. Some rational functions are easy to integrate right away, but many are not. For example, $\int \frac{1}{x^2-1}\,dx$ does not match a basic power rule or substitution pattern directly. That is where partial fractions become useful πŸ”§.

The main strategy is to rewrite a rational function into a sum of simpler fractions. Those simpler pieces often look like $\frac{A}{x-a}$ or $\frac{Ax+B}{x^2+bx+c}$, and each one can be integrated using standard formulas. This connects directly to the broader topic of partial fractions because integration is one of the most common reasons to decompose rational functions.

Before using partial fractions, a key check is whether the rational function is proper. A rational function is proper if the degree of the numerator is less than the degree of the denominator. If the numerator degree is greater than or equal to the denominator degree, long division must be used first. For example, $\frac{x^2+1}{x-1}$ is not proper, so we divide first. But $\frac{1}{x^2-1}$ is proper, so partial fractions can be used immediately.

The basic partial fractions idea

The partial fractions method works because a product in the denominator can be split into a sum of simpler fractions. The exact form depends on the factors in $Q(x)$.

If the denominator contains distinct linear factors such as $(x-2)(x+3)$, then we write

$$

$\frac{1}{(x-2)(x+3)} = \frac{A}{x-2} + \frac{B}{x+3}.$

$$

If the denominator contains a repeated linear factor such as $(x-1)^2$, then we need one term for each power:

$$

$\frac{1}{(x-1)^2} = \frac{A}{x-1} + \frac{B}{(x-1)^2}.$

$$

If the denominator contains an irreducible quadratic factor such as $x^2+1$, then the numerator must be linear:

$$

$\frac{1}{x^2+1} \text{ stays as } \frac{Ax+B}{x^2+1}.$

$$

If that quadratic factor is repeated, say $(x^2+1)^2$, then we include terms for each power:

$$

$\frac{1}{(x^2+1)^2} = \frac{Ax+B}{x^2+1} + \frac{Cx+D}{(x^2+1)^2}.$

$$

Why does this help with integration? Because each term is easier to integrate than the original fraction. Linear factors give logarithms, and irreducible quadratics often lead to a combination of logarithms and arctangent functions.

Integrating fractions with linear factors

Let’s look at a classic example:

$$

$\int \frac{1}{x^2-1}\,dx.$

$$

First, factor the denominator:

$$

$ x^2-1=(x-1)(x+1).$

$$

Now write the partial fraction form:

$$

$\frac{1}{x^2-1}=\frac{A}{x-1}+\frac{B}{x+1}.$

$$

Multiply both sides by $(x-1)(x+1)$:

$$

$1=A(x+1)+B(x-1).$

$$

To find $A$ and $B$, choose convenient values of $x$. If $x=1$, then $1=2A$, so $A=\frac{1}{2}$. If $x=-1$, then $1=-2B$, so $B=-\frac{1}{2}$. Therefore,

$$

$\frac{1}{x^2-1}=\frac{1}{2(x-1)}-\frac{1}{2(x+1)}.$

$$

Now integrate term by term:

$$

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

$= \frac{1}{2}\int \frac{1}{x-1}\,dx - \frac{1}{2}\int \frac{1}{x+1}\,dx.$

$$

Using the logarithm rule,

$$

$\int \frac{1}{x-a}\,dx = \ln|x-a| + C,$

$$

we get

$$

$\int$ $\frac{1}{x^2-1}$\,dx = $\frac{1}{2}$$\ln|$x-1| - $\frac{1}{2}$$\ln|$x+1| + C.

$$

This can also be combined into one logarithm:

$$

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

$$

This example shows the whole process: factor, decompose, solve for constants, then integrate each piece βœ….

Repeated factors and why they matter

Repeated factors require extra care. Suppose we want to integrate

$$

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

$$

Because $(x-2)^2$ is a repeated linear factor, the decomposition must include both powers:

$$

$\frac{1}{(x-2)^2(x+1)}$ = $\frac{A}{x-2}$ + $\frac{B}{(x-2)^2}$ + $\frac{C}{x+1}$.

$$

After multiplying by $(x-2)^2(x+1)$, we get

$$

1 = A(x-2)(x+1) + B(x+1) + C(x-2)^2.

$$

This equation can be solved by plugging in convenient $x$ values or by comparing coefficients. The important fact is that the repeated factor creates multiple terms, one for each power. This is not just a technical detail; it is what makes the decomposition complete.

Once the decomposition is found, integration is straightforward. Terms like $\frac{A}{x-2}$ integrate to logarithms, while terms like $\frac{B}{(x-2)^2}$ use the power rule:

$$

$\int (x-a)^{-2}\,dx = -(x-a)^{-1}+C.$

$$

That means repeated factors often produce a mix of logarithmic and rational antiderivatives.

Irreducible quadratic factors

Not every denominator can be factored into real linear terms. For example, $x^2+1$ is irreducible over the real numbers because it has no real roots. When such a quadratic appears in the denominator, the partial fraction term must have a linear numerator:

$$

$\frac{Ax+B}{x^2+1}.$

$$

Why linear? Because the numerator must be one degree less than the quadratic denominator. If the quadratic is repeated, like $(x^2+1)^2$, then the decomposition becomes

$$

$\frac{Ax+B}{x^2+1} + \frac{Cx+D}{(x^2+1)^2}.$

$$

These terms are handled by splitting the numerator so that one part matches the derivative of the denominator. For example, in

$$

$\int \frac{2x}{x^2+1}\,dx,$

$$

the numerator $2x$ is exactly the derivative of $x^2+1$. This suggests substitution $u=x^2+1$, giving

$$

$\int \frac{2x}{x^2+1}\,dx = \ln(x^2+1)+C.$

$$

If the numerator is not a derivative match, we can separate it. For example,

$$

$\int$ $\frac{x+1}{x^2+1}$\,dx = $\int$ $\frac{x}{x^2+1}$\,dx + $\int$ $\frac{1}{x^2+1}$\,dx.

$$

The first term uses substitution, and the second uses the arctangent formula

$$

$\int \frac{1}{1+x^2}\,dx = \arctan(x)+C.$

$$

So irreducible quadratics often lead to a combination of logarithms and inverse tangent functions.

A full integration example

Let’s integrate

$$

$\int \frac{3x+5}{x^2-x-2}\,dx.$

$$

First factor the denominator:

$$

$ x^2-x-2=(x-2)(x+1).$

$$

Now decompose:

$$

$\frac{3x+5}{(x-2)(x+1)} = \frac{A}{x-2}+\frac{B}{x+1}.$

$$

Multiply through:

$$

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

$$

Set $x=2$:

$$

$11=3A \quad \Rightarrow \quad A=\frac{11}{3}.$

$$

Set $x=-1$:

$$

$2=-3B \quad \Rightarrow \quad B=-\frac{2}{3}.$

$$

So

$$

$\frac{3x+5}{x^2-x-2}=\frac{11}{3(x-2)}-\frac{2}{3(x+1)}.$

$$

Now integrate:

$$

$\int$ $\frac{3x+5}{x^2-x-2}$\,dx = $\frac{11}{3}$$\ln|$x-2| - $\frac{2}{3}$$\ln|$x+1| + C.

$$

This example shows the standard workflow used again and again in Calculus 2.

How to recognize and solve problems efficiently

When students sees a rational function integral, a useful checklist is:

  1. Check whether the fraction is proper.
  2. Factor the denominator as much as possible over the real numbers.
  3. Write the correct partial fraction form.
  4. Solve for the unknown constants.
  5. Integrate each term using logarithms, power rules, substitution, or arctangent.

A common shortcut is the cover-up method for distinct linear factors, which can quickly find coefficients in some cases. For more complicated denominators, comparing coefficients is reliable and always works. Either way, the decomposition must be correct before integration begins.

This topic is important because it combines algebra and calculus. The algebra step breaks the function into manageable pieces, and the calculus step turns those pieces into antiderivatives. That is why rational function integration is a central skill in Partial Fractions.

Conclusion

Rational function integration is one of the most important uses of partial fractions in Calculus 2 🌟. The method works by rewriting a rational function as a sum of simpler fractions, especially when the denominator factors into linear terms, repeated factors, or irreducible quadratics. Linear factors typically lead to logarithms, repeated factors require one term per power, and irreducible quadratics often produce logarithms and arctangent functions. students, if you remember the factor, decompose, integrate pattern, you will be ready for many integrals in this topic.

Study Notes

  • A rational function has the form $\frac{P(x)}{Q(x)}$.
  • If $\deg(P) \geq \deg(Q)$, use long division first.
  • For distinct linear factors, use terms like $\frac{A}{x-a}$.
  • For repeated linear factors, include a term for each power, such as $\frac{A}{x-a}+\frac{B}{(x-a)^2}$.
  • For irreducible quadratics, use a linear numerator like $\frac{Ax+B}{x^2+bx+c}$.
  • For repeated irreducible quadratics, include a term for each power.
  • Integrals of $\frac{1}{x-a}$ give logarithms: $\ln|x-a|+C$.
  • Integrals of $\frac{1}{1+x^2}$ give arctangent: $\arctan(x)+C$.
  • After decomposition, integrate term by term.
  • Rational function integration is a major application of partial fractions in Calculus 2.

Practice Quiz

5 questions to test your understanding