Prove that $S= \{ (x,y) : x^2 - y^2 < 1 \}$ is open in $\mathbb{R}^2.$
The question itself is rather easy and trivial by observing the $S$ in $\mathbb{R}^2$ geometrically. But if we are restricted to prove the above by using the definition of open set ONLY, how should we write down the proof formally?
A set $P$ is called open if for every $x \in P$, there exists $r>0$ such that $B(x, r) \subset P$.
Particularly, in this question, what value of $r$ should we choose for a given $(x,y) \in S$?
Thanks in advance.
Calculating the exact distance between a disc and the given set can indeed be iffy since a fourth order equation appears, but fortunately it is also unnecessary. Instead, observe that a disc of radius $a$ is a subset of a square with sides $2a$. Also, the upper branch of the border $\partial S$ is an increasing function. Therefore, given $(x,y>0)\in S$, take a disc with radius $r=\min\left(y,(y-x+1)/2\right)$ (this follows from the consideration of the square). You will have to check that $r>0$. For this, note that the assumption that $x\geq y-1$ leads to $(x,y)\not \in S$.
For $y=0$, use $r=(1-x)/2$ instead.