Finding Domain and Range From a Graph

Learning Outcome

  • Find the domain and range of a function from its graph

We have learned that the set of input values for a function is called the domain of the function and the set of output values is called the range of the function.  We have also learned how to algebraically determine the domain of a function.  It is important to be aware that the domain and range of a function are not necessarily the same. For example, the function [latex]f\left(x\right)=-\dfrac{1}{\sqrt{x}}[/latex] has the set of all positive real numbers as its domain but the set of all negative real numbers as its range. As a more extreme example, a function’s inputs and outputs can be completely different categories (for example, names of weekdays as inputs and numbers as outputs, as on an attendance chart), in such cases the domain and range have no elements in common.

Finding domain and range of different functions is often a matter of asking yourself, what values can this function not have? Pictures make it easier to visualize what the domain and range are, so we will show how to define the domain and range of functions given their graphs.

What are the domain and range of the real-valued function [latex]f(x)=x+3[/latex]?
This is a linear function. Remember that linear functions are lines that continue forever in each direction.

Line for f of x equals x plus 3 plotted in the xy coordinate plane. The x axis extends from negative 6 to 8, and the y axis extends from negative 4 to 10.

Any real number can be substituted for x and get a meaningful output. For any real number, you can always find an x value that gives you that number for the output. Unless a linear function is a constant, such as [latex]f(x)=2[/latex], there is no restriction on the range.
The domain and range are all real numbers.

For the examples that follow, try to figure out the domain and range of the graphs before you look at the answer.


What are the domain and range of the real-valued function [latex]f(x)=−3x^{2}+6x+1[/latex]?

Downward-opening parabola with vertex of 1, 4.


What is the domain and range of the real-valued function [latex]f(x)=-2+\sqrt{x+5}[/latex]?

Radical function stemming from negative 5, negative 2.


What is the domain of the real-valued function [latex] \displaystyle f(x)=\frac{3x}{x+2}[/latex]?

A graph of the function f of x equals 3 x divided by the quantity x plus 2. Both axes extend from negative 12 to 12.

In the following video we show how to define the domain and range of functions from their graphs.


Although a function may be given as “real valued,” it may be that the function has restrictions to its domain and range. There may be some real numbers that cannot be part of the domain or part of the range. This is particularly true with rational and radical functions which can have restrictions to their domain, range, or both. Other functions, such as quadratic functions and polynomial functions of even degree, can also have restrictions to their range.