Tutorials › Real Analysis › Sequential Proofs of Uniform Continuity

Uniform Continuity · Tutorial 386 of 1000

Sequential Proofs of Uniform Continuity

Use sequences of nearby inputs to prove uniform continuity, combine uniformly continuous functions, and handle functions defined on separated parts of a domain.

Intermediate 11 min read

What You'll Learn

  • Use the Sequential Criterion for Uniform Continuity as a proof tool without repeating its proof
  • Prove that the product of two bounded uniformly continuous functions is uniformly continuous
  • Establish uniform continuity on a finite union of separated pieces
  • Construct nearby input sequences that demonstrate failure of uniform continuity
  • Apply sequential reasoning to functions with different formulas on separated parts of a domain

Turning Uniform Continuity into a Sequence Argument

The definition of uniform continuity compares every pair of inputs that are sufficiently close, with one radius working throughout the domain. The Sequential Criterion for Uniform Continuity, established earlier in this course, gives a way to organize the same global question using sequences: it tests what happens to function values along pairs of inputs whose distances tend to zero. We will use that criterion as a tool, not re-prove it.

The sequential viewpoint is especially useful in two situations. To disprove uniform continuity, one can construct pairs that get arbitrarily close while their function values remain separated. To prove it, one can suppose that such pairs exist and use other information about the function to rule them out. This tutorial develops both approaches and uses them to prove two useful results.

Sequential strategy: For a proof, start with arbitrary sequences \(x_n,y_n\) in the domain such that \(|x_n-y_n|\to0\), and show that \(|f(x_n)-f(y_n)|\to0\). For a disproof, construct such sequences for which the output differences do not tend to zero. The Sequential Criterion for Uniform Continuity then gives the corresponding conclusion.

A sequential proof does not require the sequences themselves to converge. In many important examples, both input sequences move farther and farther out in the domain; only the distance between the two inputs tends to zero. That is one reason this method detects a failure that pointwise continuity at each fixed input may not reveal.

Constructing a Sequential Witness

A direct way to disprove uniform continuity is to find two input sequences that approach each other while their outputs stay a definite distance apart. The calculations must verify both parts: the input distance tends to zero, and the output distance does not.

Worked Example: A Nearby-Pair Test for \(\sin(x^2)\)

Define \(f:[0,\infty)\to\mathbb{R}\) by \(f(x)=\sin(x^2)\). For each positive integer \(n\), set

$$ x_n=\sqrt{2\pi n+\frac{\pi}{2}}, \qquad y_n=\sqrt{2\pi n+\frac{3\pi}{2}}. $$

Both sequences lie in the domain. Their squared values give

$$ f(x_n)=\sin\left(2\pi n+\frac{\pi}{2}\right)=1, \qquad f(y_n)=\sin\left(2\pi n+\frac{3\pi}{2}\right)=-1. $$

Thus \(|f(x_n)-f(y_n)|=2\) for every \(n\). Meanwhile, rationalizing the difference of the square roots gives

$$ |y_n-x_n| = \frac{\pi}{\sqrt{2\pi n+\frac{3\pi}{2}}+\sqrt{2\pi n+\frac{\pi}{2}}} \longrightarrow 0. $$

The Sequential Criterion for Uniform Continuity therefore shows that \(f\) is not uniformly continuous on \([0,\infty)\). The important feature is that the inputs grow while the spacing between them shrinks; their function values still alternate between \(1\) and \(-1\).

When searching for such a witness, it can help to decide first which two output values would make the failure clear, and then solve for inputs that produce those values. The example above chooses inputs whose squares differ by \(\pi\) and whose sine values are exactly opposite. This makes the output calculation exact rather than approximate.

Products of Bounded Uniformly Continuous Functions

Products are not automatically controlled by the uniform continuity of their factors: a difference of products includes both differences between function values and the sizes of those values. A uniform bound on each factor supplies the missing control. The following theorem packages this idea as a sequence argument.

Theorem (Products of Bounded Uniformly Continuous Functions): Let \(E\subseteq\mathbb{R}\), and let \(f,g:E\to\mathbb{R}\) be bounded and uniformly continuous on \(E\). Then \(fg:E\to\mathbb{R}\), defined by \((fg)(x)=f(x)g(x)\), is uniformly continuous on \(E\).

Proof. Since \(f\) and \(g\) are bounded, choose finite constants \(M_f,M_g\geq0\) such that \(|f(x)|\leq M_f\) and \(|g(x)|\leq M_g\) for every \(x\in E\). Let \((x_n)\) and \((y_n)\) be any sequences in \(E\) with \(|x_n-y_n|\to0\). By uniform continuity of \(f\) and \(g\),

$$ |f(x_n)-f(y_n)|\longrightarrow0, \qquad |g(x_n)-g(y_n)|\longrightarrow0. $$

For every \(n\), add and subtract \(f(x_n)g(y_n)\) and apply the triangle inequality:

$$ \begin{aligned} |f(x_n)g(x_n)-f(y_n)g(y_n)| &\leq |f(x_n)|\,|g(x_n)-g(y_n)|\\ &\quad+|g(y_n)|\,|f(x_n)-f(y_n)|\\ &\leq M_f|g(x_n)-g(y_n)| +M_g|f(x_n)-f(y_n)|. \end{aligned} $$

Both terms on the final line tend to zero, so the product difference tends to zero. The Sequential Criterion for Uniform Continuity now implies that \(fg\) is uniformly continuous on \(E\). \(\square\)

Worked Example: Multiplying Sine and Cosine

On \(\mathbb{R}\), both \(\sin x\) and \(\cos x\) are bounded in absolute value by \(1\). Sine is uniformly continuous by the result established earlier in this course. Cosine is also uniformly continuous: for all \(x,y\in\mathbb{R}\), the identity \(\cos x=\sin(x+\pi/2)\) and the sine estimate give

$$ |\cos x-\cos y| = \left|\sin\left(x+\frac{\pi}{2}\right) -\sin\left(y+\frac{\pi}{2}\right)\right| \leq |x-y|. $$

The product theorem therefore shows that \(h(x)=\sin x\cos x\) is uniformly continuous on \(\mathbb{R}\). To see the sequential estimate directly, take any sequences with \(|x_n-y_n|\to0\). The product identity used in the proof yields

$$ |h(x_n)-h(y_n)| \leq |\sin x_n|\,|\cos x_n-\cos y_n| +|\cos y_n|\,|\sin x_n-\sin y_n| \leq 2|x_n-y_n|\longrightarrow0. $$

The bounds by \(1\) ensure that neither factor magnifies the small changes in the other.

The boundedness hypothesis is a genuine part of the theorem, not a technical convenience. Without it, the displayed product estimate contains factors that may be arbitrarily large. Uniform continuity controls the differences of the factors, but it does not by itself bound their values across the domain.

Combining Uniform Continuity Across Separated Pieces

A domain need not be an interval, and a function need not have one formula everywhere. If a domain is a finite union of pieces that stay a positive distance apart, uniform continuity on each piece can be combined into uniform continuity on the whole domain. The separation prevents close inputs from coming from different pieces.

Theorem (Uniform Continuity on a Finite Union of Separated Sets): Suppose \(E=E_1\cup\cdots\cup E_m\) is a finite union of pairwise disjoint subsets of \(\mathbb{R}\). Assume that for every distinct \(i,j\), there is a number \(d_{ij}>0\) such that \(|x-y|\geq d_{ij}\) whenever \(x\in E_i\) and \(y\in E_j\). If the restriction of \(f:E\to\mathbb{R}\) to each \(E_i\) is uniformly continuous, then \(f\) is uniformly continuous on \(E\).

Proof. Use the Sequential Criterion for Uniform Continuity. Let \((x_n)\) and \((y_n)\) be sequences in \(E\) with \(|x_n-y_n|\to0\). We show that \(|f(x_n)-f(y_n)|\to0\). If this were false, there would be an \(\varepsilon_0>0\) and a subsequence of indices \(n_k\) such that

$$ |f(x_{n_k})-f(y_{n_k})|\geq\varepsilon_0 \qquad\text{for every }k. $$

There are only finitely many ordered pairs of pieces. Hence, by passing to a further subsequence, we may assume that \(x_{n_k}\in E_i\) and \(y_{n_k}\in E_j\) for fixed indices \(i,j\). If \(i\ne j\), the separation assumption gives \(|x_{n_k}-y_{n_k}|\geq d_{ij}>0\) for every \(k\), contradicting \(|x_n-y_n|\to0\). Therefore \(i=j\). The restriction of \(f\) to \(E_i\) is uniformly continuous, so \(|x_{n_k}-y_{n_k}|\to0\) implies \(|f(x_{n_k})-f(y_{n_k})|\to0\), contradicting the lower bound \(\varepsilon_0\). Thus the output differences tend to zero for the original sequences. The sequential criterion proves that \(f\) is uniformly continuous on \(E\). \(\square\)

Worked Example: Different Formulas on Two Separated Rays

Let \(E=(-\infty,-1]\cup[1,\infty)\), and define

$$ f(x)= \begin{cases} \sin x,&x\leq-1,\\[2mm] \dfrac{x}{1+x},&x\geq1. \end{cases} $$

On the left-hand piece, the sine estimate gives \(|f(x)-f(y)|\leq|x-y|\). For \(x,y\geq1\), direct subtraction gives

$$ \left|\frac{x}{1+x}-\frac{y}{1+y}\right| = \frac{|x-y|}{(1+x)(1+y)} \leq\frac{1}{4}|x-y|, $$

because \(1+x\geq2\) and \(1+y\geq2\). Thus each restriction is uniformly continuous. If one point belongs to each piece, say \(x\leq-1\) and \(y\geq1\), then \(|x-y|=y-x\geq2\). The pieces are separated by a positive distance, so the theorem applies and \(f\) is uniformly continuous on \(E\).

The theorem does not require the two formulas to agree at a boundary point: there is no boundary point shared by these pieces. What matters here is that sufficiently close inputs must lie in the same piece.

Reading the Sequential Argument Carefully

A useful proof habit is to distinguish what the input sequences are required to do from what they are not required to do. In the Sequential Criterion for Uniform Continuity, the essential input condition is that the pairwise distances tend to zero. The individual sequences need not converge, and they need not be bounded. The example with \(\sin(x^2)\) uses precisely this freedom.

For proofs, the most common structure is to take arbitrary close input sequences and use a quantitative estimate, a bound, or a finite selection argument to force their output differences to zero. The product theorem uses bounds on the factors; the separated-set theorem uses the fact that only finitely many pieces are available and that distinct pieces cannot contain arbitrarily close pairs.

For disproofs, one must provide a single pair of sequences that defeats the required conclusion. It is not enough to show that function values can be large, or that the function varies substantially somewhere. The inputs must get arbitrarily close while the output differences fail to approach zero. Conversely, checking only pairs whose inputs converge to a fixed point may miss failures caused by inputs escaping to infinity.

1
For a proof, choose arbitrary close sequences.
Start with \(x_n,y_n\in E\) satisfying \(|x_n-y_n|\to0\); do not assume more than the criterion provides.
2
Identify the control available.
Look for uniform estimates, bounded factors, or a finite partition with separated pieces.
3
For a disproof, make both calculations explicit.
Verify that the input distances tend to zero and that the output differences do not.

These arguments illustrate why sequential proofs are more than a change in notation. They make it possible to isolate exactly how uniformity can fail, and they allow global conclusions to follow from sequence estimates that are often easier to organize than a direct search for one common radius.

Check Your Understanding

Use the sequential criterion and the two proved results to answer the following questions.

  1. In the example \(f(x)=\sin(x^2)\), what exact output difference occurs for each chosen pair, and why does this rule out uniform continuity?
  2. Where does boundedness enter the proof that the product of two bounded uniformly continuous functions is uniformly continuous?
  3. Why must the product theorem assume that both factors are bounded?
  4. In the separated-set theorem, what contradiction rules out input sequences lying in two different pieces along a subsequence?
  5. Why is it not enough, when disproving uniform continuity, to exhibit large function values without also checking that the corresponding inputs become close?