Exercise :
Consider the set : $$K = \bigg\{ \frac{m}{n}+\frac{4n}{m} : m,n \in \mathbb N\bigg\}$$ Find $\inf K$ and $\sup K$.
Attempt :
$$\frac{m}{n}+\frac{4n}{m} = \frac{m^2 + 4n^2}{mn}$$
Now, it is :
$$\frac{m^2 + 4n^2}{mn} \geq 4 \Leftrightarrow (2n-m)^2 \geq 0$$
which holds $\forall \; n,m \in \mathbb N$. Also, it is :
$$\frac{m^2 + 4n^2}{mn} = 4 \Leftrightarrow m=2n$$
Thus $\exists \; n,m \in \mathbb N : \frac{m^2 + 4n^2}{mn} = 4$, thus $\inf K = 4$.
How should I proceed on finding $\sup K$ now ?
Note that $$ K = \bigg\{ \frac{m}{n}+4\frac{1}{\frac{m}{n}} : m,n \in \mathbb N\bigg\} $$ The rational numbers are dense in $\mathbb{R}\cup\{-\infty,+\infty\}$. Then the $\inf K$ and $\sup K$ coincide with the $\min f(x)$ and $\max f(x)$ for $$ f(x)=x+4\cdot \frac{1}{x} $$