Algebra I & II · 30 min

The only shape with a slope

A line is the one curve whose steepness never changes. Slope is that single number. The plane, the three equation forms, and parallel-versus-perpendicular all fall out of it.

0 / 0

The plane is a set of pairs

The number line held one coordinate. Glue a second number line crossing it at a right angle and you get the Cartesian plane: every point is an ordered pair (x,y)(x, y).

Now the move that matters. An equation in two variables, like y=2x1y = 2x - 1, is not a thing to “solve.” It’s a filter. It looks at every point in the plane and keeps the ones that make the equation true. The set of survivors is the equation’s graph.

For y=2x1y = 2x - 1, the point (3,5)(3, 5) survives because 5=2(3)15 = 2(3) - 1. The point (3,4)(3, 4) does not. Plot every survivor and a shape appears. An equation is its solution set.

Slope is a rate, and a line keeps it constant

Take any two points on a graph. Going from one to the other you rise some amount and run some amount:

slope=riserun=ΔyΔx\text{slope} = \frac{\text{rise}}{\text{run}} = \frac{\Delta y}{\Delta x}

That ratio is the rate: how much yy changes per unit of xx.

Here’s what makes a line a line. On a curve, this ratio depends on which two points you pick. On a line, it is the same number no matter which two points you choose. That constant rate is the defining property. A line is the only graph with a single, location-independent slope, and that one number is the line’s whole identity.

-4-224-3-2-1123
slope m = 3/4 Δy = 3  /  Δx = 4
point-slope (A) y + 1 = 3/4(x + 2)
point-slope (B) y − 2 = 3/4(x − 2)

Drag the two anchor points. The blue and coral legs are the run and the rise. Drag one anchor along the line it’s already on: the slope readout does not move. Pick different points, get the same slope. That invariance is the lesson.

Rise over run

Find the slope of the line through (1,2)(1, 2) and (5,14)(5, 14).

Compute Δy\Delta y and Δx\Delta x, then divide. What is the slope?

Three forms, one line

A line has one slope, but you can write its equation several ways depending on which point you anchor to.

Slope-intercept, y=mx+by = mx + b: anchored at the spot where the line crosses the yy-axis. mm is the slope, bb is that crossing height.

Point-slope, yy0=m(xx0)y - y_0 = m(x - x_0): anchored at any point (x0,y0)(x_0, y_0) you already know is on the line. This is the more honest form, because a line doesn’t care which point you name it from.

Slope-intercept is just point-slope with the anchor forced to be (0,b)(0, b). Same line, same slope, different starting address. In the widget, both point-slope forms and the slope-intercept form update together as you drag, and they always describe the identical line.

Find the intercept

A line has slope 2-2 and passes through (3,1)(3, -1). Its equation is y=2x+by = -2x + b.

Substitute the point to find bb. What is bb?

Slope is geometric, not syntactic

A trap worth disarming now. In y=mx+by = mx + b, the slope is the number in front of xx. True. But that is a fact about that form, not about slope itself.

Given 3x+6y=123x + 6y = 12, the number in front of xx is 33, and the slope is not 33. Rearrange to slope-intercept: 6y=3x+126y = -3x + 12, so y=12x+2y = -\tfrac{1}{2}x + 2. The slope is 12-\tfrac{1}{2}.

Slope is rise over run, a geometric quantity. “The coefficient of xx” only reports it once the equation is in the one form built to display it. Get the equation into y=mx+by = mx + b before you read the slope off.

Parallel and perpendicular

Two non-vertical lines are parallel exactly when they have the same slope: m1=m2m_1 = m_2. Same steepness, never meeting. Nothing subtle there.

Perpendicular is the surprising one. Two lines cross at a right angle exactly when

m1m2=1m_1 \cdot m_2 = -1

Why? Rotating a direction by 90°90° sends a step of (Δx,Δy)(\Delta x, \Delta y) to a step of (Δy,Δx)(-\Delta y, \Delta x). The original slope is Δy/Δx\Delta y / \Delta x; the rotated slope is Δx/Δy-\Delta x / \Delta y. Multiply them and everything cancels to 1-1. So a perpendicular slope is the negative reciprocal: flip the fraction, flip the sign.

Turn the corner

A line has equation y=14x+7y = \tfrac{1}{4}x + 7. What is the slope of any line perpendicular to it?

Take the negative reciprocal. What is that slope?

Where this goes next

A line is one number’s worth of information: its slope. The intercept just says where it sits. Every learning model you will meet starts here, because the simplest model that can learn anything is a straight line, and “fit a line to data” is the seed of all of it.

g(f(x)) is one layer wired into the next. log(∏) = ∑(log) is why a million tiny probabilities don’t sink training. Everything that follows is those two facts at scale, and the line is the first object simple enough to see them coming.

Lesson complete

Nice tinkering.