Module 6 – Rational Functions
Learning Objectives
In this section, you will:
- Use arrow notation.
- Solve applied problems involving rational functions.
- Find the domains of rational functions.
- Identify vertical asymptotes.
- Identify horizontal asymptotes.
- Graph rational functions.
Suppose we know that the cost of making a product is dependent on the number of items, [latex]x[/latex], produced. This is given by the equation [latex]C(x) = 15,000x − 0.1x^{2} + 1000[/latex]. If we want to know the average cost for producing [latex]x[/latex] items, we would divide the cost function by the number of items, [latex]x[/latex]. The average cost function, which yields the average cost per item for [latex]x[/latex] items produced, is
[latex]f(x) = \dfrac{15,000x − 0.1x^{2} + 1000}{x}[/latex]
Many other application problems require finding an average value in a similar way, giving us variables in the denominator. Written without a variable in the denominator, this function will contain a negative integer power. In the last few sections, we have worked with polynomial functions, which are functions with non-negative integers for exponents. In this section, we explore rational functions, which have variables in the denominator.
Using Arrow Notation
We have seen the graphs of the basic reciprocal function and the squared reciprocal function from our study of toolkit functions. Examine these graphs, as shown in Figure 1, and notice some of their features.
Several things are apparent if we examine the graph of [latex]f(x) = \dfrac{1}{x}[/latex].
- On the left branch of the graph, the curve approaches the x-axis [latex](y = 0)[/latex] as [latex]x \rightarrow - \infty[/latex].
- As the graph approaches [latex]x = 0[/latex] from the left, the curve drops, but as we approach zero from the right, the curve rises.
- Finally, on the right branch of the graph, the curves approaches the x-axis [latex](y = 0)[/latex] as [latex]x \rightarrow \infty[/latex].
To summarize, we use arrow notation to show that [latex]x[/latex] or [latex]f(x)[/latex] is approaching a particular value. See Table 1.
Symbol |
Meaning |
[latex]x \rightarrow a^{-}[/latex] | [latex]x[/latex] approaches [latex]a[/latex] from the left [latex](x < a \text{ but close to } a)[/latex] |
[latex]x \rightarrow a^{+}[/latex] | [latex]x[/latex] approaches [latex]a[/latex] from the right [latex](x > a \text{ but close to } a)[/latex] |
[latex]x \rightarrow \infty[/latex] | [latex]x[/latex] approaches infinity ([latex]x[/latex] increases without bound) |
[latex]x \rightarrow - \infty[/latex] | [latex]x[/latex] approaches negative infinity ([latex]x[/latex] decreases without bound) |
[latex]f(x) \rightarrow \infty[/latex] | The output approaches infinity (the output increases without bound) |
[latex]f(x) \rightarrow - \infty[/latex] | The output approaches negative infinity (the output decreases without bound) |
[latex]f(x) \rightarrow a[/latex] | The output approaches [latex]a[/latex] |
Table 1 Arrow Notation
Local Behavior of [latex]\pmb{\textcolor{#066d8a}{f(x) = \dfrac{1}{x}}}[/latex]
Let’s begin by looking at the reciprocal function, [latex]f(x) = \dfrac{1}{x}[/latex]. We cannot divide by zero, which means the function is undefined at [latex]x = 0[/latex]; so zero is not in the domain. As the input values approach zero from the left side (becoming very small, negative values), the function values decrease without bound (in other words, they approach negative infinity). We can see this behavior in Table 2.
[latex]\pmb{x}[/latex] | [latex]-0.1[/latex] | [latex]-0.01[/latex] | [latex]-0.001[/latex] | [latex]-0.0001[/latex] |
[latex]\pmb{f(x) = \dfrac{1}{x}}[/latex] | [latex]-10[/latex] | [latex]-100[/latex] | [latex]-1000[/latex] | [latex]-10,000[/latex] |
Table 2
We write in arrow notation
as [latex]x \rightarrow 0^{-} , f(x)\rightarrow - \infty[/latex].
As the input values approach zero from the right side (becoming very small, positive values), the function values increase without bound (approaching infinity). We can see this behavior in Table 3.
[latex]\pmb{x}[/latex] | [latex]0.1[/latex] | [latex]0.01[/latex] | [latex]0.001[/latex] | [latex]0.0001[/latex] |
[latex]\pmb{f(x) = \dfrac{1}{x}}[/latex] | [latex]10[/latex] | [latex]100[/latex] | [latex]1000[/latex] | [latex]10,000[/latex] |
Table 3
We write in arrow notation
as [latex]x \rightarrow 0^{+} , f(x)\rightarrow \infty[/latex].
See Figure 2.
This behavior creates a vertical asymptote, which is a vertical line that the graph approaches but never crosses. In this case, the graph is approaching the vertical line [latex]x = 0[/latex] as the input becomes close to zero. See Figure 3.
A vertical asymptote of a graph is a vertical line [latex]x = a[/latex] where the graph tends toward positive or negative infinity as the inputs approach [latex]a[/latex]. We write
[latex]\text{as } x \rightarrow a , f(x)\rightarrow \infty \text{ or as } x \rightarrow a , f(x)\rightarrow - \infty.[/latex]
End Behavior of [latex]\pmb{\textcolor{#066d8a}{f(x) = \dfrac{1}{x}}}[/latex]
As the values of x approach infinity, the function values approach [latex]0[/latex]. As the values of [latex]x[/latex] approach negative infinity, the function values approach [latex]0[/latex]. See Figure 4. Symbolically, using arrow notation
as [latex]x \rightarrow \infty , f(x)\rightarrow 0[/latex] , and as [latex]x \rightarrow - \infty , f(x)\rightarrow 0[/latex]
Based on this overall behavior and the graph, we can see that the function approaches [latex]0[/latex] but never actually reaches [latex]0[/latex]; it seems to level off as the inputs become large. This behavior creates a horizontal asymptote, a horizontal line that the graph approaches as the input increases or decreases without bound. In this case, the graph is approaching the horizontal line [latex]y = 0[/latex]. See Figure 5.
A horizontal asymptote of a graph is a horizontal line [latex]y = b[/latex] where the graph approaches the line as the inputs increase or decrease without bound. We write
[latex]\text{as } x \rightarrow \infty \text{ or } x \rightarrow - \infty , f(x)\rightarrow b.[/latex]
Example 1 Using Arrow Notation
Use arrow notation to describe the end behavior and local behavior of the function graphed in Figure 6.
Solution Notice that the graph is showing a vertical asymptote at [latex]x = 2[/latex], which tells us that the function is undefined at [latex]x = 2[/latex].
As [latex]x \rightarrow 2^{-} , f(x)\rightarrow - \infty[/latex], and as [latex]x \rightarrow 2^{+} , f(x)\rightarrow \infty[/latex].
And as the inputs decrease without bound, the graph appears to be leveling off at output values of [latex]4[/latex], indicating a horizontal asymptote at [latex]y = 4[/latex]. As the inputs increase without bound, the graph levels off at [latex]4[/latex].
As [latex]x \rightarrow \infty , f(x) \rightarrow 4[/latex] and as [latex]x \rightarrow - \infty , f(x) \rightarrow 4[/latex].
Try it
Example 2 Using Transformations to Graph a Rational Function
Sketch a graph of the reciprocal function shifted two units to the left and up three units. Identify the horizontal and vertical asymptotes of the graph, if any.
Solution Shifting the graph left 2 and up 3 would result in the function
[latex]f(x) = \dfrac{1}{x + 2} + 3[/latex]
or equivalently, by giving the terms a common denominator,
[latex]f(x) = \dfrac{3x + 7}{x + 2}[/latex]
The graph of the shifted function is displayed in Figure 7.
Notice that this function is undefined at [latex]x = −2[/latex], and the graph also is showing a vertical asymptote at [latex]x = −2[/latex].
[latex]\text{As } x \rightarrow -2^{-} , f(x)\rightarrow - \infty, \text{ and as } x \rightarrow 2^{+} , f(x)\rightarrow \infty.[/latex]
As the inputs increase and decrease without bound, the graph appears to be leveling off at output values of 3, indicating a horizontal asymptote at [latex]y = 3[/latex].
[latex]\text{As } x \rightarrow \pm \infty , f(x) \rightarrow 3.[/latex]
Analysis Notice that horizontal and vertical asymptotes are shifted left 2 and up 3 along with the function.
Try it
Solving Applied Problems Involving Rational Functions
In Example 2, we shifted a toolkit function in a way that resulted in the function [latex]f(x) = \dfrac{3x + 7}{x + 2}[/latex]. This is an example of a rational function. A rational function is a function that can be written as the quotient of two polynomial functions. Many real-world problems require us to find the ratio of two polynomial functions. Problems involving rates and concentrations often involve rational functions.
rational function
A rational function is a function that can be written as the quotient of two polynomial functions [latex]P(x)[/latex] and [latex]Q(x)[/latex].
[latex]f(x) = \dfrac{P(x)}{Q(x)} = \dfrac{a_{p}x^{p} + a_{p - 1}x^{p - 1} + \cdots + a_{1}x + a_{0}}{b_{q}x^{q} + b_{q - 1}x^{q - 1} + \cdots + b_{1}x + b_{0}} , Q(x) \neq 0[/latex]
Example 3 Solving an Applied Problem Involving a Rational Function
A large mixing tank currently contains 100 gallons of water into which 5 pounds of sugar have been mixed. A tap will open pouring 10 gallons per minute of water into the tank at the same time sugar is poured into the tank at a rate of 1 pound per minute. Find the concentration (pounds per gallon) of sugar in the tank after 12 minutes. Is that a greater concentration than at the beginning?
Solution Let t be the number of minutes since the tap opened. Since the water increases at 10 gallons per minute, and the sugar increases at 1 pound per minute, these are constant rates of change. This tells us the amount of water in the tank is changing linearly, as is the amount of sugar in the tank. We can write an equation independently for each:
water: [latex]W(t) = 100 + 10t[/latex] in gallons
sugar: [latex]S(t) = 5 + 1t[/latex] in pounds
The concentration, [latex]C[/latex], will be the ratio of pounds of sugar to gallons of water
[latex]C(t) = \dfrac{5 + t}{100 + 10t}[/latex]
The concentration after 12 minutes is given by evaluating [latex]C(t)[/latex] at [latex]t = 12[/latex].
\begin{align*}
C(12) &= \dfrac{5 + 12}{100 + 10(12)}\\
&= \dfrac{17}{220}
\end{align*}
This means the concentration is 17 pounds of sugar to 220 gallons of water.
At the beginning, the concentration is
\begin{align*}
C(0) &= \dfrac{5 + 0}{100 + 10(0)}\\
&= \dfrac{1}{20}
\end{align*}
Since [latex]\dfrac{17}{220} \approx 0.08 > \dfrac{1}{20} = 0.05[/latex], the concentration is greater after 12 minutes than at the beginning.
Try it
Finding the Domains of Rational Functions
A vertical asymptote represents a value at which a rational function is undefined, so that value is not in the domain of the function. A reciprocal function cannot have values in its domain that cause the denominator to equal zero. In general, to find the domain of a rational function, we need to determine which inputs would cause division by zero.
domain of a rational function
The domain of a rational function includes all real numbers except those that cause the denominator to equal zero.
How To...
Given a rational function, find the domain.
- Set the denominator equal to zero.
- Solve to find the x-values that cause the denominator to equal zero.
- The domain is all real numbers except those found in Step 2.
Example 4 Finding the Domain of a Rational Function
Find the domain of [latex]f(x) = \dfrac{x + 3}{x^{2} - 9}[/latex].
Solution Begin by setting the denominator equal to zero and solving.
\begin{align*}
x^{2} - 9 &= 0\\
x^{2} &= 9\\
x &= \pm 3
\end{align*}
The denominator is equal to zero when [latex]x = \pm 3[/latex]. The domain of the function is all real numbers except [latex]x = \pm 3[/latex].
Analysis A graph of this function, as shown in Figure 8, confirms that the function is not defined when [latex]x = \pm 3[/latex].
There is a vertical asymptote at [latex]x = 3[/latex] and a hole in the graph at [latex]x = −3[/latex]. We will discuss these types of holes in greater detail later in this section.
Try it
Find the domain of [latex]f(x) = \dfrac{4x}{5(x-1)(x - 5)}[/latex].
Identifying Vertical Asymptotes of Rational Functions
By looking at the graph of a rational function, we can investigate its local behavior and easily see whether there are asymptotes. We may even be able to approximate their location. Even without the graph, however, we can still determine whether a given rational function has any asymptotes, and calculate their location.
Vertical Asymptotes
The vertical asymptotes of a rational function may be found by examining the factors of the denominator that are not common to the factors in the numerator. Vertical asymptotes occur at the zeros of such factors.
How To...
Given a rational function, identify any vertical asymptotes of its graph.
- Factor the numerator and denominator.
- Note any restrictions in the domain of the function.
- Reduce the expression by canceling common factors in the numerator and the denominator.
- Note any values that cause the denominator to be zero in this simplified version. These are where the vertical asymptotes occur.
- Note any restrictions in the domain where asymptotes do not occur. These are removable discontinuities or "holes."
Example 5 Identifying Vertical Asymptotes
Find the vertical asymptotes of the graph of [latex]k(x) = \dfrac{5 + 2x^{2}}{2 - x - x^{2}}[/latex].
Solution First, factor the numerator and denominator.
\begin{align*}
k(x) &= \dfrac{5 + 2x^{2}}{2 - x - x^{2}}\\
&= \dfrac{5 + 2x^{2}}{(2 + x)(1 - x)}
\end{align*}
To find the vertical asymptotes, we determine where this function will be undefined by setting the denominator equal to zero:
\begin{align*}
(2 + x)(1 - x) &= 0\\
x &= -2, 1
\end{align*}
Neither [latex]x = −2[/latex] nor [latex]x = 1[/latex] are zeros of the numerator, so the two values indicate two vertical asymptotes. The graph in Figure 9 confirms the location of the two vertical asymptotes.
Removable Discontinuities
Occasionally, a graph will contain a hole: a single point where the graph is not defined, indicated by an open circle. We call such a hole a removable discontinuity.
For example, the function [latex]f(x) = \dfrac{x^{2} - 1}{x^{2} - 2x - 3}[/latex] may be re-written by factoring the numerator and the denominator.
[latex]f(x) = \dfrac{(x + 1)(x - 1)}{(x + 1)(x - 3)}[/latex]
Notice that [latex]x + 1[/latex] is a common factor to the numerator and the denominator. The zero of this factor, [latex]x = −1[/latex], is the location of the removable discontinuity. Notice also that [latex]x − 3[/latex] is not a factor in both the numerator and denominator. The zero of this factor, [latex]x = 3a[/latex], is the vertical asymptote. See Figure 10. [Note that removable discontinuities may not be visible when we use a graphing calculator, depending upon the window selected.]
removable discontinuities of rational functions
A removable discontinuity occurs in the graph of a rational function at [latex]x = a[/latex] if a is a zero for a factor in the denominator that is common with a factor in the numerator. We factor the numerator and denominator and check for common factors. If we find any, we set the common factor equal to 0 and solve. This is the location of the removable discontinuity. This is true if the multiplicity of this factor is greater than or equal to that in the denominator. If the multiplicity of this factor is greater in the denominator, then there is still an asymptote at that value.
Example 6 Identifying Vertical Asymptotes and Removable Discontinuities for a Graph
Find the vertical asymptotes and removable discontinuities of the graph of [latex]k(x) = \dfrac{x - 2}{x^{2} - 4}[/latex].
Solution Factor the numerator and the denominator.
[latex]k(x) = \dfrac{x - 2}{(x - 2)(x + 2)}[/latex]
Notice that there is a common factor in the numerator and the denominator, [latex]x − 2[/latex]. The zero for this factor is [latex]x = 2[/latex]. This is the location of the removable discontinuity.
Notice that there is a factor in the denominator that is not in the numerator, [latex]x + 2[/latex]. The zero for this factor is [latex]x = −2[/latex]. The vertical asymptote is [latex]x = −2[/latex]. See Figure 11.
The graph of this function will have the vertical asymptote at [latex]x = −2[/latex], but at [latex]x = 2[/latex] the graph will have a hole.
Try it
Find the vertical asymptotes and removable discontinuities of the graph of
[latex]f(x) = \dfrac{x^{2} - 25}{x^{3} - 6x^{2} + 5x}[/latex].
Identifying Horizontal Asymptotes of Rational Functions
While vertical asymptotes describe the behavior of a graph as the output gets very large or very small, horizontal asymptotes help describe the behavior of a graph as the input gets very large or very small. Recall that a polynomial’s end behavior will mirror that of the leading term. Likewise, a rational function’s end behavior will mirror that of the ratio of the function that is the ratio of the leading term.
There are three distinct outcomes when checking for horizontal asymptotes:
Case 1: If the degree of the denominator [latex]>[/latex] degree of the numerator, there is a horizontal asymptote at [latex]y = 0[/latex].
[latex]\text{Example: } f(x) = \dfrac{4x + 2}{x^{2} + 4x - 5}[/latex]
In this case, the end behavior is [latex]f(x) \approx \dfrac{4x}{x^{2}} = \dfrac{4}{x}[/latex]. This tells us that, as the inputs increase or decrease without bound, this function will behave similarly to the function [latex]g(x) = \dfrac{4}{x}[/latex] , and the outputs will approach zero, resulting in a horizontal asymptote at [latex]y = 0[/latex]. See Figure 12. Note that this graph crosses the horizontal asymptote.
Case 2: If the degree of the denominator [latex]
[latex] \text{Example: } f(x) = \dfrac{3x^{2} - 2x + 1}{x - 1}[/latex]
In this case, the end behavior is [latex]f(x) \approx \dfrac{3x^{2}}{x} = 3x[/latex]. This tells us that as the inputs increase or decrease without bound, this function will behave similarly to the function [latex]g(x) = 3x[/latex]. As the inputs grow large, the outputs will grow and not level off, so this graph has no horizontal asymptote. However, the graph of [latex]g(x) = 3x[/latex] looks like a diagonal line, and since [latex]f[/latex] will behave similarly to [latex]g[/latex], it will approach a line close to [latex]y = 3x[/latex]. This line is a slant asymptote.
To find the equation of the slant asymptote, divide [latex]\dfrac{3x^{2} - 2x + 1}{x - 1}[/latex]. The quotient is [latex]3x + 1[/latex], and the remainder is [latex]2[/latex]. The slant asymptote is the graph of the line [latex]g(x) = 3x + 1[/latex]. See Figure 13.
Case 3: If the degree of the denominator [latex]=[/latex] degree of the numerator, there is a horizontal asymptote at [latex]y = \dfrac{a_{n}}{b_{n}}[/latex], where [latex]a_{n}[/latex] and [latex]b_{n}[/latex] are the leading coefficients of [latex]p(x)[/latex] and [latex]q(x)[/latex] for [latex]f(x) = \dfrac{p(x)}{q(x)}, q(x) \neq 0[/latex].
[latex]\text{Example: } f(x) = \dfrac{3x^{2} + 2}{x^{2} + 4x - 5}[/latex]
In this case, the end behavior is [latex]f(x) \approx \dfrac{3x^{2}}{x^{2}} = 3[/latex]. This tells us that as the inputs grow large, this function will behave like the function [latex]g(x) = 3[/latex], which is a horizontal line. As [latex]x \rightarrow \pm \infty , f(x) \rightarrow 3[/latex], resulting in a horizontal asymptote at [latex]y = 3[/latex]. See Figure 14. Note that this graph crosses the horizontal asymptote.
Notice that, while the graph of a rational function will never cross a vertical asymptote, the graph may or may not cross a horizontal or slant asymptote. Also, although the graph of a rational function may have many vertical asymptotes, the graph will have at most one horizontal (or slant) asymptote.
It should be noted that, if the degree of the numerator is larger than the degree of the denominator by more than one, the end behavior of the graph will mimic the behavior of the reduced end behavior fraction. For instance, if we had the function
[latex]f(x) = \dfrac{3x^{5} - x^{2}}{x + 3}[/latex]
with end behavior
[latex]f(x) \approx \dfrac{3x^{5}}{x} = 3x^{4},[/latex]
the end behavior of the graph would look similar to that of an even polynomial with a positive leading coefficient.
[latex]x \rightarrow \pm \infty, f(x) \rightarrow \infty[/latex]
The horizontal asymptote of a rational function can be determined by looking at the degrees of the numerator and denominator.
- Degree of numerator is less than degree of denominator: horizontal asymptote at y = 0.
- Degree of numerator is greater than degree of denominator by one: no horizontal asymptote; slant asymptote.
- Degree of numerator is equal to degree of denominator: horizontal asymptote at ratio of leading coefficients.
Example 7 Identifying Horizontal and Slant Asymptotes
For the functions listed, identify the horizontal or slant asymptote.
- [latex]g(x) = \dfrac{6x^{3} - 10x}{2x^{3} +5x^{2}}[/latex]
- [latex]h(x) = \dfrac{x^{2} - 4x + 1}{x + 2}[/latex]
- [latex]k(x) = \dfrac{x^{2} + 4x}{x^{3} - 8}[/latex]
Solution For these solutions, we will use [latex]f(x) = \dfrac{p(x)}{q(x)} , q(x) \neq 0[/latex].
- [latex]g(x) = \dfrac{6x^{3} - 10x}{2x^{3} + 5x^{2}}[/latex]: The degree of [latex]p =[/latex] degree of [latex]q = 3[/latex], so we can find the horizontal asymptote by taking the ratio of the leading terms. There is a horizontal asymptote at [latex]y = \dfrac{6}{2}[/latex] or [latex]y = 3[/latex].
- [latex]h(x) = \dfrac{x^{2} - 4x + 1}{x + 2}[/latex]: The degree of [latex]p = 2[/latex] and degree of [latex]q = 1[/latex]. Since [latex]p > q[/latex] by 1, there is a slant asymptote found at [latex]\dfrac{x^{2} - 4x + 1}{x + 2}[/latex].
- [latex]k(x) = \dfrac{x^{2} + 4x}{x^{3} - 8}[/latex]: The degree of [latex]p = 2 <[/latex] degree of [latex]q = 3[/latex], so there is a horizontal asymptote [latex]y = 0[/latex].</li>
Example 8 Identifying Horizontal Asymptotes
In the sugar concentration problem earlier, we created the equation [latex]C(t) = \dfrac{5 + t}{100 + 10t}[/latex].
Find the horizontal asymptote and interpret it in context of the problem.
Solution Both the numerator and denominator are linear (degree 1). Because the degrees are equal, there will be a horizontal asymptote at the ratio of the leading coefficients. In the numerator, the leading term is [latex]t[/latex], with coefficient 1. In the denominator, the leading term is [latex]10t[/latex], with coefficient 10. The horizontal asymptote will be at the ratio of these values:
[latex]t \rightarrow \infty , C(t) \rightarrow \dfrac{1}{10}[/latex]
This function will have a horizontal asymptote at [latex]y = \dfrac{1}{10}[/latex].
This tells us that as the values of [latex]t[/latex] increase, the values of [latex]C[/latex] will approach [latex]\dfrac{1}{10}[/latex]. In context, this means that, as more time goes by, the concentration of sugar in the tank will approach one-tenth of a pound of sugar per gallon of water or [latex]\dfrac{1}{10}[/latex] pounds per gallon.
Example 9 Identifying Horizontal and Vertical Asymptotes
Find the horizontal and vertical asymptotes of the function
[latex]f(x) = \dfrac{(x - 2)(x + 3)}{(x - 1)(x + 2)(x - 5)}[/latex]
Solution First, note that this function has no common factors, so there are no potential removable discontinuities.
The function will have vertical asymptotes when the denominator is zero, causing the function to be undefined. The denominator will be zero at [latex]x = 1, −2, \text{ and } 5[/latex], indicating vertical asymptotes at these values.
The numerator has degree 2, while the denominator has degree 3. Since the degree of the denominator is greater than the degree of the numerator, the denominator will grow faster than the numerator, causing the outputs to tend towards zero as the inputs get large, and so as [latex]x \rightarrow \pm \infty , f(x) \rightarrow 0[/latex]. This function will have a horizontal asymptote at [latex]y = 0[/latex]. See Figure 15.
Try it
Find the vertical and horizontal asymptotes of the function:
[latex]f(x) = \dfrac{(2x - 1)(2x + 1)}{(x - 2)(x + 3)}[/latex]
intercepts of rational functions
A rational function will have a y-intercept when the input is zero, if the function is defined at zero. A rational function will not have a y-intercept if the function is not defined at zero.
Likewise, a rational function will have x-intercepts at the inputs that cause the output to be zero. Since a fraction is only equal to zero when the numerator is zero, x-intercepts can only occur when the numerator of the rational function is equal to zero.
Example 10 Finding the Intercepts of a Rational Function
Find the intercepts of [latex]f(x) = \dfrac{(x - 2)(x + 3)}{(x - 1)(x + 2)(x - 5)}[/latex].
Solution We can find the y-intercept by evaluating the function at zero
\begin{align*}
f(0) &= \dfrac{(0 - 2)(0 + 3)}{(0 - 1)(0 + 2)(0 - 5)}\\
&= \dfrac{-6}{10}\\
&= - \dfrac{3}{5}\\
&= -0.6
\end{align*}
The x-intercepts will occur when the function is equal to zero:
\begin{align*}
0 &= \dfrac{(x - 2)(x + 3)}{(x - 1)(x + 2)(x - 5)} & \text{This is zero when the numerator is zero.}\\
0 &= (x - 2)(x + 3)\\
x &= 2, -3
\end{align*}
The y-intercept is [latex](0, −0.6)[/latex], the x-intercepts are [latex](2, 0)[/latex] and [latex](−3, 0)[/latex]. See Figure 16.
Try it
Graphing Rational Functions
In Example 9, we see that the numerator of a rational function reveals the x-intercepts of the graph, whereas the denominator reveals the vertical asymptotes of the graph. As with polynomials, factors of the numerator may have integer powers greater than one. Fortunately, the effect on the shape of the graph at those intercepts is the same as we saw with polynomials.
The vertical asymptotes associated with the factors of the denominator will mirror one of the two toolkit reciprocal functions. When the degree of the factor in the denominator is odd, the distinguishing characteristic is that on one side of the vertical asymptote the graph heads towards positive infinity, and on the other side the graph heads towards negative infinity. See Figure 17.
When the degree of the factor in the denominator is even, the distinguishing characteristic is that the graph either heads toward positive infinity on both sides of the vertical asymptote or heads toward negative infinity on both sides. See Figure 18.
For example, the graph of [latex]f(x) = \dfrac{(x + 1)^{2}(x - 3)}{(x + 3)^{2}(x - 2)}[/latex] is shown in Figure 19.
- At the x-intercept [latex]x = −1[/latex] corresponding to the [latex](x + 1)[/latex] factor of the numerator, the graph "bounces," consistent with the quadratic nature of the factor.
- At the x-intercept [latex]x = 3[/latex] corresponding to the [latex](x − 3)[/latex] factor of the numerator, the graph passes through the axis as we would expect from a linear factor.
- At the vertical asymptote [latex]x = −3[/latex] corresponding to the [latex](x + 3)[/latex] factor of the denominator, the graph heads towards positive infinity on both sides of the asymptote, consistent with the behavior of the function [latex]f(x) = \dfrac{1}{x^{2}}[/latex].
- At the vertical asymptote [latex]x = 2[/latex], corresponding to the [latex](x − 2)[/latex] factor of the denominator, the graph heads towards positive infinity on the left side of the asymptote and towards negative infinity on the right side, consistent with the behavior of the function [latex]f(x) = \dfrac{1}{x}[/latex].
How To...
Given a rational function, sketch a graph.
- Evaluate the function at 0 to find the y-intercept.
- Factor the numerator and denominator.
- For factors in the numerator not common to the denominator, determine where each factor of the numerator is zero to find the x-intercepts.
- Find the multiplicities of the x-intercepts to determine the behavior of the graph at those points.
- For factors in the denominator, note the multiplicities of the zeros to determine the local behavior. For those factors not common to the numerator, find the vertical asymptotes by setting those factors equal to zero and then solve.
- For factors in the denominator common to factors in the numerator, find the removable discontinuities by setting those factors equal to 0 and then solve.
- Compare the degrees of the numerator and the denominator to determine the horizontal or slant asymptotes.
- Sketch the graph.
Example 11 Graphing a Rational Function
Sketch a graph of [latex]f(x) = \dfrac{(x + 2)(x - 3)}{(x + 1)^{2}(x - 2)}[/latex].
Solution We can start by noting that the function is already factored, saving us a step.
Next, we will find the intercepts. Evaluating the function at zero gives the y-intercept:
\begin{align*}
f(0) &= \dfrac{(0 + 2)(0 - 3)}{(0 + 1)^{2}(0 - 2)}\\
&= 3
\end{align*}
To find the x-intercepts, we determine when the numerator of the function is zero. Setting each factor equal to zero, we find x-intercepts at [latex]x = −2[/latex] and [latex]x = 3[/latex]. At each, the behavior will be linear (multiplicity 1), with the graph passing through the intercept.
We have a y-intercept at [latex](0, 3)[/latex] and x-intercepts at [latex](−2, 0)[/latex] and [latex](3, 0)[/latex].
To find the vertical asymptotes, we determine when the denominator is equal to zero. This occurs when [latex]x + 1 = 0[/latex] and when [latex]x − 2 = 0[/latex], giving us vertical asymptotes at [latex]x = −1[/latex] and [latex]x = 2[/latex].
There are no common factors in the numerator and denominator. This means there are no removable discontinuities.
Finally, the degree of denominator is larger than the degree of the numerator, telling us this graph has a horizontal asymptote at [latex]y = 0[/latex].
To sketch the graph, we might start by plotting the three intercepts. Since the graph has no x-intercepts between the vertical asymptotes, and the y-intercept is positive, we know the function must remain positive between the asymptotes, letting us fill in the middle portion of the graph as shown in Figure 20.
The factor associated with the vertical asymptote at [latex]x = −1[/latex] was squared, so we know the behavior will be the same on both sides of the asymptote. The graph heads toward positive infinity as the inputs approach the asymptote on the right, so the graph will head toward positive infinity on the left as well.
For the vertical asymptote at [latex]x = 2[/latex], the factor was not squared, so the graph will have opposite behavior on either side of the asymptote. See Figure 21. After passing through the x-intercepts, the graph will then level off toward an output of zero, as indicated by the horizontal asymptote.
Try it
Writing Rational Functions
Now that we have analyzed the equations for rational functions and how they relate to a graph of the function, we can use information given by a graph to write the function. A rational function written in factored form will have an x-intercept where each factor of the numerator is equal to zero. (An exception occurs in the case of a removable discontinuity.) As a result, we can form a numerator of a function whose graph will pass through a set of x-intercepts by introducing a corresponding set of factors. Likewise, because the function will have a vertical asymptote where each factor of the denominator is equal to zero, we can form a denominator that will produce the vertical asymptotes by introducing a corresponding set of factors.
writing rational functions from intercepts and asymptotes
If a rational function has x-intercepts at [latex]x = x_{1}, x_{2}, \cdots , x_{n}[/latex], vertical asymptotes at [latex]x = v_{1}, v_{2}, \cdots , v_{m}[/latex], and no [latex]x_{i} = \text{ any } v_{j}[/latex], then the function can be written in the form:
[latex]f(x) = a \dfrac{(x - x_{1})^{p_{1}}(x - x_{2})^{p_{2}} \cdots (x - x_{n})^{p_{n}}}{(x - v_{1})^{q_{1}}(x - v_{2})^{q_{2}} \cdots (x - v_{m})^{q_{m}}}[/latex]
where the powers [latex]p_{i} \text{ or } q_{i}[/latex] on each factor can be determined by the behavior of the graph at the corresponding intercept or asymptote, and the stretch factor [latex]a[/latex] can be determined given a value of the function other than the x-intercept or by the horizontal asymptote if it is nonzero.
How To...
Given a graph of a rational function, write the function.
- Determine the factors of the numerator. Examine the behavior of the graph at the x-intercepts to determine the zeroes and their multiplicities. (This is easy to do when finding the “simplest” function with small multiplicities—such as 1 or 3—but may be difficult for larger multiplicities—such as 5 or 7, for example.)
- Determine the factors of the denominator. Examine the behavior on both sides of each vertical asymptote to determine the factors and their powers.
- Use any clear point on the graph to find the stretch factor.
Example 12 Writing a Rational Function from Intercepts and Asymptotes
Write an equation for the rational function shown in Figure 22.
Solution The graph appears to have x-intercepts at [latex]x = −2[/latex] and [latex]x = 3[/latex]. At both, the graph passes through the intercept, suggesting linear factors. The graph has two vertical asymptotes. The one at [latex]x = −1[/latex] seems to exhibit the basic behavior similar to [latex]\dfrac{1}{x}[/latex], with the graph heading toward positive infinity on one side and heading toward negative infinity on the other. The asymptote at [latex]x = 2[/latex] is exhibiting a behavior similar to [latex]\dfrac{1}{x^{2}}[/latex], with the graph heading toward negative infinity on both sides of the asymptote. See Figure 23.
We can use this information to write a function of the form
[latex]f(x) = a \dfrac{(x + 2)(x - 3)}{(x + 1)(x - 2)^{2}}[/latex]
To find the stretch factor, we can use another clear point on the graph, such as the y-intercept [latex](0, −2)[/latex].
\begin{align*}
-2 &= a \dfrac{(0 + 2)(0 - 3)}{(0 + 1)(0 - 2)^{2}}\\
-2 &= a \dfrac{-6}{4}\\
a &= \dfrac{-8}{-6} = \dfrac{4}{3}
\end{align*}
This gives us a final function of [latex]f(x) = \dfrac{4(x + 2)(x - 3)}{3(x + 1)(x - 2)^{2}}[/latex].