# Finding Domain and Range From a Graph

### Learning Outcome

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

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

### Example

What are the domain and range of the real-valued function [latex]f(x)=−3x^{2}+6x+1[/latex]?Answer:
This is a *quadratic *function. There are no rational (divide by zero) or radical (negative number under a root) expressions, so there is nothing to restrict from the domain. Any real number can be used for *x* to get a meaningful output.
Because the coefficient of [latex]x^{2}[/latex] is negative, it will open downward. With quadratic functions, remember that there is either a maximum (greatest) value or a minimum (least) value. In this case, there is a maximum value.
The vertex, or high point, is at ([latex]1, 4[/latex]). From the graph, you can see that [latex]f(x)\leq4[/latex].
The domain is all real numbers, and the range is all real numbers [latex]f(x)[/latex] such that [latex]f(x)\leq4[/latex].

### Example

What is the domain and range of the real-valued function [latex]f(x)=-2+\sqrt{x+5}[/latex]?Answer:
This is a *radical *function. The domain of a radical function is any *x* value for which the radicand (the value under the radical sign) is not negative. That means [latex]x+5\geq0[/latex], so [latex]x\geq−5[/latex].
Since the square root must always be positive or [latex]0[/latex], [latex] \displaystyle \sqrt{x+5}\ge 0[/latex]. That means [latex] \displaystyle -2+\sqrt{x+5}\ge -2[/latex].
The domain is all real numbers *x* where [latex]x\geq−5[/latex], and the range is all real numbers [latex]f(x)[/latex] such that [latex]f(x)\geq−2[/latex].

### Example

What is the domain of the real-valued function [latex] \displaystyle f(x)=\frac{3x}{x+2}[/latex]?Answer:
This is a *rational *function. The domain of a rational function is restricted where the denominator is [latex]0[/latex]. In this case, [latex]x+2[/latex] is the denominator, and this is [latex]0[/latex] only when [latex]x=−2[/latex].
The domain is all real numbers except [latex]−2[/latex]

## Summary

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

## Licenses & Attributions

### CC licensed content, Original

- Revision and Adaptation.
**Provided by:**Lumen Learning**License:**CC BY: Attribution.

### CC licensed content, Shared previously

- Ex 1: Determine the Domain and Range of the Graph of a Function.
**Authored by:**James Sousa (Mathispower4u.com) .**License:**CC BY: Attribution. - Unit 17: Functions, from Developmental Math: An Open Program.
**Provided by:**Monterey Institute of Technology and Education**Located at:**https://www.nroc.org/.**License:**CC BY: Attribution.