Question:
Find the smallest value of positive constant $m$ that will make curve
$$y=mx-1+\dfrac{1}{x}$$
Greater than or equal to zero for all positive values of $x$?
My attempt:
By $AM\geq GM$
$mx+ \dfrac {1}{x} \geq 2.\sqrt{m}$
so,
for curve to attain positive or zero value
$2\sqrt m -1\geq 0\implies m\geq1/4$
giving minimum value $m=0.25$.
But I want to ask how to do this problem using only calculus without using inequalities because in my sheet, this problem was under the calculus section so I want to do it using calculus only. Thank you
A purely mechanical way would be to find the minimum value of $f(x)$ and find the $m$ that satisfy $f(x) \ge 0$, where $f(x) = mx -1 + \frac 1x$ and $x>0$.
$$\begin{align*} f'(x) &= m -\frac{1}{x^2}\\ f''(x) &= \frac{2}{x^3}\ge 0 \end{align*}$$
Minimum of $f(x)$ is at $f'(x) = 0$,
$$\begin{align*} m &= \frac{1}{x^2}\\ x &= \frac1{\sqrt{m}}\\ f\left(\frac1{\sqrt m}\right)&\ge 0\\ \sqrt m -1 + \sqrt m &\ge 0\\ \sqrt m &\ge \frac12\\ m &\ge \frac14 \end{align*}$$
Though the question and the calculation above consider only $m > 0$, if $m\le 0$, $$f(2) = 2m - 1 + \frac12 = 2m - \frac{1}{2} \le -\frac 12 < 0$$
So no $m\le 0$ satisfies the condition.