Domain, Codomain and Range
Distinguish inputs, declared outputs and attained outputs.
The bigger question: What does a function tell us—and what can it hide?
On this page
Idea
Domain, codomain and range answer different questions: what inputs are allowed, where outputs are declared to live, and which outputs are actually reached. The codomain is part of the function specification.
Method
For , the range is . Restricting the domain can shrink the range. Enlarging the codomain alone does not change any computed value.
Worked example
For , , the minimum is at and the maximum is at . The range is , not : squaring only the endpoints misses the interior minimum. With domain , the same rule has range .
Common mistake
The codomain cannot be inferred uniquely from the formula. State it explicitly when asking whether a function is onto.
Check your understanding
Find the range of , .
Show answer
, because the linear function is increasing.
Explore
Try this. Switch functions and compare allowed inputs and outputs. Open circles exclude endpoints; filled circles include them.
Try it yourself.
Choose an answer and explain your reasoning to yourself. Use a hint if you get stuck.
Hint 1 · Find a starting point
The codomain names allowed outputs; the range names actual outputs.
Hint 2 · Take the next step
Squares are nonnegative, and zero is attained.
Show the reasoning
Answer: [0, ∞)
Every nonnegative real is a square, and no negative real is.
Before moving on: what would make one of the other answers wrong? Saying why is part of understanding.
Pause before the next idea.
Can you explain how the visualization connects to this lesson’s goal? If a step still feels uncertain, put this lesson on your review list and try the check again another day.