Point-to-line distance formula

点到直线的距离公式

What is the point-to-line distance formula?

Substitute the point into the general form; take the absolute value and divide by the square root of the sum of the squares of the coefficients.

TheoremKP000629

Sign in to read the whole lesson, with 1 interactive aid, 11 exercises

Sign in / Sign up

Mastery goals

  • Can compute the distance from a point to a line using ∣Ax₀+By₀+C∣/√(A²+B²)

2.3.3 The point-to-line distance formula

The distance from the point to the line is the length of the perpendicular segment from to , where is the foot of the perpendicular (Figure 2.3-5). So if we find the coordinates of the foot and then use the distance formula for two points to find , we get the distance from to .

Suppose and . Since and the slope of is , the slope of the perpendicular is . So the equation of is , that is, .

Solving the system

gives the intersection point of and , that is, the foot , with coordinates

Then

Therefore the distance from the point to the line is

It can be checked that the formula still holds when or .

In the method above, if the foot has coordinates , then

Can you give the geometric meaning of ②? Using the system ①, can you find directly and from it ? Give it a try!

As in Figure 2.3-6, the distance from the point to the line is the magnitude of the vector .

xynlOP1P2PQM
Figure 2.3-6: ; is any point on the line , and are two points on , and is the foot of the perpendicular; is a unit vector perpendicular to a direction vector of .

Let be any point on , and let be a unit vector perpendicular to a direction vector of . Then is the projection vector of onto , and .

Let and be any two points on the line . Then is a direction vector of . Subtracting from gives . By the dot product of plane vectors, the vector is perpendicular to the vector . The vector is then a unit vector perpendicular to a direction vector of . Take . Then

Since the point is on , , so . Substituting gives

Therefore

Example 5

Find the distance from the point to the line .

Analysis: Write the equation of as and then use the point-to-line distance formula.

Solution: The distance from to the line is

Related points

All points in this topic

Cite this page: Point-to-line distance formula · KnowledgeTree (知识树), https://www.knowledgetree.world/en/kp/KP000629