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

A14 · Lesson 12 · Limits of functions and continuity

Choosing δ for a given ε

"A small change in the input gives a small change in the output" is what makes a measurement trustworthy, a controller stable and a numerical method meaningful. Continuity is that idea made exact, by the same game as lesson 3. You name a tolerance ε on the output; I must name a tolerance δ on the input such that every input within δ gives an output within ε. If I can always answer, the function is continuous there. How δ depends on ε, and whether one δ works at every point at once, are the quantitative questions behind sensitivity and robustness.

  • The function is f(x)=x2 near the point a. The horizontal band is f(a)±ε; the vertical markers are a±δ, with δ the largest that works.
  • Every x between the markers gives f(x) inside the band. The largest δ here is a2+ε−|a|.
  • Move a away from 0 with ε fixed: δ shrinks, because the curve is steeper there. No single δ works at every point of the whole line; lesson 13 calls that failure of uniform continuity.

Predict

For f(x)=3x+1 and ε = 0.03, what's the largest δ that works at every point?

Name it

Limits and continuity

limx→a⁡f(x)=L means: for every ε > 0 there's a δ > 0 such that 0<|x−a|<δ implies |f(x)−L|<ε.

f is continuous at a if limx→a⁡f(x)=f(a): for every ε there's a δ with |x−a|<δ⇒|f(x)−f(a)|<ε.

Sequential form: f is continuous at a exactly when xn→a implies f(xn)→f(a). This is often the easier way to show a function is not continuous: find one sequence that breaks it.

Building continuous functions

Sums, products, quotients (where the denominator isn't 0) and compositions of continuous functions are continuous. Polynomials, exp, sin, cos and x (for x ≥ 0) are continuous on their domains.

Lipschitz functions

If |f(x)−f(y)|≤L|x−y| for all x, y, then δ=ε/L works everywhere. A differentiable function with |f′|≤L is Lipschitz with constant L, by the mean value theorem (lesson 15).

How functions fail

  • a jump, like the unit step at 0;
  • a blow-up, like 1x at 0;
  • wild oscillation, like sin⁡1x at 0, which takes every value in [−1, 1] near 0;
  • everywhere, like the indicator of the rationals, which is continuous nowhere.

xsin⁡1x, defined as 0 at 0, is continuous at 0: |xsin⁡1x|≤|x|, so δ = ε works.

Worked example

Prove x2 is continuous at a = 2, and find δ for ε = 0.1.

Show the solution
  1. Factor. |x2−4|=|x−2||x+2|
  2. Bound the second factor. If |x−2|<1, then |x+2|<5, so |x2−4|<5|x−2|
  3. Choose δ. Taking δ=min⁡(1,ε/5) works for every ε; for ε = 0.1, δ = 0.02.
  4. The largest δ. The largest δ that works is 4.1−2=0.0248

Answer x2 is continuous at 2, with δ=min⁡(1,ε/5); for ε = 0.1 that gives δ = 0.02 (the largest that works is 0.0248).

Worked example

Show the unit step u(x) (0 for x < 0, 1 for x ≥ 0) isn't continuous at 0.

Show the solution
  1. Approach 0 from the left. Take xn=−1n→0.
  2. Look at the values. Then u(xn)=0 for every n, which doesn't tend to u(0)=1.
  3. Conclude. By the sequential form, u isn't continuous at 0: with ε = ½, no δ works.

Answer along xn=−1n the values stay at 0 while u(0)=1, so u isn't continuous at 0.

Worked example

For f(x)=1x at a = 2, find the largest δ that works with ε = 0.1.

Show the solution
  1. Translate the condition. We need |1x−12|<0.1 that is, 0.4<1x<0.6, or 1.667<x<2.5
  2. Measure both sides. The interval around 2 reaches 0.333 to the left and 0.5 to the right.
  3. Take the smaller side. δ must work on both sides, so the largest is δ=2−53=13
  4. In general. At a point a, δ=a2ε1+aε which shrinks to 0 as a → 0: near the pole, ever-smaller δ are needed, which is why 1x isn't uniformly continuous on (0, 1].

Answer the largest δ is 13.

Check

For f(x)=−5x+2 and ε = 0.03, what's the largest δ that works?

Check

For f(x)=x2 at a = 2 and ε = 0.1, what's the largest δ that works?

Check

f(x)=sin⁡(5x) has Lipschitz constant 5. What δ does that give for ε = 0.01, at every point?

Check

What's limx→0⁡sin⁡(3x)x?

Check

Using |x−a|=|x−a|x+a≤|x−a|a, what δ guarantees |x−a|<0.01 at a = 9?

Check

Which function is continuous at 0 (each defined as 0 at x = 0)?

Check

Put the steps of the proof that x2 is continuous at a in order.

  1. Restrict to |x−a|<1, so |x+a|<2|a|+1.
  2. Let δ=min⁡(1,ε2|a|+1).
  3. Let ε > 0.
  4. For |x−a|<δ, |x2−a2|<(2|a|+1)δ≤ε.
  5. Then |x2−a2|=|x−a||x+a|<(2|a|+1)|x−a|.

Check

f(x)=1x at a = 1, with ε = 0.1.

(a)

What is the largest δ that works?

(b)

What δ does the Lipschitz bound |f′|≤4a2 on [a/2,∞) give?

Check

Find the largest δ at a > 0 for a given ε.

Step 1

For f=x2?

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 does the largest δ for x2 shrink as the point a moves away from 0, and what does that say about sensitivity?

Practice

Keep practicing

9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.