functions

Understanding Linear Functions Through Slope

Learn what y = mx + b means by watching a line move, changing its slope, and testing values.

15 min
middle-school
draft

1. Hook: Why This Matters

Think about a cost that grows by the same amount each step. A ride might start with a base price, then add the same amount for each kilometer. A tank of water might rise by the same height each minute.

When one quantity changes at a steady rate, we can often draw it as a straight line. That is the starting point for a linear function.

2. Intuition: See the Picture Before the Formula

If the line is steep, moving a little to the right changes the height a lot. If the line is gentle, the height changes slowly. If the slope is negative, the line goes down as you move to the right.

3. Formal Definition: The Formula

A basic linear function can be written as

  • x is the input value
  • y is the output value
  • m is the slope, which tells how much y changes when x increases by 1
  • b is the y-intercept, or the value of y when x = 0

4. Interactive Exploration: Try Changing It

Linear function graphA line graph for y equals m x plus b with the selected point on the line.xy(1, 1)
The yellow point is the output produced by substituting x into the current formula.

Current formula

When you choose x = 1

Observation

Right now, m = 1, so the line rises as you move to the right. When x = 1, y = 1.

Guiding questions:

  • What happens to the line when you increase m?
  • What changes when you adjust b?
  • Does the same formula still explain each point on the graph?

5. Step-by-step Example

Example

Given the function

Find y when x = 3.

Step-by-step Thinking

  1. Start with the formula y = 2x + 1
  2. Replace x with 3: y = 2(3) + 1
  3. Multiply first: 2(3) = 6
  4. Add 1, so y = 7

So the point (3, 7) lies on this line.

6. Common Mistakes

Common mistake

Do not mix up m and b. The value of m changes how steep the line is. The value of b shifts the line up or down from the y-intercept.

Common mistake

A negative m does not mean y is always negative. It means that as x increases, y tends to decrease according to that slope.

7. Mini Exercise

Try this

Try the formula y = -x + 4

  1. What is y when x = 0?
  2. What is y when x = 2?
  3. Does this line rise or fall as you move to the right?

8. Summary

  • A basic linear function can be written as y = mx + b
  • m is the slope of the line
  • b is the y-intercept
  • Each point on the graph comes from choosing x and calculating y
  • Changing the graph helps show that the formula describes the behavior of a line

9. Related Lessons

  • Coordinate plane basics
  • Repeated Change as a Rule
  • Slope as a Rate of Change