Skip to main content

Applied Precalculus MTH 103

Section 1.3 Functions Given Numerically

In the previous section, we saw that if a function is given algebraicallyβ€”by a formulaβ€”we can easily create a table of values for that function. That table of values can then be used to sketch the graph of the function, which in turn provides a visual representation of the function that can allow us to see behavior that may not be readily apparent from the formula alone.
When we study a real-life process, which inevitably involves a function of some kind, we rarely begin with a formula for a function that representsβ€”or modelsβ€”the process. Typically, we take measurements and collect and tabulate numerical data for the process we are studying. We then try to find a formula for a function that β€œfits” the numerical information we collected. That is, we start with a table of values and then try to find a formula for a function, not the other way around.
Finding a mathematical description of a real-life process is called mathematical modeling. A function that is given by its table of values is said to be given numerically.
If you ever kept overripe bananas in your house a bit too long, you probably experienced an invasion by fruit flies. And you probably noticed how quickly the population of fruit flies in your house was increasing. It is difficult to count the number of fruit flies in a house, but it can be done in a laboratory.
Suppose that a population of fruit flies in a laboratory experiment is initially 100 flies and it begins to grow. The size of the population, \(P\text{,}\) measured in thousands of flies, is a function of the time \(t\) since the experiment began; that is, \(P=f(t)\text{.}\) Given how quickly fruit flies multiply, it is reasonable to measure \(t\) in days. The scientists conducting the experiment do not have a formula for \(f(t)\) that describes the growth of this fruit fly population and, in general, that growth (and therefore the function \(f(t)\)) depends on many factors controlled by the labβ€”the temperature, food provided, etc. Taking into consideration the length of the fruit fly reproductive cycle, the scientists observe the population and take measurements every 14 days. The data they collect is provided in the table below.
Table 1.3.1.
\(t\) (in days) 0 14 28 42 56
\(P=f(t)\) (in thousands) 0.1 3.94 155.12 6106.99 240432.20
We see that \(f(t)\) is an increasing function and it increases very fast. After 56 days, the initial population of 100 flies grew to 240432.2 thousand flies; that is, 240,432,200 flies!
Can we find a formula for a function \(f(t)\) so that TableΒ 1.3.1 is a table of values for \(f(t)\text{?}\) In other words, can we find a mathematical model for the population growth exhibited in the fruit fly experiment? It turns out that finding a formula for a function that corresponds to experimental data, even if only approximately, may be difficult. In fact, it can be impossible. A formula corresponding to TableΒ 1.3.1 can be found, as the growth of the fruit fly population is exponential. You will see how this is done when we cover exponential functions in Chapter 5.
One can obtain a visual representation of a function from a numerical representation by sketching its approximate graph. The function \(f(t)\) associated with TableΒ 1.3.1 for \(t\) between 0 and 42 is plotted below. The value at \(t=56\) is so large that it squeezes the graph vertically too much and makes it hard to read, which is why we excluded it.
A short description.

Example 1.3.2.

On December 31, 2019 the price of ExxonMobil stock (NYSE: XOM) was changing during the day. The price of the stock each hour from 10 am to 4 pm is recorded in the table below.
Table 1.3.3.
time 10 am 11 am 12 pm 1 pm 2 pm 3 pm 4 pm
price (dollars) \(69.35\) \(69.17\) \(69.41\) \(69.38\) \(69.32\) \(69.32\) \(69.78\)
  1. Let \(E=p(t)\) be the function that gives the price of ExxonMobil stock \(t\) hours after 10 am on December 31, 2019. Rewrite TableΒ 1.3.3 with the first row giving values of \(t\) and the second values of \(E=p(t)\text{.}\)
  2. Sketch an approximate graph of \(p(t)\text{.}\)
  3. Does it appear simple to find a formula or mathematical model for the function \(p(t)\text{?}\)
Solution.
  1. We denote by \(t\) the time, in hours, since 10 am on December 31, 2019. This means that 10 am is \(t=0\text{,}\) 11 am is \(t=1\text{,}\) 4 pm is \(t=6\text{,}\) and so on. As the function \(E=p(t)\) gives the price of ExxonMobil stock at time \(t\text{,}\) we can express \(E=p(t)\) numerically by:
    Table 1.3.4.
    \(t\) \(0\) \(1\) \(2\) \(3\) \(4\) \(5\) \(6\)
    \(p(t)\) \(69.35\) \(69.17\) \(69.41\) \(69.38\) \(69.32\) \(69.32\) \(69.78\)
  2. We use TableΒ 1.3.4 to sketch an approximation of the graph of \(E=p(t)\text{.}\)
    A short description.
    Note that the red ordered pairs are guaranteed to be on the graph of \(p(t)\text{,}\) while the line segments used to connect them are not.
  3. The function \(p(t)\) is neither increasing nor decreasing as the graph sometimes climbs and sometimes falls as \(t\) increases. Finding a formula for the function \(p(t)\) that models fluctuations of the price of a stock does not seem simple and we will not attempt to do so.

Example 1.3.5.

A woman goes to a gym to exercise. After \(t\) minutes on a treadmill, her pulse (heart rate), \(H\text{,}\) in beats per minute, is:
Table 1.3.6.
\(t\) (minutes) 0 2 4 6 8 10
\(H\) (bpm) 80 84 88 92 96 100
  1. Express the above table as a function.
  2. Does it appear simple to find a formula or mathematical model for this function?
  3. Sketch an approximate graph of the function.
Solution.
  1. The woman’s pulse, \(H\text{,}\) is a function of time \(t\text{,}\) which, based on the table, we will measure in minutes since her treadmill workout began. We could write \(H=f(t)\) if we chose to name the associated function \(f\text{.}\) For the sake of simplicity, we often denote the dependent variable and the function by the same letter. In this case, we will instead write \(H=H(t)\text{.}\)
  2. Can we find a formula for \(H(t)\text{?}\) We haven’t developed any specific techniques to do so yet, and hence to answer this question we can only attempt to observe patterns and make educated guesses based on common sense.
    Looking at the data in TableΒ 1.3.6, we can see that the woman’s pulse \(H\) increases as time \(t\) increases, which we might expect based on our own experience with exercise. How does \(H\) increase? The initial value of \(H\)β€”\(H(0)\) in function notationβ€”is \(80\text{.}\) During the first two minutes from \(t=0\) to \(t=2\text{,}\) her pulse increases by \(4\) bpm from \(80\) to \(84\text{.}\) During the next two minutes from \(t=2\) to \(t=4\text{,}\) her pulse increases again by \(4\) bpm from \(84\) to \(88\text{.}\) Looking at each of the remaining two-minute intervals, we see that her pulse increases by \(4\) bpm every two minutes: \(88\) to \(92\text{,}\) \(92\) to \(96\text{,}\) and \(96\) to \(100\text{.}\)
    As we attempt to find a possible formula for \(H(t)\text{,}\) we observe that if her pulse is increasing by \(4\) bpm every two minutes, we could perhaps think of this as \(2\) bpm every \(1\) minute instead. So her pulse starts at an initial value of \(80\) bpm and then we add \(2\) bpm for every one-minute change in \(t\text{.}\) The formula that reflects that is:
    \begin{equation*} H(t)=80+2t. \end{equation*}
    Let’s check if the values of \(H(t)\) reflect the data in TableΒ 1.3.6:
    \begin{align*} H(0)=80+2\cdot 0 \amp = 80 \amp H(2) \amp =80+2\cdot 2 \phantom{0} = 84 \\ H(4)=80+2\cdot 4\amp =88 \amp H(6) \amp= 80+2\cdot 6 \phantom{0} = 92\\ H(8)=80+2\cdot 8 \amp =96 \amp H(10) \amp=80+2\cdot 10 = 100. \end{align*}
    Yes! Our formula produces all the right values and matches the information given in TableΒ 1.3.6.
    Note that the formula \(H(t)=80+2t\) gives a possible formula for \(H(t)\text{.}\) It is entirely possible that the woman’s actual heart rate at time \(t=1.5\) minutes does not match what the formula \(H(t)=80+2t\) suggests it should be. We have no way of knowing, as the table does not tell us anything about the values of \(H(t)\) at any times other than \(t=0,2,4,6,8,10\) minutes.
  3. Here is an approximate graph of the function \(H=H(t)\) based on the numerical data:
    A short description.

Example 1.3.7.

Functions \(y=f(x)\) and \(y=g(x)\) are given numerically below. Find possible formulas for \(f(x)\) and \(g(x)\text{.}\)
  1. Table 1.3.8.
    \(x\) \(0\) \(1\) \(2\) \(3\) \(4\) \(5\)
    \(f(x)\) \(0\) \(-1\) \(-4\) \(-9\) \(-16\) \(-25\)
  2. Table 1.3.9.
    \(x\) \(0\) \(1\) \(2\) \(3\) \(4\) \(5\)
    \(g(x)\) \(80\) \(78\) \(76\) \(74\) \(72\) \(70\)
Solution.
  1. We notice that the values of \(f(x)\) for each \(x\) given in the table are negative and have the magnitude equal to \(x^{2}\text{.}\) Hence, a possible function represented by TableΒ 1.3.8 is \(f(x)=-x^{2}\text{.}\) We can easily check that \(f(x)=-x^{2}\) works by substituting \(x=0,1,2,3,4,5\) into \(f(x)\) and calculating the corresponding values. Those are indeed \(0,-1,-4,-9,-16,\) and \(-25\text{,}\) respectively.
  2. At \(x=0\text{,}\) \(g(0)=80\text{.}\) Then, as \(x\) increases, \(g(x)\) decreases in a very regular fashion: for each increase of 1 in \(x\text{,}\) \(g(x)\) decreases by 2. A formula that gives exactly such behavior is:
    \begin{equation*} g(x)=80-2x. \end{equation*}
    We can verify that this function produces the values in TableΒ 1.3.9:
    \begin{align*} g(0) \amp \; =\; 80 - 2 \cdot 0 \; = \; 80 \amp g(1) \amp \;=\; 80-2 \cdot 1 \;=\;78\\ g(2) \amp \;=\;80-2\cdot 2\;=\;76 \amp g(3) \amp \;=\; 80-2\cdot 3\;=\;74 \\ g(4) \amp \;=\; 80-2\cdot 4\;=\;72 \amp g(5) \amp \;=\;80-2\cdot 5\;=\;70 \end{align*}
For now, we can only try to observe patterns and β€œguess” formulas for numerically given functions. As we study various families of functions, we will develop more systematic methods for finding formulas of functions given numerically.

Exercises Exercises

3.

Use the numerically given function \(g(t)\) below to find each of the following.
\(t\) \(0\) \(2\) \(4\) \(6\) \(8\) \(10\)
\(g(t)\) \(1.5\) \(3.7\) \(1.5\) \(4.2\) \(1.5\) \(0\)
  1. \(\displaystyle g(4)\)
  2. \(\displaystyle g(2)\)
  3. \(\displaystyle g(8)\)
Solution.
  1. \(\displaystyle g(4)=1.5\)
  2. \(\displaystyle g(2)=3.7\)
  3. \(\displaystyle g(8)=1.5\)

5.

Determine a formula for the function \(h(x)\) given numerically in the table below.
\(x\) \(-2\) \(-1\) \(0\) \(1\) \(2\) \(3\) \(4\)
\(h(x)\) \(-8\) \(-1\) \(0\) \(1\) \(8\) \(27\) \(64\)
Solution.
\(h(x)=x^3\)

6.

Determine a formula for the function \(F(t)\) given numerically in the table below and fill in the missing values.
\(t\) \(-2\) \(-1\) \(0\) \(1\) \(2\) \(3\) \(4\) \(5\) \(6\)
\(F(t)\) \(4\) \(2\) \(0\) \(-2\) \(-4\) \(-6\) \(-8\) ? ?
Solution.
\(F(t)=-2t\)
\(t\) \(5\) \(6\)
\(F(t)\) \(-10\) \(-12\)

7.

A driver of a Volkswagen Passat fills up his gas tank and starts a highway trip to a faraway city. Let \(G\text{,}\) in gallons, be the amount of gas left in the tank after driving \(d\) miles. Fill in the missing numbers and find the gas mileage of the VW Passat; that is, the number of miles the SUV gets per gallon.
\(d\) \(0\) \(36\) \(72\) \(108\) \(144\) \(180\) \(216\) \(252\)
\(G(d)\) \(18.5\) \(17\) \(15.5\) \(14\) \(12.5\) ? ? ?
Solution.
\(d\) \(180\) \(216\) \(252\)
\(G(d)\) \(11\) \(9.5\) \(8\)
The gas mileage of the driver’s Volkswagen Passat is 24 miles per gallon.

8.

Data regarding the world population between 2010 and 2018, in billions, is recorded in the table below.
Year \(2010\) \(2011\) \(2012\) \(2013\) \(2014\) \(2015\) \(2016\) \(2017\) \(2018\)
Population \(6.957\) \(7.041\) \(7.126\) \(7.211\) \(7.296\) \(7.380\) \(7.464\) \(7.548\) \(7.631\)
The information in the table can be rewritten so that the population, \(P\text{,}\) in billions, is a function of the number of years, \(t\text{,}\) since 2010. This rewriting has been partially completed for you. Fill in the missing values.
\(t\) \(0\) \(1\) \(?\) \(3\) \(4\) \(?\) \(6\) \(7\) \(8\)
\(P(t)\) \(6.957\) \(7.041\) ? \(7.211\) \(7.296\) \(7.380\) \(7.464\) ? \(7.631\)
Solution.
\(t\) \(0\) \(1\) \(2\) \(3\) \(4\) \(5\) \(6\) \(7\) \(8\)
\(P(t)\) \(6.957\) \(7.041\) \(7.126\) \(7.211\) \(7.296\) \(7.380\) \(7.464\) \(7.548\) \(7.631\)

10.

The amount of power a dragon must output to carry a knight depends on how fast it is flying, as shown in the table below.
speed \(x\) (mph) \(60\) \(70\) \(80\) \(90\) \(100\)
power \(y\) (kW) \(23\) \(25\) \(30\) \(36\) \(45\)
  1. Is the amount of power required for the dragon to carry the knight increasing or decreasing as its speed increases? Explain how you arrive at your conclusion from the data in the table.
  2. Is the amount of power required for the dragon to carry the knight changing faster and faster or slower and slower as its speed increases? Explain how you arrive at your conclusion from the data in the table.
Solution.
  1. The amount of power required for the dragon to carry the knight is increasing as the dragon’s speed increases. This is evident from the table since the values associated with the power required increase as the speed increases.
  2. The amount of power required for the dragon to carry the knight is increasing faster and faster as the dragon’s speed increases. This is evident from the table since each time the speed increases by 10 miles per hour starting at 60 miles per hour, the power required to carry the knight increases by more and more.

11.

Sketch the graph of the function given numerically in ExerciseΒ 1.3.10 and use it to answer the following questions.
  1. Is the amount of power required for the dragon to carry the knight increasing or decreasing as its speed increases? Explain how you arrive at your conclusion from the graph.
  2. Is the amount of power required for the dragon to carry the knight changing faster and faster or slower and slower as its speed increases? Explain how you arrive at your conclusion from the graph.
Solution.
A short description.
  1. The amount of power required for the dragon to carry the knight is increasing as the dragon’s speed increases. This is evident from the graph since it climbs over the interval \(60\leq x \leq 100\text{.}\)
  2. The amount of power required for the dragon to carry the knight is increasing faster and faster as the dragon’s speed increases. This is evident from the graph since each time the speed increases by 10 miles per hour starting at 60 miles per hour, the graph climbs more and more quickly.

Worksheet Practice Worksheet

3.

Let \(f(x)\) be the function in the previous problem.
(a)
Find all inputs \(x\) for which \(f(x)=1.5\text{.}\)
Solution.
When \(f(x)=1.5\) (can think of this as \(y\text{,}\) the second row in the table), then \(x\) could be \(0\text{,}\) \(4\text{,}\) and \(8\text{.}\)
(b)
Find all inputs \(x\) for which \(f(x)=3.7\text{.}\)
Solution.
When \(f(x)=3.7\text{,}\) then \(x\) could only be \(2\text{.}\)

4.

Guess a formula for the function \(g(x)\) given numerically in the table below.
Solution.
Here, \(g(x)=x^3\text{.}\) Convince yourself that this formula works!

5.

Guess a formula for the function \(h(t)\) given numerically in the table below. Fill in the missing values.
Solution.
Notice that the inputs \(t\) go up by \(1\) each time. And, the outputs \(h(t)\) go down by \(2\) each time. Or, you can think of the outputs as being the inputs multiplied by \(-2\text{.}\) Therefore, \(h(t)=-2t\text{.}\) Thus \(h(5)=-10\) and \(h(6)=-12\text{.}\)

6.

Here is the data for the world population
 1 
between 2010 and 2018, in billions:
To study the population from the mathematical point of view, it is convenient to rewrite the data in terms of the independent variable \(t\) which stands for the number of years since 2010 and write the population, \(P\text{,}\) in billions, as a function \(P=P(t)\) of years since 2010. Based on the table above, fill in the missing values:
Solution.
The completed table is shown above.

7.

A driver of an SUV fills up his gas tank and starts a highway trip to a faraway city. Let \(G\text{,}\) in gallons, be the amount of gas left in the tank after driving \(d\) miles. Of course \(G\) is a function of \(d\text{;}\) that is, \(G=G(d)\text{.}\) Here is partial data about the function:
Find gas mileage of the SUV; that is, the number of miles the SUV gets per gallon. Fill in the missing numbers.
Solution.
Except for the last column when \(d=510\text{,}\) note that the miles \(d\) go up by \(60\) each time, and the gallons \(G(d)\) go down by \(2\) each time. Using these rules, the completed table is given above. Therefore, the car can drive \(510\) miles using \(17\) gallons of gas. Thus, the gas mileage is
\begin{equation*} \frac{510 \text{ miles} }{17 \text{ gallons} } \;=\; 30 \frac{\text{miles} }{\text{gallon} } . \end{equation*}