A fixed parabola $y^2 = 4 ax$ touches a variable parabola. Find the equation to the locus of the vertex of the variable parabola. Assume that the two parabolas are equal and the axis of the variable parabola remains parallel to the x-axis.
My approach, let the other parabola be $(y-k)^2 = -4 a(x-h)$, whose vertex is $(h,k)$. By hit and trial I tried to substitute the point$(\frac{h}{2},\frac{k}{2})$ and got the locus as $y^2 = 8 ax$ which is the answer but I am trying to get the answer through derivation
Other approach is The common tangent is $y=mx+\frac{a}{m}$ & $(y-k)=m(x-h)-\frac{a}{m}$ Equating the constant term $\frac{a}{m}=k-mh-\frac{a}{m}$ which is $\frac{2a}{m}=k-mh$, from this step I am confused.


What you need is that the system formed by the parabolas $y^2=4ax$ and $(y-k)^2=-4a(x-h)$ had only one solution (at the point of tangency). If you solve for $x$ in the first and substitute in the second, you get a quadratic equation for $y$ $$ 2y^2-2yk+k^2-4ah=0 $$ For this quadratic equation to have a unique solution you need its discriminant to be zero, That gives $$ 4k^2-8(k^2-4ah)=0 $$ which, after solving, gives the desired relation between $k$ and $h$ $$ k^2=8ah. $$