Skip to content

Linear Functions and Slope

In this lesson you’ll learn what makes a function linear, how to find slope from two points or a graph, and what slope tells us about real-world rates of change.

A linear function is a function whose graph is a straight line. Its equation is usually written as y = mx + b, where:

  • m = slope (how steep the line is, rise over run)
  • b = y-intercept (where the line crosses the y-axis when x = 0)

Slope (m) measures the rate of change: how much y changes for each unit change in x.

Slope formula from two points (x₁, y₁) and (x₂, y₂):

m=y2y1x2x1=riserunm = \frac{y_2 - y_1}{x_2 - x_1} = \frac{\text{rise}}{\text{run}}
  • Positive slope: line goes up left-to-right (increasing)
  • Negative slope: line goes down left-to-right (decreasing)
  • Zero slope: horizontal line (no change in y)
  • Undefined slope: vertical line (no change in x)

Here’s what a line with slope 2 looks like. It passes through (2, 5) and (6, 13), rising 8 units over a run of 4:

Find the slope between points (2, 5) and (6, 13).

  1. Rise = y₂ − y₁ = 13 − 5 = 8
  2. Run = x₂ − x₁ = 6 − 2 = 4
  3. m = 8 / 4 = 2

Slope = 2 (for every 1 unit right, y increases by 2 units).

Another: Points (4, 9) and (1, 15)

  1. Rise = 15 − 9 = 6
  2. Run = 1 − 4 = −3
  3. m = 6 / (−3) = −2

Slope = −2 (decreasing: for every 1 unit right, y decreases by 2 units).

Slope represents rates in daily life:

  • Pay: 18 dollars per hour → slope = 18 (y = pay, x = hours)
  • Fuel efficiency: 28 miles per gallon → slope = 28 (y = miles, x = gallons)
  • Cost: 3.50 dollars per gallon → slope = 3.50 (y = cost, x = gallons)
  • Speed: 65 mph → slope = 65 (y = distance, x = time in hours)

Positive slope = increasing (earning more, growing savings)

Negative slope = decreasing (spending down balance, temperature dropping)

Understanding slope helps predict trends, compare options, and plan.

What is the slope between points (3, 8) and (7, 20)?
A line has slope −5. What does that mean?
You earn 22 dollars per hour. What is the slope of your pay function?
Points (1, 4) and (5, −8). What is the slope?
A horizontal line has a slope of: