TutreNews Learn

Linear functions

Slope

Goal: Compute the slope between two points · 8 min

A linear function has the form y = m·x + b. Its graph is a straight line.

The slope m says how much y changes when x increases by 1. Between two points P(x₁ | y₁) and Q(x₂ | y₂):

m = (y₂ − y₁) / (x₂ − x₁) — "rise over run".

m > 0: the line rises; m < 0: it falls; m = 0: horizontal. A vertical line has no slope (division by zero).

Worked example: Slope through P(1 | 2) and Q(4 | 11)

  1. Δy = 11 − 2 = 9.
  2. Δx = 4 − 1 = 3.
  3. m = 9/3 = 3.