Rational functions – functions that only involve polynomials – are often ‘safe’ to integrate because we have a whole host of methods that can allow us to integrate pretty much any rational function. Now, this can often end up being quite long because of all the splitting and reshaping we have to do, but we can often look at an integral like
and go, “yep, we can do this no problem.” It might just be a bit long. This is more likely to happen with arbitrary polynomials, but of course in recreational integration, we mathematicians love nice numbers. So there’s a good chance your polynomial(s) will factorise nicely in some way.
When the denominator does factorise, we can use partial fractions to split the entire expression like so:
This reduces a large, messy fraction of polynomials into several smaller terms which are much easier to integrate.
Partial fractions is not technically an integration technique (it’s an algebraic manipulation that stands perfectly well on its own, and finds use outside of integration), but it’s essential for integrating fractions like this.
Splitting the Mind
We’ll start with the simplest case, where we have a constant numerator and factorised quadratic denominator:
We know we can write the above expression using partial fractions as
The challenge now is to find the values of and .
If you’ve never done this before, it can be a bit mindblowing that you can solve 2 unknowns (or even more than 2, for cubics, quartics, etc.) from just a single equation! The reason we’re able to do so is that this equation hides a lot of very specific information, which we’ll see very soon.
Even if we might have no idea of where we’re going, we don’t like fractions when solving an equation. So let’s multiply through by each of the factors:
This removes the fraction on the left, and multiplies each of and by some terms. We can now expand and re-factorise:
This looks like a polynomial equation, but we’re not actually solving for here! We’re trying to solve for the coefficients that guarantee the equation holds for all values of .
It’s not an equation for , but a relationship between 2 polynomials.
This is the crux here. It means the 2 sides of the equation must represent the same polynomial. That means we can compare the coefficients of each power of .
In this case, the left is a constant polynomial, which makes things very simple. The coefficients of and must both be , while the constant is . So we obtain a system of equations:
Which solves to give and .
Cool stuff, eh? That 1 polynomial relation really encapsulated 3 individual equations.
We’ve found the values of our coefficients, so going back to our integral, we can now rewrite the fraction as
These fractions have constant numerators and linear denominators, so they just become straight-up layer cake.
So, if we have any integral like
and we can factorise the denominator, then we can use partial fractions to split it into individual fractions which we can easily integrate.
In fact, we can integrate the reciprocal of any polynomial with partial fractions, as long as we can factorise it. Equating coefficients gives us a general framework for solving any partial fraction decomposition. Even if we have a higher degree polynomial:
This means we have another power of to compare coefficients for, giving us another equation. 4 equations is more than enough to solve for 3 unknowns. So we will always have enough equations to solve for all the coefficients.
Cleansing the Mind
Solving the equations is great, and it’s wonderfully formulaic, but sometimes it’s just a bit long. Especially when you have many factors.
I mean, expanding that isn’t exactly that fun.
But remember that this equation holds true for all values of . So, we could just straight-up substitute in any value of that we want. Looking here, what values of would help us most in determining the values of , , ?
Well, to solve for we’d want to get rid of and . And notice both of those variables have an term attached. So if we let , those terms become , which erases and . This isn’t the case for , which stays behind, giving us a simple number-crunching equation to solve.
Woah, isn’t that so much faster?
Now you get the gist of it. How would we get rid of and , leaving ? and have been multiplied by , so let to make those become :
And finally, isolate by letting :
There we go, 3 variables done and dusted. Hence:
This is definitely my preferred way of solving partial fractions, although it won’t always carry you to the end. This is especially true for partial fractions with repeated roots, where things get a little spicier. Let’s take a look at those next.
Shattering the Mind
There are, broadly speaking, 3 types of partial fraction terms:
type | examples | notes |
---|---|---|
unique root | , , | |
repeated root | , , | The same factor of more than once. |
irreducible quadratic | , | A degree 2 polynomial that can’t be factorised (has complex roots). |
For instance, this full-flavour fraction:
Has in the denominator a unique root of , a repeated root of , and an irreducible quadratic of .
These 3 types of terms decompose differently.
Unique Root
Unique roots split as we’ve seen above, nothing special there.
Repeated Roots
When we have the same expression raised to a power, we have to ‘count up’ the lower powers when expanding to partial fractions. So for a double repeated root:
Here we have terms over , up to , and along with the unique root.
Yes, this does mean extra variables to solve. It’s not very nice.
Irreducible Quadratic
But that’s nowhere near as not nice as having a quadratic you can’t factorise. We account for this by having a linear (degree 1 polynomial) numerator, which has 2 constants to solve for…
The worst part is, even after solving for them, you might have to further manipulate that term to integrate it. If you’re lucky and the question’s been engineered nicely, it’ll already be arctan or layer cake, but if not, you’ll usually split it into 1 layer cake and 1 arctan. The arctan will probably have coefficients too, lol.