I just read at the library how to prove that $\frac{1}{x}$ does not have an upper bound. The idea was to use proof by contradiction. I tried to do the exercise one more time at home, and now I am not sure anymore if my solution is correct. Here is my attempt:
Given the function $f=\frac{1}{x}$ defined on the interval $I=]{0,+\infty}[$
We suppose that this function has an upper bound $M$, which means that $$\forall x \in I \quad \frac{1}{x} \leq M$$
We can consider only the case when $M \gt 0$ because $\forall x \in I$ $\quad \frac{1}{x} \gt0$
Because $M$ is an upper bound, we have $$M+1 \le\frac{1}{x}$$ but that means that $M+1 \le\frac{1}{x}\le M$ which is a contradiction.
Is this correct?
As pointed out in the comments, this is not correct. However, you can take: $$x = \frac{1}{M+1}$$ So that: $$\frac{1}{x}= M+1 > M$$ A contradiction.