The Statement and the Two Words That Matter
Figure 3 — A curve drawn between two closed boundaries. The highest point sits inside the interval and the lowest sits on the left boundary, which is exactly why the search has to include the endpoints.
If is continuous on a closed interval , then there exist points in where attains its absolute maximum and its absolute minimum. Read the hypotheses as two separate promises: continuous rules out jumps and asymptotes, and closed rules out endpoints that are missing from the domain. Remove either one and a function can approach an extreme without ever landing on it.