So basically the question is to find the minimum value of the sum
$$f(x)=x+(1/x)$$
for any real number $x$.
I differentiated the function and found the values of $x$ for which $f'(x)=0$ as $-1$ and $1$.
Using the second derivative test I find that maximal is $-1$ and minimal is $+1$. But isn't this counter intuitive? Like, mere substitution tells us $f(-1)$ has a lower value than $f(1)$. Also if it is for any real number, shouldn't the minimal be at $x=-\infty$ and maxima at $x=\infty$?
What am I doing wrong?

