2.3.6Coordinate Geometry

Equations of a line — slope-intercept, point-slope, two-point, standard (ax+by+c=0)

1,707 words8 min readdifficulty · medium

WHY do we even want an equation for a line?

A line is an infinite set of points. We can't list them all. So we look for a condition that a point (x,y)(x,y) satisfies if and only if it lies on the line. That condition is the equation.

The key fact all forms rest on:


1. Point–slope form (the parent of all forms)

WHAT: the equation of a line through a known point (x1,y1)(x_1,y_1) with slope mm.

HOW (derive from scratch): Take any other point (x,y)(x,y) on the line. By the definition of slope, the slope computed between (x1,y1)(x_1,y_1) and (x,y)(x,y) must equal mm:

yy1xx1=m\frac{y-y_1}{x-x_1}=m

Multiply both sides by (xx1)(x-x_1) (allowed, since we then also allow the point (x1,y1)(x_1,y_1) itself):

Why this step? Multiplying clears the denominator so the point (x1,y1)(x_1,y_1) (which would make the fraction 0/00/0) is now legally included.


2. Slope–intercept form

WHAT: slope mm and where the line crosses the yy-axis (the yy-intercept cc).

HOW: The yy-intercept is the point (0,c)(0,c). Plug (x1,y1)=(0,c)(x_1,y_1)=(0,c) into point–slope: yc=m(x0)    yc=mxy-c=m(x-0)\;\Rightarrow\; y-c=mx

Why this step? Using (0,c)(0,c) as the known point makes x1=0x_1=0 vanish, isolating yy.


3. Two-point form

WHAT: line through two known points (x1,y1)(x_1,y_1) and (x2,y2)(x_2,y_2).

HOW: First get the slope from the two points, m=y2y1x2x1m=\dfrac{y_2-y_1}{x_2-x_1}, then substitute into point–slope:

yy1=y2y1x2x1(xx1)y-y_1=\frac{y_2-y_1}{x_2-x_1}(x-x_1)

Why this step? Two points fully determine a line — so we just compute the missing mm and reuse the parent form. Nothing new to memorize.


4. Standard (general) form

WHAT: every straight line — including vertical ones — can be written as ax+by+c=0,(a,b)(0,0).ax+by+c=0,\quad (a,b)\neq(0,0).

HOW: Start from y=mx+cy=mx+c' (rename intercept cc' to avoid clash). Move all to one side: mxy+c=0.mx - y + c' = 0. This has the shape ax+by+c=0ax+by+c=0 with a=m,  b=1,  c=ca=m,\;b=-1,\;c=c'. And when a line is vertical (x=kx=k), we write 1x+0yk=01\cdot x + 0\cdot y - k = 0 — impossible in slope–intercept but fine here.

Why this step? Solving for yy turns it back into slope–intercept, revealing mm and cc directly.

Figure — Equations of a line — slope-intercept, point-slope, two-point, standard (ax+by+c=0)

Worked examples


Common mistakes (steel-manned)


Convert-between-forms cheat map

Have Want slope–intercept Want standard
point + slope plug into yy1=m(xx1)y-y_1=m(x-x_1), expand expand then move to one side
two points get mm first, then as above same
standard ax+by+c=0ax+by+c=0 y=abxcby=-\frac ab x-\frac cb already there

Recall Feynman: explain to a 12-year-old

Imagine walking up a ramp. Every 1 step forward you go up the same amount — that "same amount" is the slope. If I tell you (a) where the ramp starts and (b) how steep it is, you can draw the whole ramp. Every "equation of a line" is just me telling you those two things in a slightly different wording. The y=mx+cy=mx+c way says "start at height cc, climb mm each step." The x=5x=5 way is a wall — straight up, no forward walking allowed, so we can't talk about "up per step" — that's why it needs its own form.


Active-recall flashcards

What is the definition of slope between two points?
m=y2y1x2x1=tanθm=\dfrac{y_2-y_1}{x_2-x_1}=\tan\theta, rise over run.
Point–slope form of a line through (x1,y1)(x_1,y_1) with slope mm?
yy1=m(xx1)y-y_1=m(x-x_1).
Slope–intercept form and what each letter means?
y=mx+cy=mx+c; mm=slope, cc=yy-intercept (value at x=0x=0).
Two-point form?
yy1xx1=y2y1x2x1\dfrac{y-y_1}{x-x_1}=\dfrac{y_2-y_1}{x_2-x_1}.
Standard form of a line?
ax+by+c=0ax+by+c=0 with (a,b)(0,0)(a,b)\neq(0,0).
Slope of ax+by+c=0ax+by+c=0?
m=abm=-\dfrac{a}{b} (needs b0b\neq0).
yy-intercept of ax+by+c=0ax+by+c=0?
cb-\dfrac{c}{b}.
xx-intercept of ax+by+c=0ax+by+c=0?
ca-\dfrac{c}{a} (set y=0y=0).
Equation of a vertical line through (k,y0)(k,y_0)?
x=kx=k (slope undefined).
Equation of a horizontal line through (x0,k)(x_0,k)?
y=ky=k (slope 00).
Why can't a vertical line use y=mx+cy=mx+c?
Its slope is undefined (run =0=0, division by zero).
How to find slope from two points then write the line?
Compute m=y2y1x2x1m=\frac{y_2-y_1}{x_2-x_1}, substitute into yy1=m(xx1)y-y_1=m(x-x_1).

Connections

  • Slope of a line — the single number all forms depend on.
  • Angle between two lines — uses tanθ=m1m21+m1m2\tan\theta=\left|\frac{m_1-m_2}{1+m_1m_2}\right|.
  • Parallel and perpendicular linesm1=m2m_1=m_2 and m1m2=1m_1m_2=-1.
  • Distance of a point from a line — uses the standard form ax+by+c=0ax+by+c=0.
  • Intercept form of a linexa+yb=1\frac xa+\frac yb=1.
  • Straight line as a first-degree equation — why degree-1 always means a line.

Concept Map

steepness of

passes through

substitute 0,c

used as point

compute slope

reused in

parent of

rearrange to one side

handles

parent of

Slope m = rise/run

Point-slope form

Slope-intercept form

Two-point form

Standard form ax+by+c=0

Known point x1,y1

Two points

y-intercept 0,c

Vertical line x=k

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, ek straight line basically ek rule hai: "jitna aage badho (Δx\Delta x), utna hi fixed upar/neeche jaao (Δy\Delta y)." Is fixed ratio ko hum slope mm bolte hain, matlab rise/run. Bas yahi ek number puri line ka steepness batata hai. Agar tumhe ek point aur slope pata hai, toh puri line draw ho sakti hai — isiliye saare forms sirf isi cheez ko alag-alag tareeke se likhte hain.

Sabse important point-slope form: yy1=m(xx1)y-y_1=m(x-x_1). Ye "parent" form hai. Agar point (0,c)(0,c) le lo toh ye ban jaata hai slope-intercept y=mx+cy=mx+c (yahan cc = jahan line yy-axis ko kaatti hai). Do points diye ho toh pehle m=y2y1x2x1m=\frac{y_2-y_1}{x_2-x_1} nikalo, phir wahi parent form. Aur standard form ax+by+c=0ax+by+c=0 sabse general hai — ye vertical line (x=5x=5 type) ko bhi handle kar leta hai, jabki y=mx+cy=mx+c nahi kar sakta.

Ek cheez yaad rakhna jismein log galti karte hain: standard form ka slope ab-\frac{a}{b} hota hai, minus ke saath. Quick check: 3x+4y12=03x+4y-12=0 neeche ki taraf jaati hai, toh slope negative hona chahiye — 3/4-3/4. Sahi! Aur vertical line ka slope undefined hota hai (run zero, divide by zero), isliye uske liye x=kx=k likho.

80/20 funda: agar tum point-slope form aur slope ki definition rat lo, baaki teen forms tumhe khud derive karne aa jaayenge. Kuch alag se ratne ki zaroorat nahi — sab ek hi cheez ke roop hain.

Go deeper — visual, from zero

Test yourself — Coordinate Geometry

Connections