WhatsApp us
University Maths25 Nov 2026

Uniform Continuity vs Continuity: Definition, Intuition and Proofs

The difference between continuity and uniform continuity is where δ is chosen. This post explains the definitions, the intuition, a quick test for failure, and five worked proofs including the Heine–Cantor theorem.

Uniform Continuity vs Continuity: Definition, Intuition and Proofs

A function is continuous on a set if, at each point x, for every ε > 0 you can find a δ > 0 that works at that point. It is uniformly continuous if, for every ε > 0, one δ works at every point of the set at once. So the difference is only the order of the quantifiers: for continuity δ may depend on ε and x; for uniform continuity δ may depend on ε alone.

That small change has large consequences. x² is continuous on all of ℝ but not uniformly continuous there, yet it is uniformly continuous on [0, 5]. This post explains why, gives a quick test for showing a function is not uniformly continuous, and works five proofs.

The two definitions side by side

Continuous on S. For every x ∈ S and every ε > 0 there is δ > 0 such that for all y ∈ S, |x − y| < δ implies |f(x) − f(y)| < ε.

Uniformly continuous on S. For every ε > 0 there is δ > 0 such that for all x, y ∈ S, |x − y| < δ implies |f(x) − f(y)| < ε.

Read the order. In the first, x is fixed before δ is chosen, so δ can be different at different points. In the second, δ is chosen before x and y, so it has to serve the whole set. If you want a refresher on how these quantifier games work, see our guide to epsilon-N proofs for sequences and the epsilon-delta definition of a limit.

If you are working through an analysis course and want help with your own problem sheets, our online real analysis tutoring page explains how sessions with Ajay Vatsyayan work.

The intuition: does the graph get steeper without limit?

Picture a horizontal strip of height 2ε around a point on the graph. Continuity says you can always find a narrow enough vertical window of width 2δ so that the graph stays inside the strip. Uniform continuity says one window width works wherever you slide it along the graph.

That fails when the graph becomes arbitrarily steep somewhere in the set. For x² on ℝ, the slope 2x grows without bound, so far out you need ever narrower windows. For 1/x on (0, 1), the graph shoots up near 0. For sin(1/x) on (0, 1), the graph oscillates faster and faster near 0. In all three, no single δ works.

A bounded derivative is a sufficient condition: if |f′(x)| ≤ M on an interval, the mean value theorem gives |f(x) − f(y)| ≤ M|x − y|, so δ = ε/M works. It is not necessary: √x is uniformly continuous on [0, ∞) although its derivative is unbounded near 0.

A quick test for failure

To show f is not uniformly continuous on S, negate the definition: there is ε₀ > 0 such that for every δ > 0 some pair x, y ∈ S has |x − y| < δ but |f(x) − f(y)| ≥ ε₀.

The practical version uses sequences. Find xₙ, yₙ ∈ S with

xₙ − yₙ → 0 but |f(xₙ) − f(yₙ)| ≥ ε₀ for every n.

Then for any δ, large enough n gives a pair closer than δ whose images are at least ε₀ apart. Most "show this is not uniformly continuous" questions are solved by finding such a pair of sequences.

Examples at a glance

fSetContinuous?Uniformly continuous?Reason
3x + 2ℝyesyesδ = ε/3
x²[0, 5]yesyesdifference at most 10 times the gap
x²ℝyesnoxₙ = n, yₙ = n + 1/n
1/x(0, 1)yesnoxₙ = 1/n, yₙ = 1/(n + 1)
1/x[1, ∞)yesyesdifference at most the gap
√x[0, ∞)yesyesδ = ε²
sin(1/x)(0, 1)yesnooscillation near 0

Proof 1: x² is uniformly continuous on [0, 5]

Scratch work. Factor: |x² − y²| = |x + y| · |x − y|. On [0, 5], x + y ≤ 10, so |x² − y²| ≤ 10|x − y|. That is below ε when |x − y| < ε/10, and this δ does not depend on x or y.

Proof. Let ε > 0 and put δ = ε/10. For x, y ∈ [0, 5] with |x − y| < δ,

Difference: |x² − y²| = |x + y| · |x − y| ≤ 10|x − y| < 10δ = ε.

So x² is uniformly continuous on [0, 5]. ∎

Proof 2: x² is not uniformly continuous on ℝ

Scratch work. Far out the graph is steep, so take points far out that are close together: xₙ = n and yₙ = n + 1/n. The gap is 1/n → 0, but (n + 1/n)² − n² = 2 + 1/n², which never drops below 2.

Proof. Take ε₀ = 2. Let δ > 0 and choose n ∈ ℕ with 1/n < δ. Put x = n and y = n + 1/n. Then |x − y| = 1/n < δ, while

Difference: y² − x² = 2 + 1/n² ≥ 2 = ε₀.

So no δ works for ε₀ = 2, and x² is not uniformly continuous on ℝ. ∎

Commentary. Proofs 1 and 2 together show that uniform continuity is a property of a function on a set, not of the function alone.

Proof 3: 1/x on (0, 1) and on [1, ∞)

Not uniformly continuous on (0, 1). Let xₙ = 1/n and yₙ = 1/(n + 1) for n ≥ 2, both in (0, 1). Their gap is 1/(n(n + 1)) → 0, but f(yₙ) − f(xₙ) = (n + 1) − n = 1. Take ε₀ = 1: for any δ > 0 choose n ≥ 2 with 1/(n(n + 1)) < δ, and that pair breaks the condition. ∎

Uniformly continuous on [1, ∞). For x, y ≥ 1,

Difference: |1/x − 1/y| = |x − y|/(xy) ≤ |x − y|,

because xy ≥ 1. Given ε > 0, δ = ε works for every x and y. ∎

Commentary. The trouble with 1/x is near 0, not out at infinity. An unbounded domain does not by itself stop uniform continuity, and a bounded one is not enough unless the interval is also closed.

Proof 4: √x is uniformly continuous on [0, ∞)

Scratch work. The derivative 1/(2√x) is unbounded near 0, so the mean value theorem gives no single bound. Instead prove the inequality |√x − √y| ≤ √|x − y|. Then |x − y| < ε² gives |√x − √y| < ε.

To prove the inequality, suppose x ≥ y ≥ 0. Then √x − √y ≥ 0 and √x − √y ≤ √x + √y, so

(√x − √y)² ≤ (√x − √y)(√x + √y) = x − y.

Taking square roots gives √x − √y ≤ √(x − y).

Proof. Let ε > 0 and put δ = ε². For x, y ≥ 0 with |x − y| < δ, label them so that x ≥ y. By the inequality above,

Difference: |√x − √y| ≤ √(x − y) < √δ = ε.

So √x is uniformly continuous on [0, ∞). ∎

Proof 5: the Heine–Cantor theorem

Theorem. If f is continuous on a closed bounded interval [a, b], then f is uniformly continuous on [a, b].

Scratch work. Argue by contradiction with the sequence test. If f fails, there are pairs xₙ, yₙ with gaps shrinking to 0 and images at least ε₀ apart. Bolzano–Weierstrass gives a convergent subsequence, and closedness keeps its limit c inside [a, b]. Continuity at c then forces the image gap to 0.

Proof. Suppose f is not uniformly continuous on [a, b]. Then there is ε₀ > 0 such that for each n ∈ ℕ (taking δ = 1/n) there are xₙ, yₙ ∈ [a, b] with |xₙ − yₙ| < 1/n and |f(xₙ) − f(yₙ)| ≥ ε₀. The sequence (xₙ) is bounded, so by Bolzano–Weierstrass it has a subsequence xₙₖ → c, and c ∈ [a, b] because the interval is closed. Since |yₙₖ − xₙₖ| < 1/nₖ → 0, also yₙₖ → c. By continuity of f at c, f(xₙₖ) → f(c) and f(yₙₖ) → f(c), so f(xₙₖ) − f(yₙₖ) → 0. This contradicts |f(xₙₖ) − f(yₙₖ)| ≥ ε₀ for every k. ∎

Commentary. Both hypotheses are used. Without boundedness, x² on ℝ fails; without closedness, 1/x on (0, 1) fails, because the subsequence's limit 0 is outside the set.

Where students lose marks

  • A δ that contains x. δ = ε/(2|x| + 1) proves continuity of x², not uniform continuity. If x appears in δ, you have not finished.
  • Failure at one point. To disprove uniform continuity you need a pair of points for each δ, usually from two sequences, not one bad point.
  • "Bounded, so uniformly continuous." sin(1/x) on (0, 1) is bounded and continuous but not uniformly continuous.
  • "Unbounded domain, so not uniformly continuous." 3x + 2 and √x on [0, ∞) are counterexamples.
  • Quoting Heine–Cantor on an open interval. The theorem needs a closed bounded interval.
  • Using the derivative test backwards. A bounded derivative is enough for uniform continuity; an unbounded derivative does not prove failure.

Practice set

  1. Is f(x) = 5x − 7 uniformly continuous on ℝ?
  2. Show x³ is uniformly continuous on [−2, 2].
  3. Show x³ is not uniformly continuous on ℝ.
  4. Is ln x uniformly continuous on (0, 1)?
  5. Is f(x) = 1/(1 + x²) uniformly continuous on ℝ?

Answers. (1) Yes, δ = ε/5. (2) |x³ − y³| = |x − y| · |x² + xy + y²| ≤ 12|x − y| on [−2, 2], so δ = ε/12. (3) Take xₙ = n, yₙ = n + 1/n: the gap tends to 0 but yₙ³ − xₙ³ = 3n + 3/n + 1/n³ ≥ 3. (4) No: xₙ = e^(−n) and yₙ = e^(−n−1) get closer but their logarithms always differ by 1. (5) Yes: the largest value of |f′(x)| is 3√3/8 ≈ 0.65, at x = ±1/√3, so by the mean value theorem δ = ε works.

Why uniform continuity matters

It is the property that makes a continuous function on [a, b] Riemann integrable: one δ controls the oscillation on every small subinterval at once. The same idea explains why the error of numerical integration methods such as Simpson's rule and the trapezoidal rule shrinks uniformly as the step size falls. Uniform continuity also lets a function on an open interval be extended continuously to its endpoints, and it leads straight to uniform convergence of sequences of functions, the next big topic in most analysis courses. If proofs are still new, start with how to start real analysis proofs.

How Maths Bodhi helps

We go through your own course's problem sheets, check whether your δ really is independent of x, and practise the sequence test until finding the bad pair feels natural. Other courses are listed on our university maths hub. We explain, practise and review your own work; we don't write graded assignments or sit exams for anyone. Home tuition is available in Gurgaon (Gurugram). Students elsewhere in India and abroad learn with us online. You can book a free demo class.

Written and checked by the Maths Bodhi team (November 2026).

Frequently asked questions

What is the difference between continuity and uniform continuity?
For continuity δ may depend on the point x as well as ε; for uniform continuity one δ, depending only on ε, must work for every point of the set.
Is every continuous function uniformly continuous?
No. x² on ℝ and 1/x on (0, 1) are continuous but not uniformly continuous; on a closed bounded interval, though, every continuous function is.
How do you prove a function is not uniformly continuous?
Find sequences xₙ and yₙ whose gap tends to 0 while the gap between f(xₙ) and f(yₙ) stays at least some fixed ε₀.
Does a bounded derivative imply uniform continuity?
Yes. If the derivative is bounded by M, the mean value theorem shows δ = ε/M works everywhere.
Is √x uniformly continuous?
Yes, on [0, ∞), because the difference of square roots is at most the square root of the difference, so δ = ε² works.
What is the Heine–Cantor theorem?
It states that a continuous function on a closed bounded interval is uniformly continuous there.
real analysisuniform continuitycontinuityepsilon deltaproofs