Skip to main content
\(\newcommand{\dollar}{\$} \DeclareMathOperator{\erf}{erf} \DeclareMathOperator{\arctanh}{arctanh} \newcommand{\lt}{<} \newcommand{\gt}{>} \newcommand{\amp}{&} \)

Section5.7The Method of Partial Fractions

Motivating Questions
  • How does the method of partial fractions enable many rational functions to be antidifferentiated?

  • How to use the method of partial fractions to decompose a rational function into a sum of terms.

So far, we've learned two integration techniques: \(u\)-substitution and integration by parts. The former is used to reverse the chain rule, while the latter is used to reverse the product rule. But we have seen that each works only in specialized circumstances. For example, while \(\int \frac{2x+4}{x^2+4x+13} \, dx\) may be evaluated by \(u\)-substitution and \(\int x e^x \, dx\) by integration by parts, neither method provides a route to evaluate \(\int \frac{1}{x^2+4x+13} \, dx\text{.}\)

In the following two sections, we'll study two more integration techniques: the method of partial fractions and trigonometric substitution. Before introducing them, we'll walk through an example to help build intuition about the techniques we've already learned, and where they might fall short.

Example5.54

For each of the indefinite integrals below, decide whether the integral can be evaluated using \(u\)-substitution, integration by parts, a combination of the two, or neither. For integrals for which your answer is affirmative, state the substitution(s) you would use. It is not necessary to actually evaluate any of the integrals completely, unless the integral can be evaluated immediately using a familiar basic antiderivative.

  1. \(\int x^2 \sin(x^3) \, dx\text{,}\) \(\int x^2 \sin(x) \, dx\text{,}\) \(\int \sin(x^3) \, dx\text{,}\) \(\int x^5 \sin(x^3) \, dx\)

  2. \(\int \frac{1}{1+x^2} \, dx\text{,}\) \(\int \frac{x}{1+x^2} \, dx\text{,}\) \(\int \frac{2x+3}{1+x^2} \, dx\text{,}\) \(\int \frac{e^x}{1+(e^x)^2} \, dx\text{,}\)

  3. \(\int x \ln(x) \, dx\text{,}\) \(\int \frac{\ln(x)}{x} \, dx\text{,}\) \(\int \ln(1+x^2) \, dx\text{,}\) \(\int x\ln(1+x^2) \, dx\text{,}\)

  4. \(\int x \sqrt{1-x^2} \, dx\text{,}\) \(\int \frac{1}{\sqrt{1-x^2}} \, dx\text{,}\) \(\int \frac{x}{\sqrt{1-x^2}}\, dx\text{,}\) \(\int \frac{1}{x\sqrt{1-x^2}} \, dx\text{,}\)

Solution
  1. The first integral may be solved by substitution using \(u = x^3 \ , du = 3x^2 \, dx \text{.}\) The second may be solved using IBP with \(u = x^2 \ , dv = \sin(x) \, dx \) The third can not be solved using substitution or IBP. The last one can be solve using a combination. First do a substitution with \(w = x^3 \ , dw = 3x^2 \, dx \) to convert the integral to \(\frac{1}{3} \int w \sin(w) \, dw \text{.}\) This may be solved using IBP with \(u = w \) and \(dv = \sin(w) \, dw. \)

  2. The first integral can be evaluated by following Table5.16 which has antiderivatives of some basic functions. The second integral can be solved using the \(u \)-substitution \(u=1+x^2 \ , du=2x \, dx \text{.}\) This transforms the integral to \(\frac{1}{2} \int \frac{1}{u} \, du \text{.}\) The third integral requires algebraic manipulation before you can successfully use a substitution. We can evaluate \(\int \frac{2x+3}{1+x^2} \, dx \) by recognizing that \(\frac{2x+3}{1+x^2} =\frac{2x}{1+x^2} + \frac{3}{1+x^2}\) so we can split the original integral into two integrals. Then, evaluate \(\int \frac{2x}{1+x^2} \, dx \) with the substitution \(u=1+x^2 \ , du=2x \, dx \) and evaluate \(\int \frac{3}{1+x^2} \, dx \) by following Table5.16. The fourth integral can be found by using the substitution \(u=e^x \ , du=e^x \, dx \) which transforms the integral to \(\int \frac{1}{1+u^2} \, du \text{.}\) The antiderivative of \(\frac{1}{1+u^2} \, du \) is in Table5.16.

  3. The first integral can be evaluated by using integration by parts with \(u= \ln(x) \) and \(dv=x \, dx \text{.}\) The second integral is evaluated by using the substitution \(u=\ln(x) \ , du= \frac{1}{x} \, dx \text{.}\) The third integral cannot be solved by only using the methods of integration by parts or substitution. In fact, one solution to evaluate it involves first using integration by parts then using a method called partial fractions. The fourth integral can be evaluated by using both a substitution and integration by parts. First, perform the substitution \(w=1+x^2 \ , dw= 2x \, dx \) which transforms the integral to \(\frac{1}{2} \int \ln(w) \, dw \text{.}\) Integration by parts can be used to evaluate this with \(u=\ln(w) \) and \(dv=dx \text{.}\)

  4. The first integral can be found by using the substitution \(u=1-x^2 \ , du=-2x \, dx \text{.}\) The second integral can be evaluated by following Table5.16. The third integral can be evaluated by using the substitution \(u=1-x^2 \ , du=-2x\, dx \text{.}\) The fourth integral cannot be solved with standard substitution, integration by parts, or a combination of both. We will need a new style of substitution called trigonometric substitution which will be discussed in this section.

SubsectionThe Method of Partial Fractions

The method of partial fractions is used to integrate rational functions, which are functions that can we written as a quotient of polynomials.

For example, the function \(f(x) = \frac{1}{x(x-1)} \) is the quotient of the polynomial funtions \(p(x) = 1 \) and \(q(x)=x(x-1) \text{.}\) While it is not immediately clear how to compute \(\int \frac{1}{x(x-1)} \, dx \) as written, it turns out that a simple algebraic maneuver will make the task much simpler. In particular, before attempting to integrate we rewrite the integrand as

\begin{equation*} \frac{1}{x(x-1)} = \frac{1}{x}-\frac{1}{x-1}\text{.} \end{equation*}

One can check that this equality holds by finding a common denominator for the right-hand side and simplifying. The integral can then be calculated as

\begin{equation*} \int \frac{1}{x(x-1)}dx= \int\frac{1}{x}dx - \int \frac{1}{x-1}dx = \ln|x|-\ln|x-1|+C\text{.} \end{equation*}

The expression \(\frac{1}{x}-\frac{1}{x-1}\) is a partial fraction decomposition of \(\frac{1}{x(x-1)} \text{.}\)

A partial fraction decomposition can be thought of as reversing the process of finding a common denominator. Thus, the method is applicable when the denominator of a rational function can be factored into smaller degree polynomials. In the examples that follow, we'll demonstrate how to find more complicated partial fraction decompositions and use them to integrate rational functions.

Example5.55

Evaluate

\begin{equation*} \int \frac{5x}{x^2-x-2} \, dx\text{.} \end{equation*}
Solution

If we factor the denominator of the integrand, we can see how \(\frac{5x}{x^2-x-2}=\frac{5x}{(x-2)(x+1)}\) might be the sum of two fractions of the form \(\frac{A}{x-2} + \frac{B}{x+1}\text{,}\) so we suppose that

\begin{equation} \frac{5x}{(x-2)(x+1)} = \frac{A}{x-2} + \frac{B}{x+1}\label{E-PF-1}\tag{5.11} \end{equation}

and look for the constants \(A\) and \(B\text{.}\)

Multiplying both sides of this equation by the denominator of the left hand side, \((x-2)(x+1)\text{,}\) we find that

\begin{equation*} 5x = A(x+1) + B(x-2)\text{.} \end{equation*}

To find \(A \) and \(B\text{,}\) we will rearrange the right hand side of the equation so that similar terms are grouped.

\begin{align*} 5x&=Ax+ A + Bx -2B \\ 5x+0&=(A+B)x + (A-2B) \end{align*}

Notice that if this equation is going to hold, then the coefficients for \(x \) on each side of the equation need to match, and we need the constant terms on each side of the equation to match. This gives us the following system of equations:

\begin{equation*} 5=A+B \, \text{ and } \, 0=A-2B \end{equation*}

We find that \(A=\frac{10}{3} \) and \(B=\frac{5}{3} \text{.}\) Thus, using Equation(5.11), we can rewrite the original integral as

\begin{equation*} \int \frac{5x}{x^2-x-2} \, dx = \int \frac{10/3}{x-2} + \frac{5/3}{x+1} \, dx\text{.} \end{equation*}

This integral can be evaluated by using the fact that \(\int \frac{1}{u} \, du =\ln|u| + C \) and by using substitutions, and hence we find that

\begin{equation*} \int \frac{5x}{x^2-x-2} \, dx = \frac{10}{3} \ln|x-2| + \frac{5}{3}\ln|x+1| + C\text{.} \end{equation*}
Example5.56

Evaluate

\begin{equation*} \int \frac{2x^2+5}{x^3-2x^2+x} \, dx \text{.} \end{equation*}
Solution

If we factor the denominator of the integrand, we can see that \(\frac{2x^2+5}{x^3-2x^2+x} = \frac{2x^2+5}{x(x-1)^2} \text{.}\) Notice that the factor \((x-1)\) shows up twice in the denominator. We call \((x-1)^2 \) a repeated linear root. The repeated linear root slightly changes our partial fraction decomposition. \(\frac{2x^2+5}{x(x-1)^2} \) can be decomposed into the sum of fractions \(\frac{A}{x}+ \frac{B}{x-1}+\frac{C}{(x-1)^2}\text{.}\) We need both \(\frac{B}{x-1} \) and \(\frac{C}{(x-1)^2} \) since both \(x-1 \) and \((x-1)^2 \) divide \(x(x-1)^2 \text{.}\) Suppose

\begin{equation} \frac{2x^2+5}{x(x-1)^2}= \frac{A}{x}+ \frac{B}{x-1} + \frac{C}{(x-1)^2} \label{E-PF-2}\tag{5.12} \end{equation}

and look for constants \(A \text{,}\) \(B\text{,}\) and \(C\text{.}\)

Multiplying both sides of this equation by the denominator of the left hand side, \(x(x-1)^2 \text{,}\) we find that

\begin{equation*} 2x^2+5=A(x-1)^2 + B x (x-1) + Cx \end{equation*}

To find \(A \text{,}\) \(B \text{,}\) and \(C \text{,}\) we will rearrange the right hand side of the equation so that similar terms are grouped.

\begin{align*} 2x^2+5&= A(x^2-2x+1) + B(x^2-x) + Cx \\ 2x^2+0x + 5&= (A+B)x^2 + (-2A-B+C)x + A \end{align*}

Like the previous example, we need the coefficients for \(x^2 \) to be the same on each side of the equation, the coeffiecients for \(x \) to be the same on each side of the equation, and the constant terms to be the same on each side of the equation. Thus, we obtain the system of equations

\begin{equation*} A+B=2 \ , -2A-B+C=0 \ , \text{ and } A=5. \end{equation*}

We find that \(A=5 \text{,}\) \(B=-3 \text{,}\) and \(C=7 \text{.}\) Thus, using Equation(5.12), we can rewrite the original integral as

\begin{equation*} \int \frac{2x^2+5}{x(x-1)^2} \, dx=\int \frac{5}{x}- \frac{3}{x-1} + \frac{7}{(x-1)^2} \, dx \end{equation*}

This integral can be evaluated by using the fact that \(\int \frac{1}{u} \, du =\ln|u|+C\) and by using appropriate substitutions, and hence we find that

\begin{align*} \int \frac{2x^2+5}{x(x-1)^2} \, dx&=\int \frac{5}{x} \, dx - 3 \int \frac{1}{x-1} \, dx + 7 \int (x-2)^{-2} \, dx \\ &=5 \ln|x| -3 \ln|x-1| - 7 (x-1)^{-1} + C \end{align*}
Example5.57

Evaluate

\begin{equation*} \int \frac{3x^2-1}{(x^2+2x+3)(x-2)} \, dx \text{.} \end{equation*}
Solution

The denominator of the integrand is already factored, and the quadratic polynomial \(x^2 + 2x + 3 \) cannot be factored anymore. We call this factor an irreducible quadratic factor. The irreducible quadratic factor slightly changes our partial fraction decomposition. \(\frac{3x^2-1}{(x^2+2x+3)(x-2)} \) can be decomposed into the sum of fractions \(\frac{Ax+B}{x^2+2x+3}+ \frac{C}{x-2}\text{.}\) We need the term \(\frac{Ax+B}{x^2+2x+3} \) to include all possibilities where the degree of the numerator is less than the degree of the denominator. Suppose

\begin{equation} \frac{3x^2-1}{(x^2+2x+3)(x-2)}=\frac{Ax+B}{x^2+2x+3}+ \frac{C}{x-2} \label{E-PF-3}\tag{5.13} \end{equation}

and look for constants \(A \text{,}\) \(B\text{,}\) and \(C\text{.}\)

Multiplying both sides of this equation by the denominator of the left hand side, \((x^2+2x+3)(x-2) \text{,}\) we find that

\begin{equation*} 3x^2-1= (Ax+B)(x-2)+ C(x^2+2x+3) \end{equation*}

To find \(A \text{,}\) \(B \text{,}\) and \(C \text{,}\) we will rearrange the right hand side of the equation so that similar terms are grouped.

\begin{align*} 3x^2-1&= Ax^2-2Ax + Bx -2B + Cx^2 + 2Cx + 3C \\ 3x^2+0x-1&= (A+C)x^2 + (-2A+B-2C)x + (-2B+3C) \end{align*}

Like the first example, we need the coefficients for \(x^2 \) to be the same on each side of the equation, the coeffiecients for \(x \) to be the same on each side of the equation, and the constant terms to be the same on each side of the equation. Thus, we obtain the system of equations

\begin{equation*} A+C=3 \ , -2A+B-2C=0 \ , \text{ and } -2B+3C=-1. \end{equation*}

We find that \(A=2 \text{,}\) \(B=2 \text{,}\) and \(C=1 \text{.}\) Thus, using Equation(5.13), we can rewrite the original integral as

\begin{equation*} \int \frac{3x^2-1}{(x^2+2x+3)(x-2)} \, dx=\int \frac{2x+2}{x^2+2x+3} + \frac{1}{x-2} \, dx \end{equation*}

This integral can be evaluated by using the fact that \(\int \frac{1}{u} \, du =\ln|u|+C\) and by using appropriate substitutions, and hence we find that

\begin{align*} \int \frac{3x^2-1}{(x^2+2x+3)(x-2)} \, dx &= \int \frac{2x+2}{x^2+2x+3} \, dx + \int \frac{1}{x-2} \, dx \\ &=\ln|x^2+2x+3| + \ln|x-2|+C \end{align*}
Example5.58

Evaluate

\begin{equation*} \int \frac{-3x^3+9x^2-9x+7}{-x^2+3x-2} \, dx. \end{equation*}
Solution

Before decomposing the integrand into partial fractions, we need to perform polynomial long division because the degree of the numerator, \(3\text{,}\) is greater than the degree of the denominator, \(2\text{.}\) We need to do this because partial fraction decompsition leads to a sum of rational functions where the degree of the numerator is less than the degree of the denominator.

After completing polynomial long division, we find that

\begin{equation*} \frac{-3x^3+9x^2-9x+7}{-x^2+3x-2} = 3x + \frac{7-3x}{-x^2+3x-2} \, , \end{equation*}

hence, we can change the original integral

\begin{equation} \int \frac{-3x^3+9x^2-9x+7}{-x^2+3x-2} \, dx = \int 3x \, dx + \int \frac{7-3x}{-x^2+3x-2} \, dx\label{E-PF-4}\tag{5.14} \end{equation}

We'll proceed by using the method of partial fraction decomposition on the integrand \(\frac{7-3x}{-x^2+3x-2} \text{.}\)

Notice that the denominator factors as \(-x^2+3x-2= (x-1)(2-x) \text{,}\) so we'll suppose the integrand decomposes as

\begin{equation*} \frac{7-3x}{(x-1)(2-x)}= \frac{A}{x-1}+ \frac{B}{2-x} \end{equation*}

and we'll look for constants \(A \) and \(B \text{.}\)

Multiplying both sides of the equation by the denominator of the left hand side, \((x-1)(2-x)\text{,}\) we find that

\begin{equation*} 7-3x = A(2-x) + B(x-1) \end{equation*}

To find \(A\) and \(B\text{,}\) we will rearrange the right hand side of the equation so that similar terms are grouped.

\begin{align*} 7-3x&=2A-Ax+Bx-B \\ 7-3x&=(B-A)x+(2A-B) \end{align*}

To make sure the coefficients of \(x\) match on each side of the equation and that the constant terms are the same on each side of the equation, we obtain the following system of equations:

\begin{equation*} -3=B-A \text{ and } 7=2A-B \end{equation*}

We find that \(A=4 \) and \(B=1 \text{.}\) Thus, using Equation(5.14), we can rewrite the original integral as

\begin{align*} \int \frac{-3x^3+9x^2-9x+7}{-x^2+3x-2} \, dx &= \int 3x \, dx + \int \frac{7-3x}{-x^2+3x-2} \, dx \\ &= \int 3x \, dx + \int \frac{4}{x-1} + \frac{1}{2-x} \, dx \end{align*}

These integrals can be evaluated by using the antidifferentiation rules from Table5.16 and using appropriate substitutions, and hence we find that

\begin{align*} \int \frac{-3x^3+9x^2-9x+7}{-x^2+3x-2} \, dx &= \int 3x \, dx + \int \frac{4}{x-1}\, dx + \int \frac{1}{2-x} \, dx\\ &=\frac{3}{2}x^2 + 4\ln|x-1| - \ln|2-x|+C \end{align*}

Now that we've seen some examples, we give a general description of the method of partial fractions.

Method of Partial Fraction Decomposition for a Rational Function \(R(x)=\frac{P(x)}{Q(x)} \)

Note: This method works best on rational functions when \(Q(x)\) can be factored into linear and irreducible quadratic terms.

  • If the degree of \(P(x) \) is greater than or equal to the degree \(Q(x) \text{,}\) then perform polynomial long division to calculate \(\frac{P(x)}{Q(x)}\text{,}\) else move on to the next step. The result gives a new way to write \(R(x)\text{.}\) We know that \(R(x)= S(x)+ \frac{P_2(x)}{Q(x)} \) where \(S(x) \) is the quotient of the polynomial long division and \(P_2 (x) \) is the remainder of the polynomial long division. Now the degree of \(P_2(x) \) is less than the degree of \(Q(x) \text{,}\) so follow the remaining steps to decompose \(\frac{P_2(x)}{Q(x)}\) .

  • If the degree of \(P(x) \) is less than the degree of \(Q(x)\text{,}\) then factor \(Q(x) \) and add a partial fraction for the decomposition based on the following rules:

    • For each distinct linear factor \((x-c)\) of \(Q(x) \text{,}\) add

      \begin{equation*} \frac{A}{x-c}. \end{equation*}
    • For each repeated linear factor \((x-c)^n\) of \(Q(x)\) where \(n \) is a positive whole number, add

      \begin{equation*} \frac{A_1}{x-c} + \frac{A_2}{(x-c)^2} + \cdots + \frac{A_n}{(x-c)^n}. \end{equation*}
    • For each irreducible quadratic factor \(t(x) \) of \(Q(x) \text{,}\) add

      \begin{equation*} \frac{Ax+B}{t(x)}. \end{equation*}
    • For each repeated irreducible quadratic factor \(t(x)^n \) of \(Q(x) \) where \(n \) is a positive whole number, add

      \begin{equation*} \frac{A_1x+B_1}{t(x)} + \frac{A_2x+B_2}{t(x)^2} + \cdots + \frac{A_nx+B_n}{t(x)^n}. \end{equation*}

    Now algebraically solve for the value of the constants \(A_1, A_2,..., B_1, B_2,...\) and integrate each piece separately.

The smaller blocks that \(R(x) \) is broken into often lead to more manageable antidifferentiation. For example if \(A \) and \(k \) are real numbers, then \(\int \frac{A}{x-k} \, dx = A \ln |x-k| + C\) by using the substitution \(u=x-k \text{.}\) We also know the antiderivative of other common partial fractions like \(\int \frac{A}{x^2+1} \, dx= A \arctan(x) + C \text{.}\)

Example5.59

For each of the following problems, evaluate the integral by finding the partial fraction decomposition of each integrand.

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

    Hint

    The partial fraction decomposition of the integrand has the form

    \begin{equation*} \frac{1}{x^2-2x-3}=\frac{A}{x-3}+\frac{B}{x+1}\text{.} \end{equation*}
    Answer
    \begin{equation*} \int \frac{1}{x^2 - 2x - 3} \, dx = \frac{1}{4}\ln|x-3| - \frac{1}{4}\ln|x+1| + C\text{.} \end{equation*}
    Solution

    To use partial fraction decomposition on the integrand, we'll assume that

    \begin{equation*} \frac{1}{x^2-2x-2}=\frac{1}{(x-3)(x+1)}=\frac{A}{x-3}+ \frac{B}{x+1} \end{equation*}

    To solve for \(A \) and \(B\text{,}\) we'll multiply both sides of the equation by the denominator of the left side of the equation and rearrange like the earlier exmaples. We'll have the following sequence of steps:

    \begin{align*} 1&=A(x+1) + B(x-3) \\ 1&=(A+B)x + (A-3B) \end{align*}

    We know that

    \begin{equation*} A+B=0 \, \text{ and } A-3B=1, \end{equation*}

    so \(A=1/4 \) and \(B=-1/4 \text{.}\) This implies that

    \begin{align*} \int \frac{1}{x^2 - 2x - 3} \, dx &= \int \frac{1/4}{x-3} - \frac{1/4}{x+1} \, dx \\ & = \frac{1}{4}\ln|x-3| - \frac{1}{4}\ln|x+1| + C \end{align*}
  2. \(\int \frac{x^2+1}{x^3 - x^2} \, dx\)

    Hint

    The partial fraction decomposition of the integrand has the form

    \begin{equation*} \frac{x^2+1}{x^3-x^2}=\frac{A}{x} + \frac{B}{x^2} + \frac{C}{x-1} \end{equation*}
    Answer
    \begin{equation*} \int \frac{x^2+1}{x^3 - x^2} \, dx = -\ln|x| + x^{-1} + 2\ln|x-1| + C\text{.} \end{equation*}
    Solution

    To use partial fraction decomposition on the integrand, we'll assume that

    \begin{equation*} \frac{x^2+1}{x^3-x^2}=\frac{x^2+1}{x^2(x-1)}=\frac{A}{x}+ \frac{B}{x^2}+ \frac{C}{x-1} \end{equation*}

    To solve for \(A \text{,}\) \(B\text{,}\) and \(C \text{,}\) we'll multiply both sides of the equation by the denominator of the left side of the equation and rearrange like the earlier exmaples. We'll have the following sequence of steps:

    \begin{align*} x^2+1&=Ax(x-1) + B(x-1) + Cx^2 \\ x^2+0x+1&=(A+C)x^2 +(B-A)x+ (-B) \end{align*}

    We know that

    \begin{equation*} A+C=1 \ , B-A=0 \ , \text{ and } -B=1, \end{equation*}

    so \(A=-1 \text{,}\) \(B=-1\text{,}\) and \(C=2\text{.}\) This implies that

    \begin{align*} \int \frac{x^2+1}{x^3 - x^2} \, dx &= \int\left(-\frac{1}{x} - \frac{1}{x^2} + \frac{2}{x-1} \right) \, dx \\ &= -\ln|x| + x^{-1} + 2\ln|x-1| + C \end{align*}
  3. \(\int \frac{x-2}{x^4 + x^2}\, dx\)

    Hint

    The partial fraction decomposition of the integrand has the form

    \begin{equation*} \frac{x-2}{x^4+x^2}=\frac{A}{x} + \frac{B}{x^2} + \frac{Cx+D}{x^2+1} \end{equation*}
    Answer
    \begin{equation*} \int \frac{x-2}{x^4 + x^2}\, dx = \ln|x| + 2x^{-1} - \frac{1}{2} \ln|1+x^2| + 2\arctan(x) + C\text{.} \end{equation*}
    Solution

    To use partial fraction decomposition on the integrand, we'll assume that

    \begin{equation*} \frac{x-2}{x^4+x^2}=\frac{x-2}{x^2(x^2+1)}=\frac{A}{x}+ \frac{B}{x^2} + \frac{Cx+D}{x^2+1} \end{equation*}

    To solve for \(A \text{,}\) \(B\text{,}\) \(C\text{,}\) and \(D\text{,}\) we'll multiply both sides of the equation by the denominator of the left side of the equation and rearrange like the earlier exmaples. We'll have the following sequence of steps:

    \begin{align*} x-2&=Ax(x^2+1) + B(x^2+1) + (Cx+D)x^2 \\ x-2&=(A+C)x^3 + (B+D)x^2 + Ax+ B \end{align*}

    We know that

    \begin{equation*} A+C=0 \ , B+D=0 \ , A=1 \text{ and } B=-2, \end{equation*}

    so \(A=1 \text{,}\) \(B=-2 \text{,}\) \(C=-1\text{,}\) and \(D=2\text{.}\) Observing that \(\frac{-x+2}{1+x^2} = \frac{-x}{1+x^2}+\frac{2}{1+x^2}\text{,}\) it now follows that

    \begin{equation*} \int \frac{x-2}{x^4 + x^2}\, dx = \int \frac{1}{x} - \frac{2}{x^2} - \frac{x}{1+x^2} + \frac{2}{1+x^2} \, dx\text{.} \end{equation*}

    Noting that \(\int \frac{x}{1+x^2} \, dx\) can be evaluated by the \(u\)-substitution \(u=1+x^2\text{,}\) we see that \(\int \frac{x}{1+x^2} \, dx = \frac{1}{2} \ln(1+x^2) + C\text{.}\) Thus

    \begin{align*} \int \frac{x-2}{x^4 + x^2}\, dx &= \int \frac{1}{x} - \frac{2}{x^2} - \frac{x}{1+x^2} + \frac{2}{1+x^2} \, dx \\ &= \ln|x| + 2x^{-1} - \frac{1}{2} \ln(1+x^2) + 2\arctan(x) + C \end{align*}
  4. \(\int \frac{4x^2+x}{2x^2+x-1} \, dx\)

    Hint

    First, use polynomial long division then the partial fraction decomposition of the remainder will have the form \(\frac{A}{2x-1}+\frac{B}{x+1}\text{.}\)

    Answer

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

    Solution

    First, use polynomial long division since the degree of the numerator is the same as the degree of the denominator. We'll find that

    \begin{equation*} \frac{4x^2+x}{2x^2+x-1} = 2 + \frac{2-x}{2x^2+x-1}. \end{equation*}

    To use partial fraction decomposition on the remainder, we'll assume that

    \begin{equation*} \frac{2-x}{2x^2+x-1}=\frac{2-x}{(2x-1)(x+1)}=\frac{A}{2x-1}+ \frac{B}{x+1} \end{equation*}

    To solve for \(A \) and \(B\text{,}\) we'll multiply both sides of the equation by the denominator of the left side of the equation and rearrange like the earlier exmaples. We'll have the following sequence of steps:

    \begin{align*} 2-x&=A(x+1) + B(2x-1) \\ 2-x&=(A+2B)x + (A-B) \end{align*}

    We know that

    \begin{equation*} A+2B=-1 \, \text{ and } A-B=2, \end{equation*}

    so \(A=1 \) and \(B=-1\text{.}\) This implies that

    \begin{align*} \int \frac{4x^2+x}{2x^2+x-1} \, dx &= \int\left(2 + \frac{1}{2x-1} - \frac{1}{x+1} \right) \, dx \\ &= 2x + \frac{1}{2}\ln|2x-1|-\ln|x+1| + C \end{align*}

SubsectionSummary

  • We can antidifferentiate any rational function with the method of partial fractions. Any polynomial function can be factored into a product of linear and irreducible quadratic terms, so any rational function may be written as the sum of:

    1. a polynomial (integrated using the power rule)
    2. rational terms of the form \(\frac{A}{(x-c)^n}\) where \(n\) is a natural number (integrated using the power rule)
    3. and rational terms of the form \(\frac{Bx+C}{t(x)}\) where \(t(x)\) is an irreducible quadratic (integrated using a \(u \)-substitution or a trigonometric substituion)

SubsectionExercises