Question: 1-28. If $A \subset R^{n}$ is not closed, show that there is a continuous function $f: A \rightarrow R$ which is unbounded.
Hint : If $x \in R^{n} - A$ but $x \notin int(R^{n} - A)$, let $f(y) = \frac{1}{ \mid y-x \mid}$.
What I got so far:
Given $f(y) = \frac{1}{\mid y-x \mid}$, choose $p$ to be the point that's in the not closed set.
So, for $x \in A$ and $p \notin A$, our function becomes $f(x) = \frac{1}{\mid x-p \mid}$
By the continuous definition, for $ \epsilon > 0$ there exists a $\delta >0$ such that $\mid x-y \mid < \delta$ implies $\mid f(x)-f(y) \mid < \epsilon$.
$\mid \frac{1}{\mid x-p \mid} - \frac{1}{\mid y-p \mid} \mid < \epsilon$
$\mid \frac{\mid y-p \mid}{\mid y-p \mid} \cdot \frac{1}{\mid x-p \mid} - \frac{1}{\mid y-p \mid} \cdot \frac{\mid x-p \mid}{\mid x-p \mid} \mid < \epsilon$
$\mid \frac{\mid y-p \mid -\mid x-p \mid }{\mid y-p \mid \mid x-p \mid } \mid < \epsilon$
$\mid \frac{\mid y-p-x+p \mid }{\mid y-p \mid \mid x-p \mid } \mid < \epsilon$
$\mid \frac{\mid y-x \mid }{\mid y-p \mid \mid x-p \mid } \mid < \epsilon$
I need to find two Deltas but I'm not sure how to do that. Does it have something to do with using
$\mid \mid x \mid - \mid y \mid \leq \mid x-y \mid$ ?
Or maybe I'm doing this backwards because if I take the negative out of the numerator, I'll end up with $-\mid -y+x \mid$.