Algebra 1 · Grades 8, 9
Domain and Range: The Inputs and Outputs of a Function
Quick answer
The domain is every input a function accepts, and the range is every output it produces. For f(x) = 2x + 1 the domain is all real numbers and so is the range. Inputs get excluded when they would divide by zero or take the square root of a negative, and real situations exclude inputs that make no sense, like a negative number of people.
What you'll learn
- Identify the domain and range of a function from a graph, table or equation
- Explain why some inputs must be excluded from a domain
- Restrict a domain sensibly in a real-world situation
The two words
A function is a rule turning inputs into outputs. Those two collections have names:
| Term | Means | On a graph |
|---|---|---|
| Domain | every input the function accepts | how far the graph spreads left to right |
| Range | every output it produces | how far it spreads up and down |
For you can put in any real number, and by choosing the input you can get any real number out. So both the domain and the range are all real numbers.
Definition
Domain = allowed -values. Range = resulting -values. Domain comes first alphabetically, and comes before — the two orders match.
Why anything gets excluded
A domain is not a decoration. It exists because some inputs would break the rule.
Division by zero. In , putting in gives , which is undefined. There is no output, so cannot be an input. The domain is every real number except .
Square roots of negatives. In , an input of asks for , which is not a real number. So the domain is .
In both cases the exclusion is forced. You are not choosing to leave numbers out; the arithmetic refuses them.
Linear functions have neither problem — no denominators, no roots — which is why every line in this course has a domain of all real numbers unless a situation restricts it.
Reading them off a graph
Scan the graph twice.
- Domain: sweep left to right and note which -values the graph occupies.
- Range: sweep bottom to top and note which -values it reaches.
For a line drawn with arrows on both ends, the answer to both is “all real numbers”, because the arrows say it keeps going.
For a line segment from to , the domain is and the range is . The endpoints stop it.
Worked examples
Common mistakes
Practice problems
-
Find the domain and range of .
Hint
Look for denominators or square roots. If there are none, nothing is excluded.
Answer
Domain: all real numbers. Range: all real numbers.
Full solution
No denominator and no root, so every input works and the domain is all real numbers.
Any output is reached by the input , so the range is all real numbers too.
-
Find the domain and range of .
Answer
Domain: all real numbers. Range: .
Full solution
Every input is allowed, but the output never changes, so the range is the single value .
-
Find the domain of .
Hint
Which input makes the denominator zero?
Answer
All real numbers except .
Full solution
Set , giving . That input would produce , which is undefined, so it is excluded.
-
Find the domain of .
Answer
Full solution
The expression under the root must be at or above zero: , so .
-
Find the domain and range of the table below.
Answer
Domain: . Range: .
Full solution
The inputs are , and . The outputs are , and , and since a range is a set, the repeated is written once.
-
A line segment runs from to . Find its domain and range.
Hint
A segment stops at its endpoints.
Answer
Domain: . Range: .
Full solution
The segment spreads from to , and from to . Both endpoints are included, so both use .
-
Find the domain of .
Hint
Factor the denominator before setting it to zero.
Answer
All real numbers except and .
Full solution
Set . Factoring as a difference of squares gives , so or .
Both inputs make the denominator zero, so both are excluded.
-
A school orders pizzas for a party. Each pizza feeds students, so the number of pizzas needed for students is . Discuss the sensible domain and range.
Hint
Think about what the inputs and outputs count, and whether fractions make sense for each.
Answer
Domain: whole numbers . Range in practice: whole numbers, after rounding up.
Full solution
The input counts students, so it must be a whole number and cannot be negative: the domain is .
The formula’s outputs are often fractional — students gives pizzas — but you cannot order a third of a pizza. In practice you round up to , so the useful range is also whole numbers.
This is a case where the mathematics and the situation disagree, and the situation wins.
Frequently asked questions
Which one is which?
Domain is the inputs, the x-values you are allowed to put in. Range is the outputs, the y-values that come out. Alphabetical order helps: domain before range, x before y.
When is the domain not all real numbers?
Two situations in algebra. A fraction cannot have zero on the bottom, so any input making the denominator zero is excluded. A square root of a negative is not a real number, so inputs under a root must keep it at or above zero.
Why would a real problem have a smaller domain than the equation?
Because the equation does not know what it is describing. A cost formula happily accepts minus three items; the situation does not. Restricting the domain is how you say which inputs actually mean something.
Standards alignment
This lesson covers the following Common Core State Standards for Mathematics.
- CCSS.MATH.CONTENT.HSF.IF.A.1Interpreting FunctionsUnderstand that a function from one set (called the domain) to another set (called the range) assigns to each element of the domain exactly one element of the range. If f is a function and x is an element of its domain, then f(x) denotes the output of f corresponding to the input x. The graph of f is the graph of the equation y = f(x).
- CCSS.MATH.CONTENT.HSF.IF.A.2Interpreting FunctionsUse function notation, evaluate functions for inputs in their domains, and interpret statements that use function notation in terms of a context.