Integration by Partial Fractions

Introduction to Integration by Partial Fractions

Integration by Partial Fraction Decomposition is a procedure to “decompose” a proper Rational Function (one with a variable in the denominator) into simpler rational functions that are more easily integrated. Typically, we are breaking up one “complicated” fraction into several different “less complicated” fractions. You may have learned how to use this technique in your Algebra class, and it’s quite useful in Calculus! Note that Integration by Partial Fractions is used when U-Substitution Integration (also known as the reverse chain rule or change of variables) doesn’t work easily; a rule of thumb is to try U-sub first!

(Note that Partial Fraction Decomposition may really only be used with rational functions with denominators that factor well. In more advanced cases, you may need to use Completing the Square with Quadratics or another method to get the rational in the right form).

The basic idea is to factor the denominator (if it isn’t already factored) of the complicated factor, and then break it up into different fractions with denominators of those factors. We’ll see that when we do this, we’ll usually end up with Logarithmic Integration or Inverse Trig Function Integration.

If an integral is improper (the degree of the numerator is greater than or equal to the degree of the denominator), use Polynomial Long Division to get a term that’s not a rational function, and then decompose the remaining terms; we’ll show an example below.

Basic Partial Fraction Decomposition Rules

Here are the basic Partial Fraction Rules when for decomposing fractions, without solving yet for the variables. Notice how combinations of rules can be used, depending on the types of denominators. Remember that these rules apply to rationals that aren’t improper; they apply only to fractions whose denominator has a degree larger than that of the numerator.

Denominator Factor Form

Partial Fraction Term(s)

Example (we’ll get A, B, and so on below)

   $ \displaystyle ax+b$ $ \displaystyle \frac{A}{{ax+b}}$ $ \displaystyle \frac{{2x+1}}{{\left( {3x+1} \right)\left( {4x-1} \right)}}=\frac{A}{{3x+1}}+\frac{B}{{4x-1}}$
$ \displaystyle {{\left( {ax+b} \right)}^{n}}$ $ \displaystyle \frac{A}{{ax+b}}+\frac{B}{{{{{\left( {ax+b} \right)}}^{2}}}}+…+\frac{Z}{{{{{\left( {ax+b} \right)}}^{n}}}}$ $ \displaystyle \frac{{5{{x}^{3}}+3{{x}^{2}}+x+5}}{{{{{\left( {x-3} \right)}}^{3}}x}}$

$ \displaystyle =\frac{A}{{x-3}}+\frac{B}{{{{{\left( {x-3} \right)}}^{2}}}}+\frac{C}{{{{{\left( {x-3} \right)}}^{3}}}}+\frac{D}{x}$

$ \displaystyle a{{x}^{2}}+bx+c$ $ \displaystyle \frac{{Ax+B}}{{a{{x}^{2}}+bx+c}}$ $ \displaystyle \frac{{7{{x}^{2}}-4x+30}}{{\left( {{{x}^{2}}+3x+9} \right)\left( {x-3} \right)}}=\frac{{Ax+B}}{{{{x}^{2}}+3x+9}}+\frac{C}{{x-3}}$
$ \displaystyle {{\left( {a{{x}^{2}}+bx+c} \right)}^{n}}$ $ \displaystyle \frac{{Ax+B}}{{a{{x}^{2}}+bx+c}}+\frac{{Cx+D}}{{{{{\left( {a{{x}^{2}}+bx+c} \right)}}^{2}}}}+…+\frac{{Yx+Z}}{{{{{\left( {a{{x}^{2}}+bx+c} \right)}}^{n}}}}$

$ \displaystyle \frac{{7{{x}^{4}}+9{{x}^{3}}+19{{x}^{2}}+19x+1}}{{{{{\left( {{{x}^{2}}+1} \right)}}^{2}}\left( {x+4} \right)}}$

$ \displaystyle =\frac{{Ax+B}}{{{{x}^{2}}+1}}+\frac{{Cx+D}}{{{{{\left( {{{x}^{2}}+1} \right)}}^{2}}}}+\frac{E}{{x+4}}$

This looks really complicated, but it’s not that bad; let’s do some examples.

Integration by Partial Fractions Examples

Note that you can check these using Wolfram Alpha: just type in something like “Integrate (2x+10)/(12x^2+x-1)”.

Integrate $ \displaystyle \int{{\frac{{2x+1}}{{12{{x}^{2}}+x-1}}dx}}$  (first example above):

Since it looks pretty impossible to integrate with U-sub, try to divide it into two separate fractions by factoring the denominator, $ \displaystyle \int{{\frac{{2x+1}}{{12{{x}^{2}}+x-1}}dx}}=\int{{\frac{{2x+1}}{{\left( {3x+1} \right)\left( {4x-1} \right)}}dx}}$. (When doing these types of problems in school, the problem will probably be easy to factor; in the “real world,” this would probably not be the case.)

Try to some values A and B where $ \displaystyle \frac{{2x+1}}{{\left( {3x+1} \right)\left( {4x-1} \right)}}=\frac{A}{{\left( {3x+1} \right)}}+\frac{B}{{\left( {4x-1} \right)}}$, since then we could integrate log functions. To find what $ A$ and $ B$ are, multiply each term by a common denominator (you can also think of it as multiplying on top by “what’s missing” on bottom) so we can get rid of fractions:

$ \require{cancel} \displaystyle \begin{align}\frac{{2x+1}}{{\left( {3x+1} \right)\left( {4x-1} \right)}}&=\frac{A}{{\left( {3x+1} \right)}}+\frac{B}{{\left( {4x-1} \right)}}\\\frac{{\cancel{{\left( {3x+1} \right)\left( {4x-1} \right)}}}}{1}\cdot \frac{{2x+1}}{{\cancel{{\left( {3x+1} \right)\left( {4x-1} \right)}}}}&=\frac{A}{{\cancel{{\left( {3x+1} \right)}}}}\cdot \frac{{\cancel{{\left( {3x+1} \right)}}\left( {4x-1} \right)}}{1}\\&+\frac{B}{{\cancel{{\left( {4x-1} \right)}}}}\cdot \frac{{\left( {3x+1} \right)\cancel{{\left( {4x-1} \right)}}}}{1}\\2x+1&=A\left( {4x-1} \right)+B\left( {3x+1} \right)\end{align}$

There are two different ways to solve for $ A$ and $ B$:

  1. Multiply out the last equation and solve for $ A$ and $ B$ by equating coefficients and setting up a System of Equations to solve::

$ \displaystyle \begin{array}{l}2x+1=A\left( {4x-1} \right)+B\left( {3x+1} \right)\\2x+1=4Ax-A+3Bx+B\\2x+1=x\left( {4A+3B} \right)+(-A+B)\end{array}$

                    $ \displaystyle \begin{align}4A+3B&=2\\-A+B&=1\,\end{align}$            Use Substitution:   $ \displaystyle \begin{align}B=A+1\\4A+3\,\left( {A+1} \right)=2&:\,\,\,\,\,\,\,\,A=-\frac{1}{7}\\\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,B=A+1\,&:\,\,\,\,\,\,\,\,\,B=-\frac{1}{7}+\frac{7}{7}=\frac{6}{7}\end{align}$

Now we have: $ \displaystyle \int{{\frac{{2x+1}}{{12{{x}^{2}}+x-1}}dx}}=\int{{\left( {\frac{{-\frac{1}{7}}}{{3x+1}}+\frac{{\frac{6}{7}}}{{4x-1}}} \right)\,}}dx=\int{{\left( {-\frac{1}{{7\left( {3x+1} \right)}}+\frac{6}{{7\left( {4x-1} \right)}}} \right)}}\,dx$.
  1. (Usually, the preferred method for linear factors in denominator; it tends to be easier, but it doesn’t always find all the coefficients!) In this method, we don’t even have to distribute the $ A$ and $ B$. Since setting $ \displaystyle x=\frac{1}{4}$ and $ \displaystyle x=-\frac{1}{3}$ turns coefficients for $ A$ and $ B$, respectively, into 0, set $ x$ to these values and solve:
$ \displaystyle 2x+1=A\left( {4x-1} \right)+B\left( {3x+1} \right)$
$ \displaystyle x=\frac{1}{4}\,:\,\,\,\,\,\,\,\,\,\,2\left( {\frac{1}{4}} \right)+1=0+B\left[ {3\left( {\frac{1}{4}} \right)+1} \right];\,\,\,\,\frac{7}{4}B=\,\frac{6}{4};\,\,\,\,\,B=\,\frac{6}{7}\,$
$ \displaystyle x=-\frac{1}{3}\,:\,\,\,\,\,\,\,\,\,2\left( {-\frac{1}{3}} \right)+1=A\left[ {4\left( {-\frac{1}{3}} \right)-1} \right]+0;\,\,-\frac{7}{3}A=\frac{1}{3};\,\,\,\,\,A=\,-\frac{1}{7}$

Note: this seems a little counter-intuitive, since it appears that we are setting denominators to 0, which is a no-no. But in actuality, we are equating the numerators and ignoring the denominators when using this method, so it works!

Both methods: substitute the $ A$ and $ B$ back in the equation and integrate:

$ \begin{align}\int{{\frac{{2x+1}}{{12{{x}^{2}}+x-1}}dx}}&=\int{{\frac{{2x+1}}{{\left( {3x+1} \right)\left( {4x-1} \right)}}dx}}=\int{{\left( {\frac{A}{{3x+1}}+\frac{B}{{4x-1}}} \right)dx}}=\int{{\left( {\frac{{-\frac{1}{7}}}{{3x+1}}+\frac{{\frac{6}{7}}}{{4x-1}}} \right)\,}}dx\\&=\int{{\left( {-\frac{1}{{7\left( {3x+1} \right)}}+\frac{6}{{7\left( {4x-1} \right)}}} \right)}}\,dx=-\frac{1}{7}\int{{\frac{1}{{3x+1}}dx+\frac{6}{7}\int{{\frac{1}{{4x-1}}dx}}}}\,\\&=-\frac{1}{{21}}\ln \left| {3x+1} \right|+\frac{6}{{28}}\ln \left| {4x-1} \right|+C=-\frac{1}{{21}}\ln \left| {3x+1} \right|+\frac{3}{{14}}\ln \left| {4x-1} \right|+C\end{align}$


Let’s try one that’s a little bit more complicated.

Integrate $ \displaystyle \int{{\frac{{{{x}^{2}}+2x+2}}{{{{x}^{3}}-3{{x}^{2}}+2x}}dx}}$:

Start by factoring the denominator and getting rid of it by multiplying by a common denominator (you can also think of multiplying the numerator by “what’s missing” in the denominator):

$ \displaystyle \begin{align}\frac{{{{x}^{2}}+2x+2}}{{{{x}^{3}}-3{{x}^{2}}+2x}}&=\frac{{{{x}^{2}}+2x+2}}{{x\left( {x-2} \right)\left( {x-1} \right)}}=\frac{A}{x}+\frac{B}{{x-2}}+\frac{C}{{x-1}}\\\frac{{\cancel{{x\left( {x-2} \right)\left( {x-1} \right)}}}}{1}\cdot \frac{{{{x}^{2}}+2x+2}}{{\cancel{{x\left( {x-2} \right)\left( {x-1} \right)}}}}&=\frac{A}{{\cancel{x}}}\cdot \frac{{\cancel{x}\left( {x-2} \right)\left( {x-1} \right)}}{1}\\&+\frac{B}{{\cancel{{x-2}}}}\cdot \frac{{x\cancel{{\left( {x-2} \right)}}\left( {x-1} \right)}}{1}+\frac{C}{{\cancel{{x-1}}}}\cdot \frac{{x\left( {x-2} \right)\cancel{{\left( {x-1} \right)}}}}{1}\\{{x}^{2}}+2x+2&=A\left( {x-2} \right)\left( {x-1} \right)+Bx\left( {x-1} \right)+Cx\left( {x-2} \right)\end{align}$

Now set $ x$ to values that make the terms above 0:

$ \displaystyle \begin{align}x=2:\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,{{x}^{2}}+2x+2&=A\left( {x-2} \right)\left( {x-1} \right)+Bx\left( {x-1} \right)+Cx\left( {x-2} \right)\\\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,{{\left( 2 \right)}^{2}}+2\left( 2 \right)+2&=0+B\left( 2 \right)\left( {2-1} \right)+0\\\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,B&=5\\x=0:\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,{{x}^{2}}+2x+2&=A\left( {x-2} \right)\left( {x-1} \right)+Bx\left( {x-1} \right)+Cx\left( {x-2} \right)\\\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,{{\left( 0 \right)}^{2}}+2\left( 0 \right)+2&=A\left( {0-2} \right)\left( {0-1} \right)+0+0\\\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,A&=1\\x=1:\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,{{x}^{2}}+2x+2&=A\left( {x-2} \right)\left( {x-1} \right)+Bx\left( {x-1} \right)+Cx\left( {x-2} \right)\\\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,{{\left( 1 \right)}^{2}}+2\left( 1 \right)+2&=0+0+C\left( 1 \right)\left( {1-2} \right)\\\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,C&=-5\end{align}$

Substitute the $ A$ and $ B$ back in the equation and integrate:

$ \displaystyle \begin{align}\int{{\frac{{{{x}^{2}}+2x+2}}{{{{x}^{3}}-3{{x}^{2}}+2x}}dx}}&=\int{{\frac{{{{x}^{2}}+2x+2}}{{x\left( {x-2} \right)\left( {x-1} \right)}}dx}}=\int{{\left( {\frac{A}{x}+\frac{B}{{x-2}}+\frac{C}{{x-1}}} \right)dx}}\\&=\int{{\frac{1}{x}dx+\int{{\frac{5}{{x-2}}dx}}+\int{{\frac{{-5}}{{x-1}}dx}}}}=\ln \left| x \right|+5\ln \left| {x-2} \right|-5\ln \left| {x-1} \right|+C\\&=\ln \left| {\frac{{x{{{\left( {x-2} \right)}}^{5}}}}{{{{{\left( {x-1} \right)}}^{5}}}}} \right|+C\end{align}$

Integration by Partial Fractions with Improper Fractions

Let’s try another one, but one where we have to perform some long division first:

Integrate $ \displaystyle \int{{\frac{{{{x}^{3}}+2{{x}^{2}}+3x+7}}{{{{x}^{2}}-x-6}}dx}}$:

Since the degree on the top (3) is greater than the degree of the bottom (2), perform Polynomial Long Division to obtain polynomial and rational functions:

$ \displaystyle \begin{array}{l}\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\\\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,x\,\,+\,\,3\,\,+\,\,\frac{{12x+25}}{{{{x}^{2}}-x-6}}\\{{x}^{2}}-x-6\,\overline{\left){{{{x}^{3}}+2{{x}^{2}}+3x+7}}\right.}\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\\\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\underline{{{{x}^{3}}-\,\,{{x}^{2}}\,-6x}}\\\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,3{{x}^{2}}+9x\,+\,7\\\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\underline{{\,3{{x}^{2}}-\,3x-18}}\\\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,12x+25\end{array}$

We end up with $ \displaystyle \int{{\left( {x+3+\frac{{12x+25}}{{{{x}^{2}}-x-6}}} \right)dx}}=\int{{xdx}}+\int{{3dx}}+\int{{\frac{{12x+25}}{{{{x}^{2}}-x-6}}dx}}$.

Use Partial Fraction Decomposition for the last term:

$ \displaystyle \begin{align}\frac{{12x+25}}{{{{x}^{2}}-x-6}}&=\frac{{12x+25}}{{\left( {x-3} \right)\left( {x+2} \right)}}=\frac{A}{{x-3}}+\frac{B}{{x+2}}\\\frac{{\cancel{{\left( {x-3} \right)\left( {x+2} \right)}}}}{1}\cdot \frac{{12x+25}}{{\cancel{{\left( {x-3} \right)\left( {x+2} \right)}}}}&=\frac{A}{{\cancel{{x-3}}}}\cdot \frac{{\cancel{{\left( {x-3} \right)}}\left( {x+2} \right)}}{1}+\frac{B}{{\cancel{{x+2}}}}\cdot \frac{{\left( {x-3} \right)\cancel{{\left( {x+2} \right)}}}}{1}\\12x+25&=A\left( {x+2} \right)+B\left( {x-3} \right)\end{align}$

Now set $ x$ to values that make the terms above 0:

 $ \displaystyle \begin{align}x=-2:\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,12x+25&=A\left( {x+2} \right)+B\left( {x-3} \right)\\\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,12\left( {-2} \right)+25&=0+B\left( {-2-3} \right)\\\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,B&=-\frac{1}{5}\\\,\,x=3:\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,12x+25&=A\left( {x+2} \right)+B\left( {x-3} \right)\\\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,12\left( 3 \right)+25&=A\left( {3+2} \right)+0\\\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,A&=\frac{{61}}{5}\end{align}$

Substitute the $ A$ and $ B$ back in the equation and integrate:

$ \displaystyle \begin{align}\int{{\frac{{{{x}^{3}}+2{{x}^{2}}+3x+7}}{{{{x}^{2}}-x-6}}dx}}&=\int{{\left( {x+3+\frac{{12x+25}}{{{{x}^{2}}-x-6}}} \right)\,}}dx=\int{{\left( {x+3+\frac{{12x+25}}{{\left( {x-3} \right)\left( {x+2} \right)}}} \right)\,}}dx\\&=\int{{\left( {x+3+\frac{A}{{x-3}}+\frac{B}{{x+2}}} \right)dx}}=\int{{\left( {x+3+\frac{{\frac{{61}}{5}}}{{x-3}}+\frac{{-\frac{1}{5}}}{{x+2}}} \right)dx}}\\&=\int{{x\,dx}}+\int{{3\,dx}}\,+\int{{\frac{{61}}{{5\left( {x-3} \right)}}dx}}-\int{{\frac{1}{{5\left( {x+2} \right)}}dx}}\\&=\frac{{{{x}^{2}}}}{2}+3x+\frac{{61}}{5}\ln \left| {x-3} \right|-\frac{1}{5}\ln \left| {x+2} \right|+C\end{align}$

Example of Rational Function where Partial Fractions are not Needed

Note that not all rational functions need to be decomposed by Partial Fractions. Here is an example:

Integrate $ \displaystyle \int{{\frac{{{{x}^{2}}-1}}{{{{x}^{3}}-3x+9}}}}\,dx$:

See how we can use U-Substitution Integration?

$ \displaystyle \begin{align}\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,u&={{x}^{3}}-3x+9\\\int{{\frac{{{{x}^{2}}-1}}{{{{x}^{3}}-3x+9}}}}\,dx\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,du&=\left( {3{{x}^{2}}-3} \right)dx\\\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,dx&=\frac{{du}}{{3{{x}^{2}}-3}}=\frac{{du}}{{3\left( {{{x}^{2}}-1} \right)}}\,\,\,\end{align}$

$ \displaystyle \begin{align}\int{{\frac{{{{x}^{2}}-1}}{{{{x}^{3}}-3x+9}}dx}}\,&=\,\int{{\left( {\frac{{\cancel{{{{x}^{2}}-1}}}}{u}\cdot \frac{{du}}{{3\left( {\cancel{{{{x}^{2}}-1}}} \right)}}} \right)}}\,=\,\int{{\frac{1}{u}\cdot \frac{{du}}{3}}}\,=\frac{1}{3}\int{{\frac{{du}}{u}}}\\&=\frac{1}{3}\ln \left| u \right|+C=\frac{1}{3}\ln \left| {{{x}^{3}}-3x+9} \right|+C\end{align}$

Integration by Partial Fractions with Higher Degrees

This isn’t usually taught in an AB Calculus class, but it gets a little more complicated when we are decomposing rational functions with repeatable factors in the denominator, and factors with higher degrees, which we’ll see below.

As in the chart above, with repeatable factors in the denominator, the rational may be decomposed in a number of ways, with various factors of the numerator. We must account for all these ways (even if some numerators are 0) by using denominators with different powers of this factor.

For example, decompose $ \displaystyle \frac{{{{x}^{3}}-10{{x}^{2}}+43x-54}}{{x{{{\left( {x-3} \right)}}^{3}}}}$.

We could set up the partial fraction decomposition this way:

$ \displaystyle \frac{{{{x}^{3}}-10{{x}^{2}}+43x-54}}{{x{{{\left( {x-3} \right)}}^{3}}}}=\frac{A}{x}+\frac{B}{{x-3}}+\frac{C}{{{{{\left( {x-3} \right)}}^{2}}}}+\frac{D}{{{{{\left( {x-3} \right)}}^{3}}}}$

When solving for $ A$, $ B$, $ C$, and $ D$, using $ x=0$ and $ x=3$, you may only get some of these values; you could then plug in random $ x$=values to create a system of equations to get the other values. But we’ll just multiply by common denominator, multiply out to equate coefficients, and then use systems to get the coefficients:

$ \displaystyle \begin{align}\frac{{\cancel{{x{{{\left( {x-3} \right)}}^{3}}}}}}{1}\cdot \frac{{{{x}^{3}}-10{{x}^{2}}+43x-54}}{{\cancel{{x{{{\left( {x-3} \right)}}^{3}}}}}}&=\left( {\frac{A}{x}+\frac{B}{{x-3}}+\frac{C}{{{{{\left( {x-3} \right)}}^{2}}}}+\frac{D}{{{{{\left( {x-3} \right)}}^{3}}}}} \right)\cdot \frac{{x{{{\left( {x-3} \right)}}^{3}}}}{1}\\{{x}^{3}}-10{{x}^{2}}+43x-54&=A{{\left( {x-3} \right)}^{3}}+Bx{{\left( {x-3} \right)}^{2}}+Cx\left( {x-3} \right)+Dx\\&=A{{x}^{3}}-6A{{x}^{2}}+9Ax-3A{{x}^{2}}+18Ax-27A\\&\,\,\,\,+B{{x}^{3}}-6B{{x}^{2}}+9Bx+C{{x}^{2}}-3Cx+Dx\\&={{x}^{3}}\left( {A+B} \right)+{{x}^{2}}\left( {-6A-3A-6B+C} \right)\\&\,\,\,\,+x(9A+18A+9B-3C+D)-27A\end{align}$

 

$ \displaystyle \begin{align}A+B=1;\,\,\,\,\,-6A-3A-6B+C=-10\\9A+18A+9B-3C+D=43;\,\,\,\,\,-27A=-54\\A=2;\,\,\,\,\,B=-1;\,\,\,\,\,C=2;\,\,\,\,\,D=4\\\\\frac{{{{x}^{3}}-10{{x}^{2}}+43x-54}}{{x{{{\left( {x-3} \right)}}^{3}}}}=\frac{2}{x}-\frac{1}{{x-3}}+\frac{2}{{{{{\left( {x-3} \right)}}^{2}}}}+\frac{4}{{{{{\left( {x-3} \right)}}^{3}}}}\end{align}$


The other type of rational function that is more advanced is when we have a higher degree (2 and up) in a prime (unfactorable) factor in the denominator. For example, for a quadratic factor in the denominator that can’t be factored, we’ll have to put a linear factor in the numerator (like $ Ax+B$). Here’s one to try:

Decompose (don’t integrate): $ \displaystyle \frac{{7{{x}^{2}}-4x+30}}{{\left( {x-3} \right)\left( {{{x}^{2}}+3x+9} \right)}}$

$ \displaystyle \begin{align}\frac{{7{{x}^{2}}-4x+30}}{{\left( {x-3} \right)\left( {{{x}^{2}}+3x+9} \right)}}&=\frac{A}{{x-3}}+\frac{{Bx+C}}{{{{x}^{2}}+3x+9}}\\\frac{{\cancel{{\left( {x-3} \right)\left( {{{x}^{2}}+3x+9} \right)}}}}{1}\cdot \frac{{7{{x}^{2}}-4x+30}}{{\cancel{{\left( {x-3} \right)\left( {{{x}^{2}}+3x+9} \right)}}}}&=\left( {\frac{A}{{x-3}}+\frac{{Bx+C}}{{{{x}^{2}}+3x+9}}} \right)\cdot \frac{{\left( {x-3} \right)\left( {{{x}^{2}}+3x+9} \right)}}{1}\\7{{x}^{2}}-4x+30&=A\left( {{{x}^{2}}+3x+9} \right)+\left( {Bx+C} \right)\left( {x-3} \right)\end{align}$

Again, to get the system of equations, multiply everything out and set coefficients together:

$ \displaystyle \begin{array}{c}7{{x}^{2}}-4x+30=A\left( {{{x}^{2}}+3x+9} \right)+\left( {Bx+C} \right)\left( {x-3} \right)\\7{{x}^{2}}-4x+30=A{{x}^{2}}+3Ax+9A+B{{x}^{2}}-3Bx+Cx-3C\\7{{x}^{2}}=A{{x}^{2}}+B{{x}^{2}};\,\,\,\,\,7=A+B\\-4x=3Ax-3Bx+Cx;\,\,\,\,\,\,-4=3A-3B+C\\30=9A-3C\\A=3;\,\,\,\,B=4;\,\,\,\,C=-1\end{array}$

$ \displaystyle \frac{{7{{x}^{2}}-4x+30}}{{\left( {x-3} \right)\left( {{{x}^{2}}+3x+9} \right)}}=\frac{3}{{x-3}}+\frac{{4x-1}}{{{{x}^{2}}+3x+9}}$


Let’s do this one two ways to show we’ll get the same answer:

Decompose (don’t integrate): $ \displaystyle \frac{{5x-3}}{{\left( {x-1} \right)\left( {x+1} \right)\left( {x+3} \right)}}$

$ \displaystyle \begin{align}\frac{{5x-3}}{{\left( {x-1} \right)\left( {x+1} \right)\left( {x+3} \right)}}&=\frac{A}{{x-1}}+\frac{B}{{x+1}}+\frac{C}{{x+3}}\\\frac{{\cancel{{\left( {x-1} \right)\left( {x+1} \right)\left( {x+3} \right)}}}}{1}\cdot \frac{{5x-3}}{{\cancel{{\left( {x-1} \right)\left( {x+1} \right)\left( {x+3} \right)}}}}&=\left( {\frac{A}{{x-1}}+\frac{B}{{x+1}}+\frac{C}{{x+3}}} \right)\cdot \frac{{\left( {x-1} \right)\left( {x+1} \right)\left( {x+3} \right)}}{1}\\5x-3&=A\left( {x+1} \right)\left( {x+3} \right)+B\left( {x-1} \right)\left( {x+3} \right)+C\left( {x-1} \right)\left( {x+1} \right)\\x&=-1:\,\,\,\,\,\,5\left( {-1} \right)-3=B\left( {-1-1} \right)\left( {-1+3} \right);\,\,\,B=2\\x&=-3:\,\,\,\,\,\,5\left( {-3} \right)-3=C\left( {-3-1} \right)\left( {-3+1} \right);\,\,\,C=-\frac{9}{4}\\x&=1:\,\,\,\,\,\,\,\,\,\,5\left( 1 \right)-3=A\left( {1+1} \right)\left( {1+3} \right);\,\,\,A=\frac{1}{4}\\\frac{{5x-3}}{{\left( {x-1} \right)\left( {x+1} \right)\left( {x+3} \right)}}&=\frac{A}{{x-1}}+\frac{B}{{x+1}}+\frac{C}{{x+3}}=\frac{{\frac{1}{4}}}{{x-1}}+\frac{2}{{x+1}}-\frac{{\frac{9}{4}}}{{x+3}}\\&=\frac{1}{{4\left( {x-1} \right)}}+\frac{2}{{x+1}}-\frac{9}{{4\left( {x+3} \right)}}\end{align}$

Decompose (don’t integrate): $ \displaystyle \frac{{5x-3}}{{\left( {{{x}^{2}}-1} \right)\left( {x+3} \right)}}$ (same as above)

$ \displaystyle \begin{align}\frac{{5x-3}}{{\left( {{{x}^{2}}-1} \right)\left( {x+3} \right)}}&=\frac{{Ax+B}}{{{{x}^{2}}-1}}+\frac{C}{{x+3}}\\\frac{{\cancel{{\left( {{{x}^{2}}-1} \right)\left( {x+3} \right)}}}}{1}\cdot \frac{{5x-3}}{{\cancel{{\left( {{{x}^{2}}-1} \right)\left( {x+3} \right)}}}}&=\left( {\frac{{Ax+B}}{{{{x}^{2}}-1}}+\frac{C}{{x+3}}} \right)\cdot \frac{{\left( {{{x}^{2}}-1} \right)\left( {x+3} \right)}}{1}\\5x-3&=\left( {Ax+B} \right)\left( {x+3} \right)+C\left( {{{x}^{2}}-1} \right)\\x&=-1:\,\,\,\,\,\,5\left( {-1} \right)-3=\left( {A\left( {-1} \right)+B} \right)\left( {-1+3} \right);\,\,\,B-A=-4\\x&=-3:\,\,\,\,\,\,5\left( {-3} \right)-3=C\left( {{{{\left( {-3} \right)}}^{2}}-1} \right);\,\,\,C=-\frac{9}{4}\\x&=1:\,\,\,\,\,\,\,\,\,\,5\left( 1 \right)-3=\left( {A\left( 1 \right)+B} \right)\left( {1+3} \right);\,\,\,A+B=\frac{1}{2}\\\text{From system of equations}:\,\,\,\,2B&=-\frac{7}{2}\,;\,\,\,\,B=-\frac{7}{4};\,\,\,A=\frac{9}{4}\\\frac{{5x-3}}{{\left( {{{x}^{2}}-1} \right)\left( {x+3} \right)}}&=\frac{{Ax+B}}{{{{x}^{2}}-1}}+\frac{C}{{x+3}}=\frac{{\frac{9}{4}x-\frac{7}{4}}}{{{{x}^{2}}-1}}-\frac{{\frac{9}{4}}}{{x+3}}=\frac{{9x-7}}{{4\left( {{{x}^{2}}-1} \right)}}-\frac{9}{{4\left( {x+3} \right)}}\end{align}$

This is equivalent to the decomposition above!


Here’s one more to set up: decompose $ \displaystyle \frac{{5{{x}^{3}}+3{{x}^{2}}+x+5}}{{x{{{\left( {{{x}^{2}}-3} \right)}}^{3}}}}$.

We could set up the partial fraction decomposition this way:

$ \displaystyle \begin{align}\frac{{5{{x}^{3}}+3{{x}^{2}}+x+5}}{{x{{{\left( {{{x}^{2}}-3} \right)}}^{3}}}}&=\frac{A}{x}+\frac{{Bx+C}}{{{{x}^{2}}-3}}+\frac{{Dx+E}}{{{{{\left( {{{x}^{2}}-3} \right)}}^{2}}}}+\frac{{Fx+G}}{{{{{\left( {{{x}^{2}}-3} \right)}}^{3}}}}\\\frac{{\cancel{{x{{{\left( {{{x}^{2}}-3} \right)}}^{3}}}}}}{1}\cdot \frac{{5{{x}^{3}}+3{{x}^{2}}+x+5}}{{\cancel{{x{{{\left( {{{x}^{2}}-3} \right)}}^{3}}}}}}&=\left( {\frac{A}{x}+\frac{{Bx+C}}{{{{x}^{2}}-3}}+\frac{{Dx+E}}{{{{{\left( {{{x}^{2}}-3} \right)}}^{2}}}}+\frac{{Fx+G}}{{{{{\left( {{{x}^{2}}-3} \right)}}^{3}}}}} \right)\cdot \frac{{x{{{\left( {{{x}^{2}}-3} \right)}}^{3}}}}{1}\\5{{x}^{3}}+3{{x}^{2}}+x+5&=A{{\left( {{{x}^{2}}-3} \right)}^{3}}+\left( {Bx+C} \right)x{{\left( {{{x}^{2}}-3} \right)}^{2}}\\&\,\,\,+\left( {Dx+E} \right)x\left( {{{x}^{2}}-3} \right)+\left( {Fx+G} \right)x\end{align}$

I’m not going to try to solve this one, but we multiply everything out and set coefficients together, and solve a system of equations. We could also or first start with $ x=3$ and $ x=0$, simplify, use random $ x$-values that are the same across the board, and solve the system.

And it turns out that these types of partial fraction integration problems usually result in the Integration of Inverse Trigonometric Functions.


For Practice: Use the Mathway widget below to try an Integration by Partial Fractions problem. Click on Submit (the blue arrow to the right of the problem) and click on Describe the Transformation to see the answer.

You can also type in your own problem, or click on the three dots in the upper right hand corner and click on “Examples” to drill down by topic.

If you click on Tap to view steps, or Click Here, you can register at Mathway for a free trial, and then upgrade to a paid subscription at any time (to get any type of math problem solved!).

Learn these rules, and practice, practice, practice!