We often want to predict values of one variable from the values of a related variable. For example, when a physician prescribes a drug in a certain dosage, she needs to know how long the dose will remain in the bloodstream. A sales manager needs to know how the price of his product will affect its sales. A function is a special type of relationship between variables that allows us to make such predictions.
Suppose it costs $800 for flying lessons, plus $30 per hour to rent a plane. If we let \(C\) represent the total cost for \(t\) hours of flying lessons, then
The variable \(t\) is called the input or independent variable, and \(C\) is the output or dependent variable, because its values are determined by the value of \(t\text{.}\) We can display the relationship between two variables by a table or by ordered pairs. The input variable is the first component of the ordered pair, and the output variable is the second component.
For this relationship, we can find the value of \(C\) for any given value of \(t\text{.}\) All we have to do is substitute the value of \(t\) into the equation and solve for \(C\text{.}\) Note that there can be only one value of \(C\) for each value of \(t\text{.}\)
A function is a relationship between two variables for which a unique value of the output variable can be determined from a value of the input variable.
What distinguishes functions from other variable relationships? The definition of a function calls for a unique value—that is, exactly one value of the output variable corresponding to each value of the input variable. This property makes functions useful in applications because they can often be used to make predictions.
The distance, \(d\text{,}\) traveled by a car in 2 hours is a function of its speed, \(r\text{.}\) If we know the speed of the car, we can determine the distance it travels by the formula \(d = r \cdot 2\text{.}\)
The cost of a fill-up with unleaded gasoline is a function of the number of gallons purchased. The gas pump represents the function by displaying the corresponding values of the input variable (number of gallons) and the output variable (cost).
Score on the Scholastic Aptitude Test (SAT) is not a function of score on an IQ test, because two people with the same score on an IQ test may score differently on the SAT; that is, a person’s score on the SAT is not uniquely determined by his or her score on an IQ test.
As part of a project to improve the success rate of freshmen, the counseling department studied the grades earned by a group of students in English and algebra. Do you think that a student’s grade in algebra is a function of his or her grade in English? Explain why or why not.
Phatburger features a soda bar, where you can serve your own soft drinks in any size. Do you think that the number of calories in a serving of Zap Kola is a function of the number of fluid ounces? Explain why or why not.
A function can be described in several different ways. In the following examples, we consider functions defined by tables, by graphs, and by equations.
When we use a table to describe a function, the first variable in the table (the left column of a vertical table or the top row of a horizontal table) is the input variable, and the second variable is the output. We say that the output variable is a function of the input.
The table below shows data on sales compiled over several years by the accounting office for Eau Claire Auto Parts, a division of Major Motors. In this example, the year is the input variable, and total sales is the output. We say that total sales, \(S\text{,}\)is a function of\(t\text{.}\)
If we know the weight of the article being shipped, we can find the postage from the table. For instance, a catalog weighing 4.5 ounces would require $1.56 in postage. In this example, \(w\) is the input variable and \(p\) is the output variable. We say that \(p\)is a function of\(w\text{.}\)
According to these data, cholesterol count is not a function of age, because several patients who are the same age have different cholesterol levels. For example, three different patients are 51 years old but have cholesterol counts of 227, 209, and 216, respectively. Thus, we cannot determine a unique value of the output variable (cholesterol count) from the value of the input variable (age). Other factors besides age must influence a person’s cholesterol count.
Note that several different inputs for a function can have the same output. For example, the inputs 4.5 and 4.25 in part (b) of the Example above have output $1.56. However, a single input cannot have more than one output, as illustrated in part (c) of the Example.
The graph shows the number of hours, \(H\text{,}\) that the sun is above the horizon in Peoria, Illinois, on day \(t\text{,}\) where \(t = 0\) on January 1.
The input variable, \(t\text{,}\) appears on the horizontal axis. The number of daylight hours, \(H\text{,}\) is a function of the date. The output variable appears on the vertical axis.
The point on the curve where \(t = 150\) has \(H \approx 14.1\text{,}\) so Peoria gets about 14.1 hours of daylight when \(t = 150\text{,}\) which is at the end of May.
The maximum value of 14.4 hours occurs on the longest day of the year, when \(t \approx 170\text{,}\) about three weeks into June. The minimum of 9.6 hours occurs on the shortest day, when \(t \approx 355\text{,}\) about three weeks into December.
The graph shows the elevation in feet, \(a\text{,}\) of the Los Angeles Marathon course at a distance \(d\) miles into the race. (Source: Los Angeles Times, March 3, 2005)
As of 2020, One World Trade Center in New York City is the nation’s tallest building, at 1776 feet. If an algebra book is dropped from the top of One World Trade Center, its height above the ground after \(t\) seconds is given by the equation
\begin{equation*}
h = 1776 - 16t^2
\end{equation*}
Thus, after \(\alert{1}\) second the book’s height is
For this function, \(t\) is the input variable and \(h\) is the output variable. For any value of \(t\text{,}\) a unique value of \(h\) can be determined from the equation for \(h\text{.}\) We say that \(h\)is a function of\(t\text{.}\)
This setting will give us an initial x-value of 0 \((TblStart = 0)\) and an increment of one unit in the \(x\)-values, \((\Delta Tbl = 1)\text{.}\) It also fills in values of both variables automatically.
There is a convenient notation for discussing functions. First, we choose a letter, such as \(f\text{,}\)\(g\text{,}\) or \(h\) (or \(F\text{,}\)\(G\text{,}\) or \(H\)), to name a particular function. (We can use any letter, but these are the most common choices.)
For instance, in Example 1.44, the height, \(h\text{,}\) of a falling algebra book is a function of the elapsed time, \(t\text{.}\) We might call this function \(f\text{.}\) In other words, \(f\) is the name of the relationship between the variables \(h\) and \(t\text{.}\) We write
\begin{equation*}
h = f (t)
\end{equation*}
which means "\(h\) is a function of \(t\text{,}\) and \(f\) is the name of the function."
The new symbol \(f(t)\text{,}\) read "\(f\) of \(t\text{,}\)" is another name for the height, \(h\text{.}\) The parentheses in the symbol \(f(t)\) do not indicate multiplication. (It would not make sense to multiply the name of a function by a variable.) Think of the symbol \(f(t)\) as a single variable that represents the output value of the function.
Perhaps it seems complicated to introduce a new symbol for \(h\text{,}\) but the notation \(f(t)\) is very useful for showing the correspondence between specific values of the variables \(h\) and \(t\text{.}\)
which we read as "\(f\) of \(1\) equals \(1760\)" and "\(f\) of \(2\) equals \(1712\text{.}\)" The values for the input variable, \(t\text{,}\) appear inside the parentheses, and the values for the output variable, \(h\text{,}\) appear on the other side of the equation.
When you exercise, your heart rate should increase until it reaches your target heart rate. The table shows target heart rate, \(r = f(a) \text{,}\) as a function of age.
If a function is described by an equation, we simply substitute the given input value into the equation to find the corresponding output, or function value.
Complete the table displaying ordered pairs for the function \(~f(x) = 5 - x^3\text{.}\) Evaluate the function to find the corresponding \(f(x)\)-value for each value of \(x\text{.}\)
Press TblSet (2ndWINDOW) and choose \(Ask\) after \(Indpnt\text{,}\) as shown in the figure at left below, and press ENTER. This setting allows you to enter any \(x\)-values you like.
To follow Practice 7, key in (-) 2 ENTER for the \(x\)-value, and the calculator will fill in the \(y\)-value. Continue by entering 0, 1, 3, or any other \(x\)-values you choose.
If you would like to evaluate a new function, you do not have to return to the Y= screen. Use the → and ↑ arrow keys to highlight \(Y_1\) at the top of the second column. The definition of \(Y_1\) will appear at the bottom of the display, as shown above. You can key in a new definition here, and the second column will be updated automatically to show the \(y\)-values of the new function.
To simplify the notation, we sometimes use the same letter for the output variable and for the name of the function. In the next example, \(C\) is used in this way.
TrailGear decides to market a line of backpacks. The cost, \(C\text{,}\) of manufacturing backpacks is a function of the number, \(x\text{,}\) of backpacks produced, given by the equation
for \(x\) backpacks. The company finds that the monthly demand for backpacks increases by 50% during the summer. The backpacks are produced at several small co-ops in different states.
An increase of 50% means an additional 50% of the current production level, \(b\text{.}\) Therefore, a co-op that produced \(b\) backpacks per month during the winter should increase production to \(b + 0.5b\text{,}\) or \(1.5b\) backpacks per month in the summer.
In general, it is not true that \(~f(a + b) = f(a) + f(b)\text{.}\) Remember that the parentheses in the expression \(f(x)\) do not indicate multiplication, so the distributive law does not apply to the expression \(f(a + b)\text{.}\)
Each of the objects in Problems 7–14 establishes a correspondence between two variables. Suggest appropriate input and output variables and decide whether the relationship is a function.
Data indicate that U.S. women are delaying having children longer than their counterparts 50 years ago. The table shows \(f(t)\) the percent of 20–24-year-old women in year \(t\) who had not yet had children. (Source: U.S. Dept of Health and Human Services)
The table shows \(f (t)\text{,}\) the death rate (per 100,000 people) from HIV among 15–24-year-olds, and \(g(t)\text{,}\) the death rate from HIV among 25–34-year-olds, for selected years from 1997 to 2002. (Source: U.S. Dept of Health and Human Services)
In 1988, the death rate from HIV for 25–34-year-olds was \(10\) times the corresponding rate for 15–24-year-olds. Write an equation with function notation that states this fact.
When you exercise, your heart rate should increase until it reaches your target heart rate. The table shows target heart rate, \(r = f (a)\text{,}\) as a function of age.
The table shows \(M = f (d)\text{,}\) the men’s Olympic record time, and \(W = g(d)\text{,}\) the women’s Olympic record time, as a function of the length, \(d\text{,}\) of the race. For example, the women’s record in the 100 meters is 10.61 seconds, and the men’s record in the 800 meters is 1 minute, 40.91 seconds. (Source: en.wikipedia.org as of 11/11/2025)
The graph shows \(C\) as a function of \(t\text{.}\)\(C\) stands for the number of students (in thousands) at State University who consider themselves computer literate, and \(t\) represents time, measured in years since 1990.
The graph shows \(P\) as a function of \(t\text{.}\)\(P\) is the number of people in Cedar Grove who owned a portable DVD player \(t\) years after 2000.
The graph shows \(S\) as a function of \(w\text{.}\)\(S\) represents the weekly sales of a best-selling book, in thousands of dollars, \(w\) weeks after it is released.
The graph shows the federal minimum wage, \(M\text{,}\) as a function of time, \(t\text{,}\) adjusted for inflation to reflect its buying power in 2004 dollars. (Source: www.infoplease.com)
The graph shows the U.S. unemployment rate, \(U\text{,}\) as a function of time, \(t\text{,}\) for the years 1985–2004. (Source: U.S. Bureau of Labor Statistics)
The figure gives data about snowfall, air temperature, and number of avalanches on the Mikka glacier in Sarek, Lapland, in 1957. (Source: Leopold, Wolman, Miller, 1992)
The bar graph shows the percent of Earth’s surface that lies at various altitudes or depths below the surface of the oceans. (Depths are given as negative altitudes.) (Source: Open University)
The graph shows the relationship between annual precipitation, \(p\text{,}\) in a region and the amount of erosion, measured in tons per square mile, \(s\text{.}\) (Source: Leopold, Wolman, Miller, 1992)
An increase in vegetation inhibits erosion, and precipitation encourages vegetation. What happens to the amount of erosion as precipitation increases in each of these three environments?
Make a table starting at \(x = 0\) and increasing by \(\Delta x = 10\text{,}\) as shown in the accompanying tables. Find two \(x\)-values \(a\) and \(b\) so that \(f (a)\gt 500\gt f (b)\text{.}\)
Make a new table starting at \(x = a\) and increasing by \(\Delta x = 1\text{.}\) Find two \(x\)-values, \(c\) and \(d\text{,}\) so that \(f (c)\gt 500\gt f (d)\text{.}\)
Make a new table starting at \(x = c\) and increasing by \(\Delta x = 0.1\text{.}\) Find two \(x\)-values, \(p\) and \(q\text{,}\) so that \(f (p)\gt 500\gt f (q)\text{.}\)
Take the average of \(p\) and \(q\text{,}\) that is, set \(s = \dfrac{p + q}{2}\text{.}\) Then \(s\) is an approximate solution that is off by at most \(0.05\text{.}\)
Make a table starting at \(x = 0\) and increasing by \(\Delta x = 10\text{,}\) as shown in the accompanying tables. Find two \(x\)-values \(a\) and \(b\) so that \(f (a)\lt 18,000\lt f (b)\text{.}\)
Make a new table starting at \(x = a\) and increasing by \(\Delta x = 1\text{.}\) Find two \(x\)-values, \(c\) and \(d\text{,}\) so that \(f (c)\lt 18,000\lt f (d)\text{.}\)
Make a new table starting at \(x = c\) and increasing by \(\Delta x = 0.1\text{.}\) Find two \(x\)-values, \(p\) and \(q\text{,}\) so that \(f (p)\lt 18,000\lt f (q)\text{.}\)
Take the average of \(p\) and \(q\text{,}\) that is, set \(s = \dfrac{p + q}{2}\text{.}\) Then \(s\) is an approximate solution that is off by at most \(0.05\text{.}\)