Example
Plot the shortest distance and compute it exactly.
highlighted = computed this step
Step 1 — Plot point and line
Plot the point, line, and perpendicular distance.
Coordinate plot
Step 2 — Point and line
Read the point and standard-form line.
P=(3,4)1x+2y−2=0
Step 3 — Numerator
Substitute the point into the numerator.
∣1⋅3+2⋅4−2∣=9
Step 4 — Denominator
Compute the square-root denominator.
12+22=5
Step 5 — Exact distance
Write the exact point-to-line distance.
d=9/5=95/5
distance-point-to-line
d = |ax0 + by0 + c| / √(a^2 + b^2)