(AI6) Partial Fractions#
In this lesson we are going to see how to use the technique of partial fractions to split a rational function up into simpler functions (which are ultimately easier to integrate). For example:
Lecture Videos#
Partial Fraction Decomposition#
We start by factoring the denominator of our rational function and classifying the resulting factors. It is these factors in the denominator that tell us how to write out the form of our partial fraction decomposition.
Term in Denominator |
Description |
Partial Fraction Decomposition |
---|---|---|
\((ax+b)\) |
linear term with multiplicity \(1\) |
\(\dfrac{A}{ax+b}\) |
\((ax+b)^n\) |
linear term with multiplicity \(n\) |
\(\dfrac{A_1}{ax+b}+\dfrac{A_2}{(ax+b)^2}+\cdots + \dfrac{A_n}{(ax+b)^n}\) |
\((ax^2+bx+c)\) |
irreducible quadratic with multiplicity \(1\) |
\(\dfrac{Ax+B}{ax^2+bx+c}\) |
\((ax^2+bx+c)^n\) |
irreducible quadratic with multiplicity \(n\) |
\(\dfrac{A_1x+B_1}{ax^2+bx+c}+\dfrac{A_2x+B_2}{(ax^2+bx+c)^2}+\cdots + \dfrac{A_nx+B_n}{(ax^2+bx+c)^n}\) |
Example 1#
For each function write out the form of the partial fraction decomposition. Do not determine the numerical values of the coefficients.
\(\dfrac{2x+5}{(x-1)(3x+4)}\)
\(\dfrac{3x^2}{(2x+1)(x+1)^3}\)
\(\dfrac{4x^3+5}{x^2(x^2+1)}\)
\(\dfrac{x^2+12x+4}{(x-2)(4+x^2)^2}\)
Example 2#
Show that:
Solution (Click to see the steps.)
We start by writing down the partial fraction decomposition:
Where \(A\) and \(B\) are constants that we need to find.
Multiply both sides of the equation by the denominator on the left side and simplify:
At this point, we need to solve for \(A\) and \(B\) in the equation:
We see two linear terms on the right. Let’s find the \(x\)-values that correspond with these terms:
If we plug these \(x\)-values into our equation, it will greatly simplify it down to a point where we can solve for \(A\) and \(B\).
And finally we plug our values \(A=1\) and \(B=-1\) into the form of the partial fractions decomposition.
Example 3#
Find the partial fraction decomposition of the function
Solution (Click to see the steps.)
We start by factoring the denominator and writing down the partial fraction decomposition:
Where \(A\) and \(B\) are constants that we need to find.
Multiply both sides of the equation by the denominator on the left side and simplify:
At this point, we need to solve for \(A\) and \(B\) in the equation:
We see two linear terms on the right. Let’s find the \(x\)-values that correspond with these terms:
If we plug these \(x\)-values into our equation, it will greatly simplify it down to a point where we can solve for \(A\) and \(B\).
And finally we plug our values \(A=\tfrac{1}{10}\) and \(B=-\tfrac{1}{10}\) into the form of the partial fraction decomposition to get our answer.
Finding Coefficients#
We have two main techniques for finding the partial fraction coefficients like \(A\), \(B\), \(C\):
Plug-in various \(x\)-values. This especially works well when we have distinct linear terms, but can also be effective for the other cases. The idea is that you pick \(x\)-values which:
correspond to the linear terms or are
just nice and easy like \(x=1\), \(x=0\), \(x=-1\).
Compare coefficients of the various powers of \(x\) in your simplified equation.
Identify terms like \(x^0\), \(x^1\), \(x^2\) that show up in the equation.
Set the coefficients from the left side equal to the coefficients from the right.
And of course, you can use a combination of these two strategies.
Finding coefficients
Plug-in various \(x\)-values.
Compare coefficients of the powers of \(x\)
In the next example, we’re going to see how to compare coefficients.
Example 4#
Find the partial fraction decomposition of the function
Solution (Click to see the steps.)
We start by factoring the denominator and writing down the partial fraction decomposition:
Where \((x^2+4)\) is an irreducible quadratic and \(A\), \(B\), \(C\) are constants that we need to find.
Multiply both sides of the equation by the denominator on the left side and simplify:
At this point, we need to solve for \(A\), \(B\), and \(C\) in the equation:
We could use the technique of plugging in various \(x\)-values, but in this example we’re going to compare the coefficients of the powers of \(x\). To do this, let’s multiply everything out:
And combine like terms to get:
Now we compare coefficients between the powers of \(x\) on the left side of this equation and those on the right. (If two polynomails with variable \(x\) are equal then their coefficients must also be equal.)
We can solve that last equation for \(A\) to get: \(A=1\). Then we can plug this into the first equation: \(2=A+B\) to find that \(B=1\)
This gives us: \(A=1\), \(B=1\), \(C=-1\)
And finally we plug our values \(A=1\), \(B=1\), and \(C=-1\) into the form of the partial fraction decomposition to get our answer.
Factoring#
So what makes all this work? Why factoring of course! The Fundamental Theorem of Algebra asserts that every polynomial with real number coefficients can be factored into either linear or irreducible quadratic terms of the form:
multiplicity |
linear |
irreducible quadratic |
---|---|---|
\(1\) |
\(ax+b\) |
\((ax^2+bx+c)\) |
repeated |
\((ax+b)^n\) |
\((ax^2+bx+c)^n\) |
(where \(a\), \(b\), and \(c\) are real numbers)
Irreducible Quadratics#
There are quadratic expressions like \((x^2+4)\) or \((3x^2+x+2)\) that cannot be factored any further into products of linear terms (factored with real number coefficients).
Why is this? Unfortunately, the real numbers are just not “enough.” We need more. We need complex numbers. But this is a calculus course and we’re only working with real numbers. So irreducible quadratics it is!
Checking Irreducibility#
How do we know if a quadratic is irreducible? Try setting it equal to \(0\) and solving for \(x\). Is there a solution? Can it ever equal 0?
Why is \((x^2+4)\) irreducible?
Does \((x^2+4)\) factor any further? If it could, then we would be able to write it in the form \((x+a)(x+b)\), which means that it has at least one real root.
But \(x^2+4\) is always greater than \(0\), which means it cannot equal \(0\), and therefore does not have any real roots. So no, \((x^2+4)\) cannot be factored any further and is therefore irreducible.
Show that \((3x^2+x+2)\) is irreducible using the quadratic formula.
Once we apply the quadratic fomula, the negative under the square root means the quadratic polynomial is irreducible:
Rational Functions#
One technical point that we haven’t mentioned so far, is that partial fraction decompositions do not immediately work for all rational functions. So to address this we make a few definitions:
Rational Functions
A rational function is a function of the form:
where \(P\) and \(Q\) are polynomials with real number coefficients.
Degrees#
We then go on to define the degree of a polynomial:
Degree of a polynomial
The degree of a polynomial is the largest power of \(x\).
The reason for this definition is that partial fraction decompositions only work if the degree of the polynomial in the numerator is less than the degree of the polynomial in the denominator.
Warning
Partial Fraction Decompositions only work for rational functions where \(\text{deg}(P)<\text{deg}(Q)\)
Polynomial Long-Division#
If \(\text{deg}(P)\geq \text{deg}(Q)\), that is the degree of the numerator is greater than or equal to the degree in the denominator, then we need to use polynomial long-division first.
Use polynomial long-division to rewrite: \(\dfrac{x^4-2x^2+4x+1}{x^3-x^2-x+1}\)
Example 5#
Find the partial fraction decomposition of the function
Solution (Click to see the steps.)
We start by doing polynomial long-division in order to get the degree of the numerator less than the degree of the denominator. We repeat our above result here:
Now we can focus on the remainder term of our rational function and work on its partial fraction decomposition. This means factor the denominator and write down the form of the decomposition:
Where \(A\), \(B\), and \(C\) are constants that we need to find.
Multiply both sides of the equation by the denominator on the left side and simplify:
At this point, we need to solve for \(A\), \(B\), and \(C\) in the equation:
Here we’re going to use a combination of our two techniques.
Plug-in: Let’s start by plugging in \(x=1\) and \(x=-1\), since these correspond to our two linear terms \((x-1)\) and \((x+1)\), respectively.
Compare coefficients: We could keep going and plug in another \(x\)-value (something easy like \(x=0\)). But instead let’s try comparing coefficients, and in particular the coefficients of all \(x^2\) terms:
There is no \(x^2\) term on the left side, so this means the coefficient is \(0\).
On the right side, we’re only going to get an \(x^2\) when we multiply out the \(A(x-1)(x+1)\) and the \(C(x-1)^2\). This means the coefficient of \(x^2\) on the right is \(A+C\)
Putting these together gives us:
And since we already know \(C=-1\), we get \(A=1\). Therefore, we have: \(A=1\), \(B=2\), \(C=-1\)
We plug our values \(A=1\), \(B=2\), and \(C=-1\) into the form of the partial fraction decomposition.
And then finally we put this together with our result from the polynomial long-division:
Summary#
We end by summarizing the steps needed to complete the partial fraction decomposition of a rational function.
Partial Fraction Decomposition
Use polynomial long division if necessary. We need \(\text{deg}(P)<\text{deg}(Q)\).
Factor the denominator \(Q(x)\).
Break the fraction apart based on the multiplicity of the linear and irreducible quadratic terms in the denominator.
Solve for the coefficients \(A\), \(B\), \(C\), …
The hardest part of all of this in general is factoring the denominator. A few extra tips:
The quadratic formula can be used to help determine factors. If \(x=2\) is a solution, then \((x-2)\) is a factor.
Look for “easy solutions” like \(x=1\), \(x=0\), \(x=-1\), and then use polynomial long-division to find the remainder.