Strategy
The first part of this proof is showing that \(f\) must be bounded. The trick to this is using Bolzano-Weierstrass’s Theorem together with Continuity. In a nutshell, since \(f\) is unbounded, then we can build a sequence \(\{x_n\}\) such that for all \(n \in \mathbb{N}\), we can find an \(x_n \in I\) that satisfies \(|f(x_n)| > n\). At the same time, since this interval is bounded where \(a \leq x_{n} \leq b\), then by Bolzano-Weierstrass, we must have a convergent subsequence \(x_{n_k}\) that converges to some limit \(x_0\). By Continuity (sequential criterion), we must also have that \(|f(x_{n_k})| \to |f(x_0)|\). But a convergent sequence is also bounded. Hence, \(f(x_{n_k})\) is bounded. This is a contradiction since \(f(x_{n_k}) > n_k > k\) for all \(k\) which implies that \(f(x_{n_k}) \to \infty\).
The second part of the proof replies on the Completeness Axiom. Since \(f\) is bounded on \(I\), then the set of all points \(f(x)\) where \(x \in [a,b]\) is bounded. Hence by completeness, \(M = \sup_I f(x)\) exists. By the definition of the supremum and for any \(n \in \mathbb{N}\), we have \(M - \frac{1}{n} < f(x_n) \leq M\). This sequence \(\{f(x_n)\}\) converges to \(M\) by the Squeeze Theorem. At the same time, since \(\{x_n\} \in I\) and \(I\) is bounded, then by Bolzano-Weierstrass, we have a convergent subsequence \(\{x_{n_k}\}\) that converges to some point, call it \(x_M\). And again by Continuity (sequential criterion), we must also have that \(f(x_{n_k}) \to f(x_M)\). But now since the main sequence \(\{f(x_n)\}\) converges to \(M\), then we must have that every subsequence converges to \(M\) as well. Hence, \(f(x_M) = M\).
Proof
Suppose for the sake of contradiction that \(f\) is unbounded on \(I\). Then by definition of unbounded, for every \(M > 0 \in \mathbb{R}\), we can find some \(x \in I\) such that \(|f(x)| > M\). In particular (if we discretize this), then for every natural number \(n \in \mathbb{N}\), we can find a point \(x_n \in I\) such that
Thus, we obtain a sequence \(\{x_n\}\) such that \(|f(x_n)| \to \infty\) as \(n \to \infty\). But recall that \(\{x_n\} \in I\) and we’re given that \(I\) is bounded. Hence, by the Bolzano-Weierstrass Theorem, there exists a convergent subsequence \(x_{n_k}\) such that
But note that \(I\) is a closed interval so \(a \leq x_{n_k} \leq b\) for all \(x_{n_k}\). Hence by the Comparison Theorem, we must have that
But we are also given that \(f\) is continuous on \(I\) so \(f\) is continuous at \(x_0\). Thus, since \(x_{n_k} \to x_0\) and \(x_{n_k} \in I\), then by the Sequential Characterization of Continuity Theorem
which also implies that
But this means by definition that when taking \(\epsilon = 1\), that there exists a \(K_0 \in \mathbb{N}\) such that for all \(k \geq K_0\)
This implies
So for all sufficiently large \(k\), \(|f(x_{n_k})|\) is bounded above by \(|f(x_0)| + 1\). However, by (1), we have
This means that as \(n_k \to \infty\), then
This is a contradiction since by (2), we know that \(|f(x_{n_k})|\) is bounded above for all \(k > K_0\). Thus, \(f\) must be bounded on \(I\).
Now since \(f\) is bounded on \(I\), then by the completeness axiom, \(\sup_{x \in I} f(x)\) exists. Let \(M = \sup_{x \in I} f(x)\). By definition of the supremum, this means that for all \(n \in \mathbb{N}\), there exists an \(x_n \in I\) such that
Since \(I\) is closed and bounded, the sequence \(\{x_n\} \subset I\) is also bounded. Hence, by the Bolzano-Weierstrass Theorem, there exists a convergent subsequence \(x_{n_k} \in I\) and a point \(x_M \in I\) such that
But \(f\) is continuous on \(I\). Then by the Sequential Characterization of Continuity Theorem
If we take the limit of (3), then note that as \(k \to \infty\), \(n_k \to \infty\) and thus \(\frac{1}{n_k} \to 0\). Then the left hand side approaches \(M\). The middle term approaches \(f(x_M)\) and the right hand side approaches \(M\) since it’s a constant. Hence
Thus, by the Squeeze Theorem,
EVT Conditions
Let’s take \(f(x) = \frac{1}{x}\) on \([0,1]\). Note here that we can’t really talk about continuity at \(x = 0\) since \(f\) is not even defined on \(x = 0\). Thus, define \(f\) as follows
We showed here that \(f\) is not continuous at \(x = 0\). Now, notice that \(f\) doesn’t attain a maximum in \([0,1]\). It is unbounded since as \(x \to 0\), \(f(x) \to \infty\). Hence, the continuity condition is essential.
[TODO]
Then, we might not attain the maximum inside the interval. Take \(f(x)=x^2\) and the interval \((0,2)\). The maximum is \(f(2) = 4\) but it’s not attained!
References
- Introduction to Analysis, An, 4th edition by William Wade
- Lecture Notes by Professor Chun Kit Lai