Chapter 5 Polynomial and Rational Functions
5.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\left(x\right)=15,000x-0.1{x}^{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\left(x\right)=\frac{15,000x-0.1{x}^{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\left(x\right)=\frac{1}{x}.[/latex]
- On the left branch of the graph, the curve approaches the x-axis[latex]\,\left(y=0\right) \text{as } x\to –\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]\,\left(y=0\right) \text{as } x\to \infty .[/latex]
To summarize, we use arrow notation to show that[latex]\,x\,[/latex]or[latex]\,f\left(x\right)\,[/latex]is approaching a particular value. See the table below.
Symbol | Meaning |
---|---|
[latex]x\to {a}^{-}[/latex] | [latex]x\,[/latex]approaches[latex]\,a\,[/latex]from the left ([latex]x \lt;a\,[/latex]but close to[latex]\,a[/latex]) |
[latex]x\to {a}^{+}[/latex] | [latex]x\,[/latex]approaches[latex]\,a\,[/latex]from the right ([latex]x>a\,[/latex]but close to[latex]\,a[/latex]) |
[latex]x\to \infty[/latex] | [latex]x\,[/latex]approaches infinity ([latex]x\,[/latex]increases without bound) |
[latex]x\to -\infty[/latex] | [latex]x\,[/latex]approaches negative infinity ([latex]x\,[/latex]decreases without bound) |
[latex]f\left(x\right)\to \infty[/latex] | the output approaches infinity (the output increases without bound) |
[latex]f\left(x\right)\to -\infty[/latex] | the output approaches negative infinity (the output decreases without bound) |
[latex]f\left(x\right)\to a[/latex] | the output approaches[latex]\,a[/latex] |
Local Behavior of [latex]\,f\left(x\right)=\frac{1}{x}[/latex]
Let’s begin by looking at the reciprocal function,[latex]\,f\left(x\right)=\frac{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 the following table.
[latex]x[/latex] | –0.1 | –0.01 | –0.001 | –0.0001 |
[latex]f\left(x\right)=\frac{1}{x}[/latex] | –10 | –100 | –1000 | –10,000 |
We write in arrow notation
[latex]\text {as }x\to {0}^{-},f\left(x\right)\to -\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 the table below.
[latex]x[/latex] | 0.1 | 0.01 | 0.001 | 0.0001 |
[latex]f\left(x\right)=\frac{1}{x}[/latex] | 10 | 100 | 1000 | 10,000 |
We write in arrow notation
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.
Vertical Asymptote
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
End Behavior of [latex]\,f\left(x\right)=\frac{1}{x}[/latex]
As the values of[latex]\,x\,[/latex]approach infinity, the function values approach 0. As the values of[latex]\,x\,[/latex]approach negative infinity, the function values approach 0. See Figure 4. Symbolically, using arrow notation
[latex]\text {As }x\to \infty ,f\left(x\right)\to 0,\text{and as }x\to -\infty ,f\left(x\right)\to 0.[/latex]
Based on this overall behavior and the graph, we can see that the function approaches 0 but never actually reaches 0; 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.
Horizontal Asymptote
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
Using Arrow Notation
Use arrow notation to describe the end behavior and local behavior of the function graphed in Figure 6.
Show 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]
[latex]\text {As }x\to {2}^{-},f\left(x\right)\to -\infty ,\text{ and as }x\to {2}^{+},\text{ }f\left(x\right)\to \infty .[/latex]
And as the inputs decrease without bound, the graph appears to be leveling off at output values of 4, indicating a horizontal asymptote at[latex]\,y=4.\,[/latex]As the inputs increase without bound, the graph levels off at 4.
Try It
Use arrow notation to describe the end behavior and local behavior for the reciprocal squared function.
Show Solution
End behavior: as[latex]\,x\to ±\infty , f\left(x\right)\to 0;\,[/latex]Local behavior: as[latex]\,x\to 0, f\left(x\right)\to \infty \,[/latex](there are no x– or y-intercepts)
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.
Show Solution
Shifting the graph left 2 and up 3 would result in the function
[latex]f\left(x\right)=\frac{1}{x+2}+3[/latex]
or equivalently, by giving the terms a common denominator,
[latex]f\left(x\right)=\frac{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\to -{2}^{-}, f\left(x\right)\to -\infty ,\text{and as } x\to -{2}^{+}, f\left(x\right)\to \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]
Analysis
Notice that horizontal and vertical asymptotes are shifted left 2 and up 3 along with the function.
Try It
Sketch the graph, and find the horizontal and vertical asymptotes of the reciprocal squared function that has been shifted right 3 units and down 4 units.
Show Solution
The function and the asymptotes are shifted 3 units right and 4 units down. As[latex]\,x\to 3,f\left(x\right)\to \infty ,\,[/latex]and as[latex]\,x\to ±\infty ,f\left(x\right)\to -4.[/latex]
The function is[latex]\,f\left(x\right)=\frac{1}{{\left(x-3\right)}^{2}}-4.[/latex]
Solving Applied Problems Involving Rational Functions
In Figure 7, we shifted a toolkit function in a way that resulted in the function [latex]\,f\left(x\right)=\frac{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\left(x\right) \text{and } Q\left(x\right).[/latex]
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 ratio of sugar to water, in pounds per gallon in the tank after 12 minutes. Is that a greater ratio of sugar to water, in pounds per gallon than at the beginning?
Show Solution
Let[latex]\,t\,[/latex]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:
The ratio of sugar to water, in pounds per gallon,[latex]\,C\,[/latex], will be the ratio of pounds of sugar to gallons of water
[latex]C\left(t\right)=\frac{5+t}{100+10t}[/latex]
The ratio of sugar to water, in pounds per gallon, after 12 minutes is given by evaluating[latex]\,C\left(t\right)\,[/latex]at[latex]\,t=\text{ }12.[/latex]
This means the ratio of sugar to water, in pounds per gallon, is 17 pounds of sugar to 220 gallons of water.
At the beginning, the ratio of sugar to water, in pounds per gallon is
Since[latex]\,\frac{17}{220}\approx 0.08>\frac{1}{20}=0.05,\,[/latex]the ratio of sugar to water, in pounds per gallon, is greater after 12 minutes than at the beginning.
Try It
There are 1,200 freshmen and 1,500 sophomores at a pep rally at noon. After 12 p.m., 20 freshmen arrive at the rally every five minutes while 15 sophomores leave the rally. Find the ratio of freshmen to sophomores at 1 p.m.
Show Solution
[latex]\frac{12}{11}[/latex]
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.
Finding the Domain of a Rational Function
Find the domain of[latex]\,f\left(x\right)=\frac{x+3}{{x}^{2}-9}.[/latex]
Show Solution
Begin by setting the denominator equal to zero and solving.
The denominator is equal to zero when[latex]\,x=±3.\,[/latex]The domain of the function is all real numbers except[latex]\,x=±3.[/latex]
Analysis
A graph of this function, as shown in Figure 8, confirms that the function is not defined when[latex]\,x=±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\left(x\right)=\frac{4x}{5\left(x-1\right)\left(x-5\right)}.[/latex]
Show Solution
The domain is all real numbers except[latex]\,x=1\,[/latex]and[latex]\,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.
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.”
Identifying Vertical Asymptotes
Find the vertical asymptotes of the graph of[latex]\,k\left(x\right)=\frac{5+2{x}^{2}}{2-x-{x}^{2}}.[/latex]
Show Solution
First, factor the numerator and denominator.
To find the vertical asymptotes, we determine where this function will be undefined by setting the denominator equal to zero:
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\left(x\right)=\frac{{x}^{2}-1}{{x}^{2}-2x-3}\,[/latex]may be re-written by factoring the numerator and the denominator.
[latex]f\left(x\right)=\frac{\left(x+1\right)\left(x-1\right)}{\left(x+1\right)\left(x-3\right)}[/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=3,\,[/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[latex]\,a\,[/latex]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.
Identifying Vertical Asymptotes and Removable Discontinuities for a Graph
Find the vertical asymptotes and removable discontinuities of the graph of[latex]\,k\left(x\right)=\frac{x-2}{{x}^{2}-4}.[/latex]
Show Solution
Factor the numerator and the denominator.
[latex]k\left(x\right)=\frac{x-2}{\left(x-2\right)\left(x+2\right)}[/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\left(x\right)=\frac{{x}^{2}-25}{{x}^{3}-6{x}^{2}+5x}.[/latex]
Show Solution
Removable discontinuity at[latex]\,x=5.\,[/latex]Vertical asymptotes:[latex]\,x=0,\text{ }x=1.[/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 terms.
There are three distinct outcomes when checking for horizontal asymptotes:
Case 1: If the degree of the denominator > degree of the numerator, there is a horizontal asymptote at[latex]\,y=0.[/latex]
[latex]\text {Example: }f\left(x\right)=\frac{4x+2}{{x}^{2}+4x-5}[/latex]
In this case, the end behavior is[latex]\,f\left(x\right)\approx \frac{4x}{{x}^{2}}=\frac{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\left(x\right)=\frac{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.
Media Attributions
- 5.6 Fig 1 © OpenStax Algebra and Trignometry is licensed under a CC BY (Attribution) license
- 5.6 Fig 3 © OpenStax Algebra and Trignometry is licensed under a CC BY (Attribution) license
- 5.6 Fig 4 © OpenStax Algebra and Trignometry is licensed under a CC BY (Attribution) license
- 5.6 Fig 5 © OpenStax Algebra and Trignometry is licensed under a CC BY (Attribution) license
- 5.6 Fig 6 © OpenStax Algebra and Trignometry is licensed under a CC BY (Attribution) license
- 5.6 Fig 7 © OpenStax Algebra and Trignometry is licensed under a CC BY (Attribution) license
- 5.6 “Try It 2” solution © OpenStax Algebra and Trignometry is licensed under a CC BY (Attribution) license
- 5.6 Fig 8 © OpenStax Algebra and Trignometry is licensed under a CC BY (Attribution) license
- 5.6 Fig 9 © OpenStax Algebra and Trignometry is licensed under a CC BY (Attribution) license
- 5.6 Fig 10 © OpenStax Algebra and Trignometry is licensed under a CC BY (Attribution) license
- 5.6 Fig 11 © OpenStax Algebra and Trignometry is licensed under a CC BY (Attribution) license
- 5.6 Fig 12 © OpenStax Algebra and Trignometry is licensed under a CC BY (Attribution) license
- 5.6 Fig 13 © OpenStax Algebra and Trignometry is licensed under a CC BY (Attribution) license
- 5.6 Fig 14 © OpenStax Algebra and Trignometry is licensed under a CC BY (Attribution) license
- 5.6 Synthetic Division chart © OpenStax Algebra and Trignometry is licensed under a CC BY (Attribution) license
- 5.6 Fig 15 © OpenStax Algebra and Trignometry is licensed under a CC BY (Attribution) license
- 5.6 Fig 16 © OpenStax Algebra and Trignometry is licensed under a CC BY (Attribution) license
- 5.6 Fig 17 © OpenStax Algebra and Trignometry is licensed under a CC BY (Attribution) license
- 5.6 Fig 18 © OpenStax Algebra and Trignometry is licensed under a CC BY (Attribution) license
- 5.6 Fig 19 © OpenStax Algebra and Trignometry is licensed under a CC BY (Attribution) license
- 5.6 Fig 20 © OpenStax Algebra and Trignometry is licensed under a CC BY (Attribution) license
- 5.6 Fig 21 © OpenStax Algebra and Trignometry is licensed under a CC BY (Attribution) license
- 5.6 Try It Solution B 8 © OpenStax Algebra and Trignometry is licensed under a CC BY (Attribution) license
- 5.6 Fig 22 © OpenStax Algebra and Trignometry is licensed under a CC BY (Attribution) license
- 5.6 Fig 23 © OpenStax Algebra and Trignometry is licensed under a CC BY (Attribution) license