A14 · Lesson 13 · Continuous functions on compact sets
Extreme values, intermediate values and uniform continuity
Three theorems turn continuity on a closed, bounded interval into guarantees engineers rely on without noticing. A continuous function there reaches its maximum and minimum, so a worst case exists to be found (the extreme value theorem). It takes every value between its endpoint values, so a sign change means a root, which is why bisection can't fail (the intermediate value theorem). And one δ works for a given ε at every point at once (uniform continuity), which is what makes sampling, interpolation and numerical integration error bounds hold across the whole interval rather than point by point.
- The curves give, for each point a, the largest δ that keeps the output within ε: for on [0, 2] (solid) and for on (0, 1] (dashed).
- For the δ is smallest at the right end but stays positive: one δ, , works everywhere. That's uniform continuity.
- For the needed δ, , falls to 0 as a approaches 0. No single δ works, because (0, 1] isn't compact and the function blows up at the missing end.
Predict
f is continuous on [0, 1] with f(0) = −2 and f(1) = 3. Which must be true?
Some c has f(c) = 0, by the intermediate value theorem: a continuous function can't get from −2 to 3 without passing 0. It may cross many times, and it needn't be monotone; the theorem only promises at least one root, which is all bisection needs.
Name it
The extreme value theorem
A continuous function on a compact set K attains a maximum and a minimum on K. (Take points where f approaches its supremum; a subsequence converges in K; continuity carries the values to the limit.)
The intermediate value theorem
If f is continuous on [a, b] and y lies between f(a) and f(b), then f(c) = y for some c in [a, b]. In particular, a sign change brackets a root.
Uniform continuity
f is uniformly continuous on S if for every ε there's a δ that works at every point at once:
- Heine–Cantor: a continuous function on a compact set is uniformly continuous.
- Lipschitz functions are uniformly continuous ().
- on [0, ∞) is uniformly continuous (, so ), though not Lipschitz near 0.
- on ℝ and on (0, 1] are continuous but not uniformly.
Why engineers need it
A bound like "linear interpolation with spacing h is within ε everywhere" needs a δ that doesn't depend on where you are. Uniform continuity on a closed interval supplies it; the error bounds of A13 (which use ) are the quantitative version.
Worked example
Find the largest value of on [0, 5].
Show the solution
- A maximum exists. The interval is compact, so a maximum exists, at an endpoint or where f' = 0.
- Find the critical point. which is 0 at x = 2.
- Compare the candidates.
Answer the maximum is 0.736, at x = 2.
Worked example
Find one δ that works for on [0, 9] with ε = 0.01.
Show the solution
- A bound that holds everywhere.
- Choose δ. So is enough everywhere:
- It's the largest near 0. x = 0.0001 and y = 0 differ by exactly 0.01 in their square roots.
Answer δ = 0.0001 works on all of [0, 9].
Worked example
Find the largest value of on [0, 1].
Show the solution
- A maximum exists. [0, 1] is compact and f is continuous, so a maximum exists, at an endpoint or where .
- Differentiate.
- Find the critical point. This vanishes at
- Value there. while .
- Conclude. So the maximum is 0.438, at the golden ratio's reciprocal. The extreme value theorem told us to look; calculus told us where.
Answer the maximum is 0.438, at .
Check
What's the largest δ that works at every point for on [0, 2] with ε = 0.1?
Check
For at a = 0.1, what's the largest δ that keeps ?
Check
What δ works everywhere for on [0, ∞) with ε = 0.03?
Check
What's the maximum of on [0, 6]?
Check
Which function is uniformly continuous on the given set?
Check
Put the steps of the proof of the extreme value theorem in order.
- Choose points with .
- Let f be continuous on the compact set K, and (possibly infinite).
- By continuity, .
- So : M is finite and attained.
- K is compact, so a subsequence converges to some .
Check
on [0, 10].
(a)
Where is its maximum?
(b)
What is the maximum value?
Check
Uniform δ from Hölder bounds.
Step 1
Since , what δ works everywhere for ?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
And for , with ?
Explain why
Why is a continuous function on a closed interval uniformly continuous, while on (0, 1] isn't?
For a continuous function, δ at each point depends on how steep the function is near it. On a closed, bounded interval there's no place for the steepness to grow without limit: if the needed δ shrank toward zero along some sequence of points, those points would have a convergent subsequence in the interval, and continuity at the limit point would give a positive δ nearby, a contradiction. So the δ's have a positive lower bound, and that bound works everywhere. On (0, 1] the trouble sits at the missing point 0, where blows up; points approaching it need ever smaller δ, and there's no limit point inside the set to stop the shrinking.
Practice
Keep practicing
8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.