I had come across this question:
A line $OB$ meets the circle $$x^2+y^2-ax=0$$ at $B$. From $B$, draw a line $BC$ perpendicular to $x$-axis and draw a line $CM$ perpendicular to $OB$. Then, what is the locus of $M$?
I tried thinking of various ways to proceed, however I couldn't form any idea in my mind.
It would be helpful if someone could hint at an approach to this question.
Is there a better way rather than solving for each and every point?


This is a solution without trigonometry. The $x$-coordinate of point $B$, which is the intersection of the line $y=kx$ and the circle $y^2=ax-x^2$, is obtained by setting $kx=\sqrt{ax-x^2}$. This gives
$$X_B=\frac{a}{k^2+1}\\ $$
Since this is also the $x$-coordinate of $C$, we get that the coordinates of $C$ are
$$C\left(\frac{a}{k^2+1},0 \right)$$
The line $CM$ must have an angular coefficient equal to $-1/k$. Since it passes through $C$, we have $0=-1/k \cdot a/(k^2+1) + z$. This leads to $z=a/[k(k^2+1)]$. Thus, the line $CM$ has equation
$$y=-\frac{1}{k} x + \frac{a}{k(k^2+1)}$$
Now if we call $x,y$ The coordinates of $M$, they satisfy
$$y=-\frac{1}{k} x+ \frac{a}{k(k^2+1)} $$
and because $k=y/x$, substituting we have
$$ y^2 =\sqrt{a} x^{3/2} - x^2$$
This is the graph of the locus for $a=5$.