← mapAlgebra Core

Lines & Slope

⚗ Dr. Möbius, from the lab

The word "linear" is about to become the single most important word in this entire course — and possibly your mathematical career. It describes functions, equations, systems, transformations, and entire branches of mathematics. Before any of that, you need to understand what a line actually IS and why slope is not just "rise over run" but the fundamental measure of proportionality. Buckle up.

THE BIG IDEA

Slope measures constant rate of change and is the same between any two points on a line; every line has an equation of the form y = mx + b or x = c.

Slope: what it actually means

A line in the plane is a set of points. What distinguishes it from other curves? A defining property: the rate of change of yy with respect to xx is constant. Pick any two points on the line, compute ΔyΔx\frac{\Delta y}{\Delta x}, and you get the same number. That number is the slope, mm.

m=y2y1x2x1,x1x2.m = \frac{y_2 - y_1}{x_2 - x_1}, \quad x_1 \ne x_2.

This is "rise over run": the change in height divided by the change in horizontal position.

Why is it the same between any two points? Because we said it is — that's what defines a line. Any set of points with constant ΔyΔx\frac{\Delta y}{\Delta x} is a line. Try the slope-explorer widget below to see this live: no matter which two points you drag, the slope triangle always reports the same ratio.

slope explorer
Δx=9Δy=6
Δy = 6Δx = 9m = 0.67 y = 0.67x + 0.67

Drag the points around. Note that the line equation updates in real time. The slope never changes as long as you stay on the line — that constancy IS the line.

Slope-intercept form: y=mx+by = mx + b

If a line has slope mm and crosses the yy-axis at (0,b)(0, b), then for any point (x,y)(x, y) on the line:

ybx0=m    yb=mx    y=mx+b.\frac{y - b}{x - 0} = m \implies y - b = mx \implies y = mx + b.

This is slope-intercept form. mm is the slope; bb is the yy-intercept (the yy-value when x=0x = 0). Reading y=3x2y = 3x - 2: slope 3 (rise 3, run 1), crosses yy-axis at (0,2)(0, -2).

Point-slope form: yy1=m(xx1)y - y_1 = m(x - x_1)

What if you know the slope mm and a point (x1,y1)(x_1, y_1) but not the intercept? For any other point (x,y)(x, y) on the line, slope constancy demands:

yy1xx1=m    yy1=m(xx1).\frac{y - y_1}{x - x_1} = m \implies y - y_1 = m(x - x_1).

This is point-slope form. You can always convert to slope-intercept by solving for yy.

Horizontal and vertical lines

Horizontal line through (0,k)(0, k): y=ky = k for every xx. Slope =0Δx=0= \frac{0}{\Delta x} = 0. The line goes nowhere vertically.

Vertical line through (h,0)(h, 0): x=hx = h for every yy. Slope would be Δy0\frac{\Delta y}{0} — division by zero, undefined. Vertical lines have NO slope (not zero slope — undefined slope). They cannot be written as y=mx+by = mx + b; their equation is simply x=hx = h.

Parallel and perpendicular: the slope relationships

Parallel lines have equal slopes and different yy-intercepts. They never intersect because their rates of change are identical.

Perpendicular lines have slopes that satisfy m1m2=1m_1 \cdot m_2 = -1, i.e., m2=1m1m_2 = -\frac{1}{m_1}. Why? Here's the picture-proof in words: if line 1 has slope m1=abm_1 = \frac{a}{b} (rise aa, run bb), rotate that slope triangle 90° clockwise. The "rise" becomes b-b and the "run" becomes aa, giving slope ba=1m1\frac{-b}{a} = -\frac{1}{m_1}. The product is abba=1\frac{a}{b} \cdot \frac{-b}{a} = -1.

Example: if one line has slope 23\frac{2}{3}, a perpendicular line has slope 32-\frac{3}{2}.

The big foreshadow

The word "linear" shows up in linear equations, linear inequalities, linear functions, linear systems, linear transformations, and the entire subject of linear algebra. Every single one of those concepts is describing, in some form, the constant-rate-of-change structure you see here. A line is the simplest geometric object with that structure. When we say a function is "linear," we mean it behaves like a line. When we say a transformation is "linear," we mean it respects the same underlying structure. File this away. It will pay dividends for the rest of the course.

🔬 SPECIMENS (worked examples)

Worked example 1 — slope and equation from two points

Find the equation of the line through (2,3)(-2, 3) and (4,1)(4, -1) in slope-intercept form.

Step 1: slope. m=134(2)=46=23.m = \frac{-1 - 3}{4 - (-2)} = \frac{-4}{6} = -\frac{2}{3}.

Step 2: point-slope form using (2,3)(-2, 3): y3=23(x(2))=23(x+2).y - 3 = -\frac{2}{3}(x - (-2)) = -\frac{2}{3}(x+2).

Step 3: solve for yy (slope-intercept): y=23x43+3=23x43+93=23x+53.y = -\frac{2}{3}x - \frac{4}{3} + 3 = -\frac{2}{3}x - \frac{4}{3} + \frac{9}{3} = -\frac{2}{3}x + \frac{5}{3}.

Check both original points:

  • (2,3)(-2, 3): y=23(2)+53=43+53=93=3y = -\frac{2}{3}(-2) + \frac{5}{3} = \frac{4}{3} + \frac{5}{3} = \frac{9}{3} = 3. Confirmed.
  • (4,1)(4, -1): y=23(4)+53=83+53=33=1y = -\frac{2}{3}(4) + \frac{5}{3} = -\frac{8}{3} + \frac{5}{3} = -\frac{3}{3} = -1. Confirmed.
Worked example 2 — perpendicular lines

Line 1\ell_1 passes through (1,2)(1, 2) and (3,6)(3, 6). Find the equation of the line 2\ell_2 that is perpendicular to 1\ell_1 and passes through (3,6)(3, 6).

Slope of 1\ell_1: m1=6231=42=2.m_1 = \frac{6 - 2}{3 - 1} = \frac{4}{2} = 2.

Slope of 2\ell_2 (perpendicular, so negative reciprocal): m2=1m1=12.m_2 = -\frac{1}{m_1} = -\frac{1}{2}.

Check: m1m2=2(1/2)=1m_1 \cdot m_2 = 2 \cdot (-1/2) = -1. Confirmed perpendicular.

Equation of 2\ell_2 through (3,6)(3, 6): y6=12(x3)    y=12x+32+6=12x+152.y - 6 = -\frac{1}{2}(x - 3) \implies y = -\frac{1}{2}x + \frac{3}{2} + 6 = -\frac{1}{2}x + \frac{15}{2}.

Worked example 3 — the trap: parallel vs coincident

Two lines: 1:y=3x+2\ell_1: y = 3x + 2 and 2:6x2y+4=0\ell_2: 6x - 2y + 4 = 0. Are they parallel, perpendicular, or the same line?

Rewrite 2\ell_2 in slope-intercept form: 2y=6x4    y=3x+2-2y = -6x - 4 \implies y = 3x + 2.

They are the SAME line — also called coincident. Both have slope 3 and yy-intercept 2. They are not merely parallel (parallel lines have equal slopes but different intercepts); they are identical.

This matters algebraically: a system of two equations with these lines has infinitely many solutions — the entire line is the intersection. This is the "dependent" case from the upcoming Systems lesson.

Moral: before declaring two lines parallel, always check that the intercepts actually differ.

☠ KNOWN HAZARDS

  • Zero slope vs undefined slope. A horizontal line has slope 0 — it exists and is a number. A vertical line has UNDEFINED slope — it does not exist. Saying a vertical line has "slope 0" is wrong.

  • Perpendicular slopes: forgetting the negative. The perpendicular to a line of slope 22 has slope 1/2-1/2, not 1/21/2. The product must be 1-1; both the reciprocal AND the sign flip.

  • Point-slope form: wrong sign. yy1=m(xx1)y - y_1 = m(x - x_1) with point (3,2)(3, -2) gives y(2)=m(x3)y - (-2) = m(x - 3), i.e., y+2=m(x3)y + 2 = m(x-3). Students often write y2y - 2. Watch the sign.

  • Using two points on different lines. When asked for the slope of a given line, pick two points that are BOTH verified to be on that line. Picking a random point off the line and computing a slope gives the slope of a different line through the origin.

TL;DR

  • Slope m=y2y1x2x1m = \frac{y_2 - y_1}{x_2 - x_1} measures constant rate of change; it's the same between any two points on a line.

  • Slope-intercept form: y=mx+by = mx + b. Point-slope form: yy1=m(xx1)y - y_1 = m(x-x_1). Convert freely between them.

  • Horizontal lines: y=ky = k, slope 0. Vertical lines: x=hx = h, slope undefined (not zero).

  • Parallel: equal slopes. Perpendicular: slopes multiply to 1-1 (negative reciprocal). The product rule follows from rotating the slope triangle 90°.

  • "Linear" is the most important word in the rest of this course — it always describes something built on constant rate of change.

unlocks