Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

8.6: Rational Functions

( \newcommand{\kernel}{\mathrm{null}\,}\)

A rational function is a fraction with polynomials in the numerator and denominator. For example,

x3x2+x6,1(x3)2,x2+1x21,

are all rational functions of x. There is a general technique called "partial fractions'' that, in principle, allows us to integrate any rational function. The algebraic steps in the technique are rather cumbersome if the polynomial in the denominator has degree more than 2, and the technique requires that we factor the denominator, something that is not always possible. However, in practice one does not often run across rational functions with high degree polynomials in the denominator for which one has to find the antiderivative function. So we shall explain how to find the antiderivative of a rational function only when the denominator is a quadratic polynomial ax2+bx+c.

We should mention a special type of rational function that we already know how to integrate: If the denominator has the form (ax+b)n, the substitution u=ax+b will always work. The denominator becomes un, and each x in the numerator is replaced by (ub)/a, and dx=du/a. While it may be tedious to complete the integration if the numerator has high degree, it is merely a matter of algebra.

Example \( \PageIndex{1}\

Find x3(32x)5dx.

Solution

Using the substitution u=32x we get

x3(32x)5dx=12(u32)3u5du=116u39u2+27u27u5du=116u29u3+27u427u5du=116(u119u22+27u3327u44)+C=116((32x)119(32x)22+27(32x)3327(32x)44)+C=116(32x)+932(32x)2916(32x)3+2764(32x)4+C.

We now proceed to the case in which the denominator is a quadratic polynomial. We can always factor out the coefficient of x2 and put it outside the integral, so we can assume that the denominator has the form x2+bx+c. There are three possible cases, depending on how the quadratic factors: either x2+bx+c=(xr)(xs), x2+bx+c=(xr)2, or it doesn't factor. We can use the quadratic formula to decide which of these we have, and to factor the quadratic if it is possible.

Example \( \PageIndex{2}\

Determine whether x2+x+1 factors, and factor it if possible.

Solution

The quadratic formula tells us that x2+x+1=0 when x=1±142. Since there is no square root of 3, this quadratic does not factor.

Example \( \PageIndex{3}\

Determine whether x2x1 factors, and factor it if possible.

Solution

The quadratic formula tells us that x2x1=0 when

x=1±1+42=1±52.

Therefore

x2x1=(x1+52)(x152).

If x2+bx+c=(xr)2 then we have the special case we have already seen, that can be handled with a substitution. The other two cases require different approaches.

If x2+bx+c=(xr)(xs), we have an integral of the form

p(x)(xr)(xs)dx

where p(x) is a polynomial. The first step is to make sure that p(x) has degree less than 2.

Example \( \PageIndex{4}\

Rewrite x3(x2)(x+3)dx in terms of an integral with a numerator that has degree less than 2.

Solution

To do this we use long division of polynomials to discover that

x3(x2)(x+3)=x3x2+x6=x1+7x6x2+x6=x1+7x6(x2)(x+3),

so

x3(x2)(x+3)dx=x1dx+7x6(x2)(x+3)dx.

The first integral is easy, so only the second requires some work.

Now consider the following simple algebra of fractions: \[ {A\over x-r}+{B\over x-s}={A(x-s)+B(x-r)\over (x-r)(x-s)}= {(A+B)x-As-Br\over (x-r)(x-s)}. \[ That is, adding two fractions with constant numerator and denominators (xr) and (xs) produces a fraction with denominator (xr)(xs) and a polynomial of degree less than 2 for the numerator. We want to reverse this process: starting with a single fraction, we want to write it as a sum of two simpler fractions. An example should make it clear how to proceed.

Example \( \PageIndex{5}\

Evaluate x3(x2)(x+3)dx.

Solution

We start by writing 7x6(x2)(x+3) as the sum of two fractions. We want to end up with

7x6(x2)(x+3)=Ax2+Bx+3.

If we go ahead and add the fractions on the right hand side we get

7x6(x2)(x+3)=(A+B)x+3A2B(x2)(x+3).

So all we need to do is find A and B so that 7x6=(A+B)x+3A2B, which is to say, we need 7=A+B and 6=3A2B. This is a problem you've seen before: solve a system of two equations in two unknowns.

There are many ways to proceed; here's one: If 7=A+B then B=7A and so 6=3A2B=3A2(7A)=3A14+2A=5A14. This is easy to solve for A: A=8/5, and then B=7A=78/5=27/5. Thus

7x6(x2)(x+3)dx=851x2+2751x+3dx=85ln|x2|+275ln|x+3|+C.

The answer to the original problem is now

x3(x2)(x+3)dx=x1dx+7x6(x2)(x+3)dx=x22x+85ln|x2|+275ln|x+3|+C.

Now suppose that x2+bx+c does not factor. Again we can use long division to ensure that the numerator has degree less than 2, then we complete the square.

Example \( \PageIndex{6}\

Evaluate

x+1x2+4x+8dx.

Solution

The quadratic denominator does not factor. We could complete the square and use a trigonometric substitution, but it is simpler to rearrange the integrand:

x+1x2+4x+8dx=x+2x2+4x+8dx1x2+4x+8dx.

The first integral is an easy substitution problem, using u=x2+4x+8:

x+2x2+4x+8dx=12duu=12ln|x2+4x+8|.

For the second integral we complete the square:

x2+4x+8=(x+2)2+4=4((x+22)2+1),

making the integral

141(x+22)2+1dx.

Using u=x+22 we get

141(x+22)2+1dx=142u2+1dx=12arctan(x+22).

The final answer is now

x+1x2+4x+8dx=12ln|x2+4x+8|12arctan(x+22)+C.

Contributors


This page titled 8.6: Rational Functions is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by David Guichard via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?