Domain and Range - Definition & Finding Graphically

Interactive · 2 questions

Domain, Range, and Interval Notation

Generally speaking, the domain of a function is all possible inputs, and the range of a function is all possible outputs. Consider the following two sets: Inputs=(1,2,3,4,5)Outputs=(6,7,8,9,10)\begin{align}\text{Inputs}&=(1, 2, 3, 4, 5)\\ \text{Outputs}&=(6, 7, 8, 9, 10) \end{align} The domain would be the integers 11 through 55. The range would be the integers 66 through 1010.

We can find the domain and range of a function by looking at its graph. In a regular graph, the domain is all of the possible xx values, while the range is all of the possible yy values. Let's start by looking at the graph of y=xy=x.

Graph of y=x

Made with Desmos

This graph expands infinitely in both directions and on both axes. This means that both the domain and range include all real numbers. All linear functions that don't specify a stopping point will have a domain and range of all real numbers.

Let's look at a function that has a more defined range, y=x2y=x^2.

Graph of y=x^2. Notice that it has a minimum on its range, it only reaches y=0 at its lowest point.

Made with Desmos

The domain of this graph is still all numbers as any xx value can be put into the function, but there is a minimum yy value of y=0y=0. This means that the range is 0≤y<∞0 \le y < \infty.

Some functions have restrictions on both the domain and range, such as y=xy=\sqrt{x}. This is the square root graph or a square root function.

Graph of the square root of x. It starts at (0,0), and extends infinitely in the positive direction on both axes.

Made with Desmos

This graph has no xx values less than 00, as well as no yy values less than 00. Let's determine the domain. This means that both the domain and range include all numbers from 00 to ∞\infty. Our domain is a set of numbers greater than and equal to zero.

We're going to try a practice problem to see how we're doing.

Graph of a sine function

Graph of y=sin⁡(x)y=\sin(x)

Made with Desmos

What is the domain and range of the graph of y=sin⁡(x)y=\sin(x) above? Check all that are correct.

Choose all correct answers

Video · + 1 min read

(Video) Find the Domain and Range From a Graph

by Mathbyfives

In this video, Mathbyfives provides examples on how to find domain and range from a graph.

Summary

Some important definitions before we begin:

  • A relation is any set of ordered pairs.

  • The set of all first components of the ordered pairs is called the domain.

  • The set of all second components is called the range.

The domain is the set of all xx values, so we want to understand the range of all xx values that are being represented by a graph. The range is the set of all yy values that are represented by a function on a graph.

Example 1

Graph

Image source: by Anusha Rahman

Let's look at the domain for this first example. The domain is the set of xx values that the function is represented by. We can see the open circle at x=3x=3, and we see a closed circle at x=4x=4. So, we can determine that the domain of this graph is (−3,4](-3,4]. Now, let's look at the range. The open circle is at y=−2y=-2, and the closed circle is at y=1y=1, so we can write the range as (−2,1](-2,1].

Example 2

Graph of second example

Image source: by Anusha Rahman

We can see that there are arrows on both sides of the function, so the graph goes on to infinity. Therefore, the domain is (−∞,∞)(-\infty, \infty) and the range is also (−∞,∞)(-\infty, \infty).

Illustrated · 2 min

Finding Domain and Range Graphically

We can find the domain and range algebraically, but we can also find the domain and range graphically.

Finding domain and range graphically
Domain: set of all x values
Range: set of all y values

Image source: by Anusha Rahman

The domain is the set of all xx values a function can have. We can visually determine the domain by looking at the expanse of xx values the function is describing. Take your pencil, and start at one end of the function, that is one end of your domain. Trace the function, taking stock of the values not represented by the function's graph. When you hit the other end of the function, that is the end of your domain.

The range is the set of all yy values a function can have. You can use the same technique as you would use for domain, except this time look at the yy values.

Example

Let's look at the following graph of the function y=x2−4y=x^2-4.

Graph of y=x^2-4

Made using Desmos

Let's first look at the domain. We can see that the graph seems to go on to infinity on either end of the yy-axis. If we take our pencil and trace the graph, it will encompass all real xx values. Therefore, the domain can be written in interval notation, like so: (−∞,∞)(-\infty, \infty).

Now, let's look at the range. The function seems to go on to infinity for positive yy values, but the same cannot be said for the negative yy values. We can see that the lowest yy value is at y=−4y=-4. Therefore, the range can be written in interval notation, like so: [−4,∞)[-4, \infty)

Looking Further

In the next lessons, we will continue to learn about function operations. We will start with how to add and subtract and multiply and divide functions. We will take that info and learn about composite functions.

So far, we have looked at functions that have fairly standard domains and rangers. When a function has different formulas on different parts of its domain, it is called a piecewise function. We will commonly see these when dealing with step functions.

Another point to note: A function is onto when its range matches its entire codomain.

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems