Determining Domain and Range Using the Graph

A function's graph is a direct visual record of its domain and range. The domain is the shadow of the graph on the -axis, and the range is the shadow on the -axis. This section develops that idea through precise procedures and worked examples.

Quick Reference

To find Draw a line Interpret
Domain Vertical lines sweeping all Domain = -values where vertical lines hit the graph
Range Horizontal lines sweeping all Range = -values where horizontal lines hit the graph

Finding Domain and Range from a Graph

A diagram showing how to determine the domain (projection to x-axis) and range (projection to y-axis) from a function's graph.
The domain is the projection of the graph onto the -axis; the range is its projection onto the -axis.
  • To find the domain: for each -value, draw a vertical line. If it intersects the graph, that is in the domain. The domain is the set of all -values that produce an intersection.
  • To find the range: for each -value, draw a horizontal line. If it intersects the graph, that is in the range. The range is the set of all -values that produce an intersection.

The function is graphed below. Find its domain and range.

A step-like graph of a function g(x) with a hole at x=1.
Graph of .
Solution A vertical line intersects the graph of for every except (there is a hole at ). So is not in the domain. Horizontal lines intersect the graph only at and . Therefore:

The function is graphed below. Determine the domain and range of .

A graph of a piecewise function φ(x) consisting of a horizontal ray for negative x and a rising curve for non-negative x.
Graph of .
Solution A vertical line through any always hits either the left piece or the right piece of the graph. Therefore, every real number is in the domain: Horizontal lines through all intersect the right piece, and the horizontal line intersects the left piece. No horizontal line through and hits the graph. Therefore:

Find the range of where .

Solution We sketch the graph by building a table of values, making sure to include the endpoints and :
Graph of y = x² - 3 on the interval [-1, 2].
Graph of on .
The function reaches its minimum value of at and its maximum value of at . From the graph:

Frequently Asked Questions

How do I find the domain when the graph has a hole? A hole means the function is not defined at that -value. Exclude it from the domain. For example, a hole at means , and the domain is .

Can the range be a union of intervals? Yes. For example, if the graph consists of two separate pieces, the range is the union of the -values covered by each piece. This is common for piecewise functions.

What if the graph extends infinitely? Project the infinite portion onto the axis. For example, if the graph extends upward without bound, the range includes for some value . If it extends to the right without bound, the domain includes for some .

Is the range always an interval? Not necessarily. The range can be a finite set (for a piecewise constant function), a union of intervals, or a single point. However, for continuous functions defined on an interval, the range is always an interval (by the Intermediate Value Theorem from calculus).