4.3 Rational Functions

Learning Objectives

In this section, you will:

  • Use arrow notation.
  • Find the domain of rational functions.
  • Identify horizontal and vertical asymptotes and removable discontinuities.
  • Graph rational functions.
  • Determine the formula for the graph of a rational function.
  • Solve applied problems involving rational functions.

Suppose we know that the cost of making a product is dependent on the number of items, [latex]x,[/latex] produced. and that it 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]
[latex]\\[/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 can be thought of as the ratio of two polynomial functions.

Using Arrow Notation

We have seen the graphs of the 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.

Graphs of f(x)=1/x and f(x)=1/x^2

Figure 1

Several things are apparent if we examine the graph of [latex]f\left(x\right)=\frac{1}{x}.[/latex]

  1. On the left branch of the graph, the curve approaches the x-axis [latex]\left(y=0\right) \textrm{as } x\to -\infty .[/latex]
  2. 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.
  3. Finally, on the right branch of the graph, the curves approaches the x-axis [latex]\left(y=0\right) \textrm{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 Table 1.

Table 1:  Arrow Notation
Symbol Meaning
[latex]x\to {a}^{-}[/latex] [latex]x[/latex] approaches [latex]a[/latex] from the left ([latex]x
[latex]x\to {a}^{+}[/latex] [latex]x[/latex] approaches [latex]a[/latex] from the right ([latex]x>a[/latex] but is decreasing and getting closer and closer to [latex]a[/latex])
[latex]x\to a[/latex] the input approaches [latex]a[/latex] from both sides
[latex]x\to \infty[/latex] [latex]x[/latex] goes toward infinity ([latex]x[/latex] increases without bound)
[latex]x\to -\infty[/latex] [latex]x[/latex] goes toward negative infinity ([latex]x[/latex] decreases without bound)
[latex]f\left(x\right)\to \infty[/latex] the output goes toward infinity (the output increases without bound)
[latex]f\left(x\right)\to -\infty[/latex] the output goes toward 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 (negative values very close to zero), the function values decrease without bound. We can see this behavior in Table 2.

Table 2
[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, as [latex]x\to {0}^{-},f\left(x\right)\to -\infty[/latex].

As the input values approach zero from the right side (positive values very close to zero), the function values increase without bound. We can see this behavior in Table 3.

Table 3
[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 as [latex]x\to {0}^{+}, f\left(x\right)\to \infty .[/latex]

See Figure 2.

Graph of f(x)=1/x which denotes the end behavior. As x goes to negative infinity, f(x) goes to 0, and as x goes to 0^-, f(x) goes to negative infinity. As x goes to positive infinity, f(x) goes to 0, and as x goes to 0^+, f(x) goes to positive infinity.

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.

Graph of f(x)=1/x with its vertical asymptote at x=0.

Figure 3

Definition

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

from the left side,

as [latex]x\to a^{-},f\left(x\right)\to \infty ,[/latex] or as [latex]x\to a^{-},f\left(x\right)\to -\infty,[/latex] and

from the right side,

[latex]x\to a^{+},f\left(x\right)\to \infty,[/latex]  or as [latex]x\to a^{+},f\left(x\right)\to -\infty .[/latex]

End Behavior of [latex]f\left(x\right)=\frac{1}{x}[/latex]

As the values of [latex]x[/latex] increase without bound, the function values approach 0. As the values of [latex]x[/latex] decrease without bound, the function values approach 0. See Figure 4. Symbolically, using arrow notation

[latex]\textrm{as }x\to \infty ,f\left(x\right)\to 0,\textrm{and as }x\to -\infty ,f\left(x\right)\to 0.[/latex]

Graph of f(x)=1/x which highlights the segments of the turning points to denote their end behavior.

Figure 4

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.

Graph of f(x)=1/x with its vertical asymptote at x=0 and its horizontal asymptote at y=0.

Figure 5

Definition

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]\textrm{as }x\to \infty \textrm{ or }x\to -\infty ,\text{ }f\left(x\right)\to 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.

Graph of f(x)=1/(x-2)+4 with its vertical asymptote at x=2 and its horizontal asymptote at y=4.

Figure 6

Try it #1

Use arrow notation to describe the end behavior and local behavior for the reciprocal squared function.

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.

Try it #2

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.

Solving Applied Problems Involving Rational Functions

In Example 2, 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.

Definition

A rational function is a function that can be written as the quotient of two polynomial functions [latex]P\left(x\right) \textrm{and } Q\left(x\right).[/latex]

[latex]f\left(x\right)=\displaystyle{\frac{P\left(x\right)}{Q\left(x\right)}=\frac{{a}_{p}{x}^{p}+{a}_{p-1}{x}^{p-1}+...+{a}_{1}x+{a}_{0}}{{b}_{q}{x}^{q}+{b}_{q-1}{x}^{q-1}+...+{b}_{1}x+{b}_{0}}},Q\left(x\right)\ne 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?

 

Try it #3

There are 1,200 freshmen and 1,500 sophomores at a prep 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.

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 rational 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. 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.

  1. Set the denominator equal to zero.
  2. Solve to find the x-values that cause the denominator to equal zero.
  3. The domain is all real numbers except those found in Step 2.  Express your answer using interval notation.

Example 4:  Finding the Domain of a Rational Function

Find the domain of [latex]f\left(x\right)=\frac{x+3}{{x}^{2}-9}.[/latex]

Try it #4

Find the domain of [latex]f\left(x\right)=\frac{4x}{5\left(x-1\right)\left(x-5\right)}.[/latex]

Identifying Vertical Asymptotes and Removable Discontinuities of Rational Functions

By looking at the graph of a rational function, we can investigate its local behavior and easily see whether there are vertical 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 vertical asymptotes, and calculate their location.

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 and removable discontinuties of its graph.

  1. Factor the numerator and denominator.
  2. List values not in the domain of the function.
  3. Reduce the expression by canceling common factors in the numerator and the denominator.
  4. Any values that cause the denominator to be zero in this simplified version are where the vertical asymptotes occur.
  5. Any remaining values not in the domain are removable discontinuities also known as holes.

Example 5:  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]

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.  These often cannot be seen when technology is used to create a graph.

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]
[latex]\\[/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 NOT in the domain and 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 11.

Graph of f(x)=(x^2-1)/(x^2-2x-3) with its vertical asymptote at x=3 and a removable discontinuity at x=-1.

Figure 11

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 that is both in the denominator and 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 may be the location of a removable discontinuity. This is a removable discontinuity if the multiplicity of this factor in the numerator 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 a vertical 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\left(x\right)=\frac{x-2}{{x}^{2}-4}.[/latex]

Try it #5

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]

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 leading terms of the numerator and denominator functions.

There are three distinct outcomes when checking for horizontal asymptotes:

Case 1: If the degree of the denominator is greater than the degree of the numerator, there is a horizontal asymptote at [latex]y=0.[/latex]

Example:  [latex]f\left(x\right)=\frac{4x+2}{{x}^{2}+4x-5}[/latex]
[latex]\\[/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 13. Note that this graph crosses the horizontal asymptote.

Graph of f(x)=(4x+2)/(x^2+4x-5) with its vertical asymptotes at x=-5 and x=1 and its horizontal asymptote at y=0.

Figure 13 Horizontal Asymptote [latex]y=0[/latex] when [latex]f\left(x\right)=\frac{p\left(x\right)}{q\left(x\right)},\text{ }q\left(x\right)\ne 0[/latex] where degree of [latex]p<[/latex] degree of [latex]q.[/latex]

Case 2: If the degree of the denominator is less than the degree of the numerator by one, we get a slant asymptote.

Example:  [latex]f\left(x\right)=\frac{3{x}^{2}-2x+1}{x-1}[/latex]
[latex]\\[/latex]

In this case, the end behavior is [latex]f\left(x\right)\approx \frac{3{x}^{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\left(x\right)=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\left(x\right)=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]\frac{3{x}^{2}-2x+1}{x-1}.[/latex] The quotient is [latex]3x+1,[/latex] and the remainder is 2. The slant asymptote is the graph of the line [latex]g\left(x\right)=3x+1.[/latex] See Figure 14.

Graph of f(x)=(3x^2-2x+1)/(x-1) with its vertical asymptote at x=1 and a slant asymptote aty=3x+1.

Figure 14 Slant Asymptote when [latex]f\left(x\right)=\frac{p\left(x\right)}{q\left(x\right)},\text{ }q\left(x\right)\ne 0[/latex] where degree of [latex]p>[/latex] degree of [latex]q[/latex] by 1.

Case 3: If the degree of the denominator equals the degree of the numerator, there is a horizontal asymptote at [latex]y=\frac{{a}_{n}}{{b}_{n}},[/latex] where [latex]{a}_{n}[/latex] and [latex]{b}_{n}[/latex] are the leading coefficients of [latex]p\left(x\right)[/latex] and [latex]q\left(x\right)[/latex] for [latex]f\left(x\right)=\frac{p\left(x\right)}{q\left(x\right)},q\left(x\right)\ne 0.[/latex]

Example:  [latex]f\left(x\right)=\frac{3{x}^{2}+2}{{x}^{2}+4x-5}[/latex]
[latex]\\[/latex]

In this case, the end behavior is [latex]f\left(x\right)\approx \frac{3{x}^{2}}{{x}^{2}}=3.[/latex] This tells us that as the inputs grow large, this function will behave like the function [latex]g\left(x\right)=3,[/latex] which is a horizontal line. As [latex]x\to ±\infty ,f\left(x\right)\to 3,[/latex] resulting in a horizontal asymptote of [latex]y=3.[/latex] See Figure 15. Note that this graph crosses the horizontal asymptote.

Graph of f(x)=(3x^2+2)/(x^2+4x-5) with its vertical asymptotes at x=-5 and x=1 and its horizontal asymptote at y=3.

Figure 15 Horizontal Asymptote when [latex]f\left(x\right)=\frac{p\left(x\right)}{q\left(x\right)},\text{ }q\left(x\right)\ne 0[/latex] where degree of [latex]p=[/latex] degree of [latex]q.[/latex]

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\left(x\right)=\frac{3{x}^{5}-{x}^{2}}{x+3}[/latex]
[latex]\\[/latex]

with end behavior [latex]f\left(x\right)\approx \frac{3{x}^{5}}{x}=3{x}^{4},[/latex] the end behavior of the graph would look similar to that of an even polynomial with a positive leading coefficient.  We write as [latex]x\to ±\infty , f\left(x\right)\to \infty.[/latex]

Horizontal Asymptotes of Rational Functions

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 [latex]y=0.[/latex]
  • 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 Asymptotes

For the functions below, identify the horizontal or slant asymptote.

  1. [latex]g\left(x\right)=\frac{6{x}^{3}-10x}{2{x}^{3}+5{x}^{2}}[/latex]
  2. [latex]k\left(x\right)=\frac{{x}^{2}+4x}{{x}^{3}-8}[/latex]

Example 8:  Identifying Horizontal Asymptotes

In the sugar concentration problem earlier, we created the equation [latex]C\left(t\right)=\frac{5+t}{100+10t}.[/latex]

Find the horizontal asymptote and interpret it in context of the problem.

Example 9:  Identifying Horizontal and Vertical Asymptotes

Find the horizontal and vertical asymptotes of the function [latex]f\left(x\right)=\frac{\left(x-2\right)\left(x+3\right)}{\left(x-1\right)\left(x+2\right)\left(x-5\right)}[/latex]

Try it #6

Find the vertical and horizontal asymptotes of the function [latex]f\left(x\right)=\frac{\left(2x-1\right)\left(2x+1\right)}{\left(x-2\right)\left(x+3\right)}[/latex]

Example 10:  Numerical Support for Asymptotes and Discontinuities

Find the horizontal and vertical asymptotes and removal discontinuities of [latex]f\left(x\right)=\frac{\left(x+2\right)\left(x-1\right)}{\left(x+3\right)\left(x-1\right)}[/latex].  Give numerical support for your conclusions.

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.  However, if the numerator is zero at a value not in the domain, then there is not an x-intercept at that point.

Example 11:  Finding the Intercepts of a Rational Function

Find the intercepts of [latex]f\left(x\right)=\frac{\left(x-2\right)\left(x+3\right)}{\left(x-1\right)\left(x+2\right)\left(x-5\right)}.[/latex]

Try it #7

Given the reciprocal squared function that is shifted right 3 units and down 4 units, write this as a rational function. Then, find the x– and y-intercepts and the horizontal and vertical asymptotes.

Graphing Rational Functions

In Example 11, 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 18.

Graph of y=1/x with its vertical asymptote at x=0.

Figure 18

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 19.

Graph of y=1/x^2 with its vertical asymptote at x=0.

Figure 19

For example, the graph of [latex]f\left(x\right)=\frac{{\left(x+1\right)}^{2}\left(x-3\right)}{{\left(x+3\right)}^{2}\left(x-2\right)}[/latex] is shown in Figure 20.

Graph of f(x)=(x+1)^2(x-3)/(x+3)^2(x-2) with its vertical asymptotes at x=-3 and x=2, its horizontal asymptote at y=1, and its intercepts at (-1, 0), (0, 1/6), and (3, 0).

Figure 20

  • At the x-intercept [latex]x=-1[/latex] corresponding to the [latex]{\left(x+1\right)}^{2}[/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]\left(x-3\right)[/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]{\left(x+3\right)}^{2}[/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\left(x\right)=\frac{1}{{x}^{2}}.[/latex]
  • At the vertical asymptote [latex]x=2,[/latex] corresponding to the [latex]\left(x-2\right)[/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\left(x\right)=\frac{1}{x}.[/latex]

How To

Given a rational function, sketch a graph.

  1. Evaluate the function at 0 to find the y-intercept.
  2. Factor the numerator and denominator.
  3. For factors in the numerator that are not in the denominator, determine where each factor of the numerator is zero to find the x-intercepts.
  4. Find the multiplicities of the x-intercepts to determine the behavior of the graph at those points.
  5. 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.
  6. For factors that are in both the denominator AND the numerator, find the removable discontinuities by setting those factors equal to 0 and then solve.
  7. Compare the degrees of the numerator and the denominator to determine the horizontal or slant asymptotes.
  8. Sketch the graph.

Example 12:  Graphing a Rational Function

Sketch a graph of [latex]f\left(x\right)=\frac{\left(x+2\right)\left(x-3\right)}{{\left(x+1\right)}^{2}\left(x-2\right)}.[/latex]

Try it #8

Given the function [latex]f\left(x\right)=\frac{{\left(x+2\right)}^{2}\left(x-2\right)}{2{\left(x-1\right)}^{2}\left(x-3\right)},[/latex] use the characteristics of polynomials and rational functions to describe its behavior and sketch the function.

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}, ..., {x}_{n},[/latex] vertical asymptotes at [latex]x={v}_{1},{v}_{2},\dots ,{v}_{m},[/latex] and no [latex]{x}_{i}=\text{any }{v}_{j},[/latex] then the function can be written in the form:

[latex]f\left(x\right)=a\frac{{\left(x-{x}_{1}\right)}^{{p}_{1}}{\left(x-{x}_{2}\right)}^{{p}_{2}}\cdots {\left(x-{x}_{n}\right)}^{{p}_{n}}}{{\left(x-{v}_{1}\right)}^{{q}_{1}}{\left(x-{v}_{2}\right)}^{{q}_{2}}\cdots {\left(x-{v}_{m}\right)}^{{q}_{n}}}[/latex][latex]\\[/latex]

where the powers [latex]{p}_{i}[/latex] or [latex]{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.

  1. Determine the factors of the numerator. Examine the behavior of the graph at the x-intercepts to determine the zeros 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.)
  2. Determine the factors of the denominator. Examine the behavior on both sides of each vertical asymptote to determine the factors and their powers.
  3. Use any clear point on the graph to find the stretch factor.

Example 13:  Writing a Rational Function from Intercepts and Asymptotes

Write an equation for the rational function shown in Figure 24.

Graph of a rational function.

Figure 24

Key Equations

Rational Function [latex]f\left(x\right)=\displaystyle{\frac{P\left(x\right)}{Q\left(x\right)}=\frac{{a}_{p}{x}^{p}+{a}_{p-1}{x}^{p-1}+...+{a}_{1}x+{a}_{0}}{{b}_{q}{x}^{q}+{b}_{q-1}{x}^{q-1}+...+{b}_{1}x+{b}_{0}}}, Q\left(x\right)\ne 0[/latex]

Key Concepts

  • We can use arrow notation to describe local behavior and end behavior of the toolkit functions [latex]f\left(x\right)=\frac{1}{x}[/latex] and [latex]f\left(x\right)=\frac{1}{{x}^{2}}.[/latex]
  • A function that levels off at a horizontal value has a horizontal asymptote. A function can have more than one vertical asymptote.
  • Application problems involving rates and concentrations often involve rational functions.
  • The domain of a rational function includes all real numbers except those that cause the denominator to equal zero.
  • The vertical asymptotes of a rational function will occur where the denominator of the function is equal to zero and the numerator is not zero.
  • A removable discontinuity might occur in the graph of a rational function if an input causes both numerator and denominator to be zero.
  • A rational function’s end behavior will mirror that of the ratio of the leading terms of the numerator and denominator functions.
  • Graph rational functions by finding the intercepts, behavior at the intercepts, asymptotes, and end behavior.
  • If a rational function has x-intercepts at [latex]x={x}_{1},{x}_{2},\dots ,{x}_{n},[/latex] vertical asymptotes at [latex]x={v}_{1},{v}_{2},\dots ,{v}_{m},[/latex] and no [latex]{x}_{i}=\text{any }{v}_{j},[/latex] then the function can be written in the form
    [latex]\begin{array}{l}\begin{array}{l}\hfill \\ f\left(x\right)=a\frac{\displaystyle{{\left(x-{x}_{1}\right)}^{{p}_{1}}{\left(x-{x}_{2}\right)}^{{p}_{2}}\cdots {\left(x-{x}_{n}\right)}^{{p}_{n}}}}{\displaystyle{{\left(x-{v}_{1}\right)}^{{q}_{1}}{\left(x-{v}_{2}\right)}^{{q}_{2}}\cdots {\left(x-{v}_{m}\right)}^{{q}_{n}}}}\hfill \end{array}\hfill \end{array}[/latex]

Glossary

arrow notation
a way to symbolically represent the local and end behavior of a function by using arrows to indicate that an input or output approaches a value
horizontal asymptote
a horizontal line [latex]y=b[/latex] where the graph approaches the line as the inputs increase or decrease without bound
rational function
a function that can be written as the ratio of two polynomials
removable discontinuity
a single point at which a function is undefined that, if filled in, would make the function continuous; it appears as a hole on the graph of a function
vertical asymptote
a vertical line [latex]x=a[/latex] where the graph tends toward positive or negative infinity as the inputs approach [latex]a[/latex]