3.4 Partial Fractions

Learning Objectives

  • Integrate a rational function using the method of partial fractions.
  • Recognize simple linear factors in a rational function.
  • Recognize repeated linear factors in a rational function.
  • Recognize quadratic factors in a rational function.

We have seen some techniques that allow us to integrate specific rational functions. For example, we know that \ds \int \frac{du}{u}=\text{ln}|u|+C\phantom{\rule{0.2em}{0ex}} and, as a consequence,

\ds(*)\ {\int\frac{dx}{ax+b}=\frac1a\ln|ax+b|+C\ (a\ne0)},

since if we let u=ax+b, we have du=adx and hence \ds dx=\frac1a du.

We can also evaluate \ds\int\frac{dx}{x^2+a^2} using a trigonometric substitution. Indeed, if we let

\ds x=a\tan(\theta),\quad\theta\in\left(-\frac{\pi}2,\frac{\pi}2\right)

(the integrand doesn’t have a square root but it still has expression x^2+a^2, for which we used this kind of substitution), then we have that dx=a\sec^2(\theta)d\theta, x^2+a^2=a^2\tan^2(\theta)+a^2=a^2(1+\tan^2(\theta))=a^2\sec^2(\theta), and \ds\theta=\tan^{-1}\left(\frac xa\right).

With this, we obtain:

\ds\int\frac{dx}{x^2+a^2}=\int\frac{a\sec^2(\theta)}{a^2\sec^2(\theta)}d\theta=\int\frac1a\,d\theta=\frac{\theta}a+C=\frac{1}{a}{\text{tan}}^{-1}\left(\frac{x}{a}\right)+C, that is,

\ds (**)\ {\int\frac{dx}{x^2+a^2}=\frac{1}{a}{\text{tan}}^{-1}\left(\frac{x}{a}\right)+C\  (a>0)}\phantom{\boxed{\int\limits_{\frac1x}^{e^x}}}.

Still, we do not yet have a technique that allows us to tackle arbitrary quotients of polynomials. For instance, it is not immediately obvious how to go about evaluating \ds \int \frac{3x}{{x}^{2}-x-2}\,dx . However, by bringing to a common denominator, we can verify that

\ds\frac{3x}{{x}^{2}-x-2}=\frac{1}{x+1}+\frac{2}{x-2},

and using (*) we obtain that

\ds \int \frac{3x}{{x}^{2}-x-2}\,dx=\int \left(\frac{1}{x+1}+\frac{2}{x-2}\right)\,dx =\text{ln}|x+1|+2\phantom{\rule{0.1em}{0ex}}\text{ln}|x-2|+C.

In this section, we examine the method of partial fraction decomposition, which allows us to decompose rational functions into sums of simpler functions that are easier to integrate, as in the above example. In particular, formulas (*) and (**) will become really handy.

The key to the method of partial fraction decomposition is being able to anticipate the form that the decomposition of a rational function will take. As we shall see, this form is both predictable and highly dependent on the factorization of the denominator of the rational function. It is also extremely important to keep in mind that partial fraction decomposition can be applied to a rational function \ds \frac{P\left(x\right)}{Q\left(x\right)} only if \ds \text{deg}\left(P\left(x\right)\right)<\text{deg}\left(Q\left(x\right)\right), where \mathrm{deg}(P(x)) stands for the degree of the polynomial P(x). In the case when \ds \text{deg}\left(P\left(x\right)\right)\ge \text{deg}\left(Q\left(x\right)\right), we must first perform long division to rewrite the quotient \ds \frac{P\left(x\right)}{Q\left(x\right)} in the form \ds A\left(x\right)+\frac{R\left(x\right)}{Q\left(x\right)}, where \ds \text{deg}\left(R\left(x\right)\right)<\text{deg}\left(Q\left(x\right)\right). We then do a partial fraction decomposition on \ds \frac{R\left(x\right)}{Q\left(x\right)}. The following example, although not requiring partial fraction decomposition, illustrates our approach to integrals of rational functions of the form \ds \int \frac{P\left(x\right)}{Q\left(x\right)}\,dx , where \ds \text{deg}\left(P\left(x\right)\right)\ge \text{deg}\left(Q\left(x\right)\right).

Integrating \ds \int \frac{P\left(x\right)}{Q\left(x\right)}\,dx , where \ds \text{deg}\left(P\left(x\right)\right)\ge \text{deg}\left(Q\left(x\right)\right)

Evaluate \ds \int \frac{{x}^{2}+3x+5}{x+1}\,dx .

Solution

Since \ds \text{deg}\left({x}^{2}+3x+5\right)=2>1= \text{deg}\left(x+1\right), we perform long division to obtain

\ds \frac{{x}^{2}+3x+5}{x+1}=x+2+\frac{3}{x+1}.

Thus,

\ds \begin{array}{cc}\ds \hfill \int \frac{{x}^{2}+3x+5}{x+1}\,dx &\ds =\int \left(x+2+\frac{3}{x+1}\right)\,dx \hfill \\[5mm]\ds &\ds =\frac{1}{2}{x}^{2}+2x+3\phantom{\rule{0.1em}{0ex}}\text{ln}|x+1|+C.\hfill \end{array}

Visit Wikipedia to review long division of polynomials.

Evaluate \ds \int \frac{x-3}{x+2}\,dx .

Answer

\ds x-5\phantom{\rule{0.1em}{0ex}}\text{ln}|x+2|+C

Hint

Use long division to obtain \ds \frac{x-3}{x+2}=1-\frac{5}{x+2}.

To integrate \ds \int \frac{P\left(x\right)}{Q\left(x\right)}\,dx , where \ds \text{deg}\left(P\left(x\right)\right)<\text{deg}\left(Q\left(x\right)\right), we must begin by factoring \ds Q\left(x\right).

Nonrepeated Linear Factors

If \ds Q\left(x\right) can be factored as \ds \left({a}_{1}x+{b}_{1}\right)\left({a}_{2}x+{b}_{2}\right)\ldots\left({a}_{n}x+{b}_{n}\right), where each linear factor is distinct and no factor is a constant multiple of another, then it is possible to find constants \ds {A}_{1},{A}_{2},\ldots,\phantom{\rule{0.2em}{0ex}}{A}_{n} satisfying

\ds \frac{P\left(x\right)}{Q\left(x\right)}=\frac{{A}_{1}}{{a}_{1}x+{b}_{1}}+\frac{{A}_{2}}{{a}_{2}x+{b}_{2}}+\cdots +\frac{{A}_{n}}{{a}_{n}x+{b}_{n}}.

The proof that such constants exist is beyond the scope of this course.

In the next example, we see how to use partial fractions to integrate a rational function of this type.

Partial Fractions with Nonrepeated Linear Factors

Evaluate \ds \int \frac{3x+2}{{x}^{3}-{x}^{2}-2x}\,dx .

Solution

Since \ds \text{deg}\left(3x+2\right)=1<3=\text{deg}\left({x}^{3}-{x}^{2}-2x\right), we begin by factoring the denominator of the integrand. We can see that \ds {x}^{3}-{x}^{2}-2x=x\left(x-2\right)\left(x+1\right). Thus, there are constants \ds A, \ds B, and \ds C satisfying

\ds \frac{3x+2}{x\left(x-2\right)\left(x+1\right)}=\frac{A}{x}+\frac{B}{x-2}+\frac{C}{x+1}.

We must now find these constants. To do so, we begin by bringing the right-hand side to a common denominator. We have:

\ds \frac{3x+2}{x\left(x-2\right)\left(x+1\right)}=\frac{A\left(x-2\right)\left(x+1\right)+Bx\left(x+1\right)+Cx\left(x-2\right)}{x\left(x-2\right)\left(x+1\right)}.

Now, we set the numerators equal to each other, obtaining

(1)\ \ \ds 3x+2=A\left(x-2\right)\left(x+1\right)+Bx\left(x+1\right)+Cx\left(x-2\right).

There are two different strategies for finding the coefficients \ds A, \ds B, and \ds C. We refer to these as the method of equating coefficients and the method of strategic substitution.

Method of Equating Coefficients

Expand the right-hand side of (1) and then group the terms by the powers of x to rewrite it as

\ds 3x+2=\left(A+B+C\right){x}^{2}+\left( - A+B-2C\right)x+\left(-2A\right).

Equating coefficients produces the system of equations

\ds \begin{array}{ccc}\hfill A+B+C&\ds =\hfill &\ds 0\hfill \\[3mm]\ds \hfill -A+B-2C&\ds =\hfill &\ds 3\hfill \\[3mm]\ds \hfill -2A&\ds =\hfill &\ds 2.\hfill \end{array}

To solve this system, we first observe that \ds -2A=2\ \to\ A=-1. Substituting this value into the first two equations gives us the system

\ds \begin{array}{ccc}\hfill B+C&\ds =\hfill &\ds 1\hfill \\[3mm]\ds \hfill B-2C&\ds =\hfill &\ds 2.\hfill \end{array}

Multiplying the second equation by \ds -1 and adding the resulting equation to the first produces

\ds -3C=1,

which in turn implies that \ds C=-\frac{1}{3}. Substituting this value into the equation \ds B+C=1 yields \ds B=\frac{4}{3}. Thus, solving these equations yields \ds A=-1, \ds B=\frac{4}{3}, and \ds C=-\frac{1}{3}.

It is important to note that the system produced by this method is consistent, that is, has a solution, if and only if we have set up the decomposition correctly. If the system is inconsistent, there is an error in our decomposition.

Method of Strategic Substitution

The method of strategic substitution is based on the assumption that we have set up the decomposition correctly. If the decomposition is set up correctly, then there must be values of \ds A, \ds B, and \ds C that satisfy (1) for all values of \ds x. That is, this equation must be true for any value of \ds x we care to substitute into it. Therefore, by choosing values of \ds x carefully and substituting them into the equation, we may find \ds A, \ds B, and \ds C easily. For example, if we substitute \ds x=0, the equation reduces to \ds 2=A\left(-2\right)\left(1\right). Solving for \ds A yields \ds A=-1. Next, by substituting \ds x=2, the equation reduces to \ds 8=B\left(2\right)\left(3\right), or equivalently \ds B=\frac43. Last, we substitute \ds x=-1 into the equation and obtain \ds -1=C\left(-1\right)\left(-3\right). Solving, we have \ds C=-\frac{1}{3}.

It is important to keep in mind that if we attempt to use this method with a decomposition that has not been set up correctly, we are still able to find values for the constants, but these constants are meaningless. If we do opt to use the method of strategic substitution, then it is a good idea to check the result by recombining the terms algebraically.

Now that we have the values of \ds A, \ds B, and \ds C, we rewrite the original integral:

\ds \int \frac{3x+2}{{x}^{3}-{x}^{2}-2x}\,dx =\int \left( - \phantom{\rule{0.2em}{0ex}}\frac{1}{x}+\frac{4}{3}\cdot \frac{1}{\left(x-2\right)}-\frac{1}{3}\cdot \frac{1}{\left(x+1\right)}\right)\,dx .

Evaluating the integral gives us

\ds \int \frac{3x+2}{{x}^{3}-{x}^{2}-2x}\,dx = - \text{ln}|x|+\frac{4}{3}\text{ln}|x-2|-\frac{1}{3}\text{ln}|x+1|+C.

In the next example, we integrate a rational function in which the degree of the numerator is not less than the degree of the denominator.

Dividing before Applying Partial Fractions

Evaluate \ds \int \frac{{x}^{2}+3x+1}{{x}^{2}-4}\,dx .

Solution

Since \ds \text{deg}\left({x}^{2}+3x+1\right)=2= \text{deg}\left({x}^{2}-4\right), we must perform long division of polynomials. This results in

\ds \frac{{x}^{2}+3x+1}{{x}^{2}-4}=1+\frac{3x+5}{{x}^{2}-4}.

Next, we perform partial fraction decomposition on

\ds \frac{3x+5}{{x}^{2}-4}=\frac{3x+5}{\left(x+2\right)\left(x-2\right)}.

We have

\ds \frac{3x+5}{\left(x-2\right)\left(x+2\right)}=\frac{A}{x-2}+\frac{B}{x+2}.

Thus,

\ds 3x+5=A\left(x+2\right)+B\left(x-2\right).

Solving for \ds A and \ds B using either method, we obtain \ds A=11\text{/}4 and \ds B=1\text{/}4.

Rewriting the original integral, we have

\ds \int \frac{{x}^{2}+3x+1}{{x}^{2}-4}\,dx =\int \left(1+\frac{11}{4}\cdot \frac{1}{x-2}+\frac{1}{4}\cdot \frac{1}{x+2}\right)\,dx .

Evaluating the integral produces

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

As we will see in the next example, it may be possible to apply the technique of partial fraction decomposition to a nonrational function. The trick is to convert the nonrational function to a rational function through a substitution.

Applying Partial Fractions after a Substitution

Evaluate \ds \int \frac{\text{cos}\phantom{\rule{0.1em}{0ex}}(x)}{{\text{sin}}^{2}(x)-\text{sin}\phantom{\rule{0.1em}{0ex}}(x)}\,dx .

Solution

Let’s begin by letting \ds u=\text{sin}\phantom{\rule{0.1em}{0ex}}(x). Consequently, \ds du=\text{cos}\phantom{\rule{0.1em}{0ex}}(x)\phantom{\rule{0.1em}{0ex}}\,dx . After making these substitutions, we have

\ds \int \frac{\text{cos}\phantom{\rule{0.1em}{0ex}}(x)}{{\text{sin}}^{2}(x)-\text{sin}\phantom{\rule{0.1em}{0ex}}(x)}\,dx =\int \frac{du}{{u}^{2}-u}=\int \frac{du}{u\left(u-1\right)}.

Applying partial fraction decomposition to \ds \frac1{u(u-1)} gives \ds \frac{1}{u\left(u-1\right)}=-\frac{1}{u}+\frac{1}{u-1}.

Therefore,

\ds \begin{array}{cc}\ds \hfill \int \frac{\text{cos}\phantom{\rule{0.1em}{0ex}}(x)}{{\text{sin}}^{2}(x)-\text{sin}\phantom{\rule{0.1em}{0ex}}(x)}\,dx &\ds = - \text{ln}|u|+\text{ln}|u-1|+C\hfill \\[5mm]\ds &\ds = - \text{ln}|\text{sin}\phantom{\rule{0.1em}{0ex}}(x)|+\text{ln}|\text{sin}\phantom{\rule{0.1em}{0ex}}(x)-1|+C.\hfill \end{array}

Evaluate \ds \int \frac{x+1}{\left(x+3\right)\left(x-2\right)}\,dx .

Answer

\ds \frac{2}{5}\text{ln}|x+3|+\frac{3}{5}\text{ln}|x-2|+C

Hint

\ds \frac{x+1}{\left(x+3\right)\left(x-2\right)}=\frac{A}{x+3}+\frac{B}{x-2}

Repeated Linear Factors

For some applications, we need to integrate rational expressions that have denominators with repeated linear factors—that is, there is at least one factor of the form \ds {\left(ax+b\right)}^{n}, where \ds n is a positive integer greater than or equal to \ds 2. If the denominator contains the repeated linear factor \ds {\left(ax+b\right)}^{n}, then the corresponding terms in the decomposition are

\ds \frac{{A}_{1}}{ax+b}+\frac{{A}_{2}}{{\left(ax+b\right)}^{2}}+\cdots +\frac{{A}_{n}}{{\left(ax+b\right)}^{n}}.

As we will see in our next example, the basic technique used for solving for the coefficients is the same, but it requires more algebra to determine the numerators of the partial fractions.

Partial Fractions with Repeated Linear Factors

Evaluate \ds \int \frac{x-2}{{\left(2x-1\right)}^{2}\left(x-1\right)}\,dx .

Solution

We have \ds \text{deg}\left(x-2\right)=1<3=\text{deg}\left({\left(2x-1\right)}^{2}\left(x-1\right)\right), so we can proceed with the decomposition. Since \ds {\left(2x-1\right)}^{2} is a repeated linear factor, the corresponding terms in the decomposition are going to be \ds \frac{A}{2x-1}+\frac{B}{{\left(2x-1\right)}^{2}}, and hence

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

Bringing to a common denominator and equating the numerators, we have

\ds (2)\ \  x-2=A\left(2x-1\right)\left(x-1\right)+B\left(x-1\right)+C{\left(2x-1\right)}^{2}.

We then use the method of equating coefficients to find the values of \ds A, \ds B, and \ds C.

\ds x-2=\left(2A+4C\right){x}^{2}+\left(-3A+B-4C\right)x+\left(A-B+C\right).

Equating coefficients yields \ds 2A+4C=0, \ds -3A+B-4C=1, and \ds A-B+C=-2. Solving this system we obtain that \ds A=2, \ds B=3, and \ds C=-1.

Alternatively, we can use the method of strategic substitution. In this case, substituting \ds x=1 and \ds x=1\text{/}2 into (2) easily produces the values \ds B=3 and \ds C=-1. At this point, it may seem that we have run out of good choices for \ds x, however, since we already have values for \ds B and \ds C, we can substitute in these values and choose any \ds x that we haven’t used yet. The value \ds x=0 is a good option since it’s very easy to substitute. This way, we obtain

\ds -2=A\left(-1\right)\left(-1\right)+3\left(-1\right)+\left(-1\right){\left(-1\right)}^{2}, and solving for A we get \ds A=2.

Now that we have the values for \ds A, \ds B, and \ds C, we rewrite the original integral and evaluate it:

\ds \begin{array}{cc}\ds \hfill \int \frac{x-2}{{\left(2x-1\right)}^{2}\left(x-1\right)}\,dx &\ds =\int \left(\frac{2}{2x-1}+\frac{3}{{\left(2x-1\right)}^{2}}-\frac{1}{x-1}\right)\,dx \hfill \\[5mm]\ds &\ds =\text{ln}|2x-1|-\frac{3}{2\left(2x-1\right)}-\text{ln}|x-1|+C.\hfill \end{array}

To integrate \ds\frac3{(2x-1)^2}, we make a substitution u=2x-1, yielding du=2dx, and then use the power formula to evaluate

\ds\int \frac3{2u^2}du=\frac32\int u^{-2}du.

Set up the partial fraction decomposition for \ds \frac{x+2}{{\left(x+3\right)}^{3}{\left(x-4\right)}^{2}}. (Do not solve for the coefficients or perform integration.)

Answer

\ds \frac{x+2}{{\left(x+3\right)}^{3}{\left(x-4\right)}^{2}}=\frac{A}{x+3}+\frac{B}{{\left(x+3\right)}^{2}}+\frac{C}{{\left(x+3\right)}^{3}}+\frac{D}{\left(x-4\right)}+\frac{E}{{\left(x-4\right)}^{2}}

The General Method

Now that we are beginning to get the idea of how the technique of partial fraction decomposition works, let’s outline the basic method in the following problem-solving strategy.

Problem-Solving Strategy: Partial Fraction Decomposition

To decompose the rational function \ds P\left(x\right)\text{/}Q\left(x\right), use the following steps:

  1. Make sure that \ds \text{deg}\left(P\left(x\right)\right)<\text{deg}\left(Q\left(x\right)\right). If not, perform long division of polynomials.
  2. Factor \ds Q\left(x\right) into the product of linear and irreducible quadratic factors. An irreducible quadratic is a quadratic that has no real zeros.
  3. Assuming that \ds \text{deg}\left(P\left(x\right)\right)<\text{deg}\left(Q\left(x\right)\right), the factors of \ds Q\left(x\right) determine the form of the decomposition of \ds P\left(x\right)\text{/}Q\left(x\right).
    • If \ds Q\left(x\right) can be factored as \ds \left({a}_{1}x+{b}_{1}\right)\left({a}_{2}x+{b}_{2}\right)\text{…}\left({a}_{n}x+{b}_{n}\right), where each linear factor is distinct and no factor is a constant multiple of another, then it is possible to find constants \ds {A}_{1},{A}_{2},...{A}_{n} satisfying
      \ds \frac{P\left(x\right)}{Q\left(x\right)}=\frac{{A}_{1}}{{a}_{1}x+{b}_{1}}+\frac{{A}_{2}}{{a}_{2}x+{b}_{2}}+\cdots +\frac{{A}_{n}}{{a}_{n}x+{b}_{n}}.
    • If \ds Q\left(x\right) contains the repeated linear factor \ds {\left(ax+b\right)}^{n}, then the decomposition must contain
      \ds \frac{{A}_{1}}{ax+b}+\frac{{A}_{2}}{{\left(ax+b\right)}^{2}}+\cdots +\frac{{A}_{n}}{{\left(ax+b\right)}^{n}}.
    • For each irreducible quadratic factor \ds a{x}^{2}+bx+c that \ds Q\left(x\right) contains, the decomposition must include
      \ds \frac{Ax+B}{a{x}^{2}+bx+c}.
    • For each repeated irreducible quadratic factor \ds {\left(a{x}^{2}+bx+c\right)}^{n}, the decomposition must include \ds \frac{{A}_{1}x+{B}_{1}}{a{x}^{2}+bx+c}+\frac{{A}_{2}x+{B}_{2}}{{\left(a{x}^{2}+bx+c\right)}^{2}}+\cdots +\frac{{A}_{n}x+{B}_{n}}{{\left(a{x}^{2}+bx+c\right)}^{n}}.
    • After the appropriate decomposition is determined, solve for the constants.
    • If using the decomposition to evaluate an integral, rewrite the integrand in its decomposed form and evaluate it using previously developed techniques or integration formulas.

Simple Quadratic Factors

Now let’s look at integrating a rational expression in which the denominator contains an irreducible quadratic factor. Recall that the quadratic \ds a{x}^{2}+bx+c is irreducible if \ds a{x}^{2}+bx+c=0 has no real zeros—that is, if \ds {b}^{2}-4ac<0.

Rational Expressions with an Irreducible Quadratic Factor

Evaluate \ds \int \frac{2x-3}{{x}^{3}+x}\,dx .

Solution

Since \ds \text{deg}\left(2x-3\right)=1<3=<\text{deg}\left({x}^{3}+x\right), factor the denominator and proceed with partial fraction decomposition. Because \ds {x}^{3}+x=x\left({x}^{2}+1\right) contains irreducible quadratic factor \ds {x}^{2}+1, include \ds \frac{Ax+B}{{x}^{2}+1} as a part of the decomposition, along with \ds \frac{C}{x} for the linear term \ds x. Thus, the decomposition has the form

\ds \frac{2x-3}{x\left({x}^{2}+1\right)}=\frac{Ax+B}{{x}^{2}+1}+\frac{C}{x}.

After bringing to a common denominator and equating the numerators, we obtain the equation

\ds 2x-3=\left(Ax+B\right)x+C\left({x}^{2}+1\right).

Solving for \ds A,B, and \ds C, we get \ds A=3, \ds B=2, and \ds C=-3.

Therefore,

\ds \frac{2x-3}{{x}^{3}+x}=\frac{3x+2}{{x}^{2}+1}-\frac{3}{x}.

Substituting back into the integral, we obtain

\ds \begin{array}{ccccc}\hfill \ds\int \frac{2x-3}{{x}^{3}+x}\,dx &\ds =\int \left(\frac{3x+2}{{x}^{2}+1}-\frac{3}{x}\right)\,dx \hfill &\ds &\ds &\ds \\[5mm]\ds &\ds =3\int \frac{x}{{x}^{2}+1}\,dx +2\int \frac{1}{{x}^{2}+1}\,dx -3\int \frac{1}{x}\,dx \hfill &\ds &\ds &\ds \text{Split up the integral.}\hfill \\[5mm]\ds &\ds =\frac{3}{2}\text{ln}|{x}^{2}+1|+2\phantom{\rule{0.1em}{0ex}}{\text{tan}}^{-1}x-3\phantom{\rule{0.1em}{0ex}}\text{ln}|x|+C.\hfill &\ds &\ds &\ds \text{Evaluate each integral.}\hfill \end{array}
In order to evaluate \ds\int \frac{x}{x^2+1} dx, we perform a substitution u=x^2+1.

Note: We may rewrite \ds \text{ln}|{x}^{2}+1|=\text{ln}\left({x}^{2}+1\right), if we wish to do so, since \ds {x}^{2}+1\symbol{"3E}0.

Partial Fractions with an Irreducible Quadratic Factor

Evaluate \ds \int \frac{\,dx }{{x}^{3}-8}.

Solution

Since the numerator is 1 and \mathrm{deg}(1)=0<3=\mathrm{deg}(x^3-8), we can proceed with partial fraction decomposition. We start by factoring \ds {x}^{3}-8=\left(x-2\right)\left({x}^{2}+2x+4\right). We see that the quadratic factor \ds {x}^{2}+2x+4 is irreducible since \ds {2}^{2}-4\left(1\right)\left(4\right)=-12<0. Using the decomposition described in the problem-solving strategy, we get

\ds \frac{1}{\left(x-2\right)\left({x}^{2}+2x+4\right)}=\frac{A}{x-2}+\frac{Bx+C}{{x}^{2}+2x+4}.

After bringing to a common denominator and equating the numerators, this becomes

\ds 1=A\left({x}^{2}+2x+4\right)+\left(Bx+C\right)\left(x-2\right).

Applying either method, we get \ds A=\frac{1}{12},B=-\frac{1}{12},\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}C=-\frac{1}{3}.

Rewriting \ds \int \frac{\,dx }{{x}^{3}-8}, we have

\ds \int \frac{\,dx }{{x}^{3}-8}=\frac{1}{12}\int \frac{1}{x-2}\,dx -\frac{1}{12}\int \frac{x+4}{{x}^{2}+2x+4}\,dx .

We can see that

\ds \int \frac{1}{x-2}\,dx =\text{ln}|x-2|+C,

but \ds \int \frac{x+4}{{x}^{2}+2x+4}\,dx requires a bit more effort. Let’s begin by completing the square in \ds {x}^{2}+2x+4 to obtain

\ds {x}^{2}+2x+4={\left(x+1\right)}^{2}+3.

By letting \ds u=x+1 and consequently \ds du=\,dx , we see that

\ds \begin{array}{ccccc}\hfill \ds\int \frac{x+4}{{x}^{2}+2x+4}\,dx &\ds =\int \frac{x+4}{{\left(x+1\right)}^{2}+3}\,dx \hfill &\ds &\ds &\ds \begin{array}{c}\text{Complete the square in the}\hfill \\[1mm]\ds \text{denominator.}\hfill \end{array}\hfill \\[5mm]\ds &\ds =\int \frac{u+3}{{u}^{2}+3}du\hfill &\ds &\ds &\ds \begin{array}{c}\text{Substitute}\phantom{\rule{0.2em}{0ex}}u=x+1,x=u-1,\hfill \\[1mm]\ds \text{and}\phantom{\rule{0.2em}{0ex}}du=\,dx .\hfill \end{array}\hfill \\[5mm]\ds &\ds =\int \frac{u}{{u}^{2}+3}du+\int \frac{3}{{u}^{2}+3}du\hfill &\ds &\ds &\ds \text{Split the numerator apart.}\hfill \\[5mm]\ds &\ds =\frac{1}{2}\text{ln}|{u}^{2}+3|+\frac{3}{\sqrt{3}}{\text{tan}}^{-1}\left(\frac{u}{\sqrt{3}}\right)+C\hfill &\ds &\ds &\ds \text{Evaluate each integral, use (**).}\hfill \\[5mm]\ds &\ds =\frac{1}{2}\text{ln}|{x}^{2}+2x+4|+\sqrt{3}{\text{tan}}^{-1}\left(\frac{x+1}{\sqrt{3}}\right)+C.\hfill &\ds &\ds &\ds \begin{array}{c}\text{Rewrite in terms of}\phantom{\rule{0.2em}{0ex}}(x)\phantom{\rule{0.2em}{0ex}}\text{and}\hfill \\[5mm]\ds \text{simplify.}\hfill \end{array}\hfill \end{array}

Substituting back into the original integral and simplifying gives

\ds {\int }^{\text{​}}\frac{\,dx }{{x}^{3}-8}=\frac{1}{12}\text{ln}|x-2|-\frac{1}{24}\text{ln}|{x}^{2}+2x+4|-\frac{\sqrt{3}}{12}{\text{tan}}^{-1}\left(\frac{x+1}{\sqrt{3}}\right)+C.

Here again, we can drop the absolute value if we wish to do so, since \ds {x}^{2}+2x+4\symbol{"3E}0 for all \ds x.

Finding a Volume

Find the volume of the solid of revolution obtained by revolving the region enclosed by the graph of \ds f\left(x\right)=\frac{{x}^{2}}{{\left({x}^{2}+1\right)}^{2}} and the x-axis over the interval \ds \left[0,1\right] about the y-axis.

Solution

Let’s begin by sketching the region to be revolved, see the figure below. From the sketch, we see that the shell method is a good choice for solving this problem.

This figure is the graph of the function f(x) = x^2/(x^2+1)^2. It is a curve above the x-axis. It is decreasing in the second quadrant, intersects at the origin, and increases in the first quadrant. Between x = 0 and x = 1, there is shaded area under the curve.
We can use the shell method to find the volume of revolution obtained by revolving the region shown about the y-axis.

The volume is given by

\ds V=2\pi \int\limits_{0}^{1}x\cdot \frac{{x}^{2}}{{\left({x}^{2}+1\right)}^{2}}\,dx =2\pi \int\limits_{0}^{1}\frac{{x}^{3}}{{\left({x}^{2}+1\right)}^{2}}\,dx .

Since \ds \text{deg}\left({x}^{3}\right)=3<4=\text{deg}\left({\left({x}^{2}+1\right)}^{2}\right), we can proceed with partial fraction decomposition. Note that \ds {\left({x}^{2}+1\right)}^{2} is a repeated irreducible quadratic. Using the decomposition described in the problem-solving strategy, we get

\ds \frac{{x}^{3}}{{\left({x}^{2}+1\right)}^{2}}=\frac{Ax+B}{{x}^{2}+1}+\frac{Cx+D}{{\left({x}^{2}+1\right)}^{2}}.

Finding a common denominator and equating the numerators gives

\ds {x}^{3}=\left(Ax+B\right)\left({x}^{2}+1\right)+Cx+D.

Solving, we obtain \ds A=1, \ds B=0, \ds C=-1, and \ds D=0. Substituting back into the integral, we have

\ds \begin{array}{lll}\ds V\hfill&=\ds2\pi \underset{0}{\overset{1}{\int }}\frac{{x}^{3}}{{\left({x}^{2}+1\right)}^{2}}\,dx \hfill&\hfill \\[5mm]\ds & =\ds2\pi \underset{0}{\overset{1}{\int }}\left(\frac{x}{{x}^{2}+1}-\frac{x}{{\left({x}^{2}+1\right)}^{2}}\right)\,dx  &\hfill\\[5mm]\ds &=\ds2\pi \left(\frac{1}{2}\text{ln}\left({x}^{2}+1\right)+\frac{1}{2}\cdot \frac{1}{{x}^{2}+1}\right)\Big|_0^1& \ \ \text{Integrate using}\  u=x^2+1. \hfill\\[5mm]\ds &=\ds\pi \left(\text{ln}\phantom{\rule{0.1em}{0ex}}(2)-\frac{1}{2}\right).\hfill \end{array}

Set up the partial fraction decomposition for\ds \frac{{x}^{2}+3x+1}{\left(x+2\right){\left(x-3\right)}^{2}{\left({x}^{2}+4\right)}^{2}}.

Answer

\ds \frac{{x}^{2}+3x+1}{\left(x+2\right){\left(x-3\right)}^{2}{\left({x}^{2}+4\right)}^{2}}=\frac{A}{x+2}+\frac{B}{x-3}+\frac{C}{{\left(x-3\right)}^{2}}+\frac{Dx+E}{{x}^{2}+4}+\frac{Fx+G}{{\left({x}^{2}+4\right)}^{2}}

Key Concepts

  • Partial fraction decomposition is a technique used to break down a rational function into a sum of simple rational functions that can be integrated using previously learned techniques.
  • When applying partial fraction decomposition, we must make sure that the degree of the numerator is less than the degree of the denominator. If not, we need to perform long division before attempting partial fraction decomposition.
  • The form the decomposition takes depends on the type of factors in the denominator. The types of factors include nonrepeated linear factors, repeated linear factors, nonrepeated irreducible quadratic factors, and repeated irreducible quadratic factors.

Exercises

Express the given rational function as a sum or difference of simpler rational functions.

1. \ds\  \frac{8}{x^2-4}

Answer

\ds \frac2{x-2}-\frac2{x+2}

2. \ds\  \frac{x}{x^2-5x+6}

3. \ds\  \frac{{x}^{2}+1}{x\left(x+1\right)\left(x+2\right)}

Answer

\ds -\frac{2}{x+1}+\frac{5}{2\left(x+2\right)}+\frac{1}{2x}

4. \ds\  \frac{x-2}{x^2+2x+1}

5. \ds\  \frac{3x+1}{x^3-x}

Answer

\ds -\frac1{x+1}-\frac1{x}+\frac2{x-1}

6. \ds\  \frac{3{x}^{2}}{{x}^{2}+1}

(Hint: Use long division first.)

7. \ds\  \frac{2{x}^{4}}{{x}^{2}-2x}

Answer

\ds 2{x}^{2}+4x+8+\frac{16}{x-2}

8. \ds\  \frac{x^2+2x}{\left(x-1\right)\left({x}^{2}+2\right)}

9. \ds\  \frac{1-x}{x^3+3x^2+4x}

Answer

\ds -\frac{x+7}{4(x^2+3x+4)}+\frac1{4x}

10. \ds\  \frac{x^3+3}{{x}^{2}-9}

11. \ds\  \frac{1}{x\left(x-1\right)\left(x-2\right)\left(x-3\right)}

Answer

\ds -\frac{1}{2\left(x-2\right)}+\frac{1}{2\left(x-1\right)}-\frac{1}{6x}+\frac{1}{6\left(x-3\right)}

12. \ds\  \frac{1}{{x}^{4}-1}=\frac{1}{\left(x+1\right)\left(x-1\right)\left({x}^{2}+1\right)}

13. \ds\  \frac{3{x}^{2}}{{x}^{3}-1}=\frac{3{x}^{2}}{\left(x-1\right)\left({x}^{2}+x+1\right)}

Answer

\ds \frac{1}{x-1}+\frac{2x+1}{{x}^{2}+x+1}

14. \ds\  \frac{2x+5}{{\left(x+2\right)}^{2}}

15. \ds\  \frac{3{x}^{4}+{x}^{3}+20{x}^{2}+3x+31}{\left(x+1\right){\left({x}^{2}+4\right)}^{2}}

Answer

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

Evaluate the following integrals using partial fraction decomposition, when applicable.

16. \ds \int \frac{\,dx }{x^2-3x-4}

17. \ds \int \frac{x-4}{2{x}^{2}+5x+2}\,dx

Answer

\ds 2\text{ln}|x+2|-\frac32\ln|2x+1|+C

18. \ds \int \frac{x^3+1}{x^2-3x}\,dx

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

Answer

\ds 3\ln|x|-\frac1x-\frac83\ln|3x-1|+C

20. \ds \int \frac{4-x}{\left(x+1\right)\left(x+2\right)\left(x+3\right)}\,dx

21. \ds \int \frac{2-x}{{x}^{2}+x}\,dx

Answer

\ds 2\phantom{\rule{0.1em}{0ex}}\text{ln}|x|-3\phantom{\rule{0.1em}{0ex}}\text{ln}|1+x|+C

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

23. \ds \int \frac{16x^4}{4x^2+1}\,dx

Answer

\ds \frac43 x^3-x+\frac12\tan^{-1}(2x)+C

24. \ds \int \frac{2x^3-4x^2+2x-1}{x^4+x^2}\,dx

25. \ds \int \frac{2{x}^{2}+4x+22}{{x}^{2}+2x+10}\,dx

Answer

\ds 2\left(x+\frac{1}{3}\text{arctan}\left(\frac{1+x}{3}\right)\right)+C

26. \ds \int \frac{\,dx }{{x}^{3}-2{x}^{2}-4x+8}

(Hint: x=-2 is a root of the denominator.)

Answer

\ds \frac{1}{16}\left( - \phantom{\rule{0.2em}{0ex}}\frac{4}{-2+x}-\text{ln}|-2+x|+\text{ln}|2+x|\right)+C

27. \ds \int \frac{ 8x^2-8x}{{x}^{4}+10{x}^{2}+9}\,dx

(Hint: to factor the denominator, let t=x^2.)

28. \ds \int \frac{2}{\left(x-4\right)\left({x}^{2}+2x+6\right)}\,dx

Answer

\ds \frac{1}{30}\left(-2\sqrt{5}\phantom{\rule{0.1em}{0ex}}\text{arctan}\left[\frac{1+x}{\sqrt{5}}\right]+2\phantom{\rule{0.1em}{0ex}}\text{ln}|-4+x|-\text{ln}|6+2x+{x}^{2}|\right)+C

29. \ds \int \frac{{x}^{2}}{{x}^{3}-{x}^{2}+4x-4}\,dx

30. \ds \int \frac{{x}^{3}+6{x}^{2}+3x+6}{{x}^{3}+2{x}^{2}}\,dx

Answer

\ds -\frac{3}{x}+4\phantom{\rule{0.1em}{0ex}}\text{ln}|x+2|+x+C

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

32. \ds \int \frac{3x+4}{\left({x}^{2}+4\right)\left(3-x\right)}\,dx

Answer

\ds - \text{ln}|3-x|+\frac{1}{2}\text{ln}|{x}^{2}+4|+C

33. \ds \int \frac{5x+1}{{\left(x+1\right)}^{2}\left(3-x\right)}\,dx

34. \ds \int \frac{3x+4}{{x}^{3}-2x-4}\,dx

(Hint: x=2 is a root of the denominator.)

Answer

\ds \text{ln}|x-2|-\frac{1}{2}\text{ln}|{x}^{2}+2x+2|+C

Use a substitution to convert the given integrals to integrals of rational functions. Then evaluate the resulting integrals using partial fractions or the methods developed earlier.

35. \ds \int\limits_{0}^{1}\frac{{e}^{x}}{36-{e}^{2x}}\,dx

36. \ds \int \frac{3{e}^{x}}{{e}^{2x}-{e}^{x}-2}\,dx

Answer

\ds \ln|e^x-2|-\ln(e^x+1)+C

37. \ds \int \frac{\text{cos}\phantom{\rule{0.1em}{0ex}}(x)\phantom{\rule{0.1em}{0ex}}\,dx }{1-4{\text{sin}}^{2}(x)}

38. \ds \int \frac{\text{sin}\phantom{\rule{0.1em}{0ex}}(x)}{{\text{cos}}^{2}(x)+\text{cos}\phantom{\rule{0.1em}{0ex}}(x)-6}\,dx

Answer

\ds \frac{1}{5}\text{ln}\left|\frac{\text{cos}\phantom{\rule{0.1em}{0ex}}(x)+3}{\text{cos}\phantom{\rule{0.1em}{0ex}}(x)-2}\right|+C

39. \ds \int \frac{1-\sqrt{x}}{1+\sqrt{x}}\,dx

40. \ds \int \frac{dt}{{\left({e}^{t}-{e}^{ - t}\right)}^{2}}

(Hint: use the simplest natural substitution.)

Answer

\ds \frac{1}{2-2{e}^{2t}}+C

41. \ds \int \frac{1+{e}^{x}}{1-{e}^{x}}\,dx

42. \ds \int \frac{\,dx }{1+\sqrt{x+1}}

Answer

\ds 2\sqrt{1+x}-2\phantom{\rule{0.1em}{0ex}}\text{ln}|1+\sqrt{1+x}|+C

43. \ds \int \frac{\sqrt[4]{x}+2}{\sqrt{x}-1}\,dx

44. \ds {\int }}\frac{1}{\sqrt[3]x+x}\,dx

Answer

\ds \frac32\ln\left(x^{2\text{/}3}+1\right)+C

45. \ds \int \frac{1}{2+{e}^{ - x}}\,dx

46. Use the substitution x=u^6 to convert \ds \int \frac{1}{\sqrt{x}+\sqrt[3]{x}}\,dx to an integral of a rational function, then evaluate.

Answer

\ds 6{x}^{1\text{/}6}-3{x}^{1\text{/}3}+2\sqrt{x}-6\phantom{\rule{0.1em}{0ex}}\text{ln}\left(1+{x}^{1\text{/}6}\right)+C

47. Find the area of the region bounded by the curve \ds y=\frac{x}{1+x}, the x-axis, and the line \ds x=4.

48. Find the volume of the solid generated when the region bounded by \ds y=\frac1{\sqrt{x\left(3-x\right)}}, \ds y=0, \ds x=1, and \ds x=2 is revolved about the x-axis.

Answer

\ds \frac{1}{3}\pi \phantom{\rule{0.1em}{0ex}}\text{ln}\phantom{\rule{0.1em}{0ex}}(4)

49. Find the volume generated by revolving the area bounded by \ds y=\frac{1}{{x}^{3}+7{x}^{2}+6x}x=1,x=7,\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}y=0 about the y-axis.

50. The velocity of a particle moving along a line is given by \ds v\left(t\right)=\frac{{t}^{2}}{{t}^{2}+1}, where t is the time in seconds. Find the distance that the particle has traveled after \ds t=5 sec.

Answer

\ds 5-\tan^{-1}(5)

For the following two problems, use the substitutions \ds \text{tan}\left(\frac{x}{2}\right)=t, \ds \,dx =\frac{2}{1+{t}^{2}}dt, \ds \text{sin}\phantom{\rule{0.1em}{0ex}}(x)=\frac{2t}{1+{t}^{2}}, and \ds \text{cos}\phantom{\rule{0.1em}{0ex}}(x)=\frac{1-{t}^{2}}{1+{t}^{2}}.

51. \ds \int \tan(x)\,dx

52. Find the area under the curve \ds y=\frac{1}{1+\text{sin}\phantom{\rule{0.1em}{0ex}}(x)} between \ds x=0 and \ds x=\pi . (Assume the dimensions are in inches.)

Answer

2 in.2

53. Let \ds \text{tan}\left(\frac{x}{2}\right)=t. Derive the formulas \ds \,dx =\frac{2}{1+{t}^{2}}dt, \ds \text{sin}\phantom{\rule{0.1em}{0ex}}(x)=\frac{2t}{1+{t}^{2}}, and \ds \text{cos}\phantom{\rule{0.1em}{0ex}}(x)=\frac{1-{t}^{2}}{1+{t}^{2}}.

54. Evaluate \ds \int \frac{\sqrt[3]{x-8}}{x}\,dx .

Answer

\ds 3{\left(-8+x\right)}^{1\text{/}3}
\ds -2\sqrt{3}\phantom{\rule{0.1em}{0ex}}\text{arctan}\left[\frac{-1+{\left(-8+x\right)}^{1\text{/}3}}{\sqrt{3}}\right]
\ds -2\phantom{\rule{0.1em}{0ex}}\text{ln}\left[2+{\left(-8+x\right)}^{1\text{/}3}\right]
\ds +\text{ln}\left[4-2{\left(-8+x\right)}^{1\text{/}3}+{\left(-8+x\right)}^{2\text{/}3}\right]+C

Glossary

partial fraction decomposition
a technique used to break down a rational function into the sum of simple rational functions

License

Icon for the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

Calculus: Volume 2 (Second University of Manitoba Edition) Copyright © 2021 by Gilbert Strang and Edward 'Jed' Herman, modified by Varvara Shepelska is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License, except where otherwise noted.

Share This Book