The line equation is
.
Find the point that lies on the line.
\Consider the point be
and it is closest to the origin
.
Hence the point is
.
The distanc between the point and the origin is
\
The diatance is closest to origin when its first derivative becomes zero.
\Apply derivative on each side with respect to
.

.
Equate
to zero.

Substitute
in
.

Therefore the point lies on the line which is closest to origin is
.
The point lies on the line which is closest to origin is
.