Mathematics · Pre-Algebra & Algebra · Linear Functions

Linear Equations & Slope

Slope as rise over run Slope-intercept form (y = mx + b) Parallel & perpendicular lines Real-world rate of change

Every non-vertical straight line has a constant steepness and a starting height on the vertical axis. In this multi-lab lesson, you will drag points to visualize the rise / run right triangle, test parallel and perpendicular slopes, and connect y = mx + b to real-world rates of change.

Learning Target

I can find the slope and equation of a line from two points, a graph, or a table, and explain what slope and y-intercept mean in context.

By the end of this lesson, you will be able to compute slope as m = (y₂ - y₁) / (x₂ - x₁), locate the y-intercept (0, b), identify parallel and perpendicular slopes, and model constant rates of change in y = mx + b form.

Slope-Intercept Form & The Four Types of Slope

Any non-vertical line can be written as y = mx + b, where m is the slope (constant rate of change) and b is the y-intercept (the value of y when x = 0).

Slope (m = Δy / Δx)How steep the line is. Between any two points (x₁, y₁) and (x₂, y₂), slope is rise / run = (y₂ - y₁) / (x₂ - x₁).
Y-intercept (0, b)Where the line crosses the vertical y-axis. It represents the initial or starting value when x = 0.
Positive (m > 0)Line rises from left to right. As x increases, y increases.
Negative (m < 0)Line falls from left to right. As x increases, y decreases.
Zero (m = 0)Horizontal line (y = b). Rise is 0 no matter how far you run.
Undefined (Δx = 0)Vertical line (x = c). Run is 0, and division by zero is undefined.

Lab 1 · Drag the Points & Rise / Run Triangle

Drag points P₁ and P₂ anywhere on the coordinate grid, or click a preset below. Watch the dashed Run (Δx) and Rise (Δy) right triangle and the green y-intercept (0, b) dot update live.

Draggable Points P₁, P₂ Run (Δx) Rise (Δy) Y-Intercept (0, b)
Rise / Run6 / 3
Slope (m)2
Y-Intercept (b)(0, 3)
Equationy = 2x + 3
1. Ordered Pairs P₁(-2, -1), P₂(1, 5)
2. Subtract Coordinates Δy = 5 - (-1) = +6, Δx = 1 - (-2) = +3
3. Compute Slope (m = Δy / Δx) m = 6 / 3 = 2
4. Find Y-Intercept (b = y₁ - m·x₁) b = -1 - 2(-2) = 3
5. Slope Classification Positive slope (rises left to right)

Lab 2 · Slope-Intercept & Parallel / Perpendicular Explorer

Use the sliders to dial in the slope m and y-intercept b directly. Then turn on a comparison line to see why parallel lines have identical slopes (m₁ = m₂) and perpendicular lines have negative reciprocal slopes (m₂ = -1 / m₁).

Primary Line (y₁)y = 1.5x + 2
Comparison Line (y₂)None
Slope RelationshipSingle line
1.5
2
Comparison Line Mode
Geometric Insight Adjust m to tilt the line; adjust b to slide it vertically along the y-axis.

Lab 3 · Real-World Rate of Change (y = mx + b in Action)

In real-world applications, b is the initial amount at x = 0 and m is the rate of change per 1 unit of x. Choose a scenario and scrub x to see how the graph and table of values move together.

(3, 85 L)
Starting Value (b)40 L
Rate of Change (m)+15 L/min
Model Equationy = 15x + 40
x (min) y (Liters) Change (Δy)
In Plain English At x = 0 min, the tank starts with 40 L (y-intercept b). Every 1 minute, the volume changes by +15 L (slope m).

Worked Example

Find the equation of the line passing through (1, 2) and (4, 8).

m = (8 - 2) / (4 - 1)
Slope is change in y (Δy) divided by change in x (Δx) between the two points.
m = 6 / 3 = 2
The line rises 2 units for every 1 unit it runs to the right.
2 = 2(1) + b
Substitute one point (1, 2) and the slope m = 2 into y = mx + b to solve for b.
b = 0
Subtract 2 from both sides: 2 - 2 = b, so the line crosses the y-axis at the origin (0, 0).
y = 2x
Write the final equation in slope-intercept form.

Interactive Check

Answer each slope, intercept, and line-relationship question. Use the instant feedback to catch sign or reciprocal errors.

What is the slope of the line through (0, 1) and (2, 5)?
Compute rise over run between the two points.
0/0correct this round

Guided Practice

Compute the requested slope or intercept for each problem. Type the numeric value and press Check (or Enter).

Slope through (0, 0) and (2, 6)
Slope through (1, 5) and (3, 1)
Slope through (0, 1) and (4, 3)
y-intercept (b) of y = 3x + 4
Slope perpendicular to y = 4x - 2 (decimal)
y-intercept (b) of line with m = 2 through (3, 13)

Exit Ticket

Respond in complete sentences or with clearly labeled algebraic steps:

  • What does it mean for a line to have a negative slope? Sketch an example and label its rise and run.
  • Write the equation of a line that passes through (0, -3) and is parallel to y = 5x + 1.
  • In a real-world problem modeled by y = mx + b, explain the difference between what m tells you and what b tells you.