I am having a difficult time proving problem 2.16 (specifically that $E$ is closed) in Rudin's Principles of Mathematical Analysis.
I realize that this question has been asked before here, but I believe my question is different enough to warrant a new question.
The problem asks:
Regard $\mathbb{Q}$, the set of all rational numbers, as a metric space with $d(p,q) = \vert{p-q}\vert$. Let $E$ be the set of all $p \in \mathbb{Q}$ such that $2
My attempt:
By definition $E$ is closed if every limit point of $E$ is an element of $E$.
Thus, we want to show that if a point $p$ is a limit point of $E$, $p \in E$, that is $2
To do this, let $p$ be a limit point of $E$.
We then know that
$$\forall r> 0, \exists q :d(p,q) < r$$
In other words
$$ \forall r> 0, \exists q : q-r < p < q + r$$
Now squaring the inequality gives
$$ q^2-2qr + r^2 < p^2 < q^2 + 2qr + r^2 $$
Thus I would like to find an $r$ such that $2
Moreover, I've seen similar problem to this one, in which the set $E$ is proven to be closed by showing that the complement of $E$ is open. Is this usually the easier route to take? In this case it would seem to require more work.
I just have a hard time understanding where solvers obtain their $r$ values from, they seem to come out of thin air...