Skip to content
🎯⭐ INTERACTIVE LESSON

Slope and Linear Functions

Learn step-by-step with interactive practice!

Slope and Linear Functions - Complete Interactive Lesson

Part 1: What Slope Means

📈 Slope & Linear Functions

Part 1 of 5 — What Slope Means


Topics in This Part

Section
Slope as Steepness
Rise Over Run
Positive, Negative, Zero & Undefined

🔑 Key Concept: Slope measures how steep a line is — exactly how much it goes up (or down) every time you move one step to the right. A ramp, a staircase, and a hill all have slope.

Slope as Steepness

Picture walking up a wheelchair ramp. A gentle ramp barely rises — small slope. A steep ramp shoots up fast — big slope.

We measure slope as the ratio:

slope=riserun=vertical changehorizontal change\text{slope} = \frac{\text{rise}}{\text{run}} = \frac{\text{vertical change}}{\text{horizontal change}}

  • Rise = how far the line goes up (positive) or down (negative).
  • Run = how far the line goes to the right (we always read left-to-right).

Example

A ramp goes up 2 feet for every 8 feet it stretches forward:

slope=riserun=28=14\text{slope} = \frac{\text{rise}}{\text{run}} = \frac{2}{8} = \frac{1}{4}

💡 Read it like a fraction. A slope of 14\dfrac{1}{4} means: go up 1 every time you go right 4. The bigger the number, the steeper the line.

Concept Check 🎯

Four Kinds of Slope

As you read a line from left to right, it can do one of four things:

Line goes...Slope is...Example
uphill ↗positive (++)m=3m = 3
downhill ↘negative (−-)m=−2m = -2
flat →zero (00)m=0m = 0
straight up ↑undefinedvertical line

⚠️ A horizontal line has slope 00 (no rise). A vertical line has an undefined slope (the run is 00, and we can't divide by zero). Don't mix these two up!

Name That Slope 🔽

For each description, pick the kind of slope.

Counting Rise and Run

When a line is on a grid, you can find its slope by counting boxes: pick two points on the line, count how many squares you go up or down (rise), then how many you go right (run).

Example

From one point to another, a line goes up 3 and right 4:

slope=riserun=34\text{slope} = \frac{\text{rise}}{\text{run}} = \frac{3}{4}

If instead it goes down 3 and right 4, the rise is −3-3, so the slope is −34-\dfrac{3}{4}.

💡 Going down counts as a negative rise. The run (right) is almost always positive because we read left-to-right.

Count It Out 🧮

Find each slope as riserun\dfrac{\text{rise}}{\text{run}}. Enter a whole number or a fraction like 3/43/4.

1) up 44, right 22 → slope = ?= \,? 2) down 55, right 55 → slope = ?= \,? 3) up 11, right 33 → slope = ?= \,?

Wrapping Up Part 1

You now know what slope is: a number that captures steepness and direction, found as riserun\dfrac{\text{rise}}{\text{run}}.

In Part 2 you'll learn the slope formula — a quick way to get the slope straight from two points, without ever drawing the picture.

🔑 Remember: rise is up/down, run is left/right, and we always read a line from left to right.

Part 2: The Slope Formula

📈 Slope & Linear Functions

Part 2 of 5 — The Slope Formula


🔑 The Idea: Give me any two points on a line and I can find the slope with one formula — no graph needed.

The Slope Formula

For two points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2):

m=y2−y1x2−x1=change in ychange in xm = \frac{y_2 - y_1}{x_2 - x_1} = \frac{\text{change in } y}{\text{change in } x}

This is just rise over run in disguise: the top is how much yy changed (rise), the bottom is how much xx changed (run).

Worked Example: (1,2)(1, 2) and (4,8)(4, 8)

Label them: x1=1, y1=2, x2=4, y2=8x_1 = 1,\ y_1 = 2,\ x_2 = 4,\ y_2 = 8.

m=y2−y1x2−x1=8−24−1=63=2m = \frac{y_2 - y_1}{x_2 - x_1} = \frac{8 - 2}{4 - 1} = \frac{6}{3} = 2

The slope is 22.

⚠️ Stay consistent! Whatever point you call "second" for the yy's, use the same point's xx as "second." Mixing them up flips the sign.

Worked Example with a Negative Slope: (2,5)(2, 5) and (6,1)(6, 1)

m=1−56−2=−44=−1m = \frac{1 - 5}{6 - 2} = \frac{-4}{4} = -1

The slope is −1-1 — the line goes downhill, falling 1 unit for every 1 to the right. That matches: as xx grew, yy shrank.

A Subtraction Reminder

Watch out for negatives inside the formula. For (−3,4)(-3, 4) and (1,−2)(1, -2):

m=−2−41−(−3)=−61+3=−64=−32m = \frac{-2 - 4}{1 - (-3)} = \frac{-6}{1 + 3} = \frac{-6}{4} = -\frac{3}{2}

💡 1−(−3)1 - (-3) becomes 1+3=41 + 3 = 4. Subtracting a negative adds.

Concept Check 🎯

Use the Formula 🧮

Find the slope through each pair of points. Enter a whole number or a fraction like −3/2-3/2.

1) (2,3)(2, 3) and (5,12)(5, 12) → m= ?m = \,? 2) (1,8)(1, 8) and (4,2)(4, 2) → m= ?m = \,? 3) (−1,2)(-1, 2) and (3,4)(3, 4) → m= ?m = \,?

Horizontal & Vertical 🔽

Use the formula to spot special lines.

Part 3: Slope-Intercept Form $y = mx + b$

📈 Slope & Linear Functions

Part 3 of 5 — Slope-Intercept Form y=mx+by = mx + b


🔑 The Power Form: Every straight (non-vertical) line can be written as y=mx+by = mx + b. Just by looking at it, you can read off the slope and where it crosses the yy-axis.

Reading y=mx+by = mx + b

y=m⏟slope x+b⏟y-intercepty = \underbrace{m}_{\text{slope}}\,x + \underbrace{b}_{y\text{-intercept}}

  • mm is the slope — the number multiplied by xx.
  • bb is the yy-intercept — the yy-value where the line crosses the yy-axis (this is the point (0,b)(0, b)).

Example: y=3x+4y = 3x + 4

  • Slope m=3m = 3 → up 3, right 1.
  • yy-intercept b=4b = 4 → the line passes through (0,4)(0, 4).

Example: y=−12x−5y = -\dfrac{1}{2}x - 5

  • Slope m=−12m = -\dfrac{1}{2} → down 1, right 2.
  • yy-intercept b=−5b = -5 → passes through (0,−5)(0, -5).

💡 Watch the signs. In y=2x−7y = 2x - 7, the yy-intercept is −7-7, not 77, because y=2x+(−7)y = 2x + (-7).

Read the Equation 🔽

Identify the slope and yy-intercept of each line.

When It's Not Already Solved for yy

Sometimes a line is written like 2x+y=102x + y = 10. To read the slope and intercept, solve for yy first.

Example: 2x+y=102x + y = 10

Subtract 2x2x from both sides:

y=−2x+10y = -2x + 10

Now it's clear: slope m=−2m = -2, yy-intercept b=10b = 10.

Example: 4x+2y=64x + 2y = 6

Subtract 4x4x:   2y=−4x+6\;2y = -4x + 6. Then divide every term by 22:

y=−2x+3y = -2x + 3

So m=−2m = -2 and b=3b = 3.

⚠️ Divide every term. When you divide 2y=−4x+62y = -4x + 6 by 22, all three pieces get divided: y=−2x+3y = -2x + 3.

Concept Check 🎯

Slope & Intercept 🧮

Rewrite in y=mx+by = mx + b form if needed, then enter the values.

1) y=6x−11y = 6x - 11. Slope m= ?m = \,? 2) Same line: yy-intercept b= ?b = \,? 3) Solve x+y=4x + y = 4 for yy, then give the slope m= ?m = \,?

Part 4: Graphing Lines & Writing Equations

📈 Slope & Linear Functions

Part 4 of 5 — Graphing Lines & Writing Equations


🔑 Two Skills, One Form: With y=mx+by = mx + b you can draw any line from its equation, and write the equation of any line you can see.

Graphing from y=mx+by = mx + b

There's a simple recipe:

  1. Plot bb — put a point at (0,b)(0, b) on the yy-axis.
  2. Use the slope as riserun\dfrac{\text{rise}}{\text{run}} to step to a second point.
  3. Connect the points with a straight line.

Example: y=2x+1y = 2x + 1

  1. b=1b = 1 → start at (0,1)(0, 1).
  2. m=2=21m = 2 = \dfrac{2}{1} → from (0,1)(0,1) go up 2, right 1 to (1,3)(1, 3).
  3. Draw the line through (0,1)(0,1) and (1,3)(1,3).

Example: y=−23x+4y = -\dfrac{2}{3}x + 4

  1. b=4b = 4 → start at (0,4)(0, 4).
  2. m=−23m = -\dfrac{2}{3} → go down 2, right 3 to (3,2)(3, 2).

💡 A negative slope like −23-\dfrac{2}{3} means down 2 and right 3 (or, equally, up 2 and left 3). Either way, the line falls.

Concept Check 🎯

Writing an Equation from a Graph (or Two Points)

To build y=mx+by = mx + b, you need two things: the slope mm and the intercept bb.

Example: a line through (0,2)(0, 2) and (3,8)(3, 8)

  1. Slope: m=8−23−0=63=2m = \dfrac{8 - 2}{3 - 0} = \dfrac{6}{3} = 2.
  2. Intercept: one point is (0,2)(0, 2), so b=2b = 2 (it's already on the yy-axis).
  3. Equation: y=2x+2y = 2x + 2.

Example: line through (1,5)(1, 5) with slope 33

The intercept isn't given, so find bb by plugging the point into y=mx+by = mx + b:

5=3(1)+b  ⇒  5=3+b  ⇒  b=25 = 3(1) + b \;\Rightarrow\; 5 = 3 + b \;\Rightarrow\; b = 2

So the equation is y=3x+2y = 3x + 2.

🔑 The trick: once you know mm, plug any point's (x,y)(x, y) into y=mx+by = mx + b and solve for bb.

Write the Equation 🧮

Find the slope and intercept, then report them.

1) Line through (0,−4)(0, -4) and (2,6)(2, 6). Slope m= ?m = \,? 2) Same line: yy-intercept b= ?b = \,? 3) Line with slope 44 passing through (1,9)(1, 9). Find b= ?b = \,?

Build the Line 🔽

A line has slope −2-2 and passes through (0,3)(0, 3).

Part 5: Real-World Models & Mastery Check

📈 Slope & Linear Functions

Part 5 of 5 — Real-World Models & Mastery Check


The best part: linear functions describe real life. Pay-per-job, phone plans, savings, distance traveled — anything that changes at a steady rate is linear.

Slope = Rate, Intercept = Starting Amount

In a real-world line y=mx+by = mx + b:

  • mm (slope) is the rate of change — "per" something: dollars per hour, miles per gallon.
  • bb (intercept) is the starting value — the amount when x=0x = 0.

Example: a Plumber's Bill

A plumber charges a $50 service fee plus $30 per hour. The cost yy for xx hours is:

y=30x+50y = 30x + 50

  • Slope 3030 → it costs $30 more per hour.
  • Intercept 5050 → even for 00 hours, the bill starts at $50 (the fee).

For a 4-hour job: y=30(4)+50=120+50=170y = 30(4) + 50 = 120 + 50 = 170, giving $170.

💡 The words tell you the equation: a fixed start is the intercept; a "per-unit" cost is the slope.

Translate the Story 🔽

A gym charges a $20 sign-up fee plus $15 each month. Let yy be the total cost after xx months.

Use the Model 🧮

A taxi charges $3 to start plus $2 per mile: y=2x+3y = 2x + 3, where xx is miles and yy is dollars.

1) What does a 5-mile ride cost?  ?\,? (dollars) 2) What does a 10-mile ride cost?  ?\,? (dollars) 3) If a ride cost $15, how many miles was it?  ?\,?

Quick Reference

GoalKey move
Slope from a pictureriserun\dfrac{\text{rise}}{\text{run}} (up/down over left/right)
Slope from two pointsm=y2−y1x2−x1m = \dfrac{y_2 - y_1}{x_2 - x_1}
Read y=mx+by = mx + bmm = slope, bb = yy-intercept (0,b)(0, b)
Graph a lineplot bb, then step by the slope
Write a linefind mm, plug a point into y=mx+by = mx + b for bb
Real-worldslope = rate, intercept = starting amount

⚠️ Top traps: keep your two points in the same order in the slope formula, watch the sign of bb, and remember horizontal lines have slope 00 while vertical lines are undefined.

Mixed Practice 🎯

Exit Quiz ✅

Answer all three to finish the lesson.