Domain and Range
The domain of a function is the set of all inputs it accepts, and the range is the set of all outputs it can produce. Knowing them tells you where a graph exists and what values a formula can actually give, which matters for graphing, solving, and real-world problems.
Key ideas
Section titled “Key ideas”Domain and range
Section titled “Domain and range”- Domain: all possible -values (inputs).
- Range: all possible -values (outputs).
Writing them in set notation
Section titled “Writing them in set notation”| Meaning | Set notation |
|---|---|
| all real numbers | |
| is at least | |
| is any real number except | |
| is from up to, but not including, | |
| a few separate values |
Read as “all real numbers such that is greater than or equal to ”.
From a graph
Section titled “From a graph”- Domain: scan from left to right. Which -values does the graph cover?
- Range: scan from bottom to top. Which -values does it cover?
- A closed dot ● means that point is included. An open dot ○ means it isn’t.
- An arrow means the graph keeps going forever in that direction.
From an equation
Section titled “From an equation”In this course, watch for two restrictions:
- You can’t divide by zero. For , the domain excludes .
- You can’t take the square root of a negative number (in the real numbers). For , you need , so .
If neither happens, as with lines and parabolas, the domain is all real numbers.
Real-world restrictions
Section titled “Real-world restrictions”In context, the situation can limit the domain and range: time can’t be negative, a number of people must be a whole number, and a ball’s height can’t go below the ground. The parent functions page lists the domain and range of the four basic graphs.
Worked examples
Section titled “Worked examples”Example 1: From a graph
Section titled “Example 1: From a graph”Find the domain and range of the function graphed below.
Solution.
- Domain: the graph runs from (closed dot, included) to (open dot, not included): .
- Range: the lowest point is and the highest is . Every height in between is covered: .
Notice that the range does not come from the endpoints alone. The lowest point is in the middle of the graph.
Example 2: From equations
Section titled “Example 2: From equations”Find the domain and range of each function.
(a) (b) (c) (d)
Solution.
(a) A slanted line goes forever in both directions. Domain , range .
(b) Any works. Since , the smallest output is . Domain , range .
(c) Need , so . A square root is never negative, and it can be (at ). Domain , range .
(d) Need , so . A fraction with numerator can never equal . Domain , range .
Example 3: A trickier square root
Section titled “Example 3: A trickier square root”Find the domain and range of .
Solution. The expression under the root must not be negative:
The square root itself is at least , so is at least .
Domain , range .
Example 4: A real-world function
Section titled “Example 4: A real-world function”A ball is thrown upward from the ground. Its height in metres after seconds is , until it lands. Find the domain and range.
Solution. The ball is on the ground when :
So the ball is in the air from to seconds.
The parabola is symmetric, so its highest point is halfway between the zeros, at : metres.
Domain , range .
Common mistakes
Section titled “Common mistakes”Swapping domain and range. Domain is about (inputs, left to right). Range is about (outputs, bottom to top).
Including an open-dot value. In Example 1, is not in the domain, because the dot there is open.
Finding the range from the endpoints only. A graph can dip or rise in the middle. Look for the lowest and highest points, not just where it starts and stops.
Writing for a square root. For , values like don’t work either. The restriction is . Save for dividing by zero.
Forgetting to flip the inequality when dividing by a negative number, as in Example 3.
Ignoring the real world. In Example 4, the formula works for any , but negative times and times after the ball lands make no sense.
Practice
Section titled “Practice”1. (Warm-up) State the domain and range of .
Solution
Domain . Range (list only once).
2. (Warm-up) State the domain and range of .
Solution
It’s a slanted line. Domain , range .
3. (Warm-up) State the domain and range of .
Solution
Domain . Since , the smallest output is : range .
4. (Core) State the domain and range of .
Solution
Need , so . Domain , range .
5. (Core) State the domain and range of .
Solution
Need , so . The fraction can never equal .
Domain , range .
6. (Core) State the domain and range of .
Solution
Domain , range .
7. (Core) Field trip tickets cost $6 each, and a school can buy at most 120. The cost in dollars is , where is the number of tickets. State the domain and range.
Solution
You can only buy a whole number of tickets, from to .
Domain . Range , the multiples of from to .
8. (Challenge) State the domain and range of .
Solution
Any works: domain .
Since , the term is at most . So is at most , and it equals when .
Range .
9. (Challenge) Find the domain of .
Solution
There are two restrictions:
- the square root needs , so
- the denominator needs , so
Domain .