the foot of perpendicular from the origin on the straight line is
Variable line is
Any line perpendicular to (l) and passing through the origin will be
Now foot of the perpendicular from the origin to line (l) is the point of intersection (1) and (2).
Squaring and adding (3) and (4), we get