Let $f:\mathbb R\to \mathbb R$ be function .
Define $2$ sets as A and B in $\mathbb R^2 $ as follows:
A={$(x,y)|y<f(x)$},B={$(x,y)|y>f(x)$} .
Then $f$ is continous on $\mathbb R$ iff A and B are open subset of $\mathbb R^2$
$\to $ to show A open that means for any $(a_1,a_2)\in A$ There exist some $r>0$ ball which contain in A .i.e $K=B_r((a_1,a_2))\subset A$
$(m,n)\in K$
As f is continous on R$\forall \epsilon >0,\exists \delta >0 $ such that $\forall x\in R$ $|x-y|<\delta$ then $|f(x)-f(y)|<\epsilon$
$f(a_1)>a_2$
I could not get idea to proceed further for any part.
Actually I don't able to understand how is this set look like.And How to use continuty assumption
Any help will be appreciated
Take $(x_a,y_a) \in A$. By hypothesis, you have $y_a < f(x_a)$. As $f$ is supposed to be continuous on $\mathbb R$, it exists $\delta > 0$ such that $\vert f(x) - f(x_a) \vert < \dfrac{f(x_a) - y_a}{2}$ for $\vert x - x_a \vert < \delta$.
Therefore $\dfrac{y_a + f(x_a)}{2}< f(x)$ for $\vert x- x_a \vert < \delta$. Now take $r = \inf\left(\dfrac{f(x_a) - y_a}{2},\delta \right)$
Let's prove that the open ball $B((x_a,y_a),r)$ is included in $A$.
For that, take $(x,y) \in B((x_a,y_a),r)$. By hypothesis, we have $$\sqrt{(x-x_a)^2 + (y-y_a)^2} < r$$ which implies $\vert x - x_a \vert < \delta$ hence $\dfrac{y_a + f(x_a)}{2}< f(x)$ as we saw above. We also have $y-y_a < \dfrac{f(x_a) - y_a}{2}$. Therefore $y < \dfrac{y_a + f(x_a)}{2}< f(x)$, proving that $(x,y) \in A$ as desired. This concludes the proof.