🧮 Algebra
📈Equation of a Straight Line
Every line carries an ID card — m says how it climbs, b says where it starts.
Every line a ruler can draw — steep or flat — fits into one short formula. Read it well and two letters will tell you what the whole line looks like. The letters and work exactly like the variables you trained in Variables & the Function Machine.
y = mx + b: every letter has a job
- is the slope: how steeply the line climbs;
- is the intercept: where the line meets the y-axis — its starting point when ;
- Plot every point that satisfies the formula and they line up, perfectly straight.
Take : when , , so the line sets off from ; each time grows by 1, grows by 2.
Slope m: rise over run
Slope answers one question: for each step forward, how far do you climb?
The Greek letter (delta) means "change": is how much y changed, is how much x changed. For example, a line passing through and :
One step right, two steps up. The bigger is, the steeper the line: with the line climbs to the right, with it slides downhill.
Why the line is straight
Pick any two points on the line and the slope comes out the same. A rate of change that never wavers is what "straight" means in algebra.
Horizontal and vertical lines
Two lines deserve a closer look:
- Horizontal lines, like : x moves, y never budges, so the slope is — no tilt at all;
- Vertical lines, like : y moves, x never budges. This is the one line cannot write — , and dividing by zero has no meaning, so a vertical line has no slope.
m and b in real life
A phone plan: 19 yuan per month, plus 3 yuan per GB of data. Let be the GB used and the bill:
is the rate of change: each extra GB costs 3 more yuan. is the starting point: the monthly fee you pay even with zero data. At 10 GB, yuan.
Plenty of real situations share this shape: is the fixed base, is the pay-per-use part.
Line Lab
y = x + 2
y-intercept
(0, 2)
x-intercept
(-2, 0)
Drag the sliders for and . Move only first and watch the whole line slide; then move only and watch it pivot around the intercept — flatter, steeper, uphill to downhill.
Check yourself
Quick quiz
1. A line passes through (0, 5) and rises 2 for every 1 it moves right. What is its equation?
2. Which line is steepest?
3. The plan is 19 yuan per month plus 3 yuan per GB. What does 10 GB cost?