Ⅳ Functions · Stage 20 — Coordinates & First Functions · 20.4 Meeting FunctionsAll lessons →
Stage 20 · Coordinates & First Functions

20.4  Meeting Functions Through Change

A function is a machine: feed it one input, it returns exactly one output.

Ages 12–15 · Reasoning, one step at a time
Dial in an x, the rule f does its work, and exactly one y = f(x) comes out: that one-output-for-each-input matching is what we call a function.

The world is full of one thing riding along with another. Drive at a steady speed and the distance you have covered rides along with the time: the longer you drive, the farther you have gone, and once you fix the time, the distance is settled — there is no choice left in it. Strip that little story down to its bones and you reach the single most important idea in all of higher mathematics: the function. A function is a rule that takes one input and hands back exactly one output. The friendliest picture is a machine with a hopper on top and a chute on the bottom — drop something in, the rule works on it, one thing falls out. This lesson meets that machine, names its parts, and pins down the one law it must never break.

20.4.1 Constants and variables

Before we can talk about change, we have to sort the quantities in a problem into two piles. A constant is a quantity that stays fixed while the problem plays out. A variable is a quantity that is allowed to change. When a car holds a steady 60 km/h, that speed is a constant — it is the same in the first hour and the third. But the time on the clock and the distance on the odometer keep climbing: those are variables.

The speed is held fixed — a constant. The time and the distance tick upward together — they are variables.

Here is the subtle part: whether a quantity is a constant or a variable is not stamped on it forever — it depends on the problem. The price of one apple is a constant while you fill a basket at the market (every apple costs the same), but it becomes a variable in a study of prices across a whole year. The number π is always a constant. What matters is one question only: in this problem, is the quantity held fixed, or is it free to change?

Key idea

A constant keeps one value throughout the problem. A variable takes different values. The same quantity may be a constant in one setting and a variable in another — ask whether this problem holds it still or lets it move.

20.4.2 One quantity riding along with another

Now watch two variables move together. Keep the speed fixed at 60 km/h and write the distance as

d = 60 · t

Pick a time and the distance is determined — there is nothing left to decide. At t = 2 h the distance must be 60·2 = 120 km; at t = 3.5 h it must be 60·3.5 = 210 km. We say the distance depends on the time: fix the time and you have settled the distance. That phrase — settle one and the other follows — is the seed of every function. The clock leads; the odometer follows.

The line d = 60t: choosing a t on the bottom axis pins down a single d on the side axis. One leads, the other follows.

Slide the time to a new value below and the matched distance rides up the line to meet it. There is never a moment when one time gives you two distances to choose between — that single-valued obedience is exactly what we are about to demand of a function. Let us watch it move.

Try it RIDE — one quantity follows another
Slide the time t. The speed stays a constant 60 km/h, and the distance d follows along the line — fix t and d is settled.
time t (h)
Worked

With d = 60t: at t = 1, d = 60·1 = 60; at t = 2.5, d = 60·2.5 = 150; at t = 4, d = 60·4 = 240. Each chosen time hands back one and only one distance.

20.4.3 The idea of a function

We are ready for the definition. A function is a rule that assigns to each input exactly one output. The picture to keep in your head is a machine: drop an input x into the hopper, the rule inside works on it, and a single output drops out the chute. We write

y = f(x)

read aloud as “y equals f of x,” and we say y is a function of x. The letter f names the rule — the machine — and the notation f(x) means “the output the rule f produces from the input x.” The rule is often a formula. If

f(x) = 2x + 1,

then to find the output at input 4 we simply substitute: f(4) = 2·4 + 1 = 9. So this machine turns 4 into 9. Feed it 0 and you get f(0) = 2·0 + 1 = 1; feed it −2 and you get f(−2) = 2·(−2) + 1 = −3. One input in, one output out, every time.

The machine for f(x) = 2x + 1: input 4 drops in, the rule does its work, and a single output 9 falls out.

There is one ironclad law, and it is the whole point of the definition:

The one law

A function may give each input exactly one output. One input must never produce two different outputs. If feeding in the same x could give you back two different answers, the rule is not a function.

Try the machine yourself. Pick an input and choose the rule, and watch the single output that falls out — then see it land as a point (x, y) on a little plane.

Try it MACHINE — the rule in action
Choose an input x and a rule f. One output y = f(x) drops out — and lands as the single point (x, y) on the plane.
input x 2
rule f
Two inputs, one output — still fine

Set the rule to f(x) = x² and try x = 2: f(2) = 4. Now try x = −2: f(−2) = (−2)² = 4 as well. Two different inputs landed on the same output 4. That is perfectly allowed — each input still gave exactly one output. The rule is broken only the other way around: when one input gives two outputs.

20.4.4 Independent and dependent variables

In y = f(x) the two variables play different roles. The one you are free to choose is the independent variable — the input, usually written x. The one that is then settled for you is the dependent variable — the output, usually y. The very phrase “y is a function of x” tells you the order of command: x leads, y follows.

The letters can change without changing the roles. In d = 60t the time t is the independent variable you dial in, and the distance d is the dependent variable that follows. In A = πr² the radius r leads and the area A follows. Whoever is the input — the one chosen freely — is independent; whoever is settled by that choice is dependent.

Watch

A function pairs each input with one output. But two different inputs may share an output — that is still a function (as with sending both 2 and −2 to 4). The forbidden thing, the only forbidden thing, is one input giving two different outputs.

So how do you test a candidate rule? Look at the inputs. If any single input fans out to two different outputs, the rule fails — it is not a function. If every input has just one arrow leaving it, the rule passes, even if several inputs happen to point at the same place. The widget below lets you flip between the two cases and see exactly where the line is.

Try it ISFUNCTION — the one rule a function must obey
A mapping diagram: inputs on the left, outputs on the right, arrows between. Toggle the two cases and watch which one breaks the law.
which rule?

Notice in the “a function” case that two inputs are allowed to land on the same output — no harm done. In the “not a function” case a single input shoots two arrows to two different outputs, drawn in red: that is the broken law, and it is the one thing that disqualifies a rule. Once you can spot that pattern, you can recognize a function anywhere — in a formula, a table, a graph, or a real situation.

Recap

A constant stays fixed in a problem; a variable is free to change. When fixing one variable settles another, the second depends on the first — the seed of a function. A function is a rule, written y = f(x), that hands each input exactly one output; picture a machine with one input and one output. The input you choose is the independent variable (x); the output that follows is the dependent variable (y). Two different inputs may share an output — that is fine — but one input may never give two outputs. That single law is what makes a function a function. Next, in 20.5, we will see the same function wear three outfits — a formula, a table, and a graph — and name the sets of inputs and outputs it allows.

Exercises

  1. If f(x) = 2x + 1, find f(0), f(3), and f(−2).

    Answer

    Substitute each input into the rule. f(0) = 2·0 + 1 = 1; f(3) = 2·3 + 1 = 7; f(−2) = 2·(−2) + 1 = −3.

  2. In d = 60t, name the constant, the independent variable, and the dependent variable.

    Answer

    The constant is the speed 60 (it never changes). The independent variable is the time t — the input you choose. The dependent variable is the distance d — it follows once t is fixed.

  3. Is the rule “each person ↦ the date of their birthday” a function?

    Answer

    Yes. Every person has exactly one birthday, so each input gives one output. (Two different people may share a birthday — that is allowed, since it is two inputs landing on one output.)

  4. Is the rule “each person ↦ a phone number they own” always a function?

    Answer

    No. Someone may own two phone numbers, so that one input would give two different outputs — the one forbidden thing. The rule fails the one law a function must obey.

  5. For f(x) = x², do x = 3 and x = −3 give the same output? Is that allowed?

    Answer

    f(3) = 9 and f(−3) = (−3)² = 9 — yes, the same output. And it is allowed: these are two different inputs sharing one output. A function forbids the reverse, not this.

  6. Can one input have two different outputs in a function? Explain in one line.

    Answer

    No. A function assigns each input exactly one output, so a single input giving two different outputs is precisely what is not allowed — it is the one law that defines a function.

🎯 Quick check

Six questions to lock it in. Tap the answer you think is right.

§ For teachers and parents

This lesson introduces the central object of the whole Functions strand, so it leans on intuition before notation. The big idea is deliberately narrow: a function is a rule that gives each input exactly one output. Everything else here — constants versus variables, dependence, the machine, f(x), independent and dependent variables — is scaffolding around that one sentence. We start from a familiar story (distance riding along with time at a fixed speed) precisely so that “fix one, the other is settled” feels obvious before it is named.

The specific misconception to watch for is the “one output” rule applied in the wrong direction. Many students hear “one output per input” and wrongly conclude that two inputs may never share an output — but they may (the squaring rule sends both 2 and −2 to 4, and it is still a function). The genuinely forbidden case is the reverse: a single input producing two different outputs. The isfunction mapping diagram is built to make that asymmetry visible. A second, smaller slip is confusing which variable is independent; reinforce that the input you choose freely is independent, and the one it determines is dependent, whatever letters are used.

Aligned to the US Common Core: 8.F.A.1 (a function assigns to each input exactly one output), 8.F.A.2 and F-IF.A.1 (function notation; independent and dependent variables), and 6.EE.C.9 (relating two quantities, distinguishing the dependent from the independent variable). The thread continues in 20.5, where the same function appears as a formula, a table, and a graph, and we meet domain and range.

eastmath.com · Stage 20 · 20.4 Meeting Functions · Reasoning, one step at a time