We now have everything we need to see a function. A graph turns a rule into a
picture by treating each input-output pair as a point on
The trick is simple: for an input
Do that for enough inputs across the
Choose a handful of convenient inputs, run each through the rule, and record the output. For
Each row is one ordered pair:
Plot each pair, then join the dots with a smooth curve. Step through the build below: the points appear one at a time, and the last step draws the curve that passes through them all.
The more inputs you sample, the more faithful the curve. Because this is a function, every
input gives exactly one output — so the graph never doubles back over a vertical line
(that's the vertical-line test from
Here is the graph of
Khan Academy shows functions drawn as graphs here: