1.6: Functions as Graphs
Learning Objectives
 Graph a function from a rule or table.
 Write a function rule from a graph.
 Analyze the graph of a real world situation.
 Determine whether a relation is a function.
Introduction
We represent functions graphically by plotting points on a Coordinate Plane (this is also sometimes called the Cartesian plane). The coordinate plane is a grid formed by a horizontal number line and a vertical number line that cross at a point called the origin. The origin is point (0, 0) and it is the “starting” location. In order to plot points on the grid, you are told how many units you go right or left and how many units you go up or down from the origin. The horizontal line is called the \begin{align*}x\end{align*}axis and the vertical line is called the \begin{align*}y\end{align*}axis. The arrows at the end of each axis indicate that the plane continues past the end of the drawing.
From a function, we can gather information in terms of pairs of points. For each value of the independent variable in the domain, the function is used to calculate the value of the dependent variable. We call these pairs of points coordinate points or \begin{align*}x, y\end{align*} values and they are written as \begin{align*}(x, y)\end{align*}.
To graph a coordinate point such as (4, 2) we start at the origin.
Then we move 4 units to the right.
And then we move 2 units up from the last location.
Example 1
Plot the following coordinate points on the Cartesian plane.
(a) (5, 3)
(b) (2, 6)
(c) (3, 4)
(d) (5, 7)
Solution
We show all the coordinate points on the same plot.
Notice that:
For a positive \begin{align*}x\end{align*} value we move to the right.
For a negative \begin{align*}x\end{align*} value we move to the left.
For a positive \begin{align*}y\end{align*} value we move up.
For a negative \begin{align*}y\end{align*} value we move down.
The \begin{align*}x\end{align*}axis and \begin{align*}y\end{align*}axis divide the coordinate plane into four quadrants. The quadrants are numbered counterclockwise starting from the upper right. The plotted point for (a) is in the First quadrant, (b) is in the Second quadrant, (c) is in the Fourth quadrant, and (d) is in the Third quadrant.
Graph a Function From a Rule or Table
Once a rule is known or if we have a table of values that describes a function, we can draw a graph of the function. A table of values gives us coordinate points that can be plotted on the Cartesian plane.
Example 2
Graph the function that has the following table of values.
\begin{align*}& x & & 2 & & 1 & & 0 & & 1 & & 2 \\ & y & & \quad 6 & & \quad 8 & & 10 & & 12 & & 14\end{align*}
Solution
The table gives us five sets of coordinate points (2, 6), (1, 8), (0, 10), (1, 12), (2, 14).
To graph the function, we plot all the coordinate points. Since we are not told the domain of the function or the context where it appears we can assume that the domain is the set of all real numbers. To show that the function holds for all values in the domain, we connect the points with a smooth line. Also, we must realize that the line continues infinitely in both directions.
Example 3
Graph the function that has the following table of values.
\begin{align*}& \text{Side of the Square} & & 0 & & 1 & & 2 & & 3 & & 4\\ & \text{Area of the Square} & & 0 & & 1 & & 4 & & 9 & & 16\end{align*}
The table gives us five sets of coordinate points: (0, 0), (1, 1), (2, 4), (3, 9), (4, 16).
To graph the function, we plot all the coordinate points. Since we are not told the domain of the function, we can assume that the domain is the set of all nonnegative real numbers. To show that the function holds for all values in the domain, we connect the points with a smooth curve. The curve does not make sense for negative values of the independent variable so it stops at \begin{align*}x=0\end{align*} but it continues infinitely in the positive direction.
Example 4
Graph the function that has the following table of values.
\begin{align*}& \text{Number of Balloons} & & 12 & & 13 & & 14 & & 15 & & 16\\ & \text{Cost} & & 41 & & 44 & & 47 & & 50 & & 53\end{align*}
This function represents the total cost of the balloons delivered to your house. Each balloon is $3 and the store delivers if you buy a dozen balloons or more. The delivery charge is a $5 flat fee.
Solution
The table gives us five sets of coordinate points (12, 41), (13, 44), (14, 47), (15, 50), (16, 53).
To graph the function, we plot all the coordinate points. Since the \begin{align*}x\end{align*}values represent the number of balloons for 12 balloons or more, the domain of this function is all integers greater than or equal to 12. In this problem, the points are not connected by a line or curve because it does not make sense to have noninteger values of balloons.
In order to draw a graph of a function given the function rule, we must first make a table of values. This will give us a set of coordinate points that we can plot on the Cartesian plane. Choosing the values of the independent variables for the table of values is a skill you will develop throughout this course. When you pick values here are some of the things you should keep in mind.
 Pick only values from the domain of the function.
 If the domain is the set of real numbers or a subset of the real numbers, the graph will be a continuous curve.
 If the domain is the set of integers of a subset of the integers, the graph will be a set of points not connected by a curve.
 Picking integers is best because it makes calculations easier, but sometimes we need to pick other values to capture all the details of the function.
 Often we start with a set of values. Then after drawing the graph, we realize that we need to pick different values and redraw the graph.
Example 5
Graph the following function \begin{align*}f(x)=x2\end{align*}
Solution
Make a table of values. Pick a variety of negative and positive integer values for the independent variable. Use the function rule to find the value of the dependent variable for each value of the independent variable. Then, graph each of the coordinate points.
\begin{align*}x\end{align*}  \begin{align*}y=f(x)=x2\end{align*} 

\begin{align*}4\end{align*}  \begin{align*}42=6=6\end{align*} 
3  \begin{align*}32=5=5\end{align*} 
2  \begin{align*}22=4=4\end{align*} 
1  \begin{align*}12=3=3\end{align*} 
0  \begin{align*}02=2=2\end{align*} 
1  \begin{align*}12=1=1\end{align*} 
2  \begin{align*}22=0=0\end{align*} 
3  \begin{align*}32=1=1\end{align*} 
4  \begin{align*}42=2=2\end{align*} 
5  \begin{align*}52=3=3\end{align*} 
6  \begin{align*}62=4=4\end{align*} 
7  \begin{align*}72=5=5\end{align*} 
8  \begin{align*}82=6=6\end{align*} 
It is wise to work with a lot of values when you begin graphing. As you learn about different types of functions, you will find that you will only need a few points in the table of values to create an accurate graph.
Example 6
Graph the following function: \begin{align*} f(x) = \sqrt{x}\end{align*}
Solution
Make a table of values. We cannot use negative numbers for the independent variable because we can't take the square root of a negative number. The square root doesn't give real answers for negative inputs. The domain is all positive real numbers, so we pick a variety of positive integer values for the independent variable. Use the function rule to find the value of the dependent variable for each value of the independent variable.
\begin{align*}x\end{align*}  \begin{align*}y = f(x) = \sqrt{x}\end{align*} 

0  \begin{align*}\sqrt{0} = 0\end{align*} 
1  \begin{align*}\sqrt{1} = 1\end{align*} 
2  \begin{align*}\sqrt{2} \approx 1.41\end{align*} 
3  \begin{align*}\sqrt{3} \approx 1.73\end{align*} 
4  \begin{align*}\sqrt{4} = 2\end{align*} 
5  \begin{align*}\sqrt{5} \approx 2.24\end{align*} 
6  \begin{align*}\sqrt{6} \approx 2.45\end{align*} 
7  \begin{align*}\sqrt{7} \approx 2.65\end{align*} 
8  \begin{align*}\sqrt{8} \approx 2.83\end{align*} 
9  \begin{align*}\sqrt{9} = 3\end{align*} 
Note that the range is all positive real numbers.
Example 7
The post office charges 41 cents to send a letter that is one ounce or less and an extra 17 cents for any amount up to and including an additional ounce. This rate applies to letters up to 3.5 ounces.
Solution
Make a table of values. We cannot use negative numbers for the independent variable because it does not make sense to have negative weight. We pick a variety of positive integer values for the independent variable but we also need to pick some decimal values because prices can be decimals too. This will give us a clear picture of the function. Use the function rule to find the value of the dependent variable for each value of the independent variable.
\begin{align*}x\end{align*}  \begin{align*}y\end{align*} 

0  0 
0.2  41 
0.5  41 
0.8  41 
1  41 
1.2  58 
1.5  58 
1.8  58 
2  58 
2.2  75 
2.5  75 
2.8  75 
3.0  75 
3.2  92 
3.5  92 
Write a Function Rule from a Graph
Sometimes you will need to find the equation or rule of the function by looking at the graph of the function. From a graph, you can read pairs of coordinate points that are on the curve of the function. The coordinate points give values of dependent and independent variables that are related to each other by the rule. However, we must make sure that this rule works for all the points on the curve. In this course you will learn to recognize different kinds of functions. There will be specific methods that you can use for each type of function that will help you find the function rule. For now we will look at some simple examples and find patterns that will help us figure out how the dependent and independent variables are related.
Example 8
The graph to the right shows the distance that an ant covers over time. Find the function rule that shows how distance and time are related to each other.
Solution
We make table of values of several coordinate points to see if we can identify a pattern of how they are related to each other.
\begin{align*}& \text{Time} & & 0 & & 1 & & 2 & & 3 & & 4 & & 5 & & 6\\ & \text{Distance} & & 0 & & 1.5 & & 3 & & 4.5 & & 6 & & 7.5 & & 9\end{align*}
We can see that for every second the distance increases by 1.5 feet. We can write the function rule as:
\begin{align*}\text{Distance} = 1.5 \times \text{time}\end{align*}
The equation of the function is \begin{align*}f(x)=1.5x\end{align*}
Example 9
Find the function rule that describes the function shown in the graph.
Solution:
We make a table of values of several coordinate points to see if we can identify a pattern of how they are related to each other.
\begin{align*} & x & & 4 & & 3 & & 2 & & 1 & & 0 & & 1 & & 2 & & 3 & & 4\\ & y & & \quad 8 & & \quad 4.5 & & \quad 2 & & \quad .5 & & 0 & & .5 & & 2 & & 4.5 & & 8\end{align*}
We notice that the values of \begin{align*}y\end{align*} are half of perfect squares. Rewrite the table of values as:
\begin{align*}& x & & 4 & & 3 & & 2 & & 1 & & 0 & & 1 & & 2 & & 3 & & 4\\ & y & & \quad \frac{16}{2} & & \quad \frac{9}{2} & & \quad \frac{4}{2} & & \quad \frac{1}{2} & & \frac{0}{2} & & \frac{1}{2} & & \frac{4}{2} & & \frac{9}{2} & & \frac{16}{2}\end{align*}
We can see that to obtain \begin{align*}y\end{align*}, we square \begin{align*}x\end{align*} and divide by 2.
The function rule is \begin{align*} y = \frac{1} {2} x^2\end{align*} and the equation of the function is \begin{align*} f(x) = \frac{1} {2} x^2\end{align*}.
Example 10
Find the function rule that shows what is the volume of a balloon at different times.
Solution
We make table of values of several coordinate points to see if we can identify a pattern of how they are related to each other.
\begin{align*}& \text{Time} & & 1 & & 0 & & 1 & & 2 & & 3 & & 4 & & 5\\ & \text{Volume} & & \quad 10 & & 5 & & 2.5 & & 1.2 & & 0.6 & & 0.3 & & 0.15\end{align*}
We can see that for every day the volume of the balloon is cut in half. Notice that the graph shows negative time. The negative time can represent what happened on days before you started measuring the volume.
\begin{align*}\text{Day} \ 0: \text{Volume} & = 5\\ \text{Day} \ 1: \text{Volume} & = 5 \cdot \frac{1}{2}\\ \text{Day} \ 2: \text{Volume} & = 5 \cdot \frac{1}{2} \cdot \frac{1}{2} \\ \text{Day} \ 3: \text{Volume} & = 5 \cdot \frac{1}{2} \cdot \frac{1}{2} \cdot \frac{1}{2}\end{align*}
The equation of the function is \begin{align*} f(x) = 5 \left (\frac{1} {2} \right)^x\end{align*}
Analyze the Graph of a RealWorld Situation
Graphs are used to represent data in all areas of life. You can find graphs in newspapers, political campaigns, science journals and business presentations.
Here is an example of a graph you might see reported in the news. Most mainstream scientists believe that increased emissions of greenhouse cases, particularly carbon dioxide, are contributing to the warming of the planet. This graph shows how carbon dioxide levels have increased as the world has industrialized.
From this graph, we can find the concentration of carbon dioxide found in the atmosphere in different years.
\begin{align*}&1900 \qquad 285 \ \text{part per million}\\ &1930 \qquad 300 \ \text{part per million}\\ &1950 \qquad 310 \ \text{parts per million}\\ &1990 \qquad 350 \ \text{parts per million}\end{align*}
We can find approximate function rules for these types of graphs using methods that you learn in more advanced math classes. The function \begin{align*}f(x)=0.0066x^224.9x+23765\end{align*} approximates this graph very well.
Determine Whether a Relation is a Function
You saw that a function is a relation between the independent and the dependent variables. It is a rule that uses the values of the independent variable to give the values of the dependent variable. A function rule can be expressed in words, as an equation, as a table of values and as a graph. All representations are useful and necessary in understanding the relation between the variables. Mathematically, a function is a special kind of relation.
In a function, for each input there is exactly one output.
This usually means that each \begin{align*} x \end{align*}value has only one \begin{align*} y\end{align*}value assigned to it. But, not all functions involve \begin{align*} x \end{align*} and \begin{align*} y \end{align*}.
Consider the relation that shows the heights of all students in a class. The domain is the set of people in the class and the range is the set of heights. Each person in the class cannot be more than one height at the same time. This relation is a function because for each person there is exactly one height that belongs to him or her.
Notice that in a function, a value in the range can belong to more than one element in the domain, so more than one person in the class can have the same height. The opposite is not possible, one person cannot have multiple heights.
Example 11
Determine if the relation is a function.
a) (1, 3), (1, 2), (3, 5), (2, 5), (3, 4)
b) (3, 20), (5, 25), (1, 5), (7, 12), (9, 2)
c)
\begin{align*}& x & & 2 & & 4 & & 6 & & 8 & & 10\\ & y & & 41 & & 44 & & 47 & & 50 & & 53\end{align*}
d)
\begin{align*}& x & & 2 & & 1 & & 0 & & 1 & & 2\\ & y & & 12 & & 10 & & 8 & & 6 & & 4\end{align*}
Solution
The easiest way to figure out if a relation is a function is to look at all the \begin{align*}x\end{align*}values in the list or the table. If a value of \begin{align*}x\end{align*} appears more than once and the \begin{align*}y\end{align*}values are different then the relation is not a function.
a) (1, 3), (1, 2), (3, 5), (2, 5), (3, 4)
You can see that in this relation there are two different \begin{align*}y\end{align*}values that belong to the \begin{align*}x\end{align*}value of 3. This means that this relation in not a function.
b) (3, 20), (5, 25), (1, 5), (7, 12), (9, 2)
Each value of \begin{align*}x\end{align*} has exactly one \begin{align*}y\end{align*}value. The relation is a function.
c)
\begin{align*}& x & & 2 & & 4 & & 6 & & 8 & & 10\\ & y & & 4 & & 4 & & 4 & & 4 & & 4\end{align*}
Each value of \begin{align*}x\end{align*} appears only once. The relation is a function.
d)
\begin{align*}& x & & 2 & & 1 & & 0 & & 1 & & 2\\ & y & & 12 & & 10 & & 8 & & 6 & & 4\end{align*}
In this relation there are two \begin{align*}y\end{align*}values that belong to the \begin{align*}x\end{align*}value of 2 and two \begin{align*}y\end{align*}values that belong to the \begin{align*}x\end{align*}value of 1. The relation is not a function.
When a relation is represented graphically, we can determine if it is a function by using the vertical line test. If you can draw a vertical line that crosses the graph in more than one place, then the relation is not a function. Here are some examples.
Not a function. It fails the vertical line test.
A function. No vertical line will cross more than one point on the graph.
A function. No vertical line will cross more than one point on the graph.
Not a function. It fails the vertical line test.
Review Questions
 Plot the coordinate points on the Cartesian plane.
 (4, 4)
 (2, 7)
 (3, 5)
 (6, 3)
 (4, 3)
 Give the coordinates for each point in the Cartesian plane.
 Graph the function that has the following table of values. (a) \begin{align*} & x & & 10 & & 5 & & 0 & & 5 & & 10\\ & y & & 3 & & 0.5 & & 2 & & 4.5 & & 7 \end{align*} (b) \begin{align*}& \text{side of cube (in)} & & 0 & & 1 & & 2 & & 3\\ & \text{volume} (\text{in}^3) & & 0 & & 1 & & 8 & & 27\end{align*} (c) \begin{align*}& \text{time (hours)} & & 2 & & 1 & & 0 & & 1 & & 2\\ & \text{distance from town center (miles)} & & \quad 50 & & \quad 25 & & 0 & & 25 & & 50\end{align*}
 Graph the following functions.
 Brandon is a member of a movie club. He pays a $50 annual membership and $8 per movie.
 \begin{align*}f(x)=(x2)^2\end{align*}
 \begin{align*}f(x) = 3.2^x\end{align*}
 Determine whether each relation is a function: (a) (1, 7), (2, 7), (3, 8), (4, 8), (5, 9) (b) (1, 1), (1, 1), (4, 2), (4, 2), (9, 3), (9, 3) (c) \begin{align*}& x & & 4 & & 3 & & 2 & & 1 & & 0\\ & y & & \quad 16 & & \quad 9 & & \quad 4 & & 1 & & 0\end{align*} (d) \begin{align*}& \text{Age} & & 20 & & 25 & & 25 & & 30 & & 35\\ & \text{Number of jobs by that age} & & 3 & & 4 & & 7 & & 4 & & 2\end{align*}
 Write the function rule for each graph.
 The students at a local high school took The Youth Risk Behavior Survey. The graph below shows the percentage of high school students who reported that they were current smokers. A person qualifies as a current smoker if he/she has smoked one or more cigarettes in the past 30 days. What percentage of highschool students were current smokers in the following years?
 1991
 1996
 2004
 2005
 The graph below shows the average lifespan of people based on the year in which they were born. This information comes from the National Vital Statistics Report from the Center for Disease Control. What is the average lifespan of a person born in the following years?
 1940
 1955
 1980
 1995
 The graph below shows the median income of an individual based on his/her number of years of education. The top curve shows the median income for males and the bottom curve shows the median income for females. (Source: US Census, 2003.) What is the median income of a male that has the following years of education?
 10 years of education
 17 years of education
 What is the median income of a female that has the same years of education?
 10 years of education
 17 years of education
 Use the vertical line test to determine whether each relation is a function.
Review Answers

 (6, 4);
 (7, 6);
 (8, 2);
 (4, 7);
 (5, 0)
 function
 not a function
 function
 not a function
 \begin{align*} f (x) = \frac{1} {2}  x \end{align*}
 \begin{align*} f(x) = \sqrt{x}\end{align*}
 27.5%
 35.6%
 22.2%
 23%
 63 years
 69 years
 74 years
 76 years
 $19,500
 $56,000
 $10,000
 $35,000
 function
 not a function
Notes/Highlights Having trouble? Report an issue.
Color  Highlighted Text  Notes  

Show More 