Pre-AlgebraSlope and Lines8.EE.B.6

Slope-Intercept Form

y = mx + b: slope m, starting value b.

Not started Jump to practice

You know a line has one slope everywhere and how to compute it. That is enough to write an equation that every point on the line satisfies.

Why it works

Take a line with slope $m$ that crosses the $y$-axis at $(0, b)$. Pick any other point $(x, y)$ on it. The slope from $(0, b)$ to $(x, y)$ must be $m$: $$\frac{y - b}{x - 0} = m$$ Multiply both sides by $x$: $y - b = mx$, so $y = mx + b$.

Key idea

In $y = mx + b$, $m$ is the slope (the rate of change) and $b$ is the $y$-intercept (the starting value, where $x = 0$).
Slide $m$ to tilt the line and $b$ to move where it crosses the $y$-axis.

Worked examples

Worked example: Read m and b

Find the slope and $y$-intercept of $y = -2x + 5$ and of $y = 4 - \frac{1}{3}x$.
  1. $y = -2x + 5$: $m = -2$, $b = 5$.
  2. $y = 4 - \frac{1}{3}x$ is $y = -\frac{1}{3}x + 4$ written in a different order: $m = -\frac{1}{3}$, $b = 4$.

Answer: $m = -2, b = 5$; and $m = -\frac{1}{3}, b = 4$

Worked example: Graph from the equation

Graph $y = \frac{2}{3}x - 1$.
  1. Start at the $y$-intercept, $(0, -1)$.
  2. The slope $\frac{2}{3}$ means up 2 for every 3 to the right: the next point is $(3, 1)$.
  3. Draw the line through them.

Answer: the line through $(0, -1)$ and $(3, 1)$

Worked example: Equation from points

A line crosses the $y$-axis at $(0, 3)$ and passes through $(2, -1)$. Write its equation.
  1. $b = 3$.
  2. $m = \frac{-1 - 3}{2 - 0} = \frac{-4}{2} = -2$.

Answer: $y = -2x + 3$

Common mistake

Taking the wrong number. In $y = 4 - 2x$ the slope is $-2$ (the number multiplying $x$), not 4, even though 4 is written first. And $b$ is where the line crosses the $y$-axis; the point where it crosses the $x$-axis is a different number.

Practice

Pass with 3 right answers, the last 2 in a row. Each right answer earns 2 XP.

Loading practice…

Builds on

Leads to

Sources and further reading

  • OpenStax Elementary Algebra 2e, Section 4.5: Use the Slope-Intercept Form of an Equation of a Line
  • Common Core State Standards for Mathematics, Grade 8, 8.EE.B.6 (derive y = mx + b)
@teddyrookbook GitHub