Assume $f: (a,b) \to (0, \infty)$ is a continuous function.
Show that $ A= \{ (x,y) : a<x<b, 0<y<f(x) \} $ is open.
I want to show that for every point $(x_0,y_0) \in A$, there is $r>0$ such that $B((x_0,y_0), r)\subset A$.
I tried to set $r = \min ( x_0 - a, \,b - x_0,\, y_0, \,\inf \{||(x,f(x)) - (x_0,y_0)|| \}) $ but couldn't complete the proof.
I'm supposed to prove it with what I've wanted to show or to show that A is a union of open sets.
Am I on the right direction? Someone has a more elegant idea?