MISSION · Algebra
What Makes a Function
One input, one output, no exceptions
LEVEL 1 · EXPLORE
Make the idea move
Change the controls and watch what happens. Follow your curiosity and see what you notice.
Loading the activity…
LEVEL 2 · LEARN
Unlock the explanation
Open the chapters in any order. Try the examples as you go.
The idea in one sentence
A function is a rule that gives every allowed input exactly one output — and the “exactly one” is the entire content of the definition.
The machine picture
Think of a function as a machine. Drop a number in, one number comes out, and dropping the same number in tomorrow gives the same answer it gave today.
“Double it and add one” is a function. So is “your age on a given date”. “A person’s phone number” is not, because people have more than one.
The set of inputs the machine accepts is the domain. The set of outputs it can produce is the range. For \(f(x) = \frac{1}{x}\), the domain excludes 0 — the machine jams — and the range excludes 0 too, since no input ever produces it.
The notation
\[f(x) = 2x + 1\]\(f\) names the machine, \(x\) names the input, and \(f(x)\) is the output. So \(f(3) = 7\) means “feed in 3, get 7 out.”
Two warnings about this notation, both common traps. \(f(x)\) is not \(f\) multiplied by \(x\) — the brackets mean “applied to”, not “times”. And \(f(x + 2)\) means put \(x + 2\) into the machine, which is very different from \(f(x) + 2\), which means take the answer and add 2 afterwards.
The vertical line test
On a graph, the definition becomes something you can see. An input is a position along the \(x\)-axis, and its output is the height there. If any vertical line crosses the graph twice, that input has two outputs, and the relation is not a function.
A parabola opening upwards passes: every vertical line hits it once. A circle fails: a vertical line through the middle hits top and bottom, so a single \(x\) has two \(y\)’s.
Note what the test does not care about. A horizontal line may cross a function’s graph many times — \(f(x) = x^2\) gives 9 for both 3 and \(-3\) — and that’s perfectly fine. Two inputs sharing an output is allowed. One input with two outputs is not.
Why the restriction is useful
Because it makes prediction possible. If you know the rule and the input, you know the output — with certainty, not as one of several options. Every graph you plot, every formula you evaluate, every model of how one quantity depends on another relies on that single-valuedness. A rule that sometimes gives two answers can’t be graphed, inverted, or calculated with.
Common mix-ups
- Reading \(f(x)\) as multiplication. It’s an instruction, not a product.
- Confusing \(f(x + 2)\) with \(f(x) + 2\). Inside the brackets changes the input; outside changes the output.
- Applying the vertical line test horizontally. Repeated outputs are allowed.
- Forgetting to exclude impossible inputs from the domain — division by zero, square roots of negatives.
Check yourself
For \(f(x) = x^2 - 3\), find \(f(4)\) and \(f(-4)\). Does the pair of answers break the definition of a function?
\(f(4) = 13\) and \(f(-4) = 13\). It breaks nothing — two different inputs are allowed to share an output. It would only fail if one input gave two outputs.
LEVEL 3 · REFLECT
Add this quest to your trail
When you feel ready, mark this idea as explored. You can always come back and try it again.
EXPLORER STRATEGIES