2.3.5Coordinate Geometry

Slope (gradient) — definition, formula, interpretation

1,854 words8 min readdifficulty · medium

WHAT is slope?

WHY define it as a ratio and not just "rise"? Because "rise" alone is meaningless without saying how far you ran. Climbing 33 metres over 11 metre horizontally is steep; climbing 33 metres over 100100 metres is nearly flat. The ratio normalises rise per unit run, so it measures true steepness.


HOW to derive the formula from first principles

Take any two distinct points on a line: A=(x1,y1)A=(x_1,y_1) and B=(x2,y2)B=(x_2,y_2).

Step 1 — measure the horizontal change (run). Moving from AA to BB, xx goes from x1x_1 to x2x_2, so Δx=x2x1.\Delta x = x_2 - x_1. Why this step? Run is just the horizontal displacement; displacement is always (final − initial).

Step 2 — measure the vertical change (rise). Similarly yy goes from y1y_1 to y2y_2, so Δy=y2y1.\Delta y = y_2 - y_1. Why this step? Rise is the vertical displacement, again (final − initial), and we must subtract in the same order as we did for xx.

Step 3 — take the ratio. m=y2y1x2x1,x2x1.\boxed{\,m = \frac{y_2 - y_1}{x_2 - x_1}\,}, \qquad x_2 \neq x_1. Why this step? Slope is defined as rise per run, so we divide Step 2 by Step 1.

WHY is the answer independent of which two points you pick? On a straight line, the triangles formed by different point-pairs are similar (same angle to the horizontal). Similar right triangles have equal ratios of corresponding sides, so Δy/Δx\Delta y/\Delta x is the same everywhere. This is exactly what makes "the slope of a line" a well-defined single number.


Figure — Slope (gradient) — definition, formula, interpretation

Interpretation — reading the sign and size

Link to angle. If a line makes angle θ\theta with the positive xx-axis, then in the right triangle rise =Δy=\Delta y is "opposite" and run =Δx=\Delta x is "adjacent", so m=ΔyΔx=oppositeadjacent=tanθ.m = \frac{\Delta y}{\Delta x} = \frac{\text{opposite}}{\text{adjacent}} = \tan\theta. Why? Tangent is opposite/adjacent by definition — slope is the tangent of the inclination angle.


Worked examples


Common mistakes (Steel-manned)


Active recall

Recall Cover and answer
  1. Define slope in words. → ratio of rise to run, Δy/Δx\Delta y/\Delta x.
  2. Which coordinate difference goes on top? → the yy's (rise).
  3. Slope of a horizontal line? → 00. Vertical line? → undefined.
  4. Slope =tan=\tan of what? → the angle θ\theta the line makes with the positive xx-axis.
  5. Why is slope the same for any two points on a line? → similar triangles ⇒ equal side ratios.
Recall Feynman: explain to a 12-year-old

Imagine walking up a ramp. Slope is a "cost tag": how many steps up do you get for each step forward? If the tag says 22, then every step forward makes you climb 22 up — steep! If it says 00, you never go up — flat floor. If the tag says a minus number, you're going downhill. And a wall going straight up? You can't "step forward" at all, so the cost tag makes no sense — that's why we call a vertical line's slope "undefined." To find the tag, pick two spots, see how much higher the second is (rise), see how much farther across it is (run), and divide.


Flashcards

What is the slope formula for two points (x1,y1),(x2,y2)(x_1,y_1),(x_2,y_2)?
m=y2y1x2x1m=\dfrac{y_2-y_1}{x_2-x_1}, with x1x2x_1\neq x_2.
In "rise over run", which coordinate is the rise?
The change in yy (Δy\Delta y).
What does a slope of m=0m=0 mean geometrically?
A horizontal line (no vertical change).
What is the slope of a vertical line?
Undefined (run =0=0, division by zero).
Slope equals the tangent of what angle?
The angle θ\theta the line makes with the positive xx-axis: m=tanθm=\tan\theta.
Why is a line's slope independent of the two chosen points?
The right triangles formed are similar, so their rise:run ratios are equal.
Slope through (1,2)(1,2) and (4,8)(4,8)?
8241=2\dfrac{8-2}{4-1}=2.
Slope through (2,5)(-2,5) and (2,3)(2,-3)?
352+2=2\dfrac{-3-5}{2+2}=-2.
What sign does an uphill (rising to the right) line have?
Positive slope.
Common trap: is x2x1y2y1\dfrac{x_2-x_1}{y_2-y_1} the slope?
No — that is the reciprocal; slope has yy on top.

Connections

  • Equation of a Straight Line — slope mm appears in y=mx+cy=mx+c and yy1=m(xx1)y-y_1=m(x-x_1).
  • Parallel and Perpendicular Lines — parallel: equal slopes; perpendicular: m1m2=1m_1 m_2=-1.
  • Angle of Inclinationm=tanθm=\tan\theta links slope to trigonometry.
  • Distance Formula & Midpoint Formula — companion coordinate-geometry tools using the same Δx,Δy\Delta x,\Delta y.
  • Derivative as a Slope — in calculus, the derivative is the slope of the tangent line (instantaneous rate of change).
  • Rate of Change — slope generalises to "how fast one quantity changes with another."

Concept Map

answered by

defined as

equals

measured between

run = final minus initial

rise = final minus initial

ratio gives

ratio gives

invalid when x1=x2

make ratio constant

sign shows

size shows

relates to

How steeply does line climb

Slope m

rise over run

dy over dx

Two distinct points

dx = x2 - x1

dy = y2 - y1

Two-point formula m = dy/dx

Vertical line undefined

Similar triangles

Uphill or downhill

Steep or shallow

Angle theta

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, slope ka matlab bas ek simple sawaal hai: "line kitni steep hai aur kis direction me jaa rahi hai?" Jab hum right ki taraf chalte hain (x badhata hai), to line kitna upar ya neeche jaati hai (y ka change) — usi ki ratio ko slope kehte hain. Formula hai m=y2y1x2x1m = \frac{y_2 - y_1}{x_2 - x_1}, yaani rise upon run, y top pe aur x bottom pe.

Sabse important cheez: subtraction ka order same rakhna. Agar y me pehle B liya to x me bhi pehle B lo, warna sign ulta ho jaayega. Positive slope matlab line uphill (right jaate hue upar), negative matlab downhill, zero matlab flat horizontal line, aur agar x2=x1x_2 = x_1 ho gaya to run zero, division by zero — matlab vertical line, jiska slope undefined hota hai (zero nahi, yaad rakhna!).

Ek aur mast baat: slope kisi bhi do points se nikaalo, answer same aayega, kyunki similar triangles ban-te hain — isliye ek line ka ek hi slope hota hai. Aur m=tanθm = \tan\theta, jahan θ\theta line ka angle hai x-axis se. Yeh cheez aage bahut kaam aati hai — straight line equation y=mx+cy = mx + c, parallel/perpendicular lines, aur calculus me derivative bhi to slope hi hai. Isliye is concept ko rise/run ke feel ke saath achhe se pakad lo.

Go deeper — visual, from zero

Test yourself — Coordinate Geometry

Connections