6.1 Rational Functions

We will begin this section by looking at another economic concept.  In addition to total cost and marginal cost, another metric of costs is average cost. Average cost is important because often when we thinking minimizing costs, the lowest cost is usually just making and selling nothing, and that, of course, does not generate profit. Therefore, it is often more useful to minimize average cost.

Average Cost

The average cost of producing x items with a total cost of C(x) is:

\overline{C}(x)=\dfrac{C(x)}{x}

Examples

Suppose that manufacturing an item has fixed costs of $4000 and per-item (marginal) costs of $20 per item.  Find the average cost per item when 250 items are produced.

The total cost function is C(x)=4000+20x.

Then average cost is \overline{C}(x)=\dfrac{4000+20x}{x}.

When 250 items are produced, the average cost per item will be
\overline{C}(250)=\dfrac{4000+20(250)}{250}=$36.

The average cost per item is $36.

Notice that the average cost per item distributes the fixed costs across all the items.  If we were to graph the average cost, notice that average costs decrease as production increases, eventually leveling off towards the per-item cost of $20.

Illustrates Average Cost Function

The average cost function is one example of a rational function, which is a function made up of a fraction of two polynomials.

Rational Functions

A rational function is a function that can be written as the ratio of two polynomials, P(x) and Q(x).

f(x) = \dfrac{{P(x)}}{{Q(x)}} = \dfrac{{{a_0} + {a_1}x + {a_2}{x^2} + \cdots + {a_p}{x^p}}}{{{b_0} + {b_1}x + {b_2}{x^2} + \cdots + {b_q}{x^q}}}

Warning SignRational Functions are not defined when Q(x)=0 because we cannot divide by zero. When considering the domain of rational functions, we have to exclude any values for which this happens.

To get a feel for these functions, we will look at a graph.

Example of a Rational Function Graph

Let’s investigate the graph of f(x)=\dfrac{2x+4}{x-3}

Notice that the graph is undefined at x = 3, since that would cause us to divide by 0.  We can create a table of values to get a sense for the function.

x f(x)
-5 .75
-3 .333
-2 0
0 -1.333
2 -8
2.9 -98
2.99 -998
3 undefined
3.1 102
4 12
5 7

Notice that as x gets close to 3 from the left, the function values are getting larger and larger in the negative direction.  When x is close to 3 from the right, the function values are getting large and positive.  We call x = 3 a vertical asymptote of the function.

When x = -2, the function value is 0, giving a horizontal intercept.  Notice that when x = -2 the numerator of the rational function is zero.

To get a better sense of the long run behavior, we can evaluate the function at additional, larger inputs:

x f(x)
-1000 1.99
-100 1.90
-10 1.23
10 3.43
100 2.10
1000 2.01

Notice that as x gets large on both ends, the function approaches 2 but never actually reaches 2, it just “levels off” as the inputs become large.  This behavior creates a horizontal asymptote.  In this case the graph is approaching the horizontal line f(x)=2 as the input becomes very large in the negative and positive directions.Graph of the rational function

Sketching a graph of this function:

The graphs of rational functions are sometimes sketched with the horizontal and vertical asymptotes drawn as dashed lines.  It’s important to realize these are not part of the graph of the function itself.

 

Vertical and Horizontal Asymptotes

A vertical asymptote of a graph is a vertical line x = a where the graph tends towards positive or negative infinity as the inputs approach a.

A horizontal asymptote of a graph is a horizontal line y = b where the graph approaches the line as the inputs get large.

In the first example looking at average cost, the function had a vertical asymptote at x=0, and a horizontal asymptote at \overline{C}=20.

Finding Asymptotes and Intercepts

Given a rational function, as part of investigating the short run behavior we are interested in finding any vertical and horizontal asymptotes, as well as finding any vertical or horizontal intercepts, as we have done in the past.

To find vertical asymptotes, we notice that the vertical asymptotes in our examples occur when the denominator of the function is 0.  With one exception, a vertical asymptote will occur whenever the denominator is 0. That exception is when the numerator is also 0 at the same x-value. In this case, there will be a hole in the graph and not a vertical asymptote.

Examples Finding Vertical Asymptotes

Find the vertical asymptotes of the function k(x) = \dfrac{{5 + 2{x^2}}}{{2 - x - {x^2}}}

To find the vertical asymptotes, we determine where this function will be undefined by setting the denominator equal to zero:Graph showing vertical asymptotes at -2,1
\begin{array}{l} 2 - x - {x^2} = 0\\ (2 + x)(1 - x) = 0\\ x = - 2,\;1 \end{array}

We make sure that the numerator is not also 0 at these points:

5+2(-2)^2=13;\;5+2(1)^2=7

This indicates two vertical asymptotes, which a look at a graph confirms.

b. Find the vertical asymptotes of the function k(x)=\dfrac{x-2}{x^2-4}

To find the vertical asymptotes, we determine where this function will be undefined by setting the denominator equal to zero:

\begin{array}{l} {x^2} - 4 = 0\\ {x^2} = 4\\ x = - 2,\;2 \end{array}

However, the numerator of this function is also equal to zero when x = 2.  Because of this, the function will still be undefined at 2, since \dfrac{0}{0} is undefined, but the graph will not have a vertical asymptote at x = 2.

To see why, consider factoring the denominator:Illustrating the Graph with a vertical asymptote at -2, hole at 2
\dfrac{x-2}{(x-2)(x+2)}

Now we see that we could cancel out the (x-2) but only for values of x \neq 2 So the function k(x) is equivalent to \dfrac{1}{x+2} for x \neq 2

The graph of this function will have a vertical asymptote at x=-2, but at x=2 the graph will have a hole: a single point where the graph is not defined indicated by an open circle.

Vertical Asymptotes and Holes of Rational Functions

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 hole might occur in the graph of a rational function if an input causes both numerator and denominator to be zero. In this case, factor the numerator and denominator and simplify; if the simplified expression still has a zero in the denominator at the original input the original function has a vertical asymptote at the input, otherwise it has a hole.

To find horizontal asymptotes, we are interested in the behavior of the function as the input grows large, so we consider long run behavior of the numerator and denominator separately.  Recall that a polynomial’s long run behavior will mirror that of the leading term.  Likewise, a rational function’s long run behavior will mirror that of the ratio of the leading terms of the numerator and denominator functions.

There are three distinct outcomes when this analysis is done:

Case 1:  The degree of the denominator > degree of the numerator

Example: f(x) = \dfrac{{3x + 2}}{{{x^2} + 4x - 5}}

In this case, the long run behavior is f(x) \approx \dfrac{{3x}}{{{x^2}}} = \frac{3}{x}.  This tells us that as the inputs grow large, this function will behave similarly to the function g(x) = \dfrac{3}{x}.  As the inputs grow large, the outputs will approach zero, resulting in a horizontal asymptote at y=0.

Case 2:  The degree of the denominator < degree of the numerator

Example: f(x) = \dfrac{{3{x^2} + 2}}{{x - 5}}

In this case, the long run behavior is f(x) \approx \dfrac{{3{x^2}}}{x} = 3x.  This tells us that as the inputs grow large, this function will behave similarly to the function g(x) = 3x.  As the inputs grow large, the outputs will grow and not level off, so this graph has no horizontal asymptote.

Ultimately, if the numerator is larger than the denominator, the long run behavior of the graph will mimic the behavior of the reduced long run behavior fraction. As another example if we had the function f(x) = \frac{{3{x^5} - {x^2}}}{{x + 3}} with long run behavior f(x) \approx \frac{{3{x^5}}}{x} = 3{x^4}, the long run behavior of the graph would look similar to that of an even polynomial.

Case 3:  The degree of the denominator = degree of the numerator

Example: f(x) = \dfrac{{3{x^2} + 2}}{{{x^2} + 4x - 5}}

In this case, the long run behavior is f(x) \approx \frac{{3{x^2}}}{{{x^2}}} = 3 .  This tells us that as the inputs grow large, this function will behave like the function g(x) = 3, which is a horizontal line.  This function has a horizontal asymptote at y = 3.

Horizontal Asymptote 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 denominator > degree of numerator: Horizontal asymptote at y=0
  • Degree of denominator < degree of numerator: No horizontal asymptote
  • Degree of denominator = degree of numerator: Horizontal asymptote at ratio of leading coefficients.

Example Finding Horizontal and Vertical Asymptotes

Find the horizontal and vertical asymptotes of the function
f(x) = \dfrac{{(x - 2)(x + 3)}}{{(x - 1)(x + 2)(x - 5)}}

How nice of this function to be in factored form for us. First, notice that this function has no inputs that make both the numerator and denominator zero, so there are no potential holes. The function will have vertical asymptotes when the denominator is zero, causing the function to be undefined.

(x-1)(x+2)(x-5)=0 when x = 1, -2 or 5

This indicates three vertical asymptotes at these values.

The numerator has degree 2 and the denominator 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 x \to \pm \infty, f(x) \to 0. This function will have a horizontal asymptote at y = 0.

Try it Now

Find the vertical and horizontal asymptotes of the function

f(x) = \dfrac{{(2x - 1)(2x + 1)}}{{(x - 2)(x + 3)}}

Application Example

Nadi Products, an Ebay retailer that resells items purchased from Fiji, has started selling a new-to-market product.  Nadi is currently selling 2,000 units a month, which has been growing by 100 units a month.  The total market for the product is currently 10,000 units, but is growing by 1000 units a month. 

a) Determine Nadi’s current market share

b) Find the horizontal asymptote and interpret it in context of the scenario.

Notice that the sales per month are increasing linearly. Let t be the number of months, then Nadi’s sales per month are N=2000+100t, and the total market is M=10000+1000t.

Nadi’s market share, MS, the fraction of the total market that Nadi holds:
MS(t) = \dfrac{{2000 + 100t}}{{10000 + 1000t}}

a) Nadi’s current market share is:
MS(0) = \dfrac{{2000 + 100(0)}}{{10000 + 1000(0)}} = \dfrac{{2000}}{{10000}} = 0.20 = 20\%

b) Both the numerator and denominator are linear (degree 1), so since the degrees are equal, there will be a horizontal asymptote at the ratio of the leading coefficients. In the numerator, the leading term is 100t, with coefficient 100. In the denominator, the leading term is 1000t, with coefficient 1000. The horizontal asymptote will be at the ratio of these values, at y = \dfrac{{100}}{{1000}} = 0.10.

This tells us that as the input gets large, the output values will approach 0.10. In context, this means that as more time goes by, Nadi’s market share will approach 10%.

Graph illustrating Market Share

Intercepts

As with all functions, a rational function will have a vertical intercept when the input is zero, if the function is defined at zero.  It is possible for a rational function to not have a vertical intercept if the function is undefined at zero.

Likewise, a rational function will have horizontal intercepts at the inputs that cause the output to be zero (unless that input corresponds to a hole).  It is possible there are no horizontal intercepts.  Since a fraction is only equal to zero when the numerator is zero, horizontal intercepts will occur when the numerator of the rational function is equal to zero.

Examples Finding Intercepts

a. Find the intercepts of f(x) = \dfrac{{(x - 2)(x + 3)}}{{(x - 1)(x + 2)(x - 5)}}

We can find the vertical intercept by evaluating the function at zero:
f(0) = \dfrac{{(0 - 2)(0 + 3)}}{{(0 - 1)(0 + 2)(0 - 5)}} = \dfrac{{ - 6}}{{10}} = - \dfrac{3}{5}

The horizontal intercepts will occur when the function is equal to zero:
0 = \dfrac{{(x - 2)(x + 3)}}{{(x - 1)(x + 2)(x - 5)}}
This is zero when the numerator is zero
\begin{array}{l} 0 = (x - 2)(x + 3)\\ x = 2,\; - 3 \end{array}

Now that we have the ability to find asymptotes and intercepts, we are ready to sketch a graph. Notice you can always check your answer with technology.

When we write rational functions, the large fraction bar is an understood parentheses, but we don’t have the large fraction bar in a calculator, so we must use the / key.  Consider f(x)=\dfrac{x-2}{x+5}. This needs to be written as Y_1= \;(x-2)\(x+5).  Make sure to surround your numerator and denominator in parentheses.

Example sketching a graph

Sketch a graph of f(x) = \dfrac{{6(x - 1)}}{{(x + 2)(x - 3)}}

We can start our sketch by finding intercepts and asymptotes. Evaluating the function at zero gives the vertical intercept:
f(0) = \dfrac{{6(0 - 1)}}{{(0 + 2)(0 - 3)}} = \dfrac{{ - 6}}{{ - 6}} = 1

Looking at when the numerator of the function is zero, we can determine the graph will have a horizontal intercept at x = 1.

Looking at when the denominator of the function is zero, we can determine the graph will have vertical asymptotes at x = -2 and x = 3.

Finally, the degree of denominator is larger than the degree of the numerator, telling us this graph has a horizontal asymptote at y = 0.graph showing the first step of this graph just the intercepts

To sketch the graph, we might start by plotting the intercepts and drawing the asymptotes as dashed lines.

We can now try to sketch a smooth curve passing through both intercepts. As the graph approaches x=3, the graph must approach negative infinity. As we sketch from x=0 towards x=-2, we’d expect the graph to approach positive infinity.

To finish the curve, we need to fill in the portions to the right of x=3 and to the left of x=-2. If we evaluate the function to the right of x=3 we’d see the output is positive, indicating the graph will decrease from positive infinity then level off towards the horizontal asymptote of y=0. To the left of x=-2 the graph will also level off at the horizontal asymptote, and will approach negative infinity to the left of the asymptote.Full Graph of this example

Try it Now

Given the function f(x)=\dfrac{2(x+2)}{x-1}, find the intercepts and asymptotes and sketch the function.

Try it Now Answers

  1. Vertical asymptotes at x = 2 and x = -3; horizontal asymptote at y = 4
  2. Horizontal asymptote at y = 2.

    Vertical asymptote is at x = 1.

    Vertical intercept at (0, 4).

    Horizontal intercept (2, 0).Try it Now Answer Graph number 2

 

Media Attributions

  • avgcostgraph
  • warningsign
  • 61example1
  • 61example2
  • 61example3
  • 61example4
  • 61example5
  • 61example6
  • tinanswer612

License

Icon for the Creative Commons Attribution-ShareAlike 4.0 International License

College Algebra for the Managerial Sciences Copyright © by Terri Manthey is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License, except where otherwise noted.

Share This Book