Calculus — solved exercise (High school)
Statement
Let the line \\(x=m\\) intersect the graphs of the functions \\(f(x)=x^2\\) and \\(g(x)=\ln x\\) at points \\(P\\) and \\(Q\\) respectively. Find the value of \\(m\\) when the distance \\(|PQ|\\) is minimized.
Strategy
Since both points have the same abscissa $m$, the distance $|PQ|$ is the vertical distance between their ordinates. We minimize this distance for $m>0$, because $\ln m$ is defined only for $m>0$.
Step-by-step solution
1. Coordinates of the two points
For the line $x=m$, we have
$$P=(m,m^2), \qquad Q=(m,\ln m).$$
Thus
$$|PQ|=|m^2-\ln m|.$$
📖 The distance between two points with the same $x$-coordinate is the absolute value of the difference of their $y$-coordinates.
2. Define the function to minimize
Let
$$h(m)=m^2-\ln m, \qquad m>0.$$
We minimize $h(m)$ because $h(m)$ is positive at its minimum, so $|m^2-\ln m|=m^2-\ln m$.
📖 The domain is $m>0$. The function $h$ tends to $+\infty$ as $m\to 0^+$ and as $m\to +\infty$, so it admits a global minimum if it has a critical point.
3. Find the critical point
Differentiate:
$$h'(m)=2m-\frac{1}{m}.$$
Set $h'(m)=0$:
$$2m-\frac{1}{m}=0.$$
Since $m>0$, multiply by $m$:
$$2m^2-1=0,$$
so
$$m^2=\frac12,$$
therefore
$$m=\frac{1}{\sqrt2}=\frac{\sqrt2}{2}.$$
📖 A differentiable function has a local extremum only at points where the derivative is zero, provided the point is inside the domain.
4. Check that it is a minimum
The second derivative is
$$h''(m)=2+\frac{1}{m^2}.$$
For every $m>0$, $h''(m)>0$, so $h$ is strictly convex and the critical point gives a global minimum.
📖 If the second derivative is positive on an interval, the function is convex; hence its unique critical point is the global minimum.
Result
The distance $|PQ|$ is minimized when
$$\boxed{m=\frac{1}{\sqrt2}=\frac{\sqrt2}{2}}.$$
Question-by-question check (two independent resolutions)
| Let the line \(x=m\) intersect the graphs of the functions \(f(x)=x^2\) and \(g(x)=\ln x\) at points \(P\) and \(Q\) respectively. Find the value of \(m\) when the distance \(|PQ|\) is minimized. | sqrt(2)/2 | ✔ |
Key concepts
vertical distancederivativecritical pointsecond derivative testglobal minimum
Tip
Always remember the domain of $\ln x$: here $m$ must be positive. Since the two points lie on the same vertical line, the distance is simply the difference between the two function values.
Have a similar exercise? Get it solved step by step, for free.
🧮 Solve my exercise