TITLE: Analysis Problem: Prove $f$ is bounded on $I$
QUESTION [5 upvotes]: Let $I=[a,b]$ and let $f:I\to {\mathbb R}$ be a (not necessarily continuous) function with the property that for every $x∈I$, the function $f$ is bounded on a neighborhood $V_{d_x}(x)$ of $x$. Prove that $f$ is bounded on $I$.
Thus far I have that,
For all $n∈I$ there exist $x_n∈[a,b]$ such that $|f(x_n)|>n$. By the Bolzano Weierstrass theorem since $I$ is bounded we have the sequence $X=(x_n)$ is bounded. This implies there is a convergent sub-sequence $X'=(x_{n_r})$ of $X$ that converges to $c$, $c∈[a,b]$. Since $I$ is closed and the element of $X'$ belongs to $I$, it follows from a previous theorem that I proved that $c∈I$. Here is where I get stuck, I want to use that the function $f$ is bounded on a neighborhood $V_{d_x}(x)$ somehow to show that $f$ is bounded on $I$. I'm not sure how to proceed.
$f$ is bounded on $I$ means if there exist a d-neighborhood $V_d(c)$ of $c$ and a constant $M>0$ such that we have $|f(x)|\leq M$ for all $x$ in $A ∩  V_d(c)$.
I would like to do try a proof by contradiction somehow.

REPLY [3 votes]: Suppose that $f$ is unbounded. Then there exists $x_n \in [a,b]$ with (for example) $\lim_{n \to \infty}f(x_n)=\infty$. Because the sequence $x_n$ is bounded, it has a convergent subsequence, denote it also $x_n \to x_0 \in [a,b]$. Use the fact that $f$ is bounded near $x_0$ to derive a contradiction.
It is just what you did, but you denoted the limit with $c$. The idea is to take a neighborhood of this point, and notice that in any neighborhood there are almost all terms of the sequence $x_n$, for which the values of $f$ are very large.

REPLY [3 votes]: If you cannot use the Heine-Borel theorem, argue via sup. Here's a sketch:
Let $A= \{ x \in I : f \text{ is bounded in } [a,x] \}$. Then $A$ is not empty because $a\in A$. Also, $A$ is bounded above because $A\le b$.
Prove that if $x\in A$ and $x<b$ then $x+h\in A$ for some $h>0$ using that $f$ is locally bounded at $x$. This means that no $x< b$ is an upper bound for $A$, which implies that $b=\sup A$.
Finally, using that $f$ is locally bounded at $b$, argue that $b \in A$, thus proving that $f$ is bounded in $I$.
This proof appears in Spivak's Calculus.

REPLY [3 votes]: Proof by contradiction:
if we suppose that $f$ is unbounded in a neighbourhood $V_{x_0}$ of $x_0\in I$ then there exists a sequence $(Z_n)\in V_{x_0}$, $Z_n\to x_0$ and $|f(Z_n)|\to +\infty$ and that is contradictory with the fact that $f$ is locally bounded over $I$.

REPLY [2 votes]: So, by hypothesis, you have an open ball $V_d(c)$ and $M$ such that $|f(x)|\le M$ for all $x\in I\cap V_d(c)$ (I think you meant $I$ here, not $V$).  But you know that the sequence $(x_{n_r})$ converges to $c$. This means that there is an $m$ so that $x_{n_r}\in I\cap V_d(c)$ whenever $r>m$. Now from the way you selected the $x_n$, what can you conclude?