Tutorials › Real Analysis › Examples of Open Sets

Topology of the Real Line · Tutorial 236 of 1000

Examples of Open Sets

Learn to build open sets from intervals and finite-point complements, and use these descriptions to verify examples.

Intermediate 9 min read

What You'll Learn

  • Recognize open sets built as unions of intervals.
  • Express an arbitrary open subset of the real line as a union of bounded open intervals.
  • Prove that the complement of a finite set is open.
  • Check openness of sets defined by polynomial inequalities.
  • Distinguish a set’s local openness from its overall shape.

Many Shapes Can Be Open

The definition of an open set is local: at each point of the set, some open ball around that point must remain in the set. It does not require the set to be one interval, bounded, or connected. In the previous tutorial, “Open Sets,” we verified that open intervals and open rays are examples, and we proved that arbitrary unions of open sets are open. We now use these facts to build and recognize a broader range of examples.

The basic construction is to gather intervals that fit inside the set. An open set may have several separate pieces, or infinitely many. Conversely, a set obtained by removing finitely many points from the real line is still open: around any remaining point, a sufficiently small ball avoids all the removed points. The two results below formalize these useful ways to produce examples.

Open Sets as Unions of Intervals

Every point of an open set comes with a ball contained in that set. On the real line, a ball \(B_r(x)\) is the interval \((x-r,x+r)\). Thus an open set can be covered by open intervals that are themselves contained in the set. The next theorem shows that this idea gives an exact description, not merely a cover.

Theorem (Open Sets as Unions of Open Intervals): A set \(U\subseteq\mathbb{R}\) is open if and only if it is a union of open intervals. In the forward direction, the intervals can be chosen bounded. The empty set is the union of an empty family.

Proof. First suppose \(U\) is open and nonempty. For each \(x\in U\), the definition of openness gives a number \(r_x>0\) such that \(B_{r_x}(x)\subseteq U\). Since \(B_{r_x}(x)=(x-r_x,x+r_x)\), each of these is a bounded open interval. Every point \(x\in U\) belongs to its own interval \(B_{r_x}(x)\), so \(U\) is contained in their union. Each interval is contained in \(U\), so their union is contained in \(U\). Therefore

$$ U=\bigcup_{x\in U}B_{r_x}(x). $$

If \(U=\varnothing\), the equality holds when the union is taken over the empty family. This proves that every open set is a union of open intervals.

For the reverse direction, let \(U\) be a union of open intervals. Each open interval is open: if \(y\in(a,b)\), then \(y-a>0\) and \(b-y>0\), and a positive radius smaller than both distances gives a ball around \(y\) contained in \((a,b)\). The same argument applies to an open ray, using the distance to its finite endpoint; the whole real line is open as well. By the Arbitrary Unions of Open Sets theorem from the previous tutorial, a union of open sets is open. The empty union is \(\varnothing\), which is open. Hence \(U\) is open. \(\square\)

The theorem can be used in either direction. To prove a set open, it may be simpler to express it as a union of familiar open intervals than to find a radius directly at every point. To understand an arbitrary open set, the theorem says it is assembled from local intervals, even when its overall form is complicated.

Worked Example: A Set Defined by a Polynomial Inequality

Consider \(U=\{x\in\mathbb{R}:(x+2)(x-1)(x-4)<0\}\). The factors can change sign only at \(-2\), \(1\), and \(4\). Check the sign on each interval they determine. For \(x<-2\), all three factors are negative, so their product is negative. For \(-2<x<1\), the first factor is positive and the other two are negative, so the product is positive. For \(1<x<4\), the first two factors are positive and the third is negative, so the product is negative. For \(x>4\), all three factors are positive, so the product is positive. At each of \(-2,1,4\), the product is zero and therefore does not satisfy the strict inequality. Thus

$$ U=(-\infty,-2)\cup(1,4). $$

Both pieces are open intervals, so \(U\) is open by the Arbitrary Unions of Open Sets theorem. Notice that \(U\) is not itself an interval: there are points between its two pieces that are not in \(U\). Openness requires room around each included point, not that every point between two included points also be included.

Removing Finitely Many Points

A second useful source of open sets is the complement of a finite set. Although the points that have been removed may be scattered across the real line, there are only finitely many of them. At any point that remains, the distances to the removed points have a positive minimum. A ball with radius smaller than that minimum avoids every removed point.

Theorem (The Complement of a Finite Set Is Open): If \(F\subseteq\mathbb{R}\) is finite, then \(\mathbb{R}\setminus F\) is open.

Proof. If \(F=\varnothing\), then \(\mathbb{R}\setminus F=\mathbb{R}\), which is open. Now suppose \(F\) is nonempty, and take an arbitrary \(x\in\mathbb{R}\setminus F\). For every \(a\in F\), we have \(a\neq x\), so \(|x-a|>0\). Since \(F\) is finite and nonempty, the finitely many positive numbers \(|x-a|\), for \(a\in F\), have a positive minimum. Define

$$ \delta=\min_{a\in F}|x-a|,\qquad r=\frac{\delta}{2}. $$

Then \(r>0\). We claim \(B_r(x)\subseteq\mathbb{R}\setminus F\). If a point \(z\in B_r(x)\) belonged to \(F\), then \(|x-z|\geq\delta\), by the definition of \(\delta\). But \(z\in B_r(x)\) means \(|x-z|<r=\delta/2<\delta\), a contradiction. Thus every \(z\in B_r(x)\) lies outside \(F\). We have found such a ball for an arbitrary \(x\in\mathbb{R}\setminus F\), so \(\mathbb{R}\setminus F\) is open. \(\square\)

Finiteness matters in this proof because a finite collection of positive distances has a positive minimum. For an infinite removed set, the distances from a point to the removed points may have no positive lower bound. The proof then gives no positive radius that avoids them all.

Worked Example: Removing Four Points

Let \(F=\{-3,0,2,7\}\). The theorem shows that \(\mathbb{R}\setminus F\) is open. We can also see how the radius is chosen at a particular point. Take \(x=1\), which is not in \(F\). Its distances to the removed points are \[ |1-(-3)|=4,\qquad |1-0|=1,\qquad |1-2|=1,\qquad |1-7|=6. \] The minimum distance is \(1\), so \(r=1/2\) works. Indeed, if \(|z-1|<1/2\), then \(1/2<z<3/2\). This interval contains none of \(-3,0,2,7\), and therefore \(B_{1/2}(1)\subseteq\mathbb{R}\setminus F\).

The radius depends on the point. For example, at \(x=3/2\), the distance to \(2\) is \(1/2\), so a radius of \(1/4\) is a safe choice. The theorem does not claim there is one positive radius that works around every point of the complement; it guarantees a suitable radius separately at each point.

Unions with Infinitely Many Pieces

The Arbitrary Unions of Open Sets theorem applies to infinite collections as well as finite ones. This allows open sets to have infinitely many separated pieces. For such examples, first describe each piece as an open interval, then apply the theorem to the whole family.

Worked Example: Infinitely Many Separated Intervals

For each integer \(k\), let \(I_k=(5k-2,5k+2)\), and set \[ V=\bigcup_{k\in\mathbb{Z}}I_k. \] Each \(I_k\) is an open interval, so each is open. The Arbitrary Unions of Open Sets theorem gives that \(V\) is open. To see that the pieces are separated, the right endpoint of \(I_k\) is \(5k+2\), while the left endpoint of the next interval is \(5(k+1)-2=5k+3\). There is a gap of length \(1\) between them. Thus this open set has infinitely many distinct pieces, with gaps between consecutive pieces, but it remains open because every point lies inside one of its open intervals.

For a specific point, \(0\in I_0=(-2,2)\). The ball \(B_1(0)=(-1,1)\) lies inside \(I_0\), and hence inside \(V\). Points nearer an endpoint of one of the intervals can use smaller balls. This is exactly the point-by-point condition in the definition.

How to Choose a Proof

These examples suggest two efficient strategies. If a set is already written as a union of open intervals, use the Arbitrary Unions of Open Sets theorem rather than repeating the ball calculation for every point. If the set is the complement of finitely many points, use the minimum-distance argument. In either case, the reasoning ultimately guarantees a ball around each included point.

A common pitfall is to confuse “open” with “one open interval.” The set in the polynomial example and the infinite union above are open without being single intervals. Another pitfall is to assume that removing any collection of points preserves openness. The finite-complement theorem relies on the positive minimum distance to a finite set; when infinitely many points are removed, that argument may fail. The next tutorial studies closed sets, which provide a complementary way to describe subsets of the real line.

Check Your Understanding

Use the definition and the results proved here to answer the following questions.

  1. How does the definition of openness produce an interval around each point of an open set?
  2. Why does a union of open intervals have to be open, even if there are infinitely many intervals?
  3. In the polynomial example, why are the three roots excluded from the set defined by the strict inequality?
  4. Where does the proof that the complement of a finite set is open use the finiteness of the set?
  5. For \(F=\{-1,3\}\), what radius from the finite-complement proof works at \(x=0\)?