Graphs of Functions
Use the vertical line test
In the last section we learned how to determine if a relation is a function. The relations we looked at were expressed as a set of ordered pairs, a mapping or an equation. We will now look at how to tell if a graph is that of a function.
An ordered pair is a solution of a linear equation, if the equation is a true statement when the - and -values of the ordered pair are substituted into the equation.
The graph of a linear equation is a straight line where every point on the line is a solution of the equation and every solution of this equation is a point on this line.
In the graph of the equation , for every -value there is only one -value, as shown in the accompanying table.
A relation is a function if every element of the domain has exactly one value in the range. So the relation defined by the equation is a function.
If we look at the graph, each vertical line only intersects the line at one point. This makes sense as in a function, for every -value there is only one -value.
If the vertical line hit the graph twice, the -value would be mapped to two -values, and so the graph would not represent a function.
This leads us to the vertical line test. A set of points in a rectangular coordinate system is the graph of a function if every vertical line intersects the graph in at most one point. If any vertical line intersects the graph in more than one point, the graph does not represent a function.
Example 3.51. Determine whether each graph is the graph of a function.
(a)
Since any vertical line intersects the graph in at most one point, the graph is the graph of a function.
(b)
One of the vertical lines shown on the graph, intersects it in two points. This graph does not represent a function.
Determine whether the upward-opening parabola with vertex is the graph of a function.
Apply the vertical line test.Determine whether the circle centered at the origin with radius is the graph of a function.
Ask whether one vertical line can meet the graph more than once.Determine whether the nonvertical line is the graph of a function.
Ask how many times any vertical line meets the graph.Identify graphs of basic functions
We used the equation and its graph as we developed the vertical line test. We said that the relation defined by the equation is a function.
We can write this as in function notation as . It still means the same thing. The graph of the function is the graph of all ordered pairs where . So we can write the ordered pairs as . It looks different but the graph will be the same.
Nothing has changed but the notation.
Graph of a Function. The graph of a function is the graph of all its ordered pairs, or using function notation, where .
| Symbol | Meaning |
|---|---|
| name of function | |
| -coordinate of the ordered pair | |
| -coordinate of the ordered pair |
As we move forward in our study, it is helpful to be familiar with the graphs of several basic functions and be able to identify them.
Through our earlier work, we are familiar with the graphs of linear equations. The process we used to decide if is a function would apply to all linear equations. All non-vertical linear equations are functions. Vertical lines are not functions as the -value has infinitely many -values.
We wrote linear equations in several forms, but it will be most helpful for us here to use the slope-intercept form of the linear equation. The slope-intercept form of a linear equation is . In function notation, this linear function becomes where is the slope of the line and is the -intercept.
The domain is the set of all real numbers, and the range is also the set of all real numbers.
We will use the graphing techniques we used earlier, to graph the basic functions.
Example 3.52. Graph: .
We recognize this as a linear function.
Find the slope and -intercept.
Graph using the slope intercept.
Graph the linear function by placing two points on the line.
Start at the -intercept ; the slope means down 3, right 1.Graph: . Enter its slope.
In , the slope is .The next function whose graph we will look at is called the constant function and its equation is of the form , where is any real number. If we replace the with , we get . We recognize this as the horizontal line whose -intercept is . The graph of the function , is also the horizontal line whose -intercept is .
Notice that for any real number we put in the function, the function value will be . This tells us the range has only one value, .
Example 3.53. Graph: .
We recognize this as a constant function. The graph will be a horizontal line through .
Graph: . Enter the -coordinate of every point on the graph.
A constant function has the same output for every input.Graph: . Enter the -coordinate of every point on the graph.
A constant function graphs as a horizontal line.The identity function, is a special case of the linear function. If we write it in linear function form, , we see the slope is 1 and the -intercept is 0.
The next function we will look at is not a linear function. So the graph will not be a line. The only method we have to graph this function is point plotting. Because this is an unfamiliar function, we make sure to choose several positive and negative values as well as 0 for our -values.
Example 3.54. Graph: .
We choose -values. We substitute them in and then create a chart as shown.
Graph: . Find .
Substitute for .Graph: . Find .
Substitute for , square it, and then take the opposite.Looking at the result in Example 3.54, we can summarize the features of the square function. We call this graph a parabola. As we consider the domain, notice any real number can be used as an -value. The domain is all real numbers.
The range is not all real numbers. Notice the graph consists of values of never go below zero. This makes sense as the square of any number cannot be negative. So, the range of the square function is all non-negative real numbers.
The next function we will look at is also not a linear function so the graph will not be a line. Again we will use point plotting, and make sure to choose several positive and negative values as well as 0 for our -values.
Example 3.55. Graph: .
We choose -values. We substitute them in and then create a chart.
Graph: . Find .
Substitute for .Graph: . Find .
Cube , and then take the opposite.Looking at the result in Example 3.55, we can summarize the features of the cube function. As we consider the domain, notice any real number can be used as an -value. The domain is all real numbers.
The range is all real numbers. This makes sense as the cube of any non-zero number can be positive or negative. So, the range of the cube function is all real numbers.
The next function we will look at does not square or cube the input values, but rather takes the square root of those values.
Let’s graph the function and then summarize the features of the function. Remember, we can only take the square root of non-negative real numbers, so our domain will be the non-negative real numbers.
Example 3.56. .
We choose -values. Since we will be taking the square root, we choose numbers that are perfect squares, to make our work easier. We substitute them in and then create a chart.
Graph: . Find .
Take the principal square root of .Graph: . Find .
Take the principal square root, and then its opposite.Our last basic function is the absolute value function, . Keep in mind that the absolute value of a number is its distance from zero. Since we never measure distance as a negative number, we will never get a negative number in the range.
Example 3.57. Graph: .
We choose -values. We substitute them in and then create a chart.
| | | | | —: | —: | :—: | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
Graph: . Find .
Absolute value is distance from zero.Graph: . Find .
First find , and then take its opposite.Read information from a graph of a function
In the sciences and business, data is often collected and then graphed. The graph is analyzed, information is obtained from the graph and then often predictions are made from the data.
We will start by reading the domain and range of a function from its graph.
Remember the domain is the set of all the -values in the ordered pairs in the function. To find the domain we look at the graph and find all the values of that have a corresponding value on the graph. Follow the value up or down vertically. If you hit the graph of the function then is in the domain.
Remember the range is the set of all the -values in the ordered pairs in the function. To find the range we look at the graph and find all the values of that have a corresponding value on the graph. Follow the value left or right horizontally. If you hit the graph of the function then is in the range.
Example 3.58. Use the graph of the function to find its domain and range. Write the domain and range in interval notation.
To find the domain we look at the graph and find all the values of that correspond to a point on the graph. The domain is highlighted in red on the graph. The domain is .
To find the range we look at the graph and find all the values of that correspond to a point on the graph. The range is highlighted in blue on the graph. The range is .
Use the graph of the function to find its domain and range. Write the domain and range in interval notation. The graph has closed endpoints at and and contains one point for every between them. Enter the domain.
Read the smallest and largest -values reached by the graph; closed endpoints use brackets.Use the graph of the function to find its domain and range. Write the domain and range in interval notation. The graph has closed endpoints at and and reaches a maximum of . Enter the range.
Read the lowest and highest -values reached by the graph.We are now going to read information from the graph that you may see in future math classes.
Example 3.59. Use the graph of the function to find the indicated values.
The graph crosses the -axis at . It has maxima at and and minima at and .
(a) When , the function crosses the -axis at 0. So, .
(b) When , the -value of the function is . So, .
(c) When , the -value of the function is . So, .
(d) The function is 0 at the points . The -values when are .
(e) The -intercepts occur when . So the -intercepts occur when . The -intercepts are .
(f) The -intercepts occur when . So the -intercepts occur at . The -intercept is .
(g) This function has a value for all values of . Therefore, the domain in interval notation is .
(h) This function values, or -values go from to 1. Therefore, the range, in interval notation, is .
Use the graph of the function to find the indicated value. The graph has a maximum at . Find .
The function value is the -coordinate at the given -coordinate.Use the graph of the function to find the indicated value. The graph has the -intercept . Find .
At , read the -coordinate.Key terms. The vertical line test determines whether a graph represents a function; the graph of a function is the graph of all its ordered pairs ; the basic functions in this section are the linear function, constant function, identity function, square function, cube function, square root function, and absolute value function.
Adapted from Intermediate Algebra 2e, Section 3.6, by Lynn Marecek and Andrea Honeycutt Mathis, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at OpenStax. Changes: converted Try It exercises to interactive checks and recreated graphs for accessible web presentation.