Skip to main content

Section 3.1 Introduction to Rational Functions

In this chapter we learn about a type of function called a rational function. These are ratios of polynomial functions, so division is a core aspect of the function. Dividing by especially large or small numbers has an impact that is worth studying, and of course dividing by zero is not allowed.

Subsection 3.1.1 Graphs of Rational Functions

Example 3.1.1.

When a drug is injected into a patient, the drug’s concentration in the patient’s bloodstream can be modeled by the function \(C\text{,}\) with formula
\begin{equation*} C(t) = \frac{3t}{t^2+8} \end{equation*}
where \(C(t)\) gives the drug’s concentration, in milligrams per liter, \(t\) hours since the injection. A new injection is needed when the concentration falls to \(0.35\) milligrams per liter. Using graphing technology, we will graph \(y=\frac{3t}{t^2+8}\) and \(y=0.35\) to examine the situation and answer some applied questions.
Figure 3.1.2. Graph of \(C(t)=\frac{3t}{t^2+8}\)
  1. What is the concentration after 10 hours?
  2. After how many hours since the first injection is the drug concentration greatest?
  3. After how many hours since the first injection should the next injection be given?
  4. What happens to the drug concentration if no further injections are given?
Explanation.
  1. To determine the concentration after 10 hours, we evaluate \(C\) at \(t=10\text{.}\)
    \begin{align*} C(10)\amp=\frac{3(10)}{10^2+8}\\ \amp=\frac{30}{108}\\ \amp=\frac{5}{18}\\ \amp\approx 0.2777 \end{align*}
    After \(10\) hours, the concentration will be about 0.2777 mg⁄L.
  2. Using the graph, we can see that the maximum concentration of the drug will be 0.53 mg⁄L and will occur after about \(2.828\) hours.
  3. The approximate points of intersection \((1.066,0.35)\) and \((7.506,0.35)\) tell us that the concentration of the drug will reach 0.35 mg⁄L after about \(1.066\) hours and again after about \(7.506\) hours. Given the rising, then falling shape of the graph, this means that another dose will need to be administered after about \(7.506\) hours.
  4. From the initial graph, it appears that the concentration of the drug will diminish to zero with enough time passing. Exploring further, we can see both numerically and graphically that for larger and larger values of \(t\text{,}\) the function values get closer and closer to zero. This is shown in TableΒ 3 and FigureΒ 4.
    \(t\) \(C(t)\)
    \(24\) \(0.123\ldots\)
    \(48\) \(0.062\ldots\)
    \(72\) \(0.041\ldots\)
    \(96\) \(0.031\ldots\)
    \(120\) \(0.020\ldots\)
    Table 3.1.3. Numerical Values for \(C(t)=\frac{3t}{t^2+8}\)
    Figure 3.1.4. Graph of \(C(t)=\frac{3t}{t^2+8}\)
In SectionΒ 5 we’ll explore how to solve \(C(t)=0.35\) using pencil-and-paper algebra (instead of using the graph). For now, we will rely on technology to make graphs and determine intersection points.
The function \(C\text{,}\) where \(C(t)=\frac{3t}{t^2+8}\text{,}\) is a rational function, which is a type of function defined as follows.

Definition 3.1.5. Rational Function.

A rational function \(f\) is a function with a formula
\begin{equation*} f(x)=\frac{P(x)}{Q(x)} \end{equation*}
where \(P\) and \(Q\) are polynomial functions, but \(Q\) is not the constant zero function.

Checkpoint 3.1.6.

Identify which of the following are rational functions.
Explanation.
\(f\) defined by \(f(x)=\frac{25x^2+3}{25x^2+3}\) is a rational function as its formula is a polynomial divided by another polynomial.
\(Q\) defined by \(Q(x)=\frac{5x^2+3\sqrt{x}}{2x}\) is not a rational function because the numerator contains \(\sqrt{x}\) and is therefore not a polynomial.
\(g\) defined by \(g(t)=\frac{t\sqrt{5}-t^3}{2t+1}\) is a rational function as its formula is a polynomial divided by another polynomial.
\(P\) defined by \(P(x)=\frac{5x+3}{\abs{2x+1}}\) is not a rational function because the denominator contains the absolute value of an expression with variables in it.
\(h\) defined by \(h(x)=\frac{3^x+1}{x^2+1}\) is not a rational function because the numerator contains \(3^x\text{,}\) which has a variable in the exponent.
A rational function’s graph is not always smooth like the one shown in FigureΒ 2. It could have breaks, as we’ll see now.

Example 3.1.7.

Build a table and sketch the graph of the function \(f\) where \(f(x)=\frac{1}{x-2}\text{.}\)
We’ll start by choosing various \(x\)-values and plotting the associated points. Since \(x=2\) makes the denominator \(0\text{,}\) the function will be undefined for \(x=2\text{.}\)
\(x\) \(f(x)\) Point
\(-6\) \(\frac{1}{-6-2}\) \(-0.125\) \((-6,-0.125)\)
\(-4\) \(\frac{1}{-4-2}\) \(\approx -0.167\) \(\left(-4,-\frac{1}{6}\right)\)
\(-2\) \(\frac{1}{-2-2}\) \(-0.25\) \((-2,-0.25)\)
\(0\) \(\frac{1}{0-2}\) \(-0.5\) \((0,-0.5)\)
\(1\) \(\frac{1}{1-2}\) \(-1\) \((1,-1)\)
\(2\) \(\frac{1}{2-2}\) undefined
\(3\) \(\frac{1}{3-2}\) \(1\) \((3,1)\)
\(4\) \(\frac{1}{4-2}\) \(0.5\) \((4,0.5)\)
Table 3.1.8. Initial Values of \(f(x)=\frac{1}{x-2}\)
Figure 3.1.9. Initial Points for \(f(x)=\frac{1}{x-2}\)
Note that extra points were chosen near \(x=2\) in the TableΒ 8, but it’s still not clear on the graph what happens really close to \(x=2\text{.}\) It will be helpful if we include at least one \(x\)-value between \(1\) and \(2\) and also between \(2\) and \(3\text{.}\)
Further, we’ll note that dividing one number by a number that is close to \(0\) yields a large number. For example, \(\frac{1}{0.0005}=2000\text{.}\) In fact, the smaller the number is that we divide by, the larger our result becomes. So when \(x\) gets closer and closer to \(2\text{,}\) then \(x-2\) gets closer and closer to \(0\text{.}\) And then \(\frac{1}{x-2}\) takes very large values.
When we plot additional points closer and closer to \(2\text{,}\) we get larger and larger results. To the left of \(2\text{,}\) the results are negative, so the connected curve has an arrow pointing downward there. The opposite happens to the right of \(x=2\text{,}\) and an arrow points upward. We’ll also draw the vertical line \(x=2\) as a dashed line to indicate that the graph never actually touches it.
\(x\) \(f(x)\) Point
\(-6\) \(\frac{1}{-6-2}\) \(-0.125\) \((-6,-0.125)\)
\(-4\) \(\frac{1}{-4-2}\) \(\approx -0.167\) \(\left(-4,-\frac{1}{6}\right)\)
\(-2\) \(\frac{1}{-2-2}\) \(-0.25\) \((-2,-0.25)\)
\(0\) \(\frac{1}{0-2}\) \(-0.5\) \((0,-0.5)\)
\(1\) \(\frac{1}{1-2}\) \(-1\) \((1,-1)\)
\(1.5\) \(\frac{1}{1.5-2}\) \(-2\) \((1.5,-2)\)
\(1.8\) \(\frac{1}{1.8-2}\) \(-5\) \((1.8,-5)\)
\(2\) \(\frac{1}{2-2}\) undefined
\(2.1\) \(\frac{1}{2.2-2}\) \(5\) \((2.2,5)\)
\(2.5\) \(\frac{1}{2.5-2}\) \(2\) \((2.5,2)\)
\(3\) \(\frac{1}{3-2}\) \(1\) \((3,1)\)
\(4\) \(\frac{1}{4-2}\) \(0.5\) \((4,0.5)\)
Table 3.1.10. Values of \(f(x)=\frac{1}{x-2}\)
Figure 3.1.11. Full Graph of \(f(x)=\frac{1}{x-2}\)
Note that in FigureΒ 11, the line \(y=0\) was also drawn as a dashed line. This is because the values of \(y=f(x)\) will get closer and closer to zero as the inputs become more and more positive (or negative).

Remark 3.1.12.

The line \(x=2\) in ExampleΒ 7 is referred to as a vertical asymptote. The line \(y=0\) is referred to as a horizontal asymptote. We’ll use this vocabulary when referencing such lines, but the classification of vertical asymptotes and horizontal asymptotes is beyond the scope of this book.

Example 3.1.13.

Algebraically find bad input values for \(g(x)=\frac{3x^2}{x^2-2x-24}\text{.}\) Use technology to sketch a graph of this function.
Explanation.
To find bad input values, we are concerned with potentially dividing by zero. So we set the denominator equal to \(0\) and solve:
\begin{align*} x^2-2x-24\amp=0\\ (x-6)(x+4)\amp=0 \end{align*}
\begin{align*} x-6\amp=0\amp\text{or}\amp\amp x+4\amp=0\\ x\amp=6\amp\text{or}\amp\amp x\amp=-4 \end{align*}
Since \(x=6\) and \(x=-4\) will cause the denominator to be \(0\text{,}\) they are the bad inputs.
Before actually constructing the function’s graph, we’ll use technology to create a table of function values,making sure to include values near both \(-4\) and \(6\text{.}\)
\(x\) \(\frac{3x^2}{x^2-2x-24}\) \(x\) \(\frac{3x^2}{x^2-2x-24}\)
\(-10\) \(3.125\) \(1\) \(-0.12\)
\(-9\) \(3.24\) \(2\) \(-0.5\)
\(-8\) \(3.428\ldots\) \(3\) \(-1.285\)
\(-7\) \(3.769\ldots\) \(4\) \(-3\)
\(-6\) \(4.5\) \(5\) \(-8.333\ldots\)
\(-5\) \(6.818\ldots\) \(6\) undefined
\(-4\) undefined \(7\) \(13.363\ldots\)
\(-3\) \(-3\) \(8\) \(8\)
\(-2\) \(-0.75\) \(9\) \(6.230\ldots\)
\(-1\) \(-0.142\ldots\) \(10\) \(5.357\ldots\)
\(0\) \(0\ldots\)
Table 3.1.14. Numerical Values for \(g\)
Figure 3.1.15. Initial Set-Up to Graph \(g\)
We can now see what happens near \(x=-4\) and \(x=6\text{.}\) There are vertical asymptotes and these will be graphed as dashed vertical lines. They are features of the graph but do not show us actual function values.
The last thing we need to consider is what happens for large positive values of \(x\) and large negative values of \(x\text{.}\) Inputting a few values, we find:
\(x\) \(g(x)\)
\(1000\) \(3.0060\ldots\)
\(2000\) \(3.0030\ldots\)
\(3000\) \(3.0020\ldots\)
\(4000\) \(3.0015\ldots\)
Table 3.1.16. Values for Large Positive \(x\)
\(x\) \(g(x)\)
\(-1000\) \(2.9940\ldots\)
\(-2000\) \(2.9970\ldots\)
\(-3000\) \(2.9980\ldots\)
\(-4000\) \(2.9985\ldots\)
Table 3.1.17. Values for Large Negative \(x\)
So for really large positive \(x\) and for really large negative \(x\text{,}\) we see that the function values get closer and closer to \(y=3\text{.}\) So there is a horizontal asymptote, and it will be graphed as a dashed horizontal line on the graph.
Putting all of this together, we can sketch a graph of this function.
Figure 3.1.18. Asymptotes Added for Graphing \(g(x)=\frac{3x^2}{x^2-2x-24}\)
Figure 3.1.19. Full Graph of \(g(x)=\frac{3x^2}{x^2-2x-24}\)
Let’s look at another example where a rational function is used to model real life data.

Example 3.1.20.

The monthly operation cost of Saqui’s shoe company is approximately \(\$300{,}000.00\text{.}\) The cost of producing each pair of shoes is \(\$30.00\text{.}\) As a result, the cost of producing \(x\) pairs of shoes is \(30x+300000\) dollars, and the average cost of producing each pair of shoes can be modeled by
\begin{equation*} \bar{C}(x)=\frac{30x+300000}{x}\text{.} \end{equation*}
Answer the following questions with technology.
  1. What’s the average cost of producing \(100\) pairs of shoes? Of producing \(1000\) pairs? Of producing \(10{,}000\) pairs? What’s the pattern?
  2. To make the average cost of producing each pair of shoes cheaper than \(\$50.00\text{,}\) at least how many pairs of shoes must Saqui’s company produce?
  3. Assume that her company’s shoes are very popular. What happens to the average cost of producing shoes if more and more people keep buying them?
Explanation.
We will graph the function with technology. After adjusting window settings, we have:
Figure 3.1.21. Graph of \(\bar{C}(x)=\frac{30x+300000}{x}\)
  1. To answer this question, we locate the points where \(x\) values are \(100\text{,}\) \(1000\) and \(10{,}000\text{.}\) They are \((100,3030), (1000,330)\) and \((10000,60)\text{.}\) They imply:
    • If the company produces \(100\) pairs of shoes, the average cost of producing one pair is \(\$3030.00\text{.}\)
    • If the company produces \(1{,}000\) pairs of shoes, the average cost of producing one pair is \(\$330.00\text{.}\)
    • If the company produces \(10{,}000\) pairs of shoes, the average cost of producing one pair is \(\$60.00\text{.}\)
    We can see the more shoes her company produces, the lower the average cost.
  2. To answer this question, we locate the point where its \(y\)-value is \(50\text{.}\) With technology, we graph both \(y=\bar{C}(x)\) and \(y=50\text{,}\) and locate their intersection.
    The intersection \((15000,50)\) implies the average cost of producing one pair is \(\$50.00\) if her company produces \(15{,}000\) pairs of shoes.
  3. To answer this question, we substitute \(x\) with some large numbers, and use technology to create a table of values:
    Table 3.1.22. Values for Large Positive \(x\)
    \(x\) \(g(x)\)
    \(100000\) \(33\)
    \(1000000\) \(31\)
    \(10000000\) \(30.03\)
    \(100000000\) \(30.003\)
    We can estimate that the average cost of producing one pair is getting closer and closer to \(\$30.00\) as her company produces more and more pairs of shoes.
    Note that the cost of producing each pair is \(\$30.00\text{.}\) This implies, for big companies whose products are very popular, the cost of operations can be ignored when calculating the average cost of producing each unit of product.

Reading Questions 3.1.2 Reading Questions

3.

If there is a rational function with a vertical asymptote at \(x=7\text{,}\) what does that mean about the denominator of the rational function?

Exercises 3.1.3 Exercises

Skills Practice

Exercise Group.

Identify which functions are rational functions.
1.
Select all rational functions. There are several correct answers.
2.
Select all rational functions. There are several correct answers.

Domain.

Find the bad input values for the function.
3.
Find the domain of \(\displaystyle{g}\) where \(\displaystyle{g(x)={\frac{7x}{x-6}}}\text{.}\)
4.
Find the domain of \(\displaystyle{g}\) where \(\displaystyle{g(x)={\frac{2x}{x+1}}}\text{.}\)
5.
Find the domain of \(\displaystyle{h}\) where \(\displaystyle{h(x)={\frac{3-8x}{x^{2}+9x-10}}}\text{.}\)
6.
Find the domain of \(\displaystyle{F}\) where \(\displaystyle{F(x)={\frac{5x-9}{x^{2}-6x-7}}}\text{.}\)
7.
Find the domain of \(\displaystyle{G}\) where \(\displaystyle{G(x)={\frac{8-2x}{x^{2}+x}}}\text{.}\)
8.
Find the domain of \(\displaystyle{H}\) where \(\displaystyle{H(x)={\frac{9-9x}{x^{2}+2x}}}\text{.}\)
9.
Find the domain of \(\displaystyle{H}\) where \(\displaystyle{H(x)={\frac{5x-3}{x^{2}-49}}}\text{.}\)
10.
Find the domain of \(\displaystyle{K}\) where \(\displaystyle{K(x)={\frac{5-3x}{x^{2}-100}}}\text{.}\)
11.
Find the domain of the function \(r\) defined by \(\displaystyle{r(x)=\frac{x - 10}{x^{2}}}\)
12.
Find the domain of the function \(B\) defined by \(\displaystyle{B(x)=\frac{x - 7}{x^{4}}}\)
13.
Find the domain of the function \(r\) defined by \(\displaystyle{r(x)=\frac{x - 5}{x^2+16}}\)
14.
Find the domain of the function \(b\) defined by \(\displaystyle{b(x)=\frac{x - 3}{x^2+100}}\)
15.
Find the domain of the function \(n\) defined by \(\displaystyle{n(x)=\frac{x+3}{x + 3}}\)
16.
Find the domain of the function \(t\) defined by \(\displaystyle{t(x)=\frac{x+2}{x + 2}}\)

Applications

25.

The population of deer in a forest can be modeled by
\begin{equation*} P(x) = {\frac{840x+900}{7x+2}} \end{equation*}
where \(x\) is the number of years since the year 1900.
  1. How many deer lived in this forest in the year 1900?
  2. How many deer live in this forest \(12\) years after 1900?
  3. How many years since 1900 was it (or will it be) when the deer population was (or will be) \(123\text{?}\)
  4. Use a calculator or graphing calculator to answer this question: As time goes on, the population levels off at about how many deer?

26.

The population of deer in a forest can be modeled by
\begin{equation*} P(x) = {\frac{200x+960}{4x+3}} \end{equation*}
where \(x\) is the number of years since the year 1900.
  1. How many deer lived in this forest in the year 1900?
  2. How many deer live in this forest \(15\) years after 1900?
  3. How many years since 1900 was it (or will it be) when the deer population was (or will be) \(58\text{?}\)
  4. Use a calculator or graphing calculator to answer this question: As time goes on, the population levels off at about how many deer?

27.

In a certain store, cashiers can serve \(55\) customers per hour on average. If \(x\) customers arrive at the store in a given hour, then the average number of customers \(C\) waiting in line can be modeled by the function
\begin{equation*} C(x) = {\frac{x^{2}}{3025-55x}} \end{equation*}
where \(x\lt 55\text{.}\)
Answer the following questions with a graphing calculator. Round your answers to integers.
  1. If \(42\) customers arrived in the store in the past hour, there are approximately customers waiting in line.
  2. If there are \(6\) customers waiting in line, approximately customers arrived in the past hour.

28.

In a certain store, cashiers can serve \(55\) customers per hour on average. If \(x\) customers arrive at the store in a given hour, then the average number of customers \(C\) waiting in line can be modeled by the function
\begin{equation*} C(x) = {\frac{x^{2}}{3025-55x}} \end{equation*}
where \(x\lt 55\text{.}\)
Answer the following questions with a graphing calculator. Round your answers to integers.
  1. If \(48\) customers arrived in the store in the past hour, there are approximately customers waiting in line.
  2. If there are \(2\) customers waiting in line, approximately customers arrived in the past hour.

29.

In a forest, the number of deer can be modeled by the function \(f(t)={\frac{320t+240}{0.8t+8}}\text{,}\) where \(t\) stands for the number of years from now. Answer the question with technology.
After 15 years, there would be approximately deer living in the forest.

30.

In a forest, the number of deer can be modeled by the function \(f(t)={\frac{100t+200}{0.5t+5}}\text{,}\) where \(t\) stands for the number of years from now. Answer the question with technology.
After years, there would be approximately 100 deer living in the forest.

31.

In a forest, the number of deer can be modeled by the function \(f(t)={\frac{105t+100}{0.3t+2}}\text{,}\) where \(t\) stands for the number of years from now. Answer the question with technology.
As time goes on, the population levels off at approximately deer living in the forest.

32.

The concentration of a drug in a patient’s blood stream, in milligrams per liter, can be modeled by the function \(C(t)={\frac{4t}{t^{2}+7}}\text{,}\) where \(t\) is the number of hours since the drug is injected. Answer the following question with technology.
The drug’s concentration after 9 hours is milligrams per liter.

33.

The concentration of a drug in a patient’s blood stream, in milligrams per liter, can be modeled by the function \(C\)m>, with \(C(t)={\frac{5t}{t^{2}+6}}\text{,}\) where \(t\) is the number of hours since the drug is injected. Use technology to complete the following sentence.
The drug’s concentration is 0.71 milligrams per liter hours after injection and then again hours after injection.

34.

The concentration of a drug in a patient’s blood stream, in milligrams per liter, can be modeled by the function \(C(t)={\frac{6t}{t^{2}+4}}\text{,}\) where \(t\) is the number of hours since the drug is injected. Answer the following question with technology.
hours since injection, the drug’s concentration is at the maximum value of milligrams per liter.

35.

The concentration of a drug in a patient’s blood stream, in milligrams per liter, can be modeled by the function \(C(t)={\frac{8t}{t^{2}+5}}\text{,}\) where \(t\) is the number of hours since the drug is injected. Answer the following question with technology.
As time goes on, the drug’s concentration in the patient’s blood stream levels off at approximately milligrams per liter.