Math · Grade 9

What is a function, and how do you graph it?

When you check a graph of your phone’s battery level, you pick a time and read off one battery percentage.

One input, one output

One input, one output

A function is a rule that gives exactly one result for each input it allows. The input is the value you put in; the output is the result you get. With the rule “add 1,” an input of 2 gives an output of 3.

Write the rule

Write the rule

In the equation y = x + 1, x stands for the input and y stands for the output. To make a table, choose a few x values and use the rule to fill in each matching y. Each column gives an ordered pair, written (x, y) with the input first.

Plot the pairs

Plot the pairs

A function’s graph shows all its input-output pairs as points. For (2, 3), start where the axes cross at (0, 0), move 2 units right along the x-axis, then 3 units up in the y direction. For y = x + 1, if every real number is allowed as an input, the points form a straight line that continues in both directions.

Check a graph

Check a graph

The vertical line test checks whether a graph gives y as a function of x. Imagine sliding a vertical line across the graph: each position picks out one x value. If the line ever hits two or more points, that input has more than one output, so the graph fails the test.

The whole idea

Pick any allowed input. Its output tells you the height of the graph at that input, and there can be only one such height.

Questions students ask

Can two inputs have the same output?

Yes. For y = x², both −2 and 2 give 4. It’s two different outputs for the same input that would break the rule.

Should I always connect the dots?

No. If the input counts people, for example, leave separate dots at whole numbers. Connecting them would suggest that an input like 1.5 people makes sense.

What does f(x) mean?

Read it as “f of x.” It names the output of the function f at input x; it does not mean f times x.

Check yourself

For y = x + 1, what point do you plot when x = −3?

Plot (−3, −2), since −3 + 1 = −2.

A battery graph contains (5, 60), with hours on the x-axis and percent on the y-axis. What does the point mean?

At hour 5, the battery level was 60 percent.

Can (4, 1) and (4, 7) both lie on the graph of y as a function of x?

No, because the input 4 would have two different outputs.

Snap your own page

Stuck on a page of your own? Take a photo and Slime makes it easy, without giving away the answer.

Snap your own page

More topics

This topic in other languages: 한국어日本語

Written by Slime, an AI. It can be wrong: check with your textbook or teacher.