A1413 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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 x2 on [0, 2] (solid) and for 1x on (0, 1] (dashed).
  • For x2 the δ is smallest at the right end but stays positive: one δ, 4+ε−2, works everywhere. That's uniform continuity.
  • For 1x the needed δ, a2ε1+aε, 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?

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:

|x−y|<δ⇒|f(x)−f(y)|<εfor all x,y∈S
  • Heine–Cantor: a continuous function on a compact set is uniformly continuous.
  • Lipschitz functions are uniformly continuous (δ=ε/L).
  • x on [0, ∞) is uniformly continuous (|x−y|≤|x−y|, so δ=ε2), though not Lipschitz near 0.
  • x2 on ℝ and 1x 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 max⁡|f′′|) are the quantitative version.

Worked example

Find the largest value of f(x)=xe−x/2 on [0, 5].

Show the solution
  1. A maximum exists. The interval is compact, so a maximum exists, at an endpoint or where f' = 0.
  2. Find the critical point. f′=e−x/2(1−x2) which is 0 at x = 2.
  3. Compare the candidates. f(0)=0f(2)=2/e=0.736f(5)=5e−2.5=0.410

Answer the maximum is 0.736, at x = 2.

Worked example

Find one δ that works for x on [0, 9] with ε = 0.01.

Show the solution
  1. A bound that holds everywhere. |x−y|≤|x−y|
  2. Choose δ. So |x−y|<ε2 is enough everywhere: δ=ε2=0.0001
  3. 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 f(x)=x(1−x)ex on [0, 1].

Show the solution
  1. A maximum exists. [0, 1] is compact and f is continuous, so a maximum exists, at an endpoint or where f′=0.
  2. Differentiate. f′(x)=ex(1−2x+x−x2)=ex(1−x−x2)
  3. Find the critical point. This vanishes at x=5−12=0.618
  4. Value there. f=0.618×0.382×e0.618=0.438 while f(0)=f(1)=0.
  5. 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 x=5−12=0.618.

Check

What's the largest δ that works at every point for x2 on [0, 2] with ε = 0.1?

Check

For 1x at a = 0.1, what's the largest δ that keeps |1x−1a|<0.1?

Check

What δ works everywhere for x on [0, ∞) with ε = 0.03?

Check

What's the maximum of f(x)=xe−x/2 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.

  1. Choose points xn∈K with f(xn)→M.
  2. Let f be continuous on the compact set K, and M=sup⁡f(K) (possibly infinite).
  3. By continuity, f(xnk)→f(c).
  4. So f(c)=M: M is finite and attained.
  5. K is compact, so a subsequence xnk converges to some c∈K.

Check

f(x)=x2e−x on [0, 10].

(a)

Where is its maximum?

(b)

What is the maximum value?

Check

Uniform δ from Hölder bounds.

Step 1

Since |x−y|≤|x−y|, what δ works everywhere for x?

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°.

Explain why

Why is a continuous function on a closed interval uniformly continuous, while 1x on (0, 1] isn't?

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.