# Find domain and range from graphs

Another way to identify the domain and range of functions is by using graphs. Because the domain refers to the set of possible input values, the domain of a graph consists of all the input values shown on the x-axis. The range is the set of possible output values, which are shown on the y-axis. Keep in mind that if the graph continues beyond the portion of the graph we can see, the domain and range may be greater than the visible values. See Figure 6. Figure 6

We can observe that the graph extends horizontally from

$-5$
to the right without bound, so the domain is
$\left[-5,\infty \right)$
. The vertical extent of the graph is all range values
$5$
and below, so the range is
$\left(\mathrm{-\infty },5\right]$
. Note that the domain and range are always written from smaller to larger values, or from left to right for domain, and from the bottom of the graph to the top of the graph for range.

### Example 6: Finding Domain and Range from a Graph

Find the domain and range of the function
$f$
whose graph is shown in Figure 7. Figure 7

### Solution

We can observe that the horizontal extent of the graph is –3 to 1, so the domain of

$f$
is
$\left(-3,1\right]$
. Figure 8

The vertical extent of the graph is 0 to –4, so the range is

$\left[-4,0\right]$
.

### Example 7: Finding Domain and Range from a Graph of Oil Production

Find the domain and range of the function
$f$
whose graph is shown in Figure 9. Figure 9. (credit: modification of work by the U.S. Energy Information Administration)

### Solution

The input quantity along the horizontal axis is "years," which we represent with the variable

$t$
for time. The output quantity is "thousands of barrels of oil per day," which we represent with the variable
$b$
for barrels. The graph may continue to the left and right beyond what is viewed, but based on the portion of the graph that is visible, we can determine the domain as
$1973\le t\le 2008$
and the range as approximately
$180\le b\le 2010$
.

In interval notation, the domain is [1973, 2008], and the range is about [180, 2010]. For the domain and the range, we approximate the smallest and largest values since they do not fall exactly on the grid lines.

### Try It 6

Given the graph in Figure 10, identify the domain and range using interval notation. Figure 10

Solution

### Q & A

Can a function’s domain and range be the same?

Yes. For example, the domain and range of the cube root function are both the set of all real numbers.