What Exactly Is a Function?

A function connects each input to exactly one output. Temperature readings after medication and a weekly weight chart show the rule in action — and what happens when one day reports two different weights at once.

--

A function is a rule that connects each input to exactly one output. We use functions constantly to track how one quantity changes against another — a body temperature over time, a weight over weeks. Read the readings as a chart, and the rule becomes something you can see.

Readings Temperature after medication
39.2° 37.0°
Six readings, each taken at its own moment, joined into one line. Time is the independent variable; temperature is the dependent variable — it depends on when you took the reading.

Instead of reading each measurement one at a time, plotting them lets you follow the overall pattern — and decide whether the treatment is working.

The Rule One moment, one reading

Every value on the independent axis must correspond to only one value on the dependent axis. At any specific moment, a person can have only one recorded temperature — never two.

Example Weight on a diet
92 kg 86 kg
Five weekly readings on a diet, again with time as the independent variable and weight as the dependent one. Functions let us watch the pattern and decide whether to intervene.
The Test When day 5 breaks the rule

The vertical line test makes the rule visible: if every vertical line meets the graph at no more than one point, each input has only one output. Now suppose the same chart claimed the person weighed both 85 and 89 kg on day 5.

89 85 day 5, two readings
The vertical line at day 5 now meets the graph twice. That assigns two different outputs to the same input — it wouldn’t make sense to say the same person weighed 85 and 89 kg at once. This is not a function.
Summary
  1. A function is a rule connecting each input to exactly one output.
  2. Plotting readings as a graph reveals the pattern more clearly than reading them one at a time.
  3. Every value on the independent axis must give exactly one value on the dependent axis.
  4. A vertical line meeting the graph twice — like two weights on the same day — means the relation is not a function.