TL;DR
The extreme value theorem says that if a function is continuous on a closed, bounded interval, then it has a largest value and a smallest value somewhere on that interval. Plainly: there is no way for the function's highest point to escape to infinity, or to sit at a jump that is not included.
The theorem answers a question that comes before any search. It tells you a best case and a worst case exist, so the search is worth doing. It is the first step in many arguments about optimal choices.
Builds on: Continuity, Compact Set · Leads to: Derivative, Constrained Optimization
Where it's used
- Engineering loads. A beam rests on two supports and carries stress along its length. Stress is a continuous function of position on a closed segment, so the theorem guarantees one worst point exists. Engineers then search for it, and the search is meaningful because the worst point is there to be found.
- Choosing a price. A seller's profit depends on the price charged. If the price must lie between a legal lower bound and a legal upper bound, and profit changes smoothly with price, the theorem guarantees a best price inside those bounds. The question "what is the best price?" has an answer.
- Machine learning theory. A training loss that changes smoothly with the model's parameters, searched over a bounded box of parameter values, has a smallest value in that box. Analysts use this guarantee when they prove that a best model exists before they try to train one.
- Tank temperature. A tank's temperature over a fixed four-hour window, with no sudden jumps, has a hottest and a coldest moment inside that window. The worked examples below follow one such case.
How it works
Take one tiny instance from start to finish: the function on the closed interval from 0 to 3.
- Start with the function and the interval. The input ranges over every number from 0 to 3, including both ends. Writing means exactly this. The function is a parabola, which has no jumps. Check: the interval has an endpoint at 0 and at 3, so it is closed. It stops at 3, so it is bounded.
- Sample the function at whole numbers. , , , . The smallest sample so far is , at . The largest is , at . Check: and .
- Sample more finely, with steps of one half. The new points are , and . The smallest value is still and the largest is still . Check: and .
- Keep sampling finer. Each refinement gets the smallest and largest sample values closer to their true targets. Continuity is what makes this work: the function cannot jump between two nearby samples and hide a higher or lower value in the gap. The targets here are and . Check: no sample ever goes below or above .
- Confirm each target is actually reached. The value is reached at , which lies inside the interval. The value is reached at , which is the endpoint and is included because the interval is closed. So the function has a smallest value and a largest value , both attained.
- f(x) = x^2 - 2x
The math
Definition
Let be continuous on a closed, bounded interval , meaning all with . Then there exist points and in such that
The point is where the largest value is attained, and is where the smallest value is attained. Both are guaranteed to lie inside the interval.
Both hypotheses matter. Continuity rules out jumps. Closed and bounded rules out missing endpoints and runaway growth. Drop either one and the conclusion can fail, as the common-mistakes section shows.
Step 1 in symbols: the interval
The domain is , so . In the example and . The interval contains both endpoints, which is the "closed" part, and it has finite length, which is the "bounded" part. A closed, bounded set of real numbers is called in one dimension, and the Heine–Borel theorem says this is exactly the same as closed and bounded.
Steps 2 to 4 in symbols: sampling and the best value
Let be the least upper bound of the values for in . This is the smallest number that is at least every value , and it may be the largest value itself. Choose a sequence of inputs in with approaching . These are the finer and finer samples of Step 4.
A bounded sequence of numbers always contains a sub-sequence that settles toward some number. Here the inputs stay in the bounded interval, so some sub-sequence settles toward a point . Because the interval is closed, that point is still inside .
Step 5 in symbols: the target is attained
Continuity says that whenever . Since also approaches , we get
So the least upper bound is actually a value of the function, attained at the point . The smallest value is found the same way by applying this argument to .
In the example, the target is reached at , and the closed interval includes that endpoint.
Worked examples
Let on , a straight line.
- Find the value at the left endpoint: .
- Find the value at the right endpoint: .
- The line rises from left to right, so no point between the endpoints is lower than 1 or higher than 5.
- The smallest value is , at . The largest is , at .
Interpretation: both the best and worst values sit on the endpoints, and the theorem guarantees they exist. Here the hand calculation finds them directly.
Let on , as in the walkthrough.
- Find the turning point: is zero at .
- Compute the turning value: . This is a dip, so it is a candidate for the smallest value.
- Compute the endpoints: and .
- Compare the candidates , and . The smallest is at , and the largest is at .
Interpretation: the largest value is at an endpoint, not at a turning point. Checking only turning points would have missed it. The theorem says the answer is one of these candidates, and the candidate list is finite.
A tank's temperature in degrees Celsius over the next four hours is for from 0 to 4 hours. The function is smooth, so the theorem applies on .
- Find the turning point: is zero at .
- Compute the temperature there: . This is the hottest moment inside the window.
- Compute the endpoints: and .
- The hottest value is at hours.
Try it: which moment in is the coldest, and what is its temperature? Answer: the coldest is at hours, where degrees Celsius. Compare the endpoints, since is higher. The turning point is a maximum, so it cannot be the minimum.
Common mistakes and tradeoffs
Mistake 1: the best value must be at a turning point. It is tempting to think the largest and smallest values always sit where the slope is zero. In fact the endpoints are candidates too, because the interval includes them. In Example 2 the largest value is at the endpoint . Always compare turning points with endpoints.
Mistake 2: an open interval is just as good. It is tempting to think that works the same as . In fact the function on has no largest or smallest value. Its outputs get as close to 0 and 1 as you like, but they never reach them, because the endpoints are excluded. The closed interval is what guarantees the endpoints are included.
Mistake 3: a jump does not matter if the limit exists. It is tempting to think a function with a single bad point is still fine. Take for in and . The outputs approach 1 but never reach it, and the value at 1 is only 0. So has no largest value, even though it is defined on a closed interval. Continuity at 1 is what would have fixed this.
Mistake 4: unbounded domains are fine. It is tempting to think a function on a whole line is covered. The function on has no largest value, because it grows without limit. Closed and bounded is the hypothesis that prevents this.
Tradeoffs. Use the theorem when the domain is closed and bounded and the function is continuous, because it guarantees the best and worst values and gives you a finite list of candidates. Do not use it when the domain is open or unbounded, or when the function has jumps. In those cases check limits at the ends of the domain and the behaviour at each jump by hand. The theorem also says nothing about how to find the points, only that they exist. Finding them is the job of Derivative tests and of numerical search, such as gradient descent.
History
In the early nineteenth century mathematicians were using calculus with loose ideas of continuity, and they often assumed that a function on a closed interval must have a highest and lowest point without proof. Bernard Bolzano gave a proof in a manuscript written around 1830, but the work was not published until 1930, so its influence on the field was delayed.
Later in the nineteenth century Karl Weierstrass and his students made the theorem a standard part of analysis. Standard proofs rest on the least upper bound property of the real numbers, the same idea that appears in the sampling steps above. Once the theorem had a clear proof, it became a standard tool, and it is usually taught early in analysis courses because it is the first real guarantee that an optimal value exists.
Recap
- A continuous function on a closed, bounded interval has a largest and a smallest value on that interval.
- Continuity prevents jumps that could hide a higher or lower value. Closed and bounded prevents missing endpoints and runaway growth.
- The best values are attained at points inside the interval, and they are either turning points or endpoints.
- The theorem guarantees existence, not location. Turning-point tests such as Derivative find the candidates, and Constrained Optimization builds on this to search for best values under conditions.
Check yourself
QuestionState the two conditions on the function and on the interval that the extreme value theorem needs.Show answer
The function must be continuous on the interval. The interval must be closed, meaning it contains its endpoints, and bounded, meaning it has finite length. If either condition fails, the largest or smallest value may not exist, as in the examples of an open interval and of a jump.
QuestionFor on , find the smallest value and the largest value, and where each occurs.Show answer
The turning point solves , so , and . The endpoints give and . The smallest value is at , and the largest is at . The largest is at an endpoint, not at the turning point.
QuestionWhy does the function on the open interval have no largest value, even though it is continuous and bounded?Show answer
The interval excludes its endpoints. The outputs get arbitrarily close to 1 but never equal 1, because the input 1 is not in the interval. A largest value must be an actual output, so none exists. The closed interval would fix this by including the endpoint 1.
QuestionA continuous function of time is defined on the closed interval from 0 to 10 hours. A manager asks whether there is a moment when the function is at its highest. What do you answer, and what does the theorem not tell you?Show answer
Yes, the function reaches a highest value at some moment in that interval, because it is continuous on a closed, bounded interval. The theorem does not say which moment it is, or how to find it. To locate it you would check turning points and the two endpoints, 0 and 10 hours.
Sources
- Extreme value theorem (Wikipedia): https://en.wikipedia.org/wiki/Extreme_value_theorem
- Heine–Borel theorem (Wikipedia): https://en.wikipedia.org/wiki/Heine%E2%80%93Borel_theorem
- Bernard Bolzano (Wikipedia): https://en.wikipedia.org/wiki/Bernard_Bolzano