In Euclidean geometry, the distance from an external point to a straight line is defined as the length of the shortest segment connecting the point to the line. This shortest path always meets the line at a right angle ().
In coordinate geometry, the perpendicular distance from any point to a straight line can be evaluated directly through a single, elegant algebraic formula:
This formula is one of the most powerful tools in analytical geometry, forming the cornerstone for finding circle tangents, computing triangle altitudes, and determining the distance between parallel lines.
1. Concepts & Geometric Proof
Geometric Setup and Projection
Let be a line with general equation , having normal vector .
Let be any given point in the plane, and let be the orthogonal projection (the foot of the perpendicular) of onto .
The distance is the length of segment :
Take any arbitrary point on line . Because lies on , its coordinates satisfy:
Consider the displacement vector from to :
The length of the projection of onto the normal vector equals the perpendicular height :
Expanding the dot product in Cartesian coordinates:
Since , this simplifies directly to:
Dividing by the magnitude , we establish the formula:
Distance Between Two Parallel Lines
Consider two parallel lines with identical normal coefficients and :
Picking any point on , we have .
The distance from to is:
Formula Box
Distance Formulas Toolkit
Point-to-Line Distance:
where is the point and is the line in general form.
Distance from Origin :
Distance Between Parallel Lines:
(Crucial: coefficients and must be made strictly identical before applying this shortcut).
2. Step-by-Step Paper Notebook Method
3. Worked Notebook Examples
Example 1: Classic Distance Calculation
Problem: Calculate the distance from point to the line .
Step 1: Identify coefficients and coordinates
,
, ,
Step 2: Compute the numerator
Taking absolute value:
Step 3: Compute the denominator
Step 4: Divide numerator by denominator
Final Answer:
Example 2: Distance from Origin and Line in Slope Form
Problem: Find the distance from the origin to the line .
Step 1: Convert to general form
Multiply by :
Here , , .
Step 2: Apply the origin distance formula
Step 3: Simplify
Final Answer:
Example 3: Distance Between Parallel Lines
Problem: Find the distance between the two parallel lines:
Step 1: Normalize coefficients to match
Notice the coefficients of are twice those of :
Now both lines share and :
For :
For :
Step 2: Apply parallel line distance formula
Step 3: Evaluate
Final Answer:
4. Common Mistakes & Paper Traps
[!WARNING]
Dropping the Absolute Value Bars: Evaluating and reporting . Distance is a geometric length and is strictly non-negative ().
Using Slope-Intercept Directly: Plugging and into the formula without rearranging into .
For , you must first write , giving .
Unmatched Parallel Coefficients: Computing between and directly. You must divide the second equation by first so that and are identical!
5. Pencil & Paper Practice
Try these problems in your notebook:
Practice 1
Find the distance from point to line .
Practice 2
Find the distance from point to the vertical line .
Practice 3
Calculate the distance between parallel lines and .
Worked Solutions
Solution to Practice 1:
Point .
Line .
Answer: .
Solution to Practice 2:
Convert to general form: .
(Notice this matches the simple 1D horizontal difference: .)Answer: .
Solution to Practice 3:
Both lines have and .
Constants are and .
Answer: .
Test yourself
What is the distance from point to the line ?
What happens when you calculate and the numerator ?
The distance is undefined.
The line is vertical.
The point lies directly on the line .
The point is at the origin.
What is the distance between the parallel lines and ?