Find the ratio in which the perpendicular from $(4,1)$ to the line segment joining the points $(2,-1)$ and $(6,1)$ divides the segment.
My Approach:
Equation of the line joining the points $(2,-1)$ and $(6,1)$ is given by: $$y-y_1=\frac {y_2-y_1}{x_2-x_1} (x-x_1)$$ $$y+1=\frac {2}{4} (x-2)$$ $$y+1=\frac {1}{2} (x-2)$$ $$2y+2=x-2$$ $$x-2y-4=0$$.
I got stuck at here. Please help me to complete.