Assume, for the sake of contradiction, that f is not bounded on [a,b]. Without loss of generality, suppose f is unbounded above (the case of being unbounded below is symmetric, and the argument for ∣f∣ is identical). Then, for every positive integer n≥1, there exists some xn∈[a,b] such that
[
f(x_n) > n.
]
The sequence {xn}n=1∞ lies entirely within the bounded interval [a,b]. By the Bolzano--Weierstrass theorem, every bounded sequence in R has a convergent subsequence. Thus, there exists a subsequence {xnk}k=1∞ and some c∈[a,b] such that
[
\lim_{k \to \infty} x_{n_k} = c.
]
Since f is continuous at c, it follows that
[
\lim_{k \to \infty} f(x_{n_k}) = f(c).
]
However, along this subsequence,
[
f(x_{n_k}) > n_k \quad \text{for each } k,
]
and nk→∞ as k→∞. This implies
[
\lim_{k \to \infty} f(x_{n_k}) = +\infty,
]
which contradicts the fact that f(xnk)→f(c), a finite real number.
Therefore, the assumption is false, and f must be bounded above on [a,b]. A symmetric argument shows f is bounded below. Hence, f is bounded on [a,b].