Maths WorkshopMaths problems with full solutions
Exercise 113Calculus › Single-variable calculus › Continuity › Continuous and discontinuous functionsL1Added 2 Nov 2026

x² is not uniformly continuous on the real line

#uniform continuity#sequences#counterexamples

Statement

Show that f(x)=x2f(x)=x^2 is continuous on R\mathbb{R} but not uniformly continuous on R\mathbb{R}. Show that it is uniformly continuous on [0,5][0,5].

Hint

To negate uniform continuity, find two sequences (xn)(x_n), (yn)(y_n) with xn−yn→0x_n-y_n\to0 but f(xn)−f(yn)↛0f(x_n)-f(y_n)\not\to0. For the second part, factor x2−y2x^2-y^2.

Show solutionHide solution

Solution

Negation. ff is *not* uniformly continuous if there is an ε0>0\varepsilon_0>0 such that for every δ>0\delta>0 one can find x,yx,y with ∣x−y∣<δ|x-y|<\delta and ∣f(x)−f(y)∣≥ε0|f(x)-f(y)|\ge\varepsilon_0.

On R\mathbb{R}. Take xn=n+1nx_n=n+\frac1n and yn=ny_n=n. Then ∣xn−yn∣=1n→0|x_n-y_n|=\frac1n\to0, but
xn2−yn2=2+1n2≥2.x_n^2-y_n^2=2+\frac1{n^2}\ge2.
So ε0=2\varepsilon_0=2 works: however small δ\delta is, for n>1δn>\frac1\delta the points xn,ynx_n,y_n are δ\delta-close with values at least 22 apart.

On [0,5][0,5]. For x,y∈[0,5]x,y\in[0,5], ∣x2−y2∣=∣x−y∣ ∣x+y∣≤10∣x−y∣|x^2-y^2|=|x-y|\,|x+y|\le10|x-y|. So ff is 1010-Lipschitz on [0,5][0,5], hence uniformly continuous.

Moral. The faster the graph climbs, the smaller δ\delta must be. On the whole line the slope 2x2x is unbounded, so no single δ\delta can do. On a bounded interval it is bounded.