Let f:D→R where D⊆R. We say limx→af(x)=L if for Every ε>0There exists δ>0 such that
0<∣x−a∣<δ⟹∣f(x)−L∣<ε
4.2 Continuity
Definition.f is continuous at a if limx→af(x)=f(a). In epsilon-delta form: For every ε>0There exists δ>0 such that
∣x−a∣<δ⟹∣f(x)−f(a)∣<ε
Remark. A function is continuous on a set E if it is continuous at every point of E. A function is globally continuous (or “continuous”) if it is continuous on its entire domain.
Definition.f is discontinuous at a if it is not continuous at a. Discontinuities are Classified as:
Removable:limx→af(x) exists but does not equal f(a) (or f(a) is undefined).
Jump:limx→a−f(x) and limx→a+f(x) both exist but are unequal.
Essential (or infinite/oscillatory): At least one one-sided limit does not exist.
Proposition 4.3. Polynomials are continuous on R. Rational functions p(x)/q(x) are Continuous wherever q(x)=0. The functions sinx, cosx, ex, lnx are continuous On their domains.
Theorem 4.1 (Algebra of Continuous Functions). If f and g are continuous at aThen f+gf−g, fgAnd (where defined) f/g are continuous at a.
Theorem 4.2. Compositions of continuous functions are continuous: if f is continuous at a and g is continuous at f(a)Then g∘f is continuous at a.
4.2a Sequential Characterization of Limits and Continuity
The epsilon-delta definitions can be reformulated in terms of sequences, which is often more Convenient for …/1-number-and-algebra/3_proof-and-logics.
Proposition 4.2a (Sequential Criterion for Limits).limx→cf(x)=L if and only if For every sequence (xn) with xn→c and xn=c for all nWe have f(xn)→L.
Proof. (⇒) Let ε>0. Choose δ>0 from the ε-δ definition. Since xn→cThere exists N with ∣xn−c∣<δ for n≥N. Then ∣f(xn)−L∣<ε for n≥N.
(⇐) Suppose the ε-δ condition fails. Then there exists ε>0 such That for every n∈NThere exists xn with 0<∣xn−c∣<1/n but ∣f(xn)−L∣≥ε. Then xn→c but f(xn)→LContradicting the hypothesis. ■
Corollary 4.2b.f is continuous at c if and only if for every sequence (xn) with xn→c We have f(xn)→f(c).
This is especially useful for proving that a function is not continuous: find one sequence Converging to c whose image does not converge to f(c).
4.3 Intermediate Value Theorem
Theorem 4.3 (IVT). If f:[a,b]→R is continuous and f(a)<y<f(b) (or f(b)<y<f(a)), then there exists c∈(a,b) such that f(c)=y.
Proof. Assume f(a)<y<f(b). Let S={x∈[a,b]:f(x)<y}. Since a∈SS is non-empty and bounded above by b. Let c=sup(S). We show f(c)=y.
If f(c)<yThen by continuity at cThere exists δ>0 such that f(x)<y for x∈(c−δ,c+δ). But then c+δ/2∈SContradicting that c=sup(S).
If f(c)>yThen by continuity, there exists δ>0 such that f(x)>y for x∈(c−δ,c+δ). But then c−δ/2 is an upper bound for SContradicting That c=sup(S).
Therefore f(c)=y. ■
Alternative …/1-number-and-algebra/3_proof-and-logic (bisection). Set a0=a, b0=b. Given [an,bn] with f(an)<y<f(bn) Let mn=(an+bn)/2. If f(mn)≥ySet an+1=an, bn+1=mn. If f(mn)<y Set an+1=mn, bn+1=bn. Either way, f(an)<y≤f(bn) and bn−an=(b−a)/2n→0. By the nested interval property, an→c and bn→c. By continuity, f(c)=limf(an)≤y And f(c)=limf(bn)≥ySo f(c)=y. ■
4.4 Extreme Value Theorem
Theorem 4.4 (EVT). If f:[a,b]→R is continuous, then f attains its maximum and Minimum on [a,b]: there exist c1,c2∈[a,b] such that f(c1)≤f(x)≤f(c2) for all x∈[a,b].
Proof. We first show f is bounded. Suppose not; then for each n∈NThere exists xn∈[a,b] with ∣f(xn)∣>n. By Bolzano-Weierstrass, (xn) has a convergent subsequence xnk→c∈[a,b]. By continuity, f(xnk)→f(c)So (f(xnk)) is bounded. But ∣f(xnk)∣>nk→∞A contradiction.
Now we show f attains its supremum. Let M=sup{f(x):x∈[a,b]}. For each nChoose xn∈[a,b] with f(xn)>M−1/n. By Bolzano-Weierstrass, (xn) has a subsequence xnk→c∈[a,b]. By continuity, f(c)=limf(xnk). Since M−1/nk<f(xnk)≤M for all kThe squeeze theorem gives f(c)=M. The argument for the infimum is similar (consider −f). ■
4.5 Uniform Continuity
Definition.f is uniformly continuous on D if for every ε>0There exists δ>0 such that for all x,y∈D:
∣x−y∣<δ⟹∣f(x)−f(y)∣<ε
The key distinction: for ordinary continuity, δ may depend on both ε and the point a; for uniform continuity, δ depends only on ε.
4.6 The Heine-Cantor Theorem
Theorem 4.5 (Heine-Cantor). If f:[a,b]→R is continuous on the closed, bounded Interval [a,b]Then f is uniformly continuous on [a,b].
Proof. Suppose f is continuous on [a,b] but not uniformly continuous. Then there exists ε>0 such that for every n∈NThere exist xn,yn∈[a,b] with ∣xn−yn∣<1/n but ∣f(xn)−f(yn)∣≥ε.
By the Bolzano-Weierstrass theorem, (xn) has a convergent subsequence xnk→c∈[a,b]. Since ∣xnk−ynk∣<1/nk→0We have ynk→c as well.
By continuity of f at c: there exists δ>0 such that ∣x−c∣<δ implies ∣f(x)−f(c)∣<ε/2. For k sufficiently large, ∣xnk−c∣<δ and ∣ynk−c∣<δSo:
Problem. Prove that f(x)=x is uniformly continuous on [0,∞).
Solution. For x,y≥0: ∣x−y∣=x+y∣x−y∣≤∣x−y∣1/2.
Given ε>0Choose δ=ε2. Then ∣x−y∣<δ implies ∣x−y∣≤∣x−y∣<δ=ε. Since δ depends Only on εThe continuity is uniform. ■
Worked Example: $\varepsilon$-$\delta$ .../1-number-and-algebra/3_proof-and-logic that $f(x) = 3x - 1$ is continuous at $x = 2$
Solution. We have f(2)=5. Let ε>0. We need to find δ>0 such that ∣x−2∣<δ implies ∣f(x)−5∣<ε.
Compute: ∣f(x)−5∣=∣(3x−1)−5∣=∣3x−6∣=3∣x−2∣.
Choose δ=ε/3. Then ∣x−2∣<δ implies ∣f(x)−5∣=3∣x−2∣<3⋅ε/3=ε. ■
Worked Example: $\varepsilon$-$\delta$ .../1-number-and-algebra/3_proof-and-logic that $f(x) = x^2$ is continuous at $x = 3$
Solution. We have f(3)=9. Let ε>0. Compute:
∣f(x)−9∣=∣x2−9∣=∣x+3∣⋅∣x−3∣
Restrict to δ≤1So ∣x−3∣<1 means 2<x<4Giving ∣x+3∣<7.
Choose δ=min(1,ε/7). Then ∣x−3∣<δ implies:
∣x2−9∣=∣x+3∣⋅∣x−3∣<7⋅7ε=ε
■
Worked Example: Show $f(x) = 1/x$ is NOT uniformly continuous on $(0, 1)$
Solution. We show the negation of uniform continuity. Take ε=1. For any δ>0 Choose n∈N with 1/n<δ. Set x=1/n and y=1/(2n). Then ∣x−y∣=1/(2n)<1/n<δBut:
∣f(x)−f(y)∣=1/n1−1/(2n)1=∣n−2n∣=n≥1=ε
So no single δ works for all x,y∈(0,1). ■
Worked Example: Use the sequential criterion to show $f(x) = \sin(1/x)$ has no limit as $x \to 0$
Solution. Consider the sequences xn=1/(2nπ) and yn=1/(2nπ+π/2). Both converge to 0. But f(xn)=sin(2nπ)=0 and f(yn)=sin(2nπ+π/2)=1 for all n.
So f(xn)→0 and f(yn)→1. By the sequential criterion, if limx→0f(x) existed, Both subsequences would converge to the same limit. Since they don”t, the limit does not exist. ■
Worked Example: Prove $f(x) = x \sin(1/x)$ (with $f(0) = 0$) is continuous everywhere
Solution. For x=0, f is a product of continuous functions, hence continuous.
At x=0: let ε>0. Choose δ=ε. For ∣x−0∣=∣x∣<δ:
∣f(x)−f(0)∣=∣xsin(1/x)∣≤∣x∣<δ=ε
So f is continuous at 0. Since f extends continuously from (0,1] to [0,1]The Heine-Cantor Theorem implies f is uniformly continuous on [0,1]. ■
Worked Example: $\varepsilon$-$\delta$ .../1-number-and-algebra/3_proof-and-logic that $f(x) = \sin x$ is continuous at every $a \in \mathbb{R}$
Solution. We use the identity ∣sinu−sinv∣≤∣u−v∣ for all u,v∈R. (Proof: ∣sinu−sinv∣=2∣cos((u+v)/2)sin((u−v)/2)∣≤2∣sin((u−v)/2)∣≤∣u−v∣ Using ∣sint∣≤∣t∣ and ∣cos∣≤1.)
Let ε>0 and a∈R. Choose δ=ε. For ∣x−a∣<δ:
∣sinx−sina∣≤∣x−a∣<δ=ε
Since δ=ε works independently of a, sinx is actually uniformly continuous On R. The same argument works for cosx. ■
Worked Example: $\varepsilon$-$\delta$ .../1-number-and-algebra/3_proof-and-logic that $f(x) = e^x$ is continuous at every $a \in \mathbb{R}$
Solution. We use the inequality ∣eu−ev∣≤emax(u,v)∣u−v∣Which follows from the Mean Value Theorem applied to et: eu−ev=eξ(u−v) for some ξ between u and v So ∣eu−ev∣=eξ∣u−v∣≤emax(u,v)∣u−v∣.
Let ε>0 and a∈R. Restrict to ∣x−a∣<1So x<a+1 and emax(x,a)≤ea+1. Choose δ=min(1,ε/ea+1). For ∣x−a∣<δ:
∣ex−ea∣≤ea+1∣x−a∣<ea+1⋅ea+1ε=ε
■
If you get this wrong, revise: Section 4.2 (Continuity), Section 5.3 (Mean Value Theorem).
:::caution Common Pitfall Continuity on (a,b) does not imply uniform continuity. The function f(x)=1/x on (0,1) is Continuous but not uniformly continuous. The Heine-Cantor theorem requires a closed and bounded Interval. Also, a function can be uniformly continuous on an unbounded domain (e.g., f(x)=x On [0,∞)) --- boundedness of the domain is sufficient but not necessary.