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 edge of a ledge m above the ground, and it falls past the ledge to the ground below. Its height above the ground in metres after seconds is , until it lands. Find the domain and range.
Solution. The ball is on the ground when :
So or . A negative time makes no sense here (the ball is thrown at ), so the ball lands at seconds. It’s in the air from to .
The parabola is symmetric, so its highest point is halfway between the zeros and , at :
The ball starts at m, rises to m, then falls all the way to the ground. So the lowest height is (when it lands), not the starting height of m.
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 .
Homework
Section titled “Homework”Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site.
Foundations
Section titled “Foundations”H1. (Foundations) State the domain and range of . Explain why one output is listed only once in the range.
H2. (Foundations) State the domain and range of and , with all real inputs allowed. Explain why the constant function’s range differs from the slanted line’s range.
H3. (Core) Find the domain and range of . Solve the input restriction carefully and identify the input that gives the least output.
H4. (Core) Find the domain and range of . Explain why the excluded output really is impossible, and why every other real output can occur.
H5. (Core) A continuous graph has an open left endpoint at and a closed right endpoint at . Between them it reaches its lowest point at . It never goes below or above , and has no gaps in its inputs. State the domain and range in set notation. Explain why the open point’s height does not automatically have to be excluded from the range.
H6. (Core) State the domain and range of each model, including its contextual restrictions.
- (a) A shop accepts orders of to posters. Cost in dollars is , where is the number of posters.
- (b) A tank initially holds L and drains at L/min. Until it is empty, its volume is , where is elapsed time in minutes.
Challenge
Section titled “Challenge”H7. (Challenge) Find the real domain of . Explain which restriction comes from each part. Is allowed? Is allowed? Give one input that satisfies the denominator restriction but fails the square-root restriction.
H8. (Challenge) Let , but allow only inputs .
- (a) State the domain and range.
- (b) Explain why the range cannot be found simply by using the two endpoint heights.
- (c) Decide whether , , and belong to the range, showing an allowed input when one exists.
H9. (Challenge) Let , with the restricted domain . Find the range and justify both endpoints. For an arbitrary output in your proposed range, rearrange the equation to find an input and show that it satisfies .
H10. (Challenge) Find the domain and range of over the real numbers.
- (a) Explain why the expression under the root must be strictly positive rather than merely nonnegative.
- (b) Find the smallest output and the input where it occurs.
- (c) Show that every output at least as large as that minimum can occur. Is there a greatest output?