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 near the point a. The horizontal band is ; the vertical markers are , with δ the largest that works.
- Every x between the markers gives f(x) inside the band. The largest δ here is .
- 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 and ε = 0.03, what's the largest δ that works at every point?
0.01: exactly when . For a straight line the slope sets δ, and the same δ works everywhere.
Name it
Limits and continuity
means: for every ε > 0 there's a δ > 0 such that implies .
f is continuous at a if : for every ε there's a δ with .
Sequential form: f is continuous at a exactly when implies . 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 (for x ≥ 0) are continuous on their domains.
Lipschitz functions
If for all x, y, then works everywhere. A differentiable function with 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 at 0;
- wild oscillation, like at 0, which takes every value in [−1, 1] near 0;
- everywhere, like the indicator of the rationals, which is continuous nowhere.
, defined as 0 at 0, is continuous at 0: , so δ = ε works.
Worked example
Prove is continuous at a = 2, and find δ for ε = 0.1.
Show the solution
- Factor.
- Bound the second factor. If , then , so
- Choose δ. Taking works for every ε; for ε = 0.1, δ = 0.02.
- The largest δ. The largest δ that works is
Answer is continuous at 2, with ; 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
- Approach 0 from the left. Take .
- Look at the values. Then for every n, which doesn't tend to .
- Conclude. By the sequential form, u isn't continuous at 0: with ε = ½, no δ works.
Answer along the values stay at 0 while , so u isn't continuous at 0.
Worked example
For at a = 2, find the largest δ that works with ε = 0.1.
Show the solution
- Translate the condition. We need that is, , or
- Measure both sides. The interval around 2 reaches 0.333 to the left and 0.5 to the right.
- Take the smaller side. δ must work on both sides, so the largest is
- In general. At a point a, which shrinks to 0 as a → 0: near the pole, ever-smaller δ are needed, which is why isn't uniformly continuous on (0, 1].
Answer the largest δ is .
Check
For and ε = 0.03, what's the largest δ that works?
Check
For at a = 2 and ε = 0.1, what's the largest δ that works?
Check
has Lipschitz constant 5. What δ does that give for ε = 0.01, at every point?
Check
What's ?
Check
Using , what δ guarantees 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 is continuous at a in order.
- Restrict to , so .
- Let .
- Let ε > 0.
- For , .
- Then .
Check
at a = 1, with ε = 0.1.
(a)
What is the largest δ that works?
(b)
What δ does the Lipschitz bound on give?
Check
Find the largest δ at a > 0 for a given ε.
Step 1
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
For ?
Explain why
Why does the largest δ for shrink as the point a moves away from 0, and what does that say about sensitivity?
δ measures how far the input may move before the output moves by ε, so it's roughly ε divided by how fast the function changes there. The slope of is 2a, which grows with a, so near a = 10 an input error is magnified 20 times and δ must be about ε/20, while near 0 a much larger input error is harmless. That's the same as a condition number: a steep function amplifies input errors. Over the whole real line the slope is unbounded, so no single δ serves every point; on a bounded interval the steepest point sets a δ that works everywhere.
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.