2.3.10 · D4Coordinate Geometry

Exercises — Distance from a point to a line

2,154 words10 min readBack to topic

Before we start, one reminder that every symbol below is earned: are the three numbers in a line written as ; is the point you drop a perpendicular from; is the length of the normal vector (see Normal Vector to a Line). Keep the picture below in your head the whole time.

Figure — Distance from a point to a line

The red segment is the true distance — 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.


Level 1 — Recognition

Recall Solution 1.1

What we do: just read the coefficients off the standard form .

  • (the number in front of )
  • (front of keep the minus sign)
  • (the lone constant)

Since , this really is a line and the formula applies. The normal length: This is the length of the arrow 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 . If we get , the point is on the line. The result is exactly , so sits on the line. A point on the line has zero distance: This is the degenerate case: no perpendicular to drop, because you are already there.


Level 2 — Application

Recall Solution 2.1

. Why each step: substitute into the numerator (the line's "leftover" at ), divide by the normal length , take absolute value because distance cannot be negative. Answer: units.

Recall Solution 2.2

. Note: when the point is the origin, the numerator collapses to just . So distance from the origin is always .

Recall Solution 2.3

Step 1 — convert to standard form. The formula only accepts . Move everything to one side: So .

Step 2 — apply.


Level 3 — Analysis

Recall Solution 3.1

Step 1 — build the line. Slope through and : Point–slope, then clear fractions: Step 2 — apply. , point :

Recall Solution 3.2

Why they are parallel: both have the same , so the same normal direction — they never meet. Trick: distance between parallels needs only the two constants (with matched ): Check the logic: pick any point on the first line, say where : . Its distance to the second line is . ✓ Same answer.

Recall Solution 3.3

Step 1 — clear denominators to reach standard form. Multiply by : . Step 2 — apply at :


Level 4 — Synthesis

Recall Solution 4.1

Set up the equation from the formula: The denominator is a fixed positive number, so we may multiply both sides by it without flipping anything: The absolute value splits into two cases: Why two answers: the line can sit at distance on either side of . Both and are valid — geometrically these are two parallel lines straddling the point.

Recall Solution 4.2

A point on the -axis is . Set the two distances equal. Why we may cross-multiply: both denominators, and , are strictly positive numbers ( for each line). Multiplying an equation through by a positive quantity preserves it exactly, so: Remove the bars via two cases.

Case A (same sign): . Case B (opposite sign): .

So there are two such points: and . Sense check on Case B: at , left side , and the right side gives the same . ✓


Level 5 — Mastery

Recall Solution 5.1

Step 1 — line . and both have , so line is , i.e. : . Here , so it is a valid line. Step 2 — distance from : So the altitude from is . Step 3 — area two ways. Base , height : Cross-check with the coordinate area formula (see Area of Triangle Using Coordinates):

Recall Solution 5.2

Set up: distance to is distance to . Both normals have length and — happily equal (and both positive, so we may cancel them safely). The 's cancel: Squaring (or splitting the two sign cases) gives two straight lines (the locus is a pair):

Case A: , i.e. . Case B: .

Locus: the two lines and .

Recall Solution 5.3

Step 1 — standard form. Multiply through by : , so . (With we have , a valid line.) Step 2 — origin distance (numerator is just ): Step 3 — match the target form. Divide top and bottom by : Numeric: : .


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 to ::: Distance between parallels and (matched ) ::: Why two answers when solving ::: the line can lie at that distance on either side of the point When is the formula valid at all ::: only when , so that is a genuine line