I found a problem in calculus lecture notes where it is asked to find the supremum for the follownig set $X = [0, \sqrt{2}] ∩ Q$
I assumed that the $\sup X = \sqrt{2}$
Then I wrote (according to definition of supremum)
- For every x $\in X, x \leqslant \sqrt{2}$.
- For every $\varepsilon > 0$ There exists $x\varepsilon \in X$, such that $x\varepsilon > \sqrt{2} - \varepsilon$
Problem - Now I'm confused because I don't know which $x\varepsilon$ to choose so it would belong to to $X$ and be more than $\sqrt{2} - \varepsilon$. Is there anything wrong with what I wrote?
supplementary - Also, could you please explain what would be in case of $X = [0, \sqrt{2}) ∩ I$?
HINT
$\exists (q_n)\subseteq \mathbb{Q}$ s.t it is increasing and $q_n\to\sqrt{2}$