← Back to learning objective

Minimizing distance from a point to a curve

Consider the point (3,0)(3,0) and the curve y=xy = \sqrt{x}, defined for x≥0x \ge 0. We want to find the point on the curve that is closest to (3,0)(3,0).

A point on the curve y=xy = \sqrt{x} has coordinates (x,x)(x, \sqrt{x}) for x≥0x \ge 0. The distance from this point to (3,0)(3,0) is given by

D(x)=(x−3)2+x.D(x) = \sqrt{(x-3)^2 + x}.

Find the value of x≥0x \ge 0 that minimizes this distance, and state the minimum distance.

Hint

Since D(x)D(x) is minimized exactly when D(x)2D(x)^2 is minimized, it is easier to work with f(x)=(x−3)2+xf(x) = (x-3)^2 + x. Take the derivative, set it equal to zero, and check that the resulting critical point lies in the domain x≥0x \ge 0 and gives a minimum.

Step-by-step solution

To avoid differentiating a square root, minimize f(x)=D(x)2=(x−3)2+xf(x) = D(x)^2 = (x-3)^2 + x instead, since D(x)≥0D(x)\ge 0 and squaring preserves the location of minima. Expanding gives f(x)=x2−6x+9+x=x2−5x+9f(x) = x^2 - 6x + 9 + x = x^2 - 5x + 9. Differentiating, f′(x)=2x−5f'(x) = 2x - 5, and setting f′(x)=0f'(x) = 0 gives x=5/2x = 5/2, which lies in the domain x≥0x \ge 0.

Since f′′(x)=2>0f''(x) = 2 > 0 for all xx, the function ff is concave up everywhere, so x=5/2x = 5/2 is a global minimum on x≥0x\ge 0. Plugging back in, f(5/2)=(5/2)2−5(5/2)+9=25/4−25/2+9=11/4f(5/2) = (5/2)^2 - 5(5/2) + 9 = 25/4 - 25/2 + 9 = 11/4. Therefore the minimum distance is D(5/2)=11/4=112D(5/2) = \sqrt{11/4} = \dfrac{\sqrt{11}}{2}.

Related problems

Practice similar Calculus problems interactively.

Start Closing the Gap