We want to find the minimum distance between a pointand a line
If We label the point on the line which makes this distance a minimum
the we must find the distance
This distance will be a minimum when the lineis at a right angle to
This means that the dot product of
with the tangent vector
to
is
We can use this to find
and then the distance
Supposeand the equation of
is
We take the pointas having coordinates
so the vector
is
The tangent vector of the lineis
The dot product ofand the tangent vector is
Then