An equation f(x,y)=0 defines a curve, and to ask whether it defines y as a continuous function of x (the next lesson) we need to know what it means for f itself to be continuous. Partial derivatives, double integrals and every function of a point in the plane rest on the same notion. In §108 Hardy gives the definition and one striking example: a function that is continuous along every horizontal and every vertical line, yet not continuous.
The idea
For one variable, “x near ξ” meant an interval round ξ. For two variables, “(x,y) near (ξ,η)” should mean a small region round the point, and Hardy uses a square with sides parallel to the axes. Continuity at (ξ,η) says: however small a tolerance ε is named, some square round the point keeps every value of ϕ within ε of ϕ(ξ,η).
The trap is that a square contains far more than the two lines through its centre. A function can behave perfectly on the horizontal and vertical lines, and even on every straight line through the point, and still misbehave in every square.
ExploreShrink the square
Try this.With Hardy’s function, shrink the green square towards the origin and watch the range of values in the readout. Then tilt the purple line (change α) and read the limit along it. Switch to xy and shrink the square again. Finally choose x2y/(x4+y2) and approach along lines, then along parabolas.
ϕ(x,y)=x2+y22xy, with ϕ(0,0)=0
xy
φ > 0 (darker = larger)
φ < 0
square of half-side s
path of approach
Approach along
In the square ∣x∣,∣y∣≤0.5, φ takes values from about −1 to 1. Along the line y=0.5x, φ → 0.8 as x→0. However small the square, the range does not shrink, so φ is not continuous at the origin, although φ(x, 0) and φ(0, y) are continuous functions of one variable.
What to notice
Hardy’s function is constant along each line through the origin (the colours run in rays), with value 2α/(1+α2) on y=αx. So every square, however small, contains the values 1 (on y=x) and −1 (on y=−x), while ϕ(0,0)=0. On the axes (α=0) it is 0, which is why it is continuous in each variable separately. For xy the range shrinks to 0 with the square. The last function tends to 0 along every line, but is α/(1+α2) along each parabola y=αx2.
Precise statements
DefinitionContinuity of a function of two variablesHardy: §108
ϕ(x,y) is continuous at (ξ,η) if for every ε>0 there is a δ>0 such that
∣ϕ(x,y)−ϕ(ξ,η)∣<εwhenever ∣x−ξ∣≤δ and ∣y−η∣≤δ.
That is, there is a square of side 2δ, centred at (ξ,η) with sides parallel to the axes, at every point of which (inside or on the boundary) ϕ differs from ϕ(ξ,η) by less than ε. In particular ϕ must be defined throughout such a square.
Hardy also mentions the informal version, “ϕ(x,y)→ϕ(ξ,η) when x→ξ and y→η in any manner”, and warns that “in any manner” only has a precise meaning through the inequalities of the definition. A square is a matter of convenience: a disc (x−ξ)2+(y−η)2<δ gives an equivalent definition, since every square round a point contains a disc round it and vice versa.
TheoremArithmetic preserves continuityHardy: §108
Sums and products of functions continuous at (ξ,η) are continuous there, and so are quotients whose denominator is not 0 at (ξ,η). Every polynomial in x and y is continuous at every point.
TheoremContinuous in both variables implies continuous in eachHardy: §108
If ϕ(x,y) is continuous at (ξ,η), then ϕ(x,η) is a continuous function of x at ξ, and ϕ(ξ,y) a continuous function of y at η. The converse is false.
Proofs
ProofPolynomials in two variables are continuous
Strategy
Start from the two simplest functions, x and y, and build up with sums and products. The proofs for sums and products are word for word those for one variable, with “square of half-side δ” in place of “interval of half-length δ”.
The coordinate functions
ϕ(x,y)=x is continuous at (ξ,η): if ∣x−ξ∣≤δ and ∣y−η∣≤δ then ∣ϕ(x,y)−ϕ(ξ,η)∣=∣x−ξ∣≤δ, so δ=21ε works. Likewise for y, and constants are trivially continuous.
Sums and products
Given ε, choose squares for ϕ and for ψ with tolerances as in the one-variable proof (§96, Examples XXXV, 1); the smaller of the two squares works for ϕ+ψ and for ϕψ.
Build the polynomial
Each monomial cxiyj is a product of continuous factors, and a polynomial is a finite sum of monomials.
∎
ProofHardy’s example: continuous in each variable, not in both
Strategy
Take ϕ(x,y)=2xy/(x2+y2) away from the origin and ϕ(0,0)=0. On the axes ϕ is 0, which gives separate continuity at the origin. On the line y=αx it is the constant 2α/(1+α2), so every square contains the value 1.
Continuous in x for fixed y
If y=0, then ϕ(x,0)=0 for every x: continuous. If y=b=0, then ϕ(x,b)=2xb/(x2+b2) is a rational function of x with denominator never 0: continuous for every x. The same holds for y with x fixed, by symmetry.
Constant along each line through the origin
For x=0, ϕ(x,αx)=x2+α2x22αx2=1+α22α. As α varies this takes every value in [−1,1]; it is 1 for α=1.
Not continuous at the origin
Take ε=21. Every square ∣x∣,∣y∣≤δ contains the point (δ,δ), where ϕ=1, and ∣1−ϕ(0,0)∣=1>21. So no δ works.
∎
Worked examples and exercises
ExerciseA function continuous at the origin●○○Hardy: §108
Let ϕ(x,y)=xy/x2+y2 for (x,y)=(0,0) and ϕ(0,0)=0. Show that ϕ is continuous at the origin.
Hint
∣xy∣≤21(x2+y2).
Solution
From (∣x∣−∣y∣)2≥0 we get ∣xy∣≤21(x2+y2), so ∣ϕ(x,y)∣≤21x2+y2. In the square ∣x∣,∣y∣≤δ this is at most 212δ<δ. So δ=ε works: the values in the square are within ε of ϕ(0,0)=0. Compare Hardy’s function: there the factor x2+y2 is missing from the numerator, and nothing makes the values small.
ExerciseEvery line is not enough●●○Hardy: §108
Let ϕ(x,y)=x2y/(x4+y2) for (x,y)=(0,0) and ϕ(0,0)=0. Show that ϕ(x,αx)→0 as x→0 for every α (and ϕ(0,y)=0), but that ϕ is not continuous at the origin.
Hint
On y=αx: ϕ=αx/(x2+α2). On y=x2: compute.
Solution
On y=αx with x=0: ϕ=x4+α2x2αx3=x2+α2αx. If α=0 this tends to 0/α2=0; if α=0 it is 0. On the y-axis ϕ=0.
On the parabola y=x2 with x=0: ϕ=x4/(2x4)=21. Every square round the origin contains points (t,t2) with t=0, so with ε=41 no δ works. Approaching along all straight lines does not test all the points near the origin. (In general ϕ(x,αx2)=α/(1+α2).)
ExerciseSquares and discs●○○Hardy: §108
Show that the definition of continuity is unchanged if “∣x−ξ∣≤δ and ∣y−η∣≤δ” is replaced by “(x−ξ)2+(y−η)2<δ2”.
Hint
The disc of radius δ lies in the square of half-side δ; the square of half-side δ/2 lies in the disc of radius δ.
Solution
If the square condition holds with δ, it holds on the disc of radius δ, which is inside the square (if (x−ξ)2+(y−η)2<δ2 then each of ∣x−ξ∣, ∣y−η∣ is less than δ). Conversely, if the disc condition holds with δ, then the square of half-side δ/2 works: its points have (x−ξ)2+(y−η)2≤2(δ/2)2=21δ2<δ2.
ExerciseComposition●○○Hardy: §108
Show that sin(x2+y2) and 1+x2y2 are continuous at every point of the plane.
Hint
Combine the theorem on polynomials with the one-variable composition theorem (§100).
Solution
u=x2+y2 and v=1+x2y2 are polynomials, hence continuous at every (ξ,η). sin is continuous everywhere, and is continuous on [0,∞)∋v. The proof of the composition theorem goes through unchanged: given ε, continuity of sin at u0=ξ2+η2 gives γ; continuity of u at (ξ,η) gives a square on which ∣u−u0∣<γ; on that square ∣sinu−sinu0∣<ε. The same for v.
Check yourself
Check yourselfTrue or false?
If ϕ(x,η) is continuous in x at ξ and ϕ(ξ,y) is continuous in y at η, then ϕ is continuous at (ξ,η).
Why
False. Hardy’s 2xy/(x2+y2) (with 0 at the origin) is 0 on both axes, so both one-variable functions are continuous at 0; but it equals 1 at every point (t,t), t=0, so it is not continuous at the origin.
Check yourselfEnter a number
What constant value does Hardy’s function 2xy/(x2+y2) take on the line y=2x (away from the origin)?
Why
2α/(1+α2) with α=2: 4/5=0.8. Each line through the origin carries its own constant, which is why no single limit exists there.
Check yourselfChoose one
ϕ(x,y)→0 as (x,y)→(0,0) along every straight line through the origin, and ϕ(0,0)=0. What follows?
Why
x2y/(x4+y2) tends to 0 along every line (including the axes) but equals 21 on the parabola y=x2. Continuity needs every point of a small square, and lines through the centre miss most of them.
Hardy’s language
The reader should observe carefully that to assert the continuity of ϕ(x, y) with respect to the two variables x and y is to assert much more than its continuity with respect to each variable considered separately.
— G. H. Hardy, §108
Summary
Summary
ϕ(x,y) is continuous at (ξ,η) if every tolerance ε has a square ∣x−ξ∣,∣y−η∣≤δ on which ∣ϕ(x,y)−ϕ(ξ,η)∣<ε; discs give the same notion.
Sums, products, quotients (nonzero denominator) and compositions behave as for one variable; polynomials in x,y are continuous.
Continuity in both variables implies continuity in each separately, but not conversely: 2xy/(x2+y2) is constant 2α/(1+α2) on each line y=αx.
Even limits along all straight lines do not settle continuity (x2y/(x4+y2)).