Given a line segment L(x_{1},y_{1})
to (x_{2},y_{2}) and a Point P(x_{3},y_{3}).
I need the formula to find a point on the line L that is closest to
the point (x_{3},y_{3}).

Please help!
Meenakshi.

Hi Meenakshi,

First write the equation of the line through (x_{1},y_{1}) and (x_{2},y_{2}).

The line through (x_{3},y_{3}) and perpenducular to the above line is

The point you want is the point of intersection of these two lines.