Drawing the graph of a function is a visual way of identifying its domain and often the most convenient way for determining its range.To figure out if a specific value is in the range of the function, we (imaginarily) draw a horizontal line passing through that specific -value. If that line intersects the graph, then that -value is in the range of the function. This means the horizontal projection of the graph onto the -axis is the range of the function.
Similarly, to find out if a specific -value is in the domain of the function, we draw a vertical line passing through that value of . If this vertical line intersects the graph, then that specific value of is in the domain of the function. In other words, the domain of a function is the vertical projection of its graph onto the -axis. The procedure for finding the domain and the range using the graph is shown in Figure 1.
Figure 1: Finding the domain and the range of a function using its graph
Example 1
The functions and are graphed below. Find their domains and ranges.
Figure 2
Solution
Any vertical line intersects the graph of except when .This means is not in the domain of . Horizontal lines hit its graph only when or . Therefore
The domain of can also be rewritten as
or
For , any vertical line intersects the graph. Although a vertical line passing through does not intersect the right piece of the graph, it meets the left piece. Therefore, all real numbers are in the domain of . Any horizontal line passing through or intersects the graph. Thus,
and
Example 2
Find the range of if
Solution
To find the range of , we first sketch its graph by constructing a table of values, plotting these points, and then connecting them. We make sure that the end values of the interval are among the values that we choose for in our table:
The graph of is shown in Figure 3. If we look at this graph, we realize that the function never goes below and beyond 1. That is, . We will learn how to easily graph such a function later in this chapter.