### Learning Objectives

By the end of this section, you will be able to:

- Use the vertical line test
- Identify graphs of basic functions
- Read information from a graph of a function

Before you get started, take this readiness quiz.

Evaluate: ⓐ ${2}^{3}$ ⓑ ${3}^{2}.$

If you missed this problem, review Example 1.5.

Evaluate: ⓐ $\left|7\right|$ ⓑ $\left|\mathrm{-3}\right|.$

If you missed this problem, review Example 1.14.

Evaluate: ⓐ $\sqrt{4}$ ⓑ $\sqrt{16}.$

If you missed this problem, review Example 1.41.

### 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 $\left(x,y\right)$ is a solution of a linear equation, if the equation is a true statement when the *x*- and *y*-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 Figure 3.14, we can see that, in graph of the equation $y=2x-3,$ for every *x*-value there is only one *y*-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 $y=2x-3$ is a function.

If we look at the graph, each vertical dashed line only intersects the line at one point. This makes sense as in a function, for every *x*-value there is only one *y*-value.

If the vertical line hit the graph twice, the *x*-value would be mapped to two *y*-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.

### 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.

Determine whether each graph is the graph of a function.

Determine whether each graph is the graph of a function.

### Identify Graphs of Basic Functions

We used the equation $y=2x-3$ and its graph as we developed the vertical line test. We said that the relation defined by the equation $y=2x-3$ is a function.

We can write this as in function notation as $f\left(x\right)=2x-3.$ It still means the same thing. The graph of the function is the graph of all ordered pairs $\left(x,y\right)$ where $y=f\left(x\right).$ So we can write the ordered pairs as $\left(x,f\left(x\right)\right).$ It looks different but the graph will be the same.

Compare the graph of $y=2x-3$ previously shown in Figure 3.14 with the graph of $f\left(x\right)=2x-3$ shown in Figure 3.15. Nothing has changed but the notation.

### Graph of a Function

The graph of a function is the graph of all its ordered pairs, $\left(x,y\right)$ or using function notation, $\left(x,f\left(x\right)\right)$ where $y=f\left(x\right).$

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 $y=2x-3$ is a function would apply to all linear equations. All non-vertical linear equations are functions. Vertical lines are not functions as the *x*-value has infinitely many *y*-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 $y=mx+b.$ In function notation, this linear function becomes $f\left(x\right)=mx+b$ where *m* is the slope of the line and *b* is the *y*-intercept.

The domain is the set of all real numbers, and the range is also the set of all real numbers.

### Linear Function

We will use the graphing techniques we used earlier, to graph the basic functions.

### Example 3.52

Graph: $f\left(x\right)=\mathrm{-2}x-4.$

Graph: $f\left(x\right)=\mathrm{-3}x-1$

Graph: $f\left(x\right)=\mathrm{-4}x-5$

The next function whose graph we will look at is called the constant function and its equation is of the form $f\left(x\right)=b,$ where *b* is any real number. If we replace the $f\left(x\right)$ with y, we get $y=b.$ We recognize this as the horizontal line whose *y*-intercept is *b*. The graph of the function $f\left(x\right)=b,$ is also the horizontal line whose *y*-intercept is *b*.

Notice that for any real number we put in the function, the function value will be *b*. This tells us the range has only one value, *b*.

### Constant Function

### Example 3.53

Graph: $f\left(x\right)=4.$

Graph: $f\left(x\right)=\mathrm{-2}.$

Graph: $f\left(x\right)=3.$

The identity function, $f\left(x\right)=x$ is a special case of the linear function. If we write it in linear function form, $f\left(x\right)=1x+0,$ we see the slope is 1 and the *y*-intercept is 0.

### Identity Function

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 x-values.

### Example 3.54

Graph: $f\left(x\right)={x}^{2}.$

Graph: $f\left(x\right)={x}^{2}.$

$f\left(x\right)=\text{\u2212}{x}^{2}$

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 *x*-value. The domain is all real numbers.

The range is not all real numbers. Notice the graph consists of values of *y* 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.

### Square Function

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 *x*-values.

### Example 3.55

Graph: $f\left(x\right)={x}^{3}.$

Graph: $f\left(x\right)={x}^{3}.$

Graph: $f\left(x\right)=\text{\u2212}{x}^{3}.$

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 *x*-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.

### Cube Function

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 $f\left(x\right)=\sqrt{x}$ 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

$f\left(x\right)=\sqrt{x}$

Graph: $f\left(x\right)=\sqrt{x}.$

Graph: $f\left(x\right)=\text{\u2212}\sqrt{x}.$

### Square Root Function

Our last basic function is the absolute value function, $f\left(x\right)=\left|x\right|.$ 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: $f\left(x\right)=\left|x\right|.$

Graph: $f\left(x\right)=\left|x\right|.$

Graph: $f\left(x\right)=\text{\u2212}\left|x\right|.$

### Absolute Value Function

### 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 *x*-values in the ordered pairs in the function. To find the domain we look at the graph and find all the values of *x* that have a corresponding value on the graph. Follow the value *x* up or down vertically. If you hit the graph of the function then *x* is in the domain.

Remember the range is the set of all the *y*-values in the ordered pairs in the function. To find the range we look at the graph and find all the values of *y* that have a corresponding value on the graph. Follow the value *y* left or right horizontally. If you hit the graph of the function then *y* 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.

Use the graph of the function to find its domain and range. Write the domain and range in interval notation.

Use the graph of the function to find its domain and range. Write the domain and range in interval notation.

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.

ⓐ Find: $f\left(0\right).$

ⓑ Find: $f\left(\frac{3}{2}\pi \right).$

ⓒ Find: $f\left(-\frac{1}{2}\pi \right).$

ⓓ Find the values for *x* when $f\left(x\right)=0.$

ⓔ Find the *x*-intercepts.

ⓕ Find the *y*-intercepts.

ⓖ Find the domain. Write it in interval notation.

ⓗ Find the range. Write it in interval notation.

Use the graph of the function to find the indicated values.

ⓐ Find: $f\left(0\right).$

ⓑ Find: $f\left(\frac{1}{2}\pi \right).$

ⓒ Find: $f\left(-\frac{3}{2}\pi \right).$

ⓓ Find the values for *x* when $f\left(x\right)=0.$

ⓔ Find the *x*-intercepts.

ⓕ Find the *y*-intercepts.

ⓖ Find the domain. Write it in interval notation.

ⓗ Find the range. Write it in interval notation.

Use the graph of the function to find the indicated values.

ⓐ Find: $f\left(0\right).$

ⓑ Find: $f\left(\pi \right).$

ⓒ Find: $f\left(\text{\u2212}\pi \right).$

ⓓ Find the values for *x* when $f\left(x\right)=0.$

ⓔ Find the *x*-intercepts.

ⓕ Find the *y*-intercepts.

ⓖ Find the domain. Write it in interval notation.

ⓗ Find the range. Write it in interval notation.

### Media Access Additional Online Resources

Access this online resource for additional instruction and practice with graphs of functions.

### Section 3.6 Exercises

#### Practice Makes Perfect

**Use the Vertical Line Test**

In the following exercises, determine whether each graph is the graph of a function.

ⓐ

ⓑ

ⓐ

ⓑ

**Identify Graphs of Basic Functions**

In the following exercises, ⓐ graph each function ⓑ state its domain and range. Write the domain and range in interval notation.

$f\left(x\right)=2x+5$

$f\left(x\right)=\mathrm{-4}x-3$

$f\left(x\right)=\mathrm{-3}x+3$

$f\left(x\right)=\frac{2}{3}x-2$

$f\left(x\right)=2$

$f\left(x\right)=\mathrm{-1}$

$f\left(x\right)=3x$

$f\left(x\right)=\mathrm{-3}x$

$f\left(x\right)=2{x}^{2}$

$f\left(x\right)=\mathrm{-2}{x}^{2}$

$f\left(x\right)=\frac{1}{3}{x}^{2}$

$f\left(x\right)={x}^{2}+1$

$f\left(x\right)=2{x}^{3}$

$f\left(x\right)={x}^{3}-2$

$f\left(x\right)=\mathrm{-2}\sqrt{x}$

$f\left(x\right)=\sqrt{x+1}$

$f\left(x\right)=\mathrm{-2}\left|x\right|$

$f\left(x\right)=\left|x\right|-1$

**Read Information from a Graph of a Function**

In the following exercises, use the graph of the function to find its domain and range. Write the domain and range in interval notation.

In the following exercises, use the graph of the function to find the indicated values.

ⓐ Find: $f\left(0\right).$

ⓑ Find: $f\left(\frac{1}{2}\pi \right).$

ⓒ Find: $f\left(-\frac{3}{2}\pi \right).$

ⓓ Find the values for *x* when $f\left(x\right)=0.$

ⓔ Find the *x*-intercepts.

ⓕ Find the *y*-intercepts.

ⓖ Find the domain. Write it in interval notation.

ⓗ Find the range. Write it in interval notation.

ⓐ Find: $f\left(0\right).$

ⓑ Find: $f\left(\pi \right).$

ⓒ Find: $f\left(\text{\u2212}\pi \right).$

ⓓ Find the values for *x* when $f\left(x\right)=0.$

ⓔ Find the *x*-intercepts.

ⓕ Find the *y*-intercepts.

ⓖ Find the domain. Write it in interval notation.

ⓗ Find the range. Write it in interval notation

ⓐ Find: $f\left(0\right).$

ⓑ Find: $f\left(\mathrm{-3}\right).$

ⓒ Find: $f\left(3\right).$

ⓓ Find the values for *x* when $f\left(x\right)=0.$

ⓔ Find the *x*-intercepts.

ⓕ Find the *y*-intercepts.

ⓖ Find the domain. Write it in interval notation.

ⓗ Find the range. Write it in interval notation.

ⓐ Find: $f\left(0\right).$

ⓑ Find the values for *x* when $f\left(x\right)=0.$

ⓒ Find the *x*-intercepts.

ⓓ Find the *y*-intercepts.

ⓔ Find the domain. Write it in interval notation.

ⓕ Find the range. Write it in interval notation

#### Writing Exercises

Explain in your own words how to find the domain from a graph.

Explain in your own words how to find the range from a graph.

Explain in your own words how to use the vertical line test.

Draw a sketch of the square and cube functions. What are the similarities and differences in the graphs?

#### Self Check

ⓐ After completing the exercises, use this checklist to evaluate your mastery of the objectives of this section.

ⓑ After reviewing this checklist, what will you do to become confident for all objectives?