Tutorials › Topology (Undergraduate) › Worked Compactness Decisions In Rn

Compactness in Metric Spaces · Tutorial 514 of 799

Worked Compactness Decisions In Rn

Learn how closedness and boundedness behave under unions, products, and monotone sequences of Euclidean subsets—and how to combine those facts to decide compactness.

Intermediate 10 min read

What You'll Learn

  • Decide when a finite or arbitrary union of compact Euclidean sets is compact.
  • Separate the closedness and boundedness tests for unions.
  • Determine when products of Euclidean sets are closed, bounded, and compact.
  • Analyze increasing sequences of compact sets and their unions.
  • Prove that a decreasing sequence of nonempty compact sets has a nonempty compact intersection.
  • Use Heine–Borel to check compactness in worked examples.

A Reliable Strategy for Compactness Decisions

In Euclidean space, compactness can often be decided by checking two simpler properties. The Heine–Borel theorem says that a subset of \(\mathbb{R}^n\), with its usual Euclidean topology, is compact if and only if it is closed and bounded. The challenge in problems involving unions, products, or sequences of sets is to check those two properties separately: closedness and boundedness do not always behave in the same way.

Throughout, boundedness is with respect to the Euclidean norm. A set \(A\subseteq\mathbb{R}^n\) is bounded if there is a real number \(R\geq 0\) such that \(\|a\|\leq R\) for every \(a\in A\). The empty set is bounded and compact. We use the usual convention that a sequence of sets \(K_1,K_2,\ldots\) is increasing if \(K_n\subseteq K_{n+1}\) for every \(n\), and decreasing if \(K_{n+1}\subseteq K_n\) for every \(n\).

Heine–Borel decision rule: For \(A\subseteq\mathbb{R}^n\), \(A\) is compact if and only if \(A\) is closed and bounded. Thus a compactness decision in Euclidean space requires both tests. Closedness alone does not imply boundedness, and boundedness alone does not imply closedness.

Unions: Finite and Infinite Families

A finite union of closed sets is closed, and a finite union of bounded sets is bounded. In contrast, an arbitrary union of closed sets need not be closed, and an arbitrary union of bounded sets need not be bounded. These distinctions give the following result.

Theorem 1: A finite union of compact subsets of \(\mathbb{R}^n\) is compact. More generally, for any family \((A_\alpha)_{\alpha\in J}\) of subsets of \(\mathbb{R}^n\), the union \(\bigcup_{\alpha\in J}A_\alpha\) is compact if and only if it is closed and bounded. For a family of compact sets, boundedness of the union is equivalent to a single common bound for all its members.

Proof. For a finite family \(A_1,\ldots,A_m\) of compact sets, Heine–Borel makes each \(A_i\) closed and bounded. A finite union of closed sets is closed: its complement is the finite intersection of their open complements, hence is open. To check boundedness, choose \(R_i\geq0\) with \(\|a\|\leq R_i\) for all \(a\in A_i\). The maximum \(R=\max\{R_1,\ldots,R_m\}\) bounds every point of the union. Heine–Borel now makes the union compact. For any family, including an infinite one, the stated compactness equivalence is exactly Heine–Borel applied to its union. Finally, if every \(A_\alpha\) is bounded, the union is bounded precisely when there is one \(R\geq0\) such that \(\|a\|\leq R\) for every \(\alpha\in J\) and every \(a\in A_\alpha\); this is the definition of boundedness of the union. \(\square\)

Worked Example: A Finite Union of Compact Intervals

In \(\mathbb{R}\), with its usual topology, let \(A=[-2,1]\) and \(B=[3,5]\). Decide whether \(A\cup B\) is compact.

Both intervals are closed, so their finite union is closed. For boundedness, every \(x\in A\) satisfies \(|x|\leq2\), and every \(x\in B\) satisfies \(|x|\leq5\). Thus \(|x|\leq5\) for every \(x\in A\cup B\). By Heine–Borel, \(A\cup B\) is compact.

Check: the union is \([-2,1]\cup[3,5]\); its endpoints are included, so it is closed, and every member lies between \(-2\) and \(5\), so it is bounded by \(5\).

For an infinite union, compactness of every individual member does not settle either test for the union. Even an increasing sequence of compact sets can have a nonclosed union or an unbounded union. The next example checks both possibilities explicitly.

Worked Example: Increasing Compact Sets with Different Union Failures

In \(\mathbb{R}\), consider the increasing sequences \(K_n=[0,n/(n+1)]\) and \(L_n=[-n,n]\), for \(n\in\mathbb{N}\). Each set is a closed bounded interval, hence compact.

For \(K_n\), the endpoint \(n/(n+1)=1-1/(n+1)\) is less than \(1\), and these endpoints approach \(1\). The union is \(\bigcup_{n\geq1}K_n=[0,1)\): every point \(x\) with \(0\leq x<1\) is in some \(K_n\), since \(n/(n+1)\geq x\) once \(n\) is sufficiently large, while \(1\) is in none of the sets. This union is bounded by \(1\), but it is not closed: the sequence \(n/(n+1)\) lies in the union and converges to \(1\), which is not in the union. Therefore it is not compact.

For \(L_n\), every real number \(x\) belongs to \(L_n\) once \(n\geq |x|\), so \(\bigcup_{n\geq1}L_n=\mathbb{R}\). This union is closed, but it is unbounded: for any proposed bound \(R\geq0\), the real number \(R+1\) lies in the union and has absolute value greater than \(R\). Thus it is not compact.

Check: the first union fails the closedness test, and the second fails the boundedness test. These are separate reasons that a union of compact sets may fail to be compact.

Products: Coordinate Tests

For \(A\subseteq\mathbb{R}^m\) and \(B\subseteq\mathbb{R}^n\), their product \(A\times B\) is regarded as a subset of \(\mathbb{R}^{m+n}\), with the Euclidean metric. If both factors are nonempty, closedness and boundedness of the product can be tested factor by factor.

Theorem 2: Let \(A\subseteq\mathbb{R}^m\) and \(B\subseteq\mathbb{R}^n\) be nonempty. Then \(A\times B\) is closed in \(\mathbb{R}^{m+n}\) if and only if \(A\) and \(B\) are closed in their respective Euclidean spaces. Also, \(A\times B\) is bounded if and only if both \(A\) and \(B\) are bounded. Consequently, \(A\times B\) is compact if and only if both \(A\) and \(B\) are compact.

Proof. We use the Euclidean fact that a set is closed if and only if it contains the limits of all its convergent sequences. To prove the forward implication for closedness, choose \(b\in B\), which is possible because \(B\) is nonempty. If a sequence \((a_k)\) in \(A\) converges to \(a\in\mathbb{R}^m\), then \((a_k,b)\) is a sequence in \(A\times B\) converging to \((a,b)\). Closedness of \(A\times B\) gives \((a,b)\in A\times B\), hence \(a\in A\). Therefore \(A\) is closed. Choosing any \(a\in A\) and applying the same argument to sequences in \(B\) proves that \(B\) is closed.

For the reverse implication, suppose \(A\) and \(B\) are closed, and let \((a_k,b_k)\) be a convergent sequence in \(A\times B\) with limit \((a,b)\). Each coordinate sequence converges, so \(a_k\to a\) and \(b_k\to b\). Closedness gives \(a\in A\) and \(b\in B\), and thus \((a,b)\in A\times B\). The sequence criterion proves that \(A\times B\) is closed.

For boundedness, if \(A\) and \(B\) have bounds \(R\) and \(S\), then every \((a,b)\in A\times B\) satisfies \(\|(a,b)\|^2=\|a\|^2+\|b\|^2\leq R^2+S^2\), so the product is bounded. Conversely, fix \(b\in B\). If the product is bounded by \(M\), then for every \(a\in A\), \(\|a\|^2\leq\|(a,b)\|^2\leq M^2\), so \(A\) is bounded; fixing \(a\in A\) proves \(B\) is bounded. Heine–Borel applied to the factors and product now gives the compactness equivalence. \(\square\)

Worked Example: A Compact Rectangle in the Plane

Let \(A=[-1,2]\subseteq\mathbb{R}\) and \(B=[0,3]\subseteq\mathbb{R}\). Decide whether \(A\times B\subseteq\mathbb{R}^2\) is compact and give a bound.

The factors are nonempty closed intervals, so they are closed. Their product is closed by Theorem 2. For \(x\in A\), \(|x|\leq2\); for \(y\in B\), \(|y|\leq3\). Therefore, for each \((x,y)\in A\times B\), \(\|(x,y)\|^2=x^2+y^2\leq2^2+3^2=4+9=13\). Thus \(\|(x,y)\|\leq\sqrt{13}\), and the product is bounded. Heine–Borel gives compactness.

Check: the corner \((-1,3)\) belongs to the product and has norm \(\sqrt{(-1)^2+3^2}=\sqrt{1+9}=\sqrt{10}\leq\sqrt{13}\), consistent with the bound.

The nonempty hypothesis in the factor-by-factor statement matters for its converse directions. If \(A=\varnothing\), then \(A\times B=\varnothing\) is closed, bounded, and compact whatever \(B\) is. The product gives no information about whether \(B\) is closed or bounded. For compactness, without assuming nonemptiness, the correct statement is: if both factors are compact, their product is compact; and if the product is compact and both factors are nonempty, both factors are compact.

Sequences of Compact Sets

For an increasing sequence, the union is compact exactly when it passes the closedness and boundedness tests. In particular, compactness of each \(K_n\) does not itself supply a common bound or make the union closed. For a decreasing sequence, there is a stronger conclusion when all sets are nonempty.

Theorem 3: Let \(K_1\supseteq K_2\supseteq K_3\supseteq\cdots\) be a decreasing sequence of nonempty compact subsets of \(\mathbb{R}^n\). Then \(\bigcap_{n\geq1}K_n\) is nonempty and compact.

Proof. Each \(K_n\) is closed, so their intersection is closed: its complement is the union of the open sets \(\mathbb{R}^n\setminus K_n\), hence open. The intersection is a subset of the bounded set \(K_1\), so it is bounded. It remains to prove it is nonempty.

Suppose instead that \(\bigcap_{n\geq1}K_n=\varnothing\). Then the open sets \(\mathbb{R}^n\setminus K_n\) cover \(K_1\). Compactness of \(K_1\) gives a finite subcover, say by \(\mathbb{R}^n\setminus K_{n_1},\ldots,\mathbb{R}^n\setminus K_{n_r}\). Let \(N\) be the largest of the finitely many indices. Since the sets decrease, \(K_N\subseteq K_{n_i}\) for every \(i\). Nonemptiness of \(K_N\) gives a point in \(K_N\), and that point lies in every \(K_{n_i}\). It is therefore in none of the sets \(\mathbb{R}^n\setminus K_{n_i}\), contradicting that these sets cover \(K_1\), which contains \(K_N\). So the intersection is nonempty. It is closed and bounded, and Heine–Borel makes it compact. \(\square\)

Worked Example: A Decreasing Sequence of Intervals

In \(\mathbb{R}\), let \(K_n=[0,1/n]\) for \(n\in\mathbb{N}\). Each interval is nonempty and compact, and \(K_{n+1}\subseteq K_n\), because \(1/(n+1)\leq1/n\).

The point \(0\) belongs to every \(K_n\). If \(x>0\), choose \(n\in\mathbb{N}\) with \(n>1/x\). Then \(1/n<x\), so \(x\notin K_n\). If \(x<0\), it is outside every \(K_n\). Thus \(\bigcap_{n\geq1}K_n=\{0\}\), which is nonempty and compact.

Check: for the specific term \(n=4\), \(K_4=[0,1/4]\), and \(1/4=0.25\). The point \(0\) is in this interval; the point \(1/2=0.5\) is not, since \(0.5>0.25\). This agrees with the intersection calculation.

Common Mistake: Transferring a Finite-Union Rule to Infinite Unions

A frequent error is to argue that a union of closed sets is closed because each set in the union is closed. That argument is valid for finite unions, not arbitrary ones. For example, each \(K_n=[0,n/(n+1)]\) above is closed, but their union is \([0,1)\). The points \(n/(n+1)\) belong to that union and converge to \(1\), which is excluded, so the union is not closed. The correction is to test the union itself: for compactness in Euclidean space, verify both that the whole union is closed and that one bound works for every point in it.

The same separation of tests is useful for products and sequences. A product of two nonempty Euclidean sets is closed exactly when both factors are closed, and bounded exactly when both factors are bounded. A decreasing sequence of nonempty compact sets has a nonempty compact intersection; an increasing sequence of compact sets, however, needs its own closedness and boundedness checks before its union can be declared compact.

Check Your Understanding

For each question, state the relevant closedness and boundedness tests before deciding compactness.

  1. Is \([0,2]\cup[4,6]\) compact in \(\mathbb{R}\)? Give an explicit bound.
  2. For \(K_n=[-n,n]\), determine the union and say which compactness test fails.
  3. If \(A\subseteq\mathbb{R}^m\) and \(B\subseteq\mathbb{R}^n\) are nonempty, what does compactness of \(A\times B\) imply about \(A\) and \(B\)?
  4. Give a decreasing sequence of nonempty compact intervals whose intersection is exactly \(\{0\}\), and justify the intersection.
  5. Why does the statement “each set in the family is closed” not by itself prove that an infinite union is closed?