Integrate by Partial Fractions
When integrating functions involving polynomials in the denominator, partial fractions can be used to simplify integration. New students of calculus will find it handy to learn how to decompose functions into partial fractions not just for integration, but for more advanced studies as well.
Contents
Steps
- Check to make sure that the fraction you are trying to integrate is proper. A proper fraction has a larger power in the denominator than in the numerator. If the power of the numerator is larger than or equal to the power of the denominator, it is improper and must be divided using long division.
- <math>\int\frac{x^{3}-4x-10}{x^{2}-x-6}\mathrm{d}x</math>
- In this example, the fraction is indeed improper because the power of the numerator, 3, is larger than the power of the denominator, 2. Therefore, long division must be used.
- <math>\frac{x^{3}-4x-10}{x^{2}-x-6} = (x+1) + \frac{3x-4}{x^{2}-x-6}</math>
- The fraction is now proper. We can now split the integral into two parts. One of them containing the <math>x+1</math> is easily evaluated, but we will evaluate at the end.
- <math>\int(x+1)\mathrm{d}x + \int\frac{3x-4}{x^{2}-x-6}\mathrm{d}x</math>
- Factor Polynomials the polynomials in the denominator.
- <math>\frac{3x-4}{x^{2}-x-6} = \frac{3x-4}{(x-3)(x+2)}</math>
- Separate the fraction that you wish to decompose in to multiple fractions. The number of fractions in decomposition should equal the number of factors of <math>x.</math> The numerators of these decomposed fractions should be represented with coefficients.
- <math>\frac{3x-4}{(x-3)(x+2)} = \frac{A}{x-3} + \frac{B}{x+2}</math>
- If a factor of <math>x</math> in the denominator has a power higher than 1, then the coefficients in the numerator should reflect this higher power. For example, a term in the denominator like <math>x^{2}+1</math> that cannot be factored further can be represented with the term <math>Ax + B</math> in the numerator.
- <math>\frac{Ax+B}{x^{2}+1}+\frac{C}{x-3}</math>
- Roots of multiplicity more than 1 should be represented where both the root and its decreasing powers are written out, like so. An example of this below concerns a root of multiplicity 3. Notice that three fractions are written, where <math>(x+2)^{3},\ (x+2)^{2},</math> and <math>(x+2)</math> are all written out.
- <math>\frac{x-1}{(x+2)^{3}} = \frac{A}{(x+2)^{3}} + \frac{B}{(x+2)^{2}} + \frac{C}{x+2}</math>
- Let's return to the original example. We have now split up the fraction into its constituent parts. We can proceed in two different directions here. One method is to multiply everything out and solve a system of equations. Another, more efficient method is to recognize which terms go to zero and directly solve for the coefficients. This method will be outlined in the Substitution section.
System of Equations
- Multiply both sides by the denominator of the original fraction in order to get rid of all denominators. Notice that right now, the right side is factored by coefficients.
- <math>3x-4 = A(x+2) + B(x-3)</math>
- Expand and factor. Instead of factoring by the coefficients <math>A</math> and <math>B,</math> we factor by powers of <math>x.</math>
- <math>3x-4 = Ax+2A+Bx-3B = (A+B)x + (2A-3B)</math>
- Set the coefficients equal on both sides. Because both sides are equal, that means that the coefficients of the <math>x</math> terms are equal. We obtain a system of equations, where the number of equations depends on the degree of the denominator that you started out with.
- <math>\begin{align}A+B &=3 \\ 2A-3B &= -4\end{align}</math>
- Solve for all constants.
- <math>A=3-B</math>
- <math>\begin{align}2A-3B &= -4 \\ 2(3-B) - 3B &= -4 \\ 6 - 5B &= -4 \\ B &= 2\end{align}</math>
- <math>A = 3-2 = 1</math>
- Plug the coefficients into the decomposed fractions. Our integral is now ready to evaluate because we know the integral of <math>\frac{1}{x}.</math>
- <math>\int\frac{3x-4}{x^{2}-x-6}\mathrm{d}x = \int(x+1)\mathrm{d}x + \int\frac{1}{x-3}\mathrm{d}x + \int\frac{2}{x+2}\mathrm{d}x</math>
- Integrate. Although the u-subs are very easy to do, it is still recommended that you show all your work if you are not familiar with doing these types of integrals yet.
- <math>\int\frac{3x-4}{x^{2}-x-6}\mathrm{d}x = \frac{1}{2}x^{2} + x + \ln|x-3| + 2\ln|x+2| + c</math>
Substitution
- Multiply both sides by <math>(x-3)</math> and plug in <math>x = 3</math>. Notice that the term with <math>B</math> in it goes to 0, but <math>A</math> doesn't. Furthermore, multiplying everything by that factor makes sure that we don't get any division by 0 problems.
- <math>\frac{3x-4}{(x-3)(x+2)} = \frac{A}{x-3} + \frac{B}{x+2}</math>
- <math>\frac{3x-4}{x+2} = A + \frac{B(x-3)}{x+2}</math>
- <math>A = \frac{3(3)-4}{(3)+2} = 1</math>
- This is a much more efficient method of solving for the coefficients as long as we think about which terms get sent to 0. Technically, when substituting these values, we are taking limits. But since our functions are easy to work with (polynomials), we don't need to worry about tricky discontinuity issues.
- Multiply both sides by <math>(x+2)</math> and plug in <math>x = -2</math>. This solves for <math>B.</math> Generally, we multiply by the factor and plug in the value of the root. That solves for the coefficient of the fraction whose denominator has that factor.
- <math>\frac{3x-4}{x-3} = \frac{A(x+2)}{x-3} + B</math>
- <math>B = \frac{3(-2)-4}{(-2)-3} = 2</math>
- Plug the coefficients into the decomposed fractions and integrate.
- <math>\int\frac{3x-4}{x^{2}-x-6}\mathrm{d}x = \frac{1}{2}x^{2} + x + \ln|x-3| + 2\ln|x+2| + c</math>
Example 2: Repeated Roots
- Consider the integral below. We use the previous example of a function whose factors in the denominator have multiplicity 3, but our numerator is a bit different.
- <math>\int\frac{x^{2} - 4x + 9}{(x+2)^{3}}\mathrm{d}x = \int\left(\frac{A}{(x+2)^{3}} + \frac{B}{(x+2)^{2}} + \frac{C}{x+2}\right)\mathrm{d}x</math>
- Multiply both sides by <math>(x+2)^{3}</math>. This immediately gets us <math>A</math> if we plug in <math>x = -2.</math>
- <math>x^{2} - 4x + 9 = A + B(x+2) + C(x+2)^{2}</math>
- <math>A = (-2)^{2} - 4(-2) + 9 = 21</math>
- However, we find that <math>B</math> and <math>C</math> cannot be obtained directly.
- Differentiate once and plug in <math>x = -2</math> to obtain <math>B</math>.
- Let's start with where we are.
- <math>x^{2} - 4x + 9 = A + B(x+2) + C(x+2)^{2}</math>
- We see that the largest term containing a <math>B</math> is a term with an <math>x.</math> If we differentiate both sides, we know by the power rule that all that is left will be a constant. Meanwhile, <math>A</math> goes away because that is already a constant. What does <math>C</math> do? We can do the derivative for <math>C,</math> or we can recognize that, whatever it is, there will still be an <math>(x+2)</math> in the derivative, so after we plug in <math>x = -2,</math> the term with <math>C</math> vanishes as well.
- <math>2x - 4 = B + 2C(x+2)</math>
- <math>B = 2(-2) - 4 = -8</math>
- Let's start with where we are.
- Differentiate again and plug in <math>x = -2</math> to obtain <math>C</math>. Differentiating twice sends both <math>A</math> and <math>B</math> to 0, while only <math>C</math> is left over. Be careful with the coefficient, though.
- <math>2 = 2C \to C = 1</math>
- Plug the coefficients into the decomposed fractions and integrate.
- <math>\begin{align}\int\frac{x^{2} - 4x + 9}{(x+2)^{3}}\mathrm{d}x &= \int\left(\frac{21}{(x+2)^{3}} + \frac{-8}{(x+2)^{2}} + \frac{1}{x+2}\right)\mathrm{d}x \\
&= -\frac{21}{2}\frac{1}{(x+2)^{2}} + \frac{8}{x+2} + \ln|x+2| + c\end{align}</math>
Tips
- Do not forget the constant of integration <math>c</math> if evaluating an indefinite integral!
Related Articles
- Integrate by Substitution
- Integrate by Parts
- Integrate by Parts when One Function Is a Polynomial
- Differentiate Polynomials