Home

Tutoring

Subjects

Live Classes

Study Coach

Essay Review

On-Demand Courses

Colleges

Games

Opening subject page...

Loading your content

  1. 8th Grade Math
  2. Derive Linear Equations Using Slope

8TH GRADE MATH • EXPRESSIONS AND EQUATIONS

Derive Linear Equations Using Slope

Discover how similar triangles prove that slope stays constant and lead to the equations of every line.

SECTION 1

Historical Context & Motivation

For thousands of years, people have wanted to describe straight-line patterns using math. Ancient builders needed to measure the steepness of ramps. Farmers tracked how crop yields changed over time. The idea of slope (how steep something is) has been around since ancient civilizations.

Over centuries, mathematicians found clever ways to turn the idea of steepness into exact equations. Let's look at some key moments in that journey.

~300 BCE
Euclid and Similar Triangles
The Greek mathematician Euclid wrote Elements, a famous book that explained the rules of similar triangles. These rules are the foundation we use today to understand slope.
~850 CE
Al-Khwarizmi and Algebra
The Persian mathematician Al-Khwarizmi developed methods for solving equations with unknowns. His work gave us the word 'algebra' and the tools to write equations for lines.
1637
Descartes Creates the Coordinate Plane
René Descartes invented the x-y coordinate plane. For the first time, people could plot points and graph equations. This connected geometry (shapes) to algebra (equations).
1800s
Slope-Intercept Form Becomes Standard
Mathematicians settled on the equation y = mx + b as the standard way to write a linear equation. The letter m stands for slope, and b stands for the y-intercept.

Here is the big question this lesson answers: Why is the slope the same no matter which two points you pick on a line? We will use similar triangles to prove it, and then build the equations y = mx and y = mx + b step by step.

SECTION 2

Core Principles & Definitions

Before we dive in, you need to know four key ideas. Each one is a building block for the bigger proof.

1

Slope (m)

Slope measures how steep a line is. It is the ratio of the vertical change (rise) to the horizontal change (run) between any two points: m = rise ÷ run.
2

Similar Triangles

Similar triangles are triangles that have the same shape but can be different sizes. Their matching angles are equal, and their matching sides have the same ratio.
3

Y-Intercept (b)

The y-intercept is the point where a line crosses the y-axis. Its coordinates are (0, b). When a line passes through the origin, b = 0.
4

Linear Equation

A linear equation is an equation whose graph is a straight line. The slope-intercept form is y = mx + b, where m is the slope and b is the y-intercept.
✦ KEY TAKEAWAY
Think of slope like the steepness of a staircase. No matter which step you stand on, the angle of the staircase stays the same. That's because every step has the same rise and run. On a line, similar triangles act like those steps — they prove the ratio of rise to run never changes.
SECTION 3

Visual Explanation — Similar Triangles on a Line

The diagram below shows a line on the coordinate plane. We pick two different pairs of points and draw right triangles under the line. Notice how the triangles have the same shape but different sizes — they are similar triangles.

xyrise₁run₁rise₂run₂A(1,1)B(2,2.5)C(3,4)D(4,5.5)rise₁/run₁ = rise₂/run₂Same slope → Similar Triangles!
Two right triangles are formed under the line. Triangle AB (purple) and triangle CD (cyan) are similar because the line makes equal angles with the x-axis at every point. Their rise-to-run ratios are equal, proving the slope is constant.

Here is the key idea: both triangles share the same angle where the line meets the horizontal leg. Both have a right angle (90°) where the vertical leg meets the horizontal leg. Since two angles match, the third angle must match too. That means the triangles are similar. And in similar triangles, the ratio of matching sides is always equal. So rise₁ ÷ run₁ = rise₂ ÷ run₂. That ratio is the slope.

SECTION 4

Mathematical Framework — Deriving the Equations

Now let's turn the idea of constant slope into actual equations. We will start with the simplest case — a line through the origin (the point (0, 0)) — and then handle the general case.

Deriving y = mx (Line Through the Origin)

Pick any point (x, y) on a line that passes through (0, 0). The slope between the origin and that point is:

SLOPE FROM THE ORIGIN
m = (y − 0) ÷ (x − 0) = y ÷ x
m = slope, y = vertical coordinate, x = horizontal coordinate. Since the line passes through (0, 0), we subtract 0 from both.

Multiply both sides by x to solve for y:

LINE THROUGH THE ORIGIN
y = mx
This says: for any point on the line, the y-value equals the slope times the x-value. The line goes through (0, 0).

Deriving y = mx + b (Line With a Y-Intercept)

What if the line does not pass through the origin? Suppose it crosses the y-axis at the point (0, b). Pick any other point (x, y) on the line. The slope between (0, b) and (x, y) is:

SLOPE FROM THE Y-INTERCEPT
m = (y − b) ÷ (x − 0) = (y − b) ÷ x
We use the y-intercept point (0, b) and the general point (x, y).

Multiply both sides by x: m × x = y − b. Then add b to both sides:

SLOPE-INTERCEPT FORM
y = mx + b
m = slope (rise ÷ run), b = y-intercept (where the line crosses the y-axis). This is the general equation of any non-vertical line.
💡 Why Does This Work?
Similar triangles guarantee that the slope m is the same no matter which two points you pick. So if the ratio works between (0, b) and (x, y), it works between any two points. That means y = mx + b describes every point on the line.
SECTION 5

Detailed Breakdown — From Triangle to Equation

Let's walk through the full proof one more time using a clear diagram. The diagram below shows a line with y-intercept b and three points. We will form two slope triangles and show they give the same slope.

xy123452468P₀(0, 1)b=1P₁(2, 4)P₂(4, 7)run = 2rise = 3run = 2rise = 3Both triangles: rise/run = 3/2 = 1.5Slope m = 1.5, y-intercept b = 1 → y = 1.5x + 1
The line has y-intercept b = 1. The gold triangle (P₀ to P₁) and the green triangle (P₁ to P₂) both have rise = 3 and run = 2. The slope is 3 ÷ 2 = 1.5 in each case, confirming slope is constant.

Step by step, here is what the diagram proves. First, the two right triangles both sit on the same line and share the same angle where the line meets the horizontal. Second, both have a 90° right angle. By the Angle-Angle (AA) rule, the triangles are similar. Third, because they are similar, the ratio rise ÷ run is the same in both. That ratio is the slope m.

Finally, using the y-intercept point (0, 1) and any point (x, y), we write m = (y − 1) ÷ x. Solving for y gives y = 1.5x + 1. This matches the form y = mx + b with m = 1.5 and b = 1.

SECTION 6

Worked Example — Finding the Equation of a Line

A line passes through the points (0, −2) and (3, 4). Find the slope and write the equation of the line in slope-intercept form.

Find the Equation of the Line

Step 1 — Identify the Given Information

We have two points: (0, −2) and (3, 4). Since one point is (0, −2), the line crosses the y-axis at −2. So the y-intercept is b = −2.
b = −2

Step 2 — Calculate the Slope

Use the slope formula: m = rise ÷ run = (y₂ − y₁) ÷ (x₂ − x₁). Substitute the two points: m = (4 − (−2)) ÷ (3 − 0). That gives m = 6 ÷ 3.
m = 2

Step 3 — Verify With Similar Triangles

Let's check a third point. If x = 1.5, then y should be 2 × 1.5 + (−2) = 1. The slope between (0, −2) and (1.5, 1) is (1 − (−2)) ÷ (1.5 − 0) = 3 ÷ 1.5 = 2. The slope is the same — the triangles are similar!
Slope confirmed: m = 2

Step 4 — Write the Equation

Plug m and b into y = mx + b. We get y = 2x + (−2), which simplifies to y = 2x − 2.
y = 2x − 2
✅ Check Your Answer
Always verify by plugging a known point back into the equation. For (3, 4): y = 2(3) − 2 = 6 − 2 = 4. ✓ It works!
SECTION 7

Comparing y = mx and y = mx + b

You now know two forms of a linear equation. Let's compare them side by side to make sure you understand when to use each one.

Comparing the two forms of a linear equation
Featurey = mxy = mx + b
Passes through the origin?Yes — always goes through (0, 0)Only if b = 0; otherwise it crosses at (0, b)
Y-interceptb = 0 (hidden)b can be any number
Number of parameters1 (just m)2 (m and b)
Exampley = 3xy = 3x + 5
Real-world useSituations starting at zero, like earning $8/hour with no bonusSituations with a starting value, like a $20 membership fee plus $8/hour
✦ KEY TAKEAWAY
Think of y = mx + b like a taxi ride. The y-intercept b is the flat fee you pay just for getting in. The slope m is the rate per mile. The farther you ride (bigger x), the more the total cost y goes up. If there's no flat fee, b = 0 and you're left with y = mx.
SECTION 8

Connection to Advanced Topics

The ideas you learned today are the starting point for many things you will study later. Here is a preview of how slope-intercept form connects to more advanced math.

How today's concepts connect to future math topics
What You Know NowWhat Comes Next
Slope is rise ÷ run between two pointsIn calculus, slope at a single point is called a derivative
y = mx + b describes a straight lineSystems of linear equations solve for where two lines cross
Similar triangles prove slope is constantTrigonometry uses ratios in right triangles (sin, cos, tan)
Lines have equations with x to the first powerQuadratics have x² and create parabolas instead of lines

You will also use slope-intercept form in science classes. In physics, a distance-time graph is a line when speed is constant, and the slope represents speed. In biology, you might graph population growth as a line and find its equation. The skills you build here will follow you everywhere.

SECTION 9

Practice Problems

Try these five problems to test your understanding. They go from easy to challenging. Give each one a try before reading the answer!

PROBLEM 1 — CONCEPTUAL
A line passes through the origin. Explain in your own words why its equation must be y = mx (with no + b part).
PROBLEM 2 — BASIC CALCULATION
A line passes through (0, 0) and (4, 12). Find the slope and write the equation.
PROBLEM 3 — INTERMEDIATE
A line passes through the points (1, 5) and (4, 14). Find the slope. Then use one of the points to find the y-intercept b and write the equation in y = mx + b form.
PROBLEM 4 — APPLIED
A gym charges a one-time sign-up fee plus a monthly rate. After 2 months, Jada has paid $70 total. After 5 months, she has paid $130 total. Write a linear equation for the total cost y after x months. What is the sign-up fee?
PROBLEM 5 — CRITICAL THINKING
Marcus says: 'The slope between (1, 3) and (5, 11) is 2, and the slope between (5, 11) and (9, 19) is also 2. That means these three points are on the same line.' Is Marcus correct? Use the idea of similar triangles to explain why or why not.
SUMMARY

Lesson Summary

In this lesson you learned that the slope of a line is the ratio of rise to run. Using similar triangles, you proved that this ratio is the same between any two points on a non-vertical line. The Angle-Angle rule shows that slope triangles formed along a line are always similar, which is why the slope m never changes.

You then derived two key equations. For a line through the origin, the equation is y = mx. For a line with y-intercept b, the equation is y = mx + b. Remember: m tells you the steepness, b tells you where the line crosses the y-axis, and similar triangles are the reason the slope formula works everywhere on the line.

Varsity Tutors • 8th Grade Math • Derive Linear Equations Using Slope