MathPath
Grades 1–13 Math Hub
Grade 8 Topic Learning Center · Linear & Geometry

Slope & Linear Functions — Grade 8 Complete Learning Center

Interpret slope as rate of change, graph lines in slope-intercept form y = mx + b and compare linear and nonlinear functions.

Quick Example: Slope through (1, 3) and (4, 9) is m = (9 − 3)/(4 − 1) = 2
Step 1 · Understand the Concept

What Is Slope & Linear Functions?

Grade 8 Slope & Linear Functions describes constant-rate relationships using slope m = (y₂ − y₁)/(x₂ − x₁), slope-intercept form y = mx + b, graphs, tables, and real-world rate-of-change interpretations.

How to Verify Your Work: Plug BOTH given points (x₁, y₁) and (x₂, y₂) into your final equation y = mx + b. If both satisfy the equation, your slope and y-intercept are guaranteed right.

Step 2 · Visual Explanation

See Slope & Linear Functions Visually

Open Interactive Visual Model →
xySlope through (1, 3) and (4,
Visual concept overview for Slope & Linear Functions. Launch Slope as Rise Over Run for interactive sliders and live feedback.

Step 3 · Step-by-Step Worked Examples

Follow the reasoning behind every move before trying practice problems on your own.

Worked Example 1

Write the Equation of a Line Through Two Points

Problem: Find the equation in y = mx + b form of the line through (2, 5) and (6, 13).
  1. Calculate slope: m = (13 − 5) / (6 − 2) = 8 / 4 = 2.
  2. Substitute m = 2 and point (2, 5) into y = mx + b: 5 = 2(2) + b ⇒ b = 1.
  3. Write the equation: y = 2x + 1.
  4. Verify with the second point (6, 13): 2(6) + 1 = 13 ✓.
Worked Example 2

Interpret Slope and y-Intercept in Context

Problem: A gym charges $35 to join plus $20 per month: C = 20t + 35. What do 20 and 35 mean?
  1. Slope m = 20 is the monthly rate of change ($20 added per month).
  2. y-intercept b = 35 is the initial starting fee at t = 0 months ($35).

Step 4 · Practice by Difficulty (Easy, Medium & Hard)

Try these representative Grade 8 questions right here, then open the full interactive bank.

All Easy → All Medium → All Hard →
Easy Practice #1

Find the slope $m$ of the line passing through $(1, 3)$ and $(2, 1)$ shown below.

  • A. $-2$
  • B. $-3$
  • C. $1$
  • D. $0$
Show Answer & Step-by-Step Solution
Answer: $-2$
Step 1: Use $m = \frac{y_2 - y_1}{x_2 - x_1} = \frac{1 - (3)}{2 - (1)}$. Step 2: Simplify to get $m = -2$.
Why This Works: Slope $m = \frac{y_2 - y_1}{x_2 - x_1}$ measures constant vertical change per 1-unit horizontal step, and $b$ is where the line crosses the y-axis.
Easy Practice #2

Find the slope $m$ of the line passing through $(0, 2)$ and $(1, 5)$ shown below.

  • A. $9$
  • B. $-1$
  • C. $1$
  • D. $3$
Show Answer & Step-by-Step Solution
Answer: $3$
Step 1: Use $m = \frac{y_2 - y_1}{x_2 - x_1} = \frac{5 - (2)}{1 - (0)}$. Step 2: Simplify to get $m = 3$.
Why This Works: Slope $m = \frac{y_2 - y_1}{x_2 - x_1}$ measures constant vertical change per 1-unit horizontal step, and $b$ is where the line crosses the y-axis.
Medium Practice #3

Find the equation ($y = mx + b$) of the line passing through $(-2, 0)$ and $(0, -3)$.

  • A. $y = -\frac{3}{2}x + 3$
  • B. $y = \frac{3}{2}x - 3$
  • C. $y = -\frac{3}{2}x - 1$
  • D. $y = -\frac{3}{2}x - 3$
Show Answer & Step-by-Step Solution
Answer: $y = -\frac{3}{2}x - 3$
Step 1: Compute slope $m = \frac{-3 - (0)}{0 - (-2)} = -\frac{3}{2}$. Step 2: Find $y$-intercept $b = 0 - (-\frac{3}{2})(-2) = -3$, giving $y = -\frac{3}{2}x - 3$.
Why This Works: Slope $m = \frac{y_2 - y_1}{x_2 - x_1}$ measures constant vertical change per 1-unit horizontal step, and $b$ is where the line crosses the y-axis.
Medium Practice #4

Find the equation ($y = mx + b$) of the line passing through $(0, -5)$ and $(1, -1)$.

  • A. $y = 4x + 5$
  • B. $y = 4x - 3$
  • C. $y = 4x - 5$
  • D. $y = -4x - 5$
Show Answer & Step-by-Step Solution
Answer: $y = 4x - 5$
Step 1: Compute slope $m = \frac{-1 - (-5)}{1 - (0)} = 4$. Step 2: Find $y$-intercept $b = -5 - (4)(0) = -5$, giving $y = 4x - 5$.
Why This Works: Slope $m = \frac{y_2 - y_1}{x_2 - x_1}$ measures constant vertical change per 1-unit horizontal step, and $b$ is where the line crosses the y-axis.
Hard Practice #5

Find the equation ($y = mx + b$) of the line passing through $(0, -4)$ and $(1, -3)$.

  • A. $y = -x - 4$
  • B. $y = x - 2$
  • C. $y = x + 4$
  • D. $y = x - 4$
Show Answer & Step-by-Step Solution
Answer: $y = x - 4$
Step 1: Compute slope $m = \frac{-3 - (-4)}{1 - (0)} = 1$. Step 2: Find $y$-intercept $b = -4 - (1)(0) = -4$, giving $y = x - 4$.
Why This Works: Slope $m = \frac{y_2 - y_1}{x_2 - x_1}$ measures constant vertical change per 1-unit horizontal step, and $b$ is where the line crosses the y-axis.
Hard Practice #6

Solve the system of linear equations: $$\begin{cases} 5x + 2y = 49 \\ 4x - 2y = 32 \end{cases}$$

  • A. $(2, 9)$
  • B. $(9, 2)$
  • C. $(10, 1)$
  • D. $(-9, 2)$
Show Answer & Step-by-Step Solution
Answer: $(9, 2)$
Step 1: Notice the $y$-terms ($2y$ and $-2y$) are opposites. Add the two equations directly to eliminate $y$: $(5 + 4)x = 49 + (32)$, giving $9x = 81$. Step 2: Divide both sides by $9$ to get $x = 9$. Step 3: Substitute $x = 9$ into Equation 1: $5(9) + (2)y = 49 \Rightarrow 2y = 4 \Rightarrow y = 2$.
Why This Works: Elimination works because adding or subtracting equal quantities from both sides preserves equality while removing one variable.

Step 5 · Take a Timed Quiz or Download Printable PDFs

Step 6 · Common Slope & Linear Functions Mistakes to Avoid

Compare the wrong attempt against the correct strategy so you never lose easy points on homework or tests.

Mistake 1: Flipping Rise and Run (Computing Δx / Δy)

✗ Wrong: Finding the slope between (1, 2) and (5, 10) as (5 − 1)/(10 − 2) = 1/2.
✓ Correct: Put y-values on top (rise) and x-values on bottom (run): (10 − 2)/(5 − 1) = 8/4 = 2.

Why: Slope measures how fast y changes per 1 unit increase in x.

Mistake 2: Mixing Up Point Order Between Numerator and Denominator

✗ Wrong: Writing (y₂ − y₁)/(x₁ − x₂), which flips the sign of the slope.
✓ Correct: Subtract in the SAME direction in both numerator and denominator: (y₂ − y₁)/(x₂ − x₁).

Why: Reversing only one subtraction multiplies the slope by −1.

Mistake 3: Confusing Zero Slope with Undefined Slope

✗ Wrong: Saying a vertical line has slope 0.
✓ Correct: Horizontal lines (y = c) have slope 0 (0 / Δx = 0); vertical lines (x = c) have UNDEFINED slope (Δy / 0).

Why: Division by zero is undefined.

Deep-Dive Slope & Linear Functions Guides & Parent Tips

Explore dedicated full-length articles for concepts, worked examples, common mistakes, and at-home parent coaching.

Master Slope & Linear Functions Across Every Learning Mode

Build complete mastery by connecting concept tutorials, visual models, step-by-step examples, common mistakes, and printable practice.