I'm having some trouble in understanding the definition of an open set.
Fix a set $X \subset R^N $. A set $A \subset X$ is open (relative to X) if for every $ x \in A$ there is an $\epsilon >0$ such that $|x'-x|<\epsilon$ and $x'\in X$ implies $x'\in A$
I don't get it. How could there be $|x'-x|$ such as there is no number $\epsilon$ greater as $|x'-x|$? Could somebody please give me an example of such situation?
Example: The set $A=(0,1)$ is open in $X=\mathbb{R}$.
Indeed, for every $x\in(0,1)$ there is an $\varepsilon = \min\{\frac{1-x}{2},\frac{x}{2}\}$ such that if $x'\in\mathbb{R}$ satisfies $|x'-x|<\varepsilon$ then
$$|x'-x|<\frac{x}{2}\Rightarrow x'>\frac{x}{2}>0$$ and $$|x'-x|<\frac{1-x}{2}\Rightarrow x'-x<\frac{1-x}{2}\Rightarrow x'<\frac{1+x}{2}<1$$
Which means that $x'\in(0,1)$. Therefore $A$ is open in $\mathbb{R}$.
Geometrically you show that for every point $x\in(0,1)$ you can find a small interval $(x-\varepsilon,x+\varepsilon)$ which is contained in $(0,1)$.
If you're still confused try to show that $A=(0,1]$ is not open (pick $x=1$ and show there is no $\varepsilon>0$ with the given property).