Tutorials › Real Analysis › Uniform Continuity of the Square Root

Uniform Continuity · Tutorial 370 of 1000

Uniform Continuity of the Square Root

Learn a global estimate for square roots, use it to choose a uniform delta, and see why uniform continuity does not require a Lipschitz bound.

Intermediate 10 min read

What You'll Learn

  • Derive an estimate for the difference of two square roots on the nonnegative real numbers
  • Prove uniform continuity of the square-root function on its unbounded domain
  • Choose a uniform delta from a given output tolerance
  • Distinguish uniform continuity from Lipschitz continuity near zero
  • Find a Lipschitz bound when inputs are bounded away from zero

A Uniform Estimate on an Unbounded Domain

The previous tutorial showed that polynomials are Lipschitz on bounded sets by controlling the input sizes in a difference estimate. The square-root function presents a different situation. Its domain \([0,\infty)\) is unbounded, so a bound based on keeping inputs in a fixed bounded set would not establish uniform continuity on the whole domain. Instead, a direct comparison of two square roots gives an estimate that works for every pair of nonnegative inputs.

The function \(s(x)=\sqrt{x}\) is continuous at every point of its domain, as established in “Continuity of the Square-Root Function.” Uniform continuity asks for more: for each output tolerance, one input tolerance must work regardless of where the two inputs lie. The estimate below provides exactly that common control.

Definition: A function \(f:E\to\mathbb{R}\) is uniformly continuous on \(E\) if, for every \(\varepsilon>0\), there exists a \(\delta>0\) such that for all \(x,y\in E\), \(|x-y|<\delta\) implies \(|f(x)-f(y)|<\varepsilon\). The choice of \(\delta\) may depend on \(\varepsilon\), but not on the particular points \(x\) and \(y\).

The Square-Root Difference Estimate

For nonnegative \(x\) and \(y\), the square roots are nonnegative as well. If \(x\geq y\), then \(\sqrt{x}\geq\sqrt{y}\), and

$$ x-y =(\sqrt{x}-\sqrt{y})(\sqrt{x}+\sqrt{y}) \geq(\sqrt{x}-\sqrt{y})^2. $$

The last inequality follows because \(\sqrt{x}+\sqrt{y}\geq\sqrt{x}-\sqrt{y}\geq0\). Thus the square of the change in the square root is no larger than the change in the input. Reversing the roles of \(x\) and \(y\) when necessary gives the estimate for every pair.

Theorem (Square-Root Difference Estimate): For all \(x,y\in[0,\infty)\), $$ |\sqrt{x}-\sqrt{y}|\leq\sqrt{|x-y|}. $$

Proof. If \(x\geq y\), both sides are nonnegative and the calculation above gives \(|\sqrt{x}-\sqrt{y}|^2\leq x-y=|x-y|\). Taking nonnegative square roots yields the claimed inequality. If \(y\geq x\), the same argument with \(x\) and \(y\) interchanged gives \(|\sqrt{x}-\sqrt{y}|^2\leq y-x=|x-y|\), and taking nonnegative square roots again gives the result. These two cases include equality of the inputs, so the estimate holds for every \(x,y\in[0,\infty)\). \(\square\)

The estimate has the form of a positive-power bound: the output difference is at most the square root of the input difference. In particular, small input distances force small output distances uniformly, even when the inputs are very large or very close to zero.

Uniform Continuity on the Whole Domain

Theorem (Uniform Continuity of the Square Root): The function \(s:[0,\infty)\to\mathbb{R}\), defined by \(s(x)=\sqrt{x}\), is uniformly continuous on \([0,\infty)\).

Proof. Fix \(\varepsilon>0\) and choose \(\delta=\varepsilon^2\), which is positive. Let \(x,y\in[0,\infty)\) satisfy \(|x-y|<\delta\). By the Square-Root Difference Estimate,

$$ |\sqrt{x}-\sqrt{y}| \leq\sqrt{|x-y|} <\sqrt{\delta} =\varepsilon. $$

This \(\delta\) depends only on \(\varepsilon\), not on \(x\) or \(y\). Therefore the defining condition for uniform continuity holds on the whole domain. \(\square\)

The choice \(\delta=\varepsilon^2\) may be much smaller than necessary for a particular pair of inputs, but it is a single valid choice for all pairs. The domain's unboundedness causes no problem because the square-root estimate contains no factor that grows with the size of the inputs.

Worked Example: Choosing Delta for a Given Tolerance

Suppose the desired output tolerance is \(\varepsilon=0.04\). The theorem's choice gives

$$ \delta=\varepsilon^2=(0.04)^2=0.0016. $$

For any \(x,y\geq0\) with \(|x-y|<0.0016\), the estimate gives

$$ |\sqrt{x}-\sqrt{y}| \leq\sqrt{|x-y|} <\sqrt{0.0016} =0.04. $$

For instance, take \(x=9.001\) and \(y=9\). Their input distance is \(0.001<0.0016\), and the estimate guarantees an output distance less than \(0.04\). No separate choice of \(\delta\) is needed when the inputs are near a different point of the domain.

The Estimate Is Useful Near Zero

A familiar rationalization identity for \(x\ne y\) is

$$ |\sqrt{x}-\sqrt{y}| =\frac{|x-y|}{\sqrt{x}+\sqrt{y}}. $$

This identity is correct for nonnegative \(x,y\) with \(x\ne y\), but the denominator can be arbitrarily small when both inputs are close to zero. Consequently, it does not by itself provide a single Lipschitz constant on \([0,\infty)\). The square-root difference estimate avoids dividing by a quantity that may approach zero.

Worked Example: Inputs Near Zero

Let \(x=0.0004\) and \(y=0\). Then

$$ |x-y|=0.0004 \qquad\text{and}\qquad |\sqrt{x}-\sqrt{y}|=|0.02-0|=0.02. $$

The square-root difference estimate is exact in this case:

$$ |\sqrt{x}-\sqrt{y}|=0.02=\sqrt{0.0004}=\sqrt{|x-y|}. $$

This example also shows why a bound of the form \(C|x-y|\), with a fixed finite \(C\), cannot hold for all nonnegative inputs. Here the ratio of output distance to input distance is \(0.02/0.0004=50\); choosing \(x=t^2\) and \(y=0\) makes the ratio \(1/t\), which grows without bound as \(t\) decreases.

Uniform Continuity Does Not Require a Lipschitz Bound

A function is Lipschitz if there is a finite constant \(L\geq0\) such that \(|f(x)-f(y)|\leq L|x-y|\) for every pair in its domain. A Lipschitz function is uniformly continuous, but the square-root function on \([0,\infty)\) illustrates that uniform continuity can hold without a global Lipschitz bound.

Theorem (The Square Root Is Not Lipschitz on \([0,\infty)\)): There is no finite constant \(L\geq0\) such that \(|\sqrt{x}-\sqrt{y}|\leq L|x-y|\) for all \(x,y\in[0,\infty)\).

Proof. Suppose such an \(L\) existed. For each positive integer \(n\), choose \(x=1/n^2\) and \(y=0\). The proposed Lipschitz inequality would imply

$$ \frac{1}{n} =|\sqrt{1/n^2}-\sqrt{0}| \leq L\left|\frac{1}{n^2}-0\right| =\frac{L}{n^2}. $$

Multiplying by \(n^2>0\) gives \(n\leq L\) for every positive integer \(n\). No finite real number \(L\) bounds all positive integers, a contradiction. Thus no global Lipschitz constant exists. \(\square\)

There is no conflict between this result and uniform continuity. The square-root estimate gives a bound involving \(\sqrt{|x-y|}\), rather than a constant times \(|x-y|\). Since \(\sqrt{h}\) tends to zero as \(h\) tends to zero through nonnegative values, this weaker rate of control is still enough for uniform continuity.

Worked Example: A Lipschitz Bound Away from Zero

Although the square root is not Lipschitz on its entire domain, it is Lipschitz on \([4,\infty)\). If \(x,y\geq4\) and \(x\ne y\), rationalization gives

$$ |\sqrt{x}-\sqrt{y}| =\frac{|x-y|}{\sqrt{x}+\sqrt{y}} \leq\frac{|x-y|}{2\sqrt{4}} =\frac{1}{4}|x-y|. $$

If \(x=y\), both sides of the inequality \(|\sqrt{x}-\sqrt{y}|\leq\frac14|x-y|\) are zero, so the same bound holds. Hence \(1/4\) is a Lipschitz constant on \([4,\infty)\). The denominator in the rationalized expression is now at least \(4\), which is precisely the lower bound missing near zero.

Reading the Two Estimates Correctly

The two estimates answer different questions. The global bound \(|\sqrt{x}-\sqrt{y}|\leq\sqrt{|x-y|}\) applies to every pair of nonnegative inputs and proves uniform continuity on the entire domain. The rationalized bound can give a stronger, linear estimate when the inputs are known to stay away from zero. Near zero, its denominator can become small, while the square-root estimate remains valid without an additional condition.

A common pitfall is to see that the square-root function is continuous at every point and conclude, without further argument, that it must be uniformly continuous. Pointwise continuity alone does not give a common radius across an unbounded domain. Here the uniform conclusion follows from a specific estimate whose constants do not depend on the location of the inputs. Another pitfall is to treat failure of a global Lipschitz inequality as failure of uniform continuity. The square root shows why those properties must be distinguished: it is uniformly continuous but not globally Lipschitz.

Check Your Understanding

Use the square-root estimate and the results in this tutorial to answer the following questions.

  1. For \(x,y\geq0\), why does the case \(x\geq y\) imply \((\sqrt{x}-\sqrt{y})^2\leq x-y\)?
  2. What value of \(\delta\) does the proof choose for a given \(\varepsilon>0\), and why is it independent of \(x\) and \(y\)?
  3. For \(x=0.09\) and \(y=0.04\), calculate both \(|x-y|\) and \(|\sqrt{x}-\sqrt{y}|\), and check the difference estimate.
  4. Which sequence of input pairs shows that no finite global Lipschitz constant exists for the square-root function on \([0,\infty)\)?
  5. Why does rationalization yield a Lipschitz bound on \([4,\infty)\) that is not available on all of \([0,\infty)\)?