TL;DR
An open set is a set in a metric space such that every point of has a small open ball around it that lies entirely inside . Open sets say which points are "safely inside" a region, with room to move in every direction. They solve the problem of defining continuity and limits in a metric space without needing a formula for the functions involved.
Builds on: Metric Space, Set Operations · Leads to: Continuity, Compact Set, Topological Space
Where it's used
Continuity. A Function between two metric spaces is continuous exactly when the preimage of every open set is open. The preimage of a set is the set of inputs whose outputs land in . This is the modern definition of continuity, and it is the reason mathematicians study open sets first.
Domains of functions. The natural Logarithm is defined for every , so its domain is the open set on the real line. The domain has no endpoint belonging to it, and every point has a small interval around it where the function still makes sense. Many results about functions are proved on open domains for this reason.
Compactness and the extreme value theorem. A continuous function on a closed and bounded interval reaches a largest and a smallest value, which is the extreme value theorem. The proof uses compact sets, and their definition is built from open sets: a set is compact when every covering by open sets can be trimmed to a finite covering.
How it works
Take the real line with the ordinary distance . The ball of radius around is the interval of points within of . To test whether a set is open, do this for each point.
-
Pick a set and a point in it. Let , the numbers strictly between 0 and 2, and take the point . Check: is in .
-
Choose a radius. Try . The ball around 1 is , the numbers within 0.5 of 1. Check: 0.5 and 1.5 are both exactly 0.5 away from 1.
-
See whether the ball fits inside . Every number between 0.5 and 1.5 lies between 0 and 2, so . Check: the lowest end 0.5 is above 0 and the highest end 1.5 is below 2.
-
Handle a point near the edge. Take . A radius of 0.5 would stick out past 2, so shrink it. With the ball is . Because the ball is open, it does not include 2 itself, so it fits. Check: every point of is below 2.
-
Repeat for every point and decide. is open when every one of its points passes steps 2 to 4, with a radius chosen separately for each point. Now take , which includes the endpoint 2. For , every ball contains points above 2. For example contains , which is not in . So is not open.
flowchart LR
A["Pick a point x in U"] --> B["Choose radius r > 0"]
B --> C{"Does B(x, r) lie inside U?"}
C -- yes --> D["Next point"]
C -- no --> E["Shrink r and try again"]
E --> C
D --> F["All points pass: U is open"]
The math
Let be a metric space. The open ball of radius around a point is
A set is open when, for every , there is some with .
Here means "is contained in": every point of the ball is also a point of . The symbol means "is an element of".
Step 2 in symbols: the ball around a point
On the real line, , so . In general .
Step 3 in symbols: the containment test
For and , the ball . Every in it satisfies , and is not included, so and . The same argument works for any in : take , which is positive, and then .
Step 4 in symbols: rules for combining open sets
Two facts follow directly from the definition, and they are what make open sets useful: how they behave under intersections and unions.
- Finite intersections. If and are open and , pick and from the definition for each set, and let . Then and likewise for , so . The same argument works for any finite number of sets.
- Arbitrary unions. If , then for some . The ball around inside is also inside the union, so the union is open. This holds even for infinitely many sets.
Infinite intersections can fail, as the worked examples show.
Worked examples
Is open in the real line?
- Take the point , which lies in .
- Choose . Then .
- Check the containment: and , so every point of the ball lies in .
- The same works for every point, by the formula from the containment test above.
So is open. Check: the ball around 4 with radius 0.5 is inside .
Compare three sets on the real line: , , and .
- is open: by Example 1's method, each point in has and .
- is not open: the point is in , but every ball around contains negative numbers. For , contains , which is not in .
- is not open for the same reason at the point : the ball contains , which is not in .
- The endpoint is not in , so it causes no trouble there, but the endpoint does.
Check: is open, while and both fail at the endpoint , and also fails at .
Each of the sets , for , is open, because each is an open interval. Is their intersection open?
- Find the intersection. A number lies in every exactly when for all .
- As grows, shrinks toward 0, so is needed, and any with works.
- So .
- Test the point . Any ball around contains , which is above 1.
- That number is not in , so the intersection fails the test at .
Try it: is open? Answer: no. The intersection of open sets is not always open when there are infinitely many of them, because it can gain a point, the endpoint 1, that has no ball around it inside the set.
Common mistakes and tradeoffs
It is tempting to think open is the opposite of closed. In fact a set can be both, or neither. The whole space and the empty set are both open and closed in any metric space, and is neither. The correct test is the ball test above, not the word.
It is tempting to think an open set has to be large or thick. In fact a single point can be open. In the discrete metric, where for and , the ball is just , so every point is open and every set is open.
It is tempting to think one radius must work for the whole set. In fact each point gets its own radius. A radius that works for one point can be too large for a point near the edge, which is why step 4 shrinks it.
When to use it: whenever you need to say that a region has room around each of its points, for example to define continuity, convergence or the domain of a function. When not to use it: when the space has no distance function. Then the same ideas are stated with a collection of open sets directly, which is the Topological Space approach. Alternative: a closed set is the complement of an open set, and some proofs are easier to state in terms of closed sets, but the open-set statement is usually the one that generalises.
History
Georg Cantor's work on sets of real numbers in the late 1800s and Henri Poincaré's work on topology gave mathematicians the first clear need for sets of points that behaved like intervals with no edge. In 1906 Maurice Fréchet introduced metric spaces, in which distance alone defines the open sets. In 1914 Felix Hausdorff's book on set theory gave the general definition of a topological space, using neighbourhoods of points rather than a distance. That approach became standard in analysis, and it made continuity and compactness work for spaces far beyond the real line.
Recap
- A metric space has a distance , and a ball is the set of points within of .
- A set is open when every point in it has a ball around it that lies entirely inside the set.
- Open intervals such as are open. Sets that include an endpoint, such as , are not.
- Any union of open sets is open, and any finite intersection of open sets is open. Infinite intersections can fail.
- Read next: Continuity, where open sets define what it means for a function to be continuous, and Compact Set, which is defined in terms of open covers.
Check yourself
QuestionIs the interval open in the real line? Justify with a ball.Show answer
Yes. Take and . Then , and and , so the ball lies inside . The same method works for every point, so the set is open.
QuestionCompute the open ball in the real line, and state whether it contains the point 3.2.Show answer
. It contains 3.2, because .
QuestionWhy is the interval not open, even though its interior points are fine?Show answer
The problem is the endpoint 0. Every ball around 0 contains negative numbers, which are not in , so no radius works at 0. An open set needs a working ball at every point, and one failing point is enough.
QuestionIn the discrete metric on a set , with for and , explain why every subset of is open.Show answer
Take any point in a subset . The ball contains only points at distance less than one half from , and the only such point is itself, so . This ball lies inside , so is open.