We want to find the minimum distance between a point and a line
and a line If We label the point on the line which makes this distance a minimum
If We label the point on the line which makes this distance a minimum the we must find the distance
the we must find the distance

This distance will be a minimum when the line is at a right angle to
is at a right angle to This means that the dot product of
This means that the dot product of with the tangent vector
with the tangent vector to
to is
is We can use this to find
We can use this to find and then the distance
 and then the distance
Suppose and the equation of
and the equation of is
is
We take the point as having coordinates
as having coordinates so the vector
so the vector is
is
The tangent vector of the line is
is
The dot product of and the tangent vector is
and the tangent vector is
Then
