The definition of continuity at a point, its picture as a band and a strip, the continuity of the familiar functions, and Hardy’s classification of discontinuities.
Everyone has a picture of a continuous curve: one you can draw without lifting the pen. That picture cannot be used in a proof, and it can mislead (is the graph of xsin(1/x) drawable?). In §§99–100 Hardy distils it into a definition built from the limits of the last three lessons. Every theorem in the rest of the chapter, and most of the rest of the book, assumes this definition.
The idea
Fix a point ξ on the graph of ϕ. Hardy asks what the picture of an unbroken curve requires at that one point, and finds three things.
ϕ(ξ) is defined: there is no point missing from the curve.
ϕ(x) is defined for all x near ξ, in some interval with ξ inside it.
As x approaches ξ from either side, ϕ(x) tends to ϕ(ξ).
The third condition is the heart of it. In the language of the last lessons: the limit exists and equals the value. So continuity is exactly the case where “just put x=ξ” is right.
As a game it is the ε–δ game with the target fixed in advance: the band is centred on the value ϕ(ξ), not on a limit we are free to choose.
ExploreContinuity as a game
Try this.This is xsin(1/x), with its value at 0 defined to be 0. For several tolerances ε, find a strip that works. Try δ=ε.
f(x)=xsinx1, continuity at a=0
xy
y = f(x)
band f(a) ± ε
strip of width δ (drag)
escapes the band
This δ fails. For example x=0.5 gives ∣f(x)−0∣=0.455≥ε. Try a smaller δ — or ask whether any δ can work.
What to notice
However wildly the graph oscillates, it is trapped between the lines y=x and y=−x, so a strip of half-width ε keeps it inside the band of half-width ε. The function is continuous at 0: wiggling is not the same as breaking.
Precise statements
DefinitionContinuity at a pointHardy: §99
ϕ(x) is continuous at x=ξ if ϕ(ξ) is defined, and ϕ(x) tends to a limit as x→ξ from each side, and each limit equals ϕ(ξ):
ϕ(ξ−0)=ϕ(ξ)=ϕ(ξ+0).
Equivalently: for every ε>0 there is a δ>0 such that
∣ϕ(x)−ϕ(ξ)∣<εwhenever ∣x−ξ∣<δ.
In the second form the point x=ξ need no longer be excluded, because there the inequality reads 0<ε. Hardy’s picture (§100): draw the horizontal lines y=ϕ(ξ)±ε. However close together they are, we can draw two vertical lines x=ξ±δ so that the part of the curve between the vertical lines lies between the horizontal ones.
DefinitionContinuity in an intervalHardy: §99
ϕ is continuous throughout an interval if it is continuous at every point of it. If ϕ is defined only on [a,b], it is continuous at the end point a if ϕ(a+0)=ϕ(a), and at b if ϕ(b−0)=ϕ(b).
So [x] is continuous on [ε,1−ε] for any small ε>0 but not at 0 or 1; x is continuous on [0,∞), including the end point 0.
From the algebra of limits we get, at once, the continuity of everything built by arithmetic.
If ϕ and ψ are continuous at ξ, so are ϕ+ψ and ϕψ, and so is ϕ/ψ if ψ(ξ)=0. Hence every polynomial is continuous everywhere, and every rational function P/Q is continuous except where Q=0.
If ϕ is continuous at ξ and f is continuous at η=ϕ(ξ), then f(ϕ(x)) is continuous at ξ.
TheoremThe sine and cosine are continuousHardy: Examples XXXVII, 9
sinx and cosx are continuous for every x. Indeed ∣sin(x+h)−sinx∣≤∣h∣ and ∣cos(x+h)−cosx∣≤∣h∣.
How continuity can fail
Hardy sorts discontinuities at a point a by what the one-sided limits do (Examples XXXVII, 18).
DefinitionKinds of discontinuityHardy: Examples XXXVII, 18
Simple discontinuity: ϕ(a−0) and ϕ(a+0) both exist, but continuity still fails. Either (α) they are equal, while ϕ(a) is undefined or different (removable); or (β) they are unequal (a jump), with ϕ(a) equal to one of them, to neither, or undefined.
Infinity: from each side ϕ tends to a limit or to ±∞, and from at least one side to ±∞.
Oscillatory discontinuity: any other discontinuity, for instance one where ϕ oscillates as x→a from one side.
Hardy also counts as simple a point where ϕ is defined on one side only and has a limit there, but the value at the point is missing or different; and as an infinity a point where ϕ tends to ±∞ on the one side where it is defined.
ExploreThe discontinuity zoo
Try this.Go through the twelve specimens. For each one, zoom in on the point a, decide what the two one-sided limits and the value are, then classify. Keep going until all twelve are right.
Specimen 1 of 12: ϕ(x)=x2 at a=10 of 12 classified correctly
xy
y = φ(x)
filled dot: the value at a; hollow dot: a one-sided limit that differs from it
Your classification at a
Zoom in on x=1. Ask: does φ have a limit from the left? from the right? are they equal? is φ(a) defined, and equal to them?
What to notice
Zooming in never helps a jump or an infinity, and never calms sin(1/x); but it does show that xsin(1/x) settles to 0. The removable cases differ from continuous ones only at the single point a. And a jump can have its value on either side, or in between, or nowhere: only the one-sided limits decide the type.
One consequence of §95: a function that increases (or decreases) steadily near a has one-sided limits there, so a monotone function can have only simple discontinuities, in fact only jumps.
Proofs
ProofThe sine is continuous
Strategy
Turn the difference sin(x+h)−sinx into a product with a factor that is obviously small, using a sum-to-product formula, then bound ∣sint∣≤∣t∣.
Sum-to-product
sin(x+h)−sinx=2sin21hcos(x+21h).
Bound each factor
∣cos(x+21h)∣≤1, and ∣sin21h∣≤∣21h∣ (from sint<t for 0<t<21π, proved last lesson, together with ∣sint∣≤1<∣t∣ for ∣t∣≥21π and the oddness of sin).
Conclude
So ∣sin(x+h)−sinx∣≤∣h∣. Given ε, δ=ε works, at every x. For the cosine use cos(x+h)−cosx=−2sin21hsin(x+21h) in the same way.
∎
ProofComposition preserves continuity
Strategy
Work backwards from the outside. To make f(ϕ(x)) close to f(η), the continuity of f says how close ϕ(x) must be to η; the continuity of ϕ then says how close x must be to ξ.
Use the continuity of f at η
Given ε>0, there is γ>0 with ∣f(y)−f(η)∣<ε whenever ∣y−η∣<γ.
Use the continuity of ϕ at ξ, with tolerance γ
There is δ>0 with ∣ϕ(x)−η∣<γ whenever ∣x−ξ∣<δ.
Chain the two
If ∣x−ξ∣<δ then y=ϕ(x) satisfies ∣y−η∣<γ, so ∣f(ϕ(x))−f(η)∣<ε. Note that we need the continuity of f at η, not merely a limit: ϕ(x) may equal η for x=ξ.
∎
So 2+cosx, (acos2x+bsin2x)−1 (where the bracket is not 0) and sin(x3+1) are continuous wherever they are defined.
Worked examples and exercises
Exercise●○○Hardy: Examples XXXVII, 3
Show that x is continuous at every x>0, and continuous at the end point x=0 in the sense of §99.
Hint
For ξ>0: x−ξ=(x−ξ)/(x+ξ).
Hint
At 0: x<ε exactly when x<ε2.
Solution
At ξ>0. For x≥0, ∣x−ξ∣=∣x−ξ∣/(x+ξ)≤∣x−ξ∣/ξ. Given ε, take δ=min(ξ,εξ); the first term keeps x inside the domain, and then ∣x−ξ∣<ε.
At 0.x is defined only for x≥0, so continuity at 0 means 0+0=0=0. Given ε, take δ=ε2: for 0≤x<δ, x<ε.
Exercise●●○Hardy: Examples XXXVII, 17
Where are these functions discontinuous, and what kind of discontinuity is each? [x2], [x] (x≥0), x−[x], [x]+x−[x], [2x], [x]+[−x].
Hint
A function [g(x)] with g continuous can only jump where g(x) crosses an integer.
Solution
[x2]: jumps at x=±n, n=1,2,… (at n: left limit n−1, value and right limit n). It is continuous at 0, where x2 touches the integer 0 without crossing it: [x2]=0 for ∣x∣<1.
[x]: jumps at x=n2, n=1,2,…; continuous at the end point 0.
x−[x]: jumps at every integer n (left limit 1, value and right limit 0).
[x]+x−[x]: continuous everywhere. At an integer n the left limit is (n−1)+1=n, and the value and right limit are n+0=n. Two discontinuous pieces combine into a continuous function.
[2x]: jumps at every half-integer k/2.
[x]+[−x]: removable discontinuity at every integer: it is −1 elsewhere and 0 at the integers.
Exercise●○○Hardy: Examples XXXVII, 20
Let ϕ(x)=1 when x is rational and 0 when x is irrational. Show that ϕ is discontinuous at every point.
Hint
Every interval contains both rational and irrational numbers.
Solution
Take any ξ and ε=21. Whatever δ>0 we choose, the interval (ξ−δ,ξ+δ) contains a rational x1 and an irrational x2, with ϕ(x1)=1 and ϕ(x2)=0. They cannot both be within 21 of ϕ(ξ), since ∣ϕ(x1)−ϕ(x2)∣=1. So no δ works. In fact the one-sided limits never exist, so every point is an oscillatory discontinuity.
Exercise●●○Hardy: Examples XXXVII, 22
Let y=limn→∞xn (from §72). Where is y defined, where is it discontinuous, and what kind of discontinuity occurs?
Hint
xn→0 for ∣x∣<1, →1 for x=1; for x=−1 and ∣x∣>1 there is no limit.
Solution
The limit exists only for −1<x≤1: y=0 for −1<x<1 and y=1 at x=1. So y is continuous on (−1,1). At x=1 it is defined only on the left, with y(1−0)=0=1=y(1): a simple discontinuity of the one-sided kind. At x=−1 it is not defined, but y(−1+0)=0: again a simple discontinuity in Hardy’s extended sense.
Check yourself
Check yourselfTrue or false?
If limx→ξϕ(x) exists, then ϕ is continuous at ξ.
Why
False. The limit must also equal ϕ(ξ), and ϕ(ξ) must be defined. [1−x2] at 0 has limit 0 and value 1; xsin(1/x) has limit 0 and no value at 0.
Check yourselfChoose one
sgnx is 1 for x>0, −1 for x<0 and 0 at 0. What happens at 0?
Why
ϕ(0−0)=−1 and ϕ(0+0)=1 exist and differ: a jump (Hardy’s case β, with the value equal to neither side, like [x]−[−x]). Redefining the single value ϕ(0) cannot repair it, so it is not removable. The value lying “in between” is irrelevant.
Check yourselfEnter a number
How many points of discontinuity does [2x] have in the open interval (0,3)?
Why
[2x] jumps where 2x is an integer, i.e. at x=21,1,23,2,25: five points. (0 and 3 are not in the open interval.)
Check yourselfChoose one
ϕ is steadily increasing on (−1,1) and discontinuous at 0. What kind of discontinuity can it be?
Why
By §95, ϕ(0−0) and ϕ(0+0) exist and are finite (bounded by ϕ(−21) and ϕ(21)), with ϕ(0−0)≤ϕ(0)≤ϕ(0+0). If they were equal, ϕ(0) would be squeezed to the same value and ϕ would be continuous. So they differ: a jump.
Hardy’s language
It is natural to call a function continuous if its graph is a continuous curve, and otherwise discontinuous. Let us take this as a provisional definition and try to distinguish more precisely some of the properties which are involved in it.
— G. H. Hardy, §99
Summary
Summary
ϕ is continuous at ξ when ϕ(ξ−0)=ϕ(ξ)=ϕ(ξ+0); equivalently, for every ε there is δ with ∣ϕ(x)−ϕ(ξ)∣<ε for ∣x−ξ∣<δ.
Picture: however narrow the band around ϕ(ξ), some vertical strip around ξ keeps the whole graph inside it.
Sums, products, quotients (nonzero denominator) and compositions of continuous functions are continuous; so are polynomials, sin and cos.
Discontinuities: simple (removable or jump: both one-sided limits exist), infinities, and oscillatory ones. Monotone functions have only jumps.