Say we have a set containing the elements:
{$2x^2 + 2/x^2$: $ 1/2 < x < 2$}.
I intuitively (and graphically) know that the supremum and the infimum are 8.5 (and that they're not maximum nor minimum), but how do I actually prove that they're the supremum and infimum. How do I go about showing they're larger than/smaller than all elements in the function respectively? Nothing too advanced please, still learning the basics of analysis. Thanks!
Here you are essentially asking for the range of the function $f:(\frac{1}{2},2) \to \mathbb{R}$ defined by $f(x)=2x^2+2x^{-2}$. We can compute the derivative: $f'(x)=4x-4x^{-3}$. We see that $f'(x)=0$ implies $x=1$. Since $f$ is continuous, we can compute the limit at the boundary by substitution:
\begin{equation*} \lim_{x \to \frac{1}{2}^+} f(x) = \frac{17}{2}; \, \lim_{x \to 2^-} f(x) = \frac{17}{2} \end{equation*}
Furthermore, we have $f(1)=4$. We conclude that the given set has infinum $4$, which it attains, and suprenum $\frac{17}{2}$ which it does not attain.