Using optimality conditions, we want to show that for all positive $x$, we have $$\frac{1}{x}+x\geq 2\quad (1).$$
I think that the above problem is equivalent to showing that $1/x+x-2\geq 0, \forall x>0$. Let $f(x)=1/x+x-2$. Then I used the optimality conditions to get: $$f'(x)=-\frac{1}{x^2}+1$$ which is equal to zero iff $x=1$. And also $$f''(x)=-\frac{2}{x^3}$$ which is positive iff $x$ is negative or negative iff $x$ is positive. So, for $x>0$ we have a maximum point at $x=1$. But can we show that $f$ is non-negative?
I am not sure what I did wrong here. I'd appreciate any help. Thank you.
$f(x) = x + x^{-1}, \; \Bbb 0 < x \in \Bbb R; \tag 1$
$f'(x) = 1 - x^{-2} = 0 \Longrightarrow x = 1; \tag 2$
$f''(x) = 2x^{-3}; \tag 3$
$f''(1) = 2 \Longrightarrow 1 \; \text{is a local minimum of} \; f(x); \tag 4$
note that
$0 < x < 1 \Longrightarrow f'(x) < 0; \; 1 < x \Longrightarrow f'(x) > 0, \tag 5$
which implies that in fact $x = 1$ is a global minimum for $f(x)$; also,
$f(1) = 2, \tag 6$
and thus we conclude that
$f(x) \ge 2, \; \forall 0 < x \in \Bbb R. \tag 7$