You are about to erase your work on this activity. Are you sure you want to do this?
Updated Version Available
There is an updated version of this activity. If you update to the most recent version of this activity, then your current progress on this activity will be erased. Regardless, your record of completion will remain. How would you like to proceed?
Mathematical Expression Editor
We discuss an approach that allows us to integrate rational functions.
1 Basics of polynomial and rational functions
In this course, we are attempting to learn to work with as many functions as possible.
A basic class of functions are polynomial functions:
A polynomial function in the variable \(x\) is a function which can be written in the
form
where the \(a_k\)’s are all constants (called the coefficients) and \(n\) is a whole
number (called the degree when \(n\ne 0\)). The domain of a polynomial function is \((-\infty ,\infty )\).
What are \(a_0\), \(a_1\), \(a_2\), \(a_3\), \(a_4\), \(a_5\)?
\(a_0 = \answer {-5}\)
\(a_1 = \answer {0}\)
\(a_2 = \answer {-1}\)
\(a_3 = \answer {0}\)
\(a_4 = \answer {-24}\)
\(a_5 = \answer {6}\)
In the world of mathematics, polynomials are a generalization of “integers,”
and rational numbers are fractions of integers. This brings us to our next
definition:
A rational function in the variable \(x\) is a function the form
\[ f(x) = \frac {p(x)}{q(x)} \]
where \(p\) and \(q\) are
polynomial functions. The domain of a rational function is all real numbers except for
where the denominator is equal to zero.
All polynomials
can be thought of as rational functions.
2 Denominators with distinct linear factors
We are already skilled at working with polynomials, we can differentiate and
integrate any polynomial function. Being able to integrate any rational function is
the next logical step in our (rather ambitious) quest to integrate all functions. Let’s
dig right in with an example.
Compute:
\[ \int \frac {1}{x^2-1} dx \]
We will suppose that there are numbers \(A\) and \(B\) such that
Expanding the left-hand side, we find a polynomial equal (as
a function!) to the constant polynomial \(1\)
\[ (A+ B)x + (A-B) = 1 \]
Since polynomials are equal as
functions if and only if their coefficients are equal, we may rewrite this as two
equations: \begin{align*} \answer [given]{A+B} &= 0 &\text {(the coefficients for $x$)}\\ \answer [given]{A-B} &= 1 &\text {(the coefficients for the constant)} \end{align*}
Solving these three equations for \(A\) and \(B\) we find
\(A = \answer [given]{1/2}\),
\(B = \answer [given]{-1/2}\).
From this we can now rewrite our integral as \begin{align*} \int \frac {1}{x^2-1} dx &= \int \frac {1/2}{x-1} + \frac {-1/2}{x+1} dx\\ &= (1/2)\ln |x-1| + (-1/2)\ln |x+1|+ K. \end{align*}
What we have seen is part of a general technique of integration called “partial
fractions” that, in principle, allows us to integrate any rational function.
2.1 The general technique for distinct linear factors
Suppose you wish to compute
\[ \int \frac {p(x)}{q(x)} dx \]
where \(p\) and \(q\) are both polynomial functions, the degree
of \(p\) is less than the degree of \(q\), and \(q\) factors into \(n\)distinct linear factors:
Expanding the left-hand side, we find a polynomial equal (as
a function!) to the constant polynomial \(1\)
\[ (A+B)x^2 + (4A+B+C)x + (4A-2B-C) = 1 \]
Since polynomials are equal as
functions if and only if their coefficients are equal, we may rewrite this as
three equations: \begin{align*} \answer [given]{A+B} &= 0 &\text {(the coefficients for $x^2$)}\\ \answer [given]{4A+B+C} &= 0 &\text {(the coefficients for $x$)}\\ \answer [given]{4A-2B-C} &= 1 &\text {(the coefficients for the constant)} \end{align*}
Solving these three equations for \(A\), \(B\) and \(C\) we find
\(A = \answer [given]{1/9}\),
\(B = \answer [given]{-1/9}\),
\(C = \answer [given]{-1/3}\).
From this we can now rewrite our integral as \begin{align*} \int &\frac {1}{(x-1)(x+2)^2}dx= \int \frac {1/9}{x-1}+ \frac {-1/9}{x+2} + \frac {-1/3}{(x+2)^2}dx\\ &= \int \frac {1/9}{x-1}dx + \int \frac {-1/9}{x+2}dx + \int \frac {-1/3}{(x+2)^2}dx,\\ &= \frac {1}{9}\ln |x-1| -\frac {1}{9}\ln |x+2| +\frac {1}{3(x+2)}+K. \end{align*}
3.1 The general technique for repeated linear factors
Suppose you wish to compute
\[ \int \frac {p(x)}{q(x)} dx \]
where \(p\) and \(q\) are both polynomial functions, the
degree of \(p\) is less than the degree of \(q\), and \(q\) factors into \(n\)repeated linear
factors:
The right-hand side of the equation
above is easy to antidifferentiate, as we can integrate it term-by-term and
\begin{align*} \int \frac {A_1}{(x-r)} dx &= A_1 \ln |x-r| + K,\\ \int \frac {A_k}{(x-r)^k} dx &= \frac {A_k}{(1-k)(x-r)^{k-1}}+ K, &\text {(if $k>1$)} \end{align*}
where the \(a_i\)’s
are real (or even complex!) numbers and \(a_n \ne 0\) has exactly \(n\) (possibly repeated) complex
roots.
Remember, a root is where a polynomial is zero. The theorem above is
a deep fact of mathematics. The great mathematician Gauss proved the
theorem in 1799 for his doctoral thesis. This fact can be used to show the
following:
Every polynomial function will factor as a product of
linear terms and irreducible quadratic terms over the real
numbers.
So now let’s work an example where the denominator of our rational function has
distinct quadratic factors.
Since polynomials are equal as functions if and
only if their coefficients are equal, we may rewrite this as three equations:
\begin{align*} \answer [given]{A+B} &= 7 &\text {(the coefficients for $x^2$)}\\ \answer [given]{6A+B+C} &= 31 &\text {(the coefficients for $x$)}\\ \answer [given]{11A+C} &= 54 &\text {(the coefficients for the constant)} \end{align*}
Solving these three equations for \(A\), \(B\) and \(C\) we find
The first term of this new integrand is
easy to evaluate. We find
\[ \int \frac {5}{x+1} dx = 5\ln |x+1|+K. \]
The second term is not hard, but takes several steps and
uses substitution techniques.
The integrand \(\frac {2x-1}{x^2+6x+11}\) has a quadratic in the denominator and a linear term in the
numerator. This leads us to try substitution. Let \begin{align*} g &= x^2+6x+11,\\ dg &= (2x+6)dx. \end{align*}
However, the numerator is \(2x-1\), not \(2x+6\)! We can bypass this difficulty by adding “\(0\)” in the
form of “\(7-7\).” \begin{align*} \frac {2x-1}{x^2+6x+11} &= \frac {2x-1+7-7}{x^2+6x+11} \\ &= \frac {2x+6}{x^2+6x+11} - \frac {7}{x^2+6x+11}. \end{align*}
We can now integrate the first term with substitution, leading to
Let’s start at the beginning and put all of the steps
together. \begin{align*} \int &\frac {7x^2+31x+54}{(x+1)(x^2+6x+11)}dx \\ &= \int \left (\frac {5}{x+1} + \frac {2x-1}{x^2+6x+11}\right )dx \end{align*}
breaking this integral up we find \begin{align*} = \int \frac {5}{x+1}dx &+ \int \frac {2x+6}{x^2+6x+11}dx\\ &-\int \frac {7}{x^2+6x+11}dx \end{align*}
4.1 The general technique for distinct quadratic factors
Suppose you wish to compute
\[ \int \frac {p(x)}{q(x)} dx \]
where \(p\) and \(q\) are both polynomial functions, the degree
of \(p\) is less than the degree of \(q\), and \(q\) factors into \(n\)distinct irreducible quadratic factors:
\[ q(x) = (a_1x^2 + b_1 x + c_1) (a_2x^2 + b_2 x + c_2)\cdots (a_nx^2 + b_n x + c_n) \]
Since
polynomials are equal as functions if and only if their coefficients are
equal, we may rewrite this as five equations: \begin{align*} \answer [given]{A+B} &= 0 &\text {(the coefficients for $x^4$)}\\ \answer [given]{C} &= 0 &\text {(the coefficients for $x^3$)}\\ \answer [given]{2A+B+D} &= 0 &\text {(the coefficients for $x^2$)}\\ \answer [given]{C+E} &= 0 &\text {(the coefficients for $x$)}\\ \answer [given]{A} &= 1 &\text {(the coefficients for the constant)} \end{align*}
Solving these three equations for \(A\), \(B\), \(C\), \(D\), and \(E\) we find
5.1 The general technique for repeated quadratic factors
Suppose you wish to compute
\[ \int \frac {p(x)}{q(x)} dx \]
where \(p\) and \(q\) are both polynomial functions, the degree
of \(p\) is less than the degree of \(q\), and \(q\) factors into \(n\)distinct irreducible quadratic factors:
The right-hand side of the equation can be
antidifferentiated, though it is not always “easy.”
6 Reducing rational functions
When computing
\[ \int \frac {p(x)}{q(x)} dx \]
all of the techniques above rely on the fact that the degree of \(p\) is
less than the degree of \(q\). What if this is not the case? Use long-division.
Compute:
\[ \int \frac {x^3+1}{x^2-1} dx \]
We start by using long-division to reduce the numerator:
As with many other problems in calculus, it is important to remember that one is not
expected to “see” the final answer immediately after seeing the problem. Rather,
given the initial problem, we break it down into smaller problems that are easier
to solve. The final answer is a combination of the answers of the smaller
problems.