Finding the minimum distance between 2 graphs

calculusmultivariable-calculusoptimization

I have 2 graphs $y = x$ and $y = x^2 + 1$. I need to find the minimum distance between the 2 of them.

I've determined the parametric equations for them:

$r(s) = (s, s)$

and

$r(t) = (t, t^2 + 1)$

I've determined the distance formula to be:

$d = \sqrt{(t-s)^2 +(t^2+1-s)^2}$

However, from this point I'm stuck. I know I need to do some form of partial differentiation.
I don't know what I need to do with partial derivatives with respect to s and t for me to determine the distance.

Best Answer

If you must use calculus instead of geometry, you would be much better off minimising the square of the distance. The partial derivatives are then pretty straight-forward. A point suspected of being a minimum will be a point where both partial derivatives are equal to zero. One partial derivative of $d^2$ is $$-2 (-s + t) - 2 (1 - s + t^2)$$ and the other is $$2 (-s + t) + 4 t (1 - s + t^2)$$ You can now find a point where both are equal to zero.