Math · Grade 8

What is a linear function, and how do you graph one?

If you have $3 saved and add $2 each week, you can predict your balance for any week without counting up week by week.

Spot the pattern

Spot the pattern

A function is a rule that gives one output for each input. In the savings example, the input is the number of weeks and the output is your balance. Each time the input goes up by 1 week, the output goes up by $2. That constant rate of change makes the function linear.

Read the equation

Read the equation

A linear function can be written as y = mx + b, where x is the input and y is the output. The slope, m, tells how much y changes when x goes up by 1. The y-intercept, b, is the value of y when x is 0. For the savings rule, y = 2x + 3: multiply the weeks by 2, then add the $3 you already had.

Graph the rule

Graph the rule

To graph y = 2x + 3, mark (0, 3) on the vertical axis. Use the slope: move right 1 unit and up 2 units to (1, 5). Repeat to reach (2, 7), then draw a straight line through the points.

Check an unfamiliar rule

Check an unfamiliar rule

When the x-values are equally spaced, compare the changes in y. For x = 0, 1, 2, the outputs 8, 6, 4 drop by 2 both times, so they fit a line with slope −2. The outputs 8, 6, 3 drop by 2 and then by 3, so they cannot fit one straight line.

The whole idea

A linear function changes at a constant rate, so its graph is a straight line. In y = mx + b, b tells where the line crosses the y-axis, and m tells how it moves from there.

Questions students ask

Does a linear graph have to pass through (0, 0)?

No. It passes through (0, 0) only if its y-intercept is 0. That special case is called a proportional relationship.

Can a horizontal line be a linear function?

Yes. Its slope is 0 because the output stays the same no matter how much the input changes.

What if the x-values in a table have uneven gaps?

For each pair of neighboring rows, divide the change in y by the change in x. If those rates match throughout the table, the points fit a linear function.

Check yourself

In y = 4x + 7, what is the output when x = 0?

The output is 7, the y-intercept.

A line has slope −3 and passes through (2, 10). What point do you reach by moving right 1 unit?

You reach (3, 7) because the output drops by 3.

A bike rental costs $5 to start plus $4 per hour. What rule gives the total cost y for x hours?

The rule is y = 4x + 5.

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.