Before we start, one reminder that every symbol below is earned: a,b,c are the three numbers in a line written as ax+by+c=0; (x1,y1) is the point you drop a perpendicular from; a2+b2 is the length of the normal vector(a,b) (see Normal Vector to a Line). Keep the picture below in your head the whole time.
The red segment is the true distance d — the perpendicular drop. The grey slanted segment is any other path; it is the hypotenuse of a right triangle, so it is always longer. That is why we only ever measure perpendicular distance.
What we do: just read the coefficients off the standard form ax+by+c=0.
a=5 (the number in front of x)
b=−12 (front of y — keep the minus sign)
c=26 (the lone constant)
Since a2+b2=25+144=169>0, this really is a line and the formula applies.
The normal length:a2+b2=52+(−12)2=25+144=169=13.
This 13 is the length of the arrow (5,−12) that sticks out perpendicular to the line. We will divide by it in every distance calculation.
Recall Solution 1.2
What we do: plug the point into the left side ax+by+c. If we get 0, the point is on the line.
2(3)−(4)−2=6−4−2=0.
The result is exactly 0, so P sits on the line. A point on the line has zero distance:
d=22+(−1)2∣0∣=0.
This is the degenerate case: no perpendicular to drop, because you are already there.
a=3,b=4,c=−5,(x1,y1)=(7,−2).
d=32+42∣3(7)+4(−2)+(−5)∣=25∣21−8−5∣=5∣8∣=58=1.6.Why each step: substitute into the numerator (the line's "leftover" at P), divide by the normal length 5, take absolute value because distance cannot be negative. Answer: 58 units.
Recall Solution 2.2
a=8,b=−15,c=34,(x1,y1)=(0,0).
d=82+(−15)2∣8(0)−15(0)+34∣=64+225∣34∣=28934=1734=2.Note: when the point is the origin, the numerator collapses to just ∣c∣. So distance from the origin is always a2+b2∣c∣.
Recall Solution 2.3
Step 1 — convert to standard form. The formula only accepts ax+by+c=0. Move everything to one side:
y=2x+1⇒2x−y+1=0.
So a=2,b=−1,c=1.
Step 1 — build the line. Slope through (1,1) and (4,5):
m=4−15−1=34.
Point–slope, then clear fractions:
y−1=34(x−1)⇒3y−3=4x−4⇒4x−3y−1=0.Step 2 — apply.a=4,b=−3,c=−1, point (2,−3):
d=16+9∣4(2)+(−3)(−3)+(−1)∣=5∣8+9−1∣=516=3.2.
Recall Solution 3.2
Why they are parallel: both have the same a,b=(6,8), so the same normal direction — they never meet.
Trick: distance between parallels needs only the two constants (with matcheda,b):
d=a2+b2∣c1−c2∣=62+82∣−9−5∣=10014=1014=1.4.Check the logic: pick any point on the first line, say where x=0: 8y−9=0⇒y=89. Its distance to the second line is 10∣6(0)+8(9/8)+5∣=10∣9+5∣=1.4. ✓ Same answer.
Recall Solution 3.3
Step 1 — clear denominators to reach standard form. Multiply by 12:
4x+3y=12⇒4x+3y−12=0.a=4,b=3,c=−12.
Step 2 — apply at (6,6):
d=16+9∣4(6)+3(6)−12∣=5∣24+18−12∣=530=6.
Set up the equation from the formula:
2=32+42∣3(1)+4(2)+k∣=5∣11+k∣.
The denominator 32+42=5 is a fixed positive number, so we may multiply both sides by it without flipping anything:
∣11+k∣=10.
The absolute value splits into two cases:
11+k=10⇒k=−1,11+k=−10⇒k=−21.Why two answers: the line can sit at distance 2 on either side of P. Both k=−1 and k=−21 are valid — geometrically these are two parallel lines straddling the point.
Recall Solution 4.2
A point on the x-axis is (t,0). Set the two distances equal.
9+16∣3t−4(0)+12∣=144+25∣12t−5(0)−26∣5∣3t+12∣=13∣12t−26∣.Why we may cross-multiply: both denominators, 25=5 and 169=13, are strictly positive numbers (a2+b2>0 for each line). Multiplying an equation through by a positive quantity preserves it exactly, so:
13∣3t+12∣=5∣12t−26∣,i.e.∣39t+156∣=∣60t−130∣.
Remove the bars via two cases.
Case A (same sign):39t+156=60t−130⇒286=21t⇒t=21286.
Case B (opposite sign):39t+156=−(60t−130)⇒99t=−26⇒t=−9926.
So there are two such points: (21286,0) and (−9926,0).
Sense check on Case B: at t=−9926, left side =5∣3(−26/99)+12∣=5∣−78/99+12∣=51110/99=99222=3374, and the right side gives the same 3374. ✓
Step 1 — line AB.A(0,0) and B(8,0) both have y=0, so line AB is y=0, i.e. 0⋅x+1⋅y+0=0: a=0,b=1,c=0. Here a2+b2=0+1=1>0, so it is a valid line.
Step 2 — distance from C(3,6):d=02+12∣0(3)+1(6)+0∣=16=6.
So the altitude from C is 6.
Step 3 — area two ways. Base AB=8, height 6:
Area=21⋅8⋅6=24.
Cross-check with the coordinate area formula (see Area of Triangle Using Coordinates):
Area=21∣xA(yB−yC)+xB(yC−yA)+xC(yA−yB)∣=21∣0+8(6)+3(0)∣=21(48)=24.✓
Recall Solution 5.2
Set up: distance to L1 is 2× distance to L2. Both normals have length 42+(−3)2=5 and 32+42=5 — happily equal (and both positive, so we may cancel them safely).
5∣4x−3y+1∣=2⋅5∣3x+4y−7∣.
The 5's cancel:
∣4x−3y+1∣=2∣3x+4y−7∣.
Squaring (or splitting the two sign cases) gives two straight lines (the locus is a pair):
Case A:4x−3y+1=2(3x+4y−7)⇒4x−3y+1=6x+8y−14⇒−2x−11y+15=0, i.e. 2x+11y−15=0.
Case B:4x−3y+1=−2(3x+4y−7)⇒4x−3y+1=−6x−8y+14⇒10x+5y−13=0.
Locus: the two lines 2x+11y−15=0 and 10x+5y−13=0.
Recall Solution 5.3
Step 1 — standard form. Multiply through by pq: qx+py−pq=0, so a=q,b=p,c=−pq. (With p,q=0 we have a2+b2=q2+p2>0, a valid line.)
Step 2 — origin distance (numerator is just ∣c∣):
d=q2+p2∣−pq∣=p2+q2∣pq∣.Step 3 — match the target form. Divide top and bottom by ∣pq∣:
d=p2q2p2+q21=q21+p211.✓Numeric:p=3,q=4: d=9+163⋅4=512=2.4.
Recall One-line self-test
The lines below are written as Prompt ::: Answer — read the part before the triple colon, try to answer it, then check against the part after.
Distance from (x1,y1) to ax+by+c=0 ::: d=a2+b2∣ax1+by1+c∣
Distance between parallels ax+by+c1=0 and ax+by+c2=0 (matched a,b) ::: a2+b2∣c1−c2∣
Why two answers when solving ∣11+k∣=10 ::: the line can lie at that distance on either side of the point
When is the formula valid at all ::: only when a2+b2>0, so that ax+by+c=0 is a genuine line