Compact Set

In a space like \(\mathbb{R}^n\), a compact set is one that is both closed and bounded.

  • Closed: a set is closed if it contains all of its limit points. That is, every "boundary" point is part of the set.
  • Bounded: a set is bounded if it fits entirely within some sphere of finite radius.

More formally, in a topological space, a set \(K\) is compact if every open cover of \(K\) admits a finite subcover that still covers \(K\).

These definitions are equivalent in \(\mathbb{R}^n\), but they may differ in more general spaces.

Note. Compactness guarantees a number of powerful properties, such as ensuring that continuous functions attain both their maximum and minimum values (Weierstrass Theorem), and that from any sequence, a convergent subsequence can always be extracted (Bolzano - Weierstrass Theorem). In particular, if a function is continuous on a compact set, it will achieve its maximum and minimum values - with no exceptions.

    Examples

    Example 1

    Consider the interval \([0,2]\) on the real number line \(\mathbb{R}\).

    Define the set:

    \[ K = \{ x \in \mathbb{R} \mid 0 \leq x \leq 2 \} \]

    This set is compact because:

    • It is closed: it contains the boundary points \(0\) and \(2\).
    • It is bounded: all points lie between \(0\) and \(2\), so the set doesn't extend indefinitely.

    compact set example

    Example 2

    Now consider the continuous function \(f(x) = \sqrt{x}\) defined on \(K\).

    Since \(f(x)\) is continuous on a compact set, by the Weierstrass Theorem, it must attain both a maximum and a minimum value on \(K\).

    Indeed, over \([0,2]\), \(f(x)\) reaches its minimum at \(x = 0\) (value \(0\)) and its maximum at \(x = 2\) (value \(\sqrt{2}\)).

    graph of a continuous function on a compact set

    Example 3

    Next, consider the closed disk of radius \(1\) centered at the origin in the plane \(\mathbb{R}^2\).

    Define the set:

    \[ K = \{ (x,y) \in \mathbb{R}^2 \mid x^2 + y^2 \leq 1 \} \]

    This set is also compact because:

    • It is closed: it contains all points on the boundary circle where \(x^2 + y^2 = 1\).
    • It is bounded: no point lies more than a distance \(1\) away from the origin \((0,0)\).

    closed disk illustrating a compact set

    And so on.

     
     

    Please feel free to point out any errors or typos, or share suggestions to improve these notes. English isn't my first language, so if you notice any mistakes, let me know, and I'll be sure to fix them.

    FacebookTwitterLinkedinLinkedin
    knowledge base

    Set