Range Function Purpose — From Intuition to Precision
Imagine you have a machine that takes a number and spits out a result. You feed in 1, you get 3. You feed in 2, you get 5. You feed in 3, you get 7. The machine has a rule — maybe it doubles your input and adds 1. Now, the set of all numbers you could feed into the machine is called the domain. The set of all numbers that actually come out — the results you can get — is called the range.
That's the core idea. The range answers the question: "What are all the possible outputs of this function?"
The Intuition First
Think of a function as a vending machine. You press a button (input), and a snack drops (output). The domain is the set of all buttons on the machine. The range is the set of all snacks that are actually inside — not the ones you wish were there, but the ones that can really come out.
If the machine has buttons A, B, C but only snacks chips and chocolate inside, then pressing any button gives you either chips or chocolate. The range is {chips, chocolate}. You can never get a sandwich, no matter which button you press.
For a mathematical function, the range is the same idea: the collection of every value the function can actually produce, given every allowed input.
The Precise Statement
Let f be a function from a set A (the domain) to a set B (the codomain). The range of f, often written as f(A) or Range(f), is the set of all outputs f(x) where x is in the domain A.
In set-builder notation:
Range(f)={f(x)∣x∈A}
The range is a subset of the codomain. The codomain is the set that could contain the outputs (by definition of the function), but the range is the set of outputs that actually occur.
Why the Distinction Matters
Consider f(x)=x2 with domain R (all real numbers) and codomain R.
- The codomain is R — all real numbers.
- But x2 is never negative. The range is [0,∞) — only non-negative numbers.
The codomain tells you what kind of numbers the function lives in; the range tells you what it actually hits.
How to Find the Range
There is no single formula. You need to think about what the function can and cannot do.
- For simple functions: Solve y=f(x) for x in terms of y. Then ask: for which y does a valid x exist in the domain? Those y are the range.
- For graphs: Look at the vertical extent of the graph — the set of y-coordinates the curve reaches.
- For real-world functions: Consider physical constraints. If f(t) is the height of a ball thrown upward, the range is from 0 to the maximum height — not all real numbers.
A common shortcut: if the function is continuous on an interval, the range is often an interval too. Find the minimum and maximum values on that interval.
A Worked Example
Find the range of f(x)=x−21 with domain R∖{2}.
Set y=x−21. Solve for x:
y(x−2)=1⟹x−2=y1⟹x=2+y1
For x to be defined, we need y=0 (division by zero). Also, x can be any real number except 2 — and 2+y1 can be any real number except 2 for y=0. So the range is all real numbers except 0.
Range=R∖{0}
The Bottom Line
The range is the set of actual outputs of a function. It is not the same as the codomain (the set of possible outputs by definition). To find it, you must examine what values the function can really produce, given its rule and its domain.