Tutorials › Real Analysis › Compactness and Subsequences

Compactness · Tutorial 293 of 1000

Compactness and Subsequences

Use compactness to describe all subsequential limits of a sequence and to test whether the sequence converges.

Intermediate 9 min read

What You'll Learn

  • Define the set of subsequential limits of a sequence
  • Show that a sequence in a compact set has a nonempty compact set of subsequential limits
  • Use a diagonal choice of indices to prove that the set of subsequential limits is closed
  • Characterize convergence by uniqueness of the subsequential limit
  • Identify distinct subsequential limits in oscillating sequences
  • Explain why compactness matters when a sequence approaches a point outside its set

Compactness Organizes Subsequence Limits

The previous tutorials established that every sequence in a compact subset of \(\mathbb{R}\) has a convergent subsequence. That result guarantees at least one limit, but it does not describe all possible limits obtained by choosing different subsequences. A sequence can have one subsequential limit or many, and the full collection of these limits reveals whether the sequence settles toward a single value or continues to oscillate.

In this tutorial, we use compactness to study that collection. We will prove that a sequence lying in a compact set has a nonempty compact set of subsequential limits. We will then show that such a sequence converges exactly when this set contains just one point. The proofs use subsequences as a way to isolate persistent behavior: a subsequence can retain terms that stay away from a proposed limit, or can be chosen to approach a limit point.

Definition: A subsequence of \((x_n)\) is a sequence \((x_{n_k})\), where \(n_1<n_2<\cdots\) are positive integers. A real number \(y\) is a subsequential limit of \((x_n)\) if some subsequence of \((x_n)\) converges to \(y\). The set of all subsequential limits of \((x_n)\) will be denoted by \(C\).

The limit of a subsequence is always taken in \(\mathbb{R}\), even when the original sequence is required to lie in a particular set. When that set is compact, however, any such limit must remain in the set: compact subsets of \(\mathbb{R}\) are closed. This is one way compactness controls the limits we can obtain.

The Set of Subsequential Limits

We recall the Compact Sets Are Sequentially Compact Theorem: every sequence in a compact set has a subsequence converging to a point of that set. We also use the fact, established earlier, that compact subsets of \(\mathbb{R}\) are closed and that a closed subset of a compact set is compact. These results give nonemptiness and containment of the set \(C\). The less immediate part is proving that \(C\) is closed.

Theorem (Subsequential Limit Set of a Compact-Set Sequence): Let \(K\subseteq\mathbb{R}\) be compact, and let \((x_n)\) be a sequence with \(x_n\in K\) for every \(n\). The set \(C\) of all subsequential limits of \((x_n)\) is a nonempty compact subset of \(K\).

Proof. Since \((x_n)\) is a sequence in \(K\), the Compact Sets Are Sequentially Compact Theorem gives a subsequence that converges to some \(y\in K\). Thus \(y\in C\), so \(C\) is nonempty.

If \(z\in C\), then \(z\) is the limit of a subsequence of points in \(K\). The set \(K\) is closed, so the Sequential Criterion for Closedness implies that \(z\in K\). Hence \(C\subseteq K\).

It remains to prove that \(C\) is closed. Let \((y_j)\) be a sequence in \(C\) converging to a real number \(y\). For each \(j\), \(y_j\) is a subsequential limit of \((x_n)\). Consequently, arbitrarily far along the original sequence there are terms as close as we wish to \(y_j\). We can therefore choose indices \(n_1<n_2<\cdots\) such that

$$ |x_{n_j}-y_j|<\frac{1}{j} $$

for every \(j\). More explicitly, after choosing \(n_{j-1}\), take a subsequence converging to \(y_j\); sufficiently far along that subsequence its index exceeds \(n_{j-1}\) and its term is within \(1/j\) of \(y_j\). This supplies the next index \(n_j\). For \(j=1\), choose any suitable index \(n_1\).

The triangle inequality gives

$$ |x_{n_j}-y| \leq |x_{n_j}-y_j|+|y_j-y| <\frac{1}{j}+|y_j-y|. $$

Both terms on the right tend to zero as \(j\) increases. Therefore \(x_{n_j}\to y\), so \(y\in C\). We have shown that every convergent sequence in \(C\) has its limit in \(C\); by the Sequential Criterion for Closedness, \(C\) is closed. Since \(C\) is a closed subset of the compact set \(K\), it is compact. \(\square\)

The diagonal choice of indices is the key technique in the closedness argument. Each \(y_j\) may come from a different subsequence, so the approximating terms must be chosen in increasing order to form one subsequence of the original sequence. Making the \(j\)-th approximation within \(1/j\) ensures that its error tends to zero. The triangle inequality then transfers the convergence \(y_j\to y\) to the selected terms \(x_{n_j}\to y\).

Worked Examples

Worked Example: An Alternating Sequence with Two Limits

Define \(x_{2k}=1\) and \(x_{2k-1}=-1\) for every positive integer \(k\). All terms lie in the compact set \(K=\{-1,1\}\). The even-indexed subsequence is constantly \(1\), so it converges to \(1\). The odd-indexed subsequence is constantly \(-1\), so it converges to \(-1\).

There are no other subsequential limits. Every term of every subsequence belongs to \(\{-1,1\}\). If a subsequence converges to \(y\), its terms eventually lie within \(1/2\) of \(y\). The intervals of radius \(1/2\) around \(-1\) and \(1\) are disjoint, so the subsequence cannot contain infinitely many terms of both values and still converge. It must eventually be constant, with limit either \(-1\) or \(1\). Thus \(C=\{-1,1\}\), and the original sequence does not converge.

Worked Example: A Sequence with Limits Zero and One

For each positive integer \(k\), define

$$ x_{2k-1}=1, \qquad x_{2k}=\frac{1}{k}. $$

The terms lie in \(K=\{1\}\cup\{1/k:k\geq1\}\), which is compact: it is bounded, and its only possible limit point not already among the reciprocals is \(0\), which must be included. The odd-indexed subsequence is constantly \(1\), so \(1\in C\). The even-indexed subsequence is \((1/k)\), which converges to \(0\), so \(0\in C\).

To see that there are no other limits, suppose a subsequence converges. If it contains infinitely many odd-indexed terms, it has a further subsequence constantly equal to \(1\). Uniqueness of limits then forces the original convergent subsequence to have limit \(1\). If it contains only finitely many odd-indexed terms, its tail consists of even-indexed terms of the form \(1/k\), with \(k\) tending to infinity, so its limit is \(0\). Therefore \(C=\{0,1\}\), and the original sequence does not converge.

Worked Example: Two Interlaced Sequences with One Limit

For each positive integer \(k\), set

$$ x_{2k-1}=1-\frac{1}{k}, \qquad x_{2k}=1+\frac{1}{k}. $$

All terms lie in the compact interval \([0,2]\): for \(k\geq1\), \(0\leq 1-1/k<1\) and \(1<1+1/k\leq2\). For odd indices,

$$ \left|x_{2k-1}-1\right|=\frac{1}{k}, $$

and for even indices,

$$ \left|x_{2k}-1\right|=\frac{1}{k}. $$

Given \(\varepsilon>0\), choose a positive integer \(N\) such that \(1/N<\varepsilon\). For \(k\geq N\), each of the two displayed distances is less than \(\varepsilon\). Thus \(x_n\to1\), and every subsequence also converges to \(1\). The set of subsequential limits is \(C=\{1\}\). This example shows that a sequence may keep moving on both sides of its limit while still having just one subsequential limit.

Convergence and Uniqueness of the Subsequential Limit

A sequence can fail to converge because it repeatedly makes excursions away from a candidate limit. If its terms lie in a compact set, those excursions contain a subsequence that converges somewhere. The next theorem makes this reasoning precise: a sequence in a compact set converges if and only if its set of subsequential limits is a singleton.

Theorem (Convergence and the Subsequential Limit Set): Let \(K\subseteq\mathbb{R}\) be compact, and let \((x_n)\) be a sequence in \(K\). The sequence \((x_n)\) converges if and only if its set \(C\) of subsequential limits consists of exactly one point.

Proof. Suppose first that \(x_n\to L\). Every subsequence of a convergent sequence also converges to \(L\), so every element of \(C\) equals \(L\). The Compact Sets Are Sequentially Compact Theorem guarantees that at least one subsequence converges, so \(C\) is nonempty. Hence \(C=\{L\}\).

Conversely, suppose \(C=\{L\}\). We prove that \(x_n\to L\). Assume instead that \((x_n)\) does not converge to \(L\). By the definition of convergence, there is an \(\varepsilon>0\) such that for every positive integer \(N\), some \(n\geq N\) satisfies

$$ |x_n-L|\geq\varepsilon. $$

We can choose increasing indices \(n_1<n_2<\cdots\) with \(|x_{n_j}-L|\geq\varepsilon\) for every \(j\): after choosing \(n_j\), apply the failure of convergence with \(N=n_j+1\) to choose \(n_{j+1}\). The sequence \((x_{n_j})\) lies in \(K\). By compactness and sequential compactness, it has a convergent subsequence \((x_{n_{j_\ell}})\) with limit \(y\in K\). This is also a subsequence of the original sequence, so \(y\in C\). The assumption \(C=\{L\}\) gives \(y=L\).

But every selected term satisfies \(|x_{n_{j_\ell}}-L|\geq\varepsilon\). Since \(x_{n_{j_\ell}}\to y=L\), continuity of the absolute value, or the definition of convergence, gives \(|x_{n_{j_\ell}}-L|\to0\). This contradicts the lower bound \(\varepsilon>0\). Therefore \(x_n\to L\). \(\square\)

The theorem also gives a useful description of nonconvergence. A sequence in a compact set always has at least one subsequential limit. If it does not converge, it cannot have exactly one: its set of subsequential limits must contain at least two distinct points. In practice, it is often easier to find two subsequences with different limits than to analyze every term of the original sequence directly.

Why the Compact-Set Hypothesis Matters

The proof of the convergence criterion depends on compactness at a specific point: after selecting terms that stay at least \(\varepsilon\) away from \(L\), compactness provides a convergent subsequence. Its limit is still in \(K\), and the distance from \(L\) cannot suddenly become smaller than \(\varepsilon\). Without compactness, a sequence can keep making such excursions while having no convergent subsequence in the set.

Worked Example: A Sequence Approaching a Missing Point

Let \(K=(0,1)\), and define \(x_n=1/(n+1)\) for every positive integer \(n\). Every term belongs to \(K\), since \(n+1\geq2\) gives \(0<1/(n+1)\leq1/2<1\). The sequence converges in \(\mathbb{R}\) to \(0\), but \(0\notin K\). Every subsequence also converges to \(0\), so its set of subsequential limits in \(\mathbb{R}\) is \(C=\{0\}\), which is not a subset of \(K\). The open interval \(K\) is not compact, and thus the theorem about compact-set sequences does not apply.

This example distinguishes convergence in \(\mathbb{R}\) from having a limit inside the set containing the terms. Compactness rules out this loss of a limit point: for sequences in a compact set, subsequential limits belong to that set.

A common pitfall is to check only one subsequence. Finding a subsequence that converges does not prove that the original sequence converges; the alternating sequence has two convergent subsequences with different limits. Conversely, failure of one particular subsequence to converge does not settle the behavior of all the others. The convergence theorem uses the entire set \(C\): it is the uniqueness of the subsequential limit, together with compactness, that forces convergence of the full sequence.

The compactness result also gives more structure than a single convergence test. The set \(C\) is itself compact, so it is closed and bounded. For example, all possible subsequential limits of a sequence in \(K\) lie within \(K\) and form a set with the same compactness safeguards. This is useful when a sequence has several limiting behaviors: rather than tracking every choice of subsequence, one can study the compact set of all limits together.

Check Your Understanding

Use the definitions and results in this tutorial to answer the following questions.

  1. What does it mean for a real number to be a subsequential limit of a sequence?
  2. In the proof that \(C\) is closed, why must the chosen indices \(n_j\) increase?
  3. Why does a sequence in a compact set have at least one subsequential limit?
  4. What does the convergence theorem imply about the number of subsequential limits of a nonconvergent sequence in a compact set?
  5. What are the subsequential limits of the alternating sequence in the first worked example?
  6. Why does \(x_n=1/(n+1)\) in \((0,1)\) not contradict the theorem for sequences in compact sets?