Find the shortest distance from the point $(1, 0)$ to the parabola $y^2 = 4x$.
As-
Let $D^2=(x-1)^2 + y^2$. Now reduce this to one variable by putting $y^2 = 4x$ to get $D^2 = (x-1)^2+ 4x$. We are working with $D^2$ to make the calculations easier. Clearly $$\frac{d}{dx}D^2 = 2(x-1)+4 = 0 \implies x = -1$$ At $x = -1$, we have $\frac{d^2}{dx^2}D^2 = 2 < 0$ which shows that $D^2$ is minimum. At this $x = -1$.
But this is not a point on parabola. Am i doing some mistake or we have to follow some other method to get the minima?
hint
$$D^2=(x+1)^2$$ $$=(\frac{y^2}{4}+1)^2$$
$D$ is minimal when $y=0$.