Open and Closed Sets in R^n
Suppose you stand at a point in the plane. Ask yourself: can I wiggle a little in any direction? Can I still stay inside my favorite region? For a region like the open disk , the answer is always yes. This holds no matter which point you pick. This is the intuitive content of "openness." For the closed disk , a point on the rim has no such room to wiggle. Yet the set contains all of its own boundary. These two notions, open and closed, are the topological skeleton. On this skeleton, all of multivariable calculus and analysis is built. The idea matters because continuity, limits, compactness, and convergence in are all phrased in terms of which sets are open. Before we can rigorously say " is continuous" or " is compact," we need something else. We need a precise, hypothesis-free vocabulary for describing the shape of subsets of space. We need more than just their size or their formula. We need to know how they sit inside relative to nearby points. Open and closed sets give us exactly this vocabulary. They generalize the open and closed intervals of single-variable calculus to arbitrary dimension. The big picture is that carries a natural notion of "nearness" via open balls. This nearness comes from equipping with its Euclidean norm. A set is declared open precisely when it is a union of open balls. Equivalently, every point has a little ball of wiggle-room inside the set. This turns into what is called a metric topology. From this single definition, an entire hierarchy of concepts unfolds. These include interior, closure, boundary, limit points, and isolated points. They unfold with complete rigor and no appeal to pictures alone. This article develops that hierarchy from scratch. It covers the formal definitions and the fundamental theorem. That theorem states that open sets are exactly complements of closed sets, and vice versa. The axioms for unions and intersections are proved directly from the definition. The article includes worked computations in and . It also gives a counterexample showing why "closed" is not simply "not open." Finally, it maps where these ideas resurface later in analysis. This happens most immediately in Limits and Continuity in Several Variables and Compactness in R^n.
- An open ball is the basic building block of nearness in .
- A set is open if every point of has some open ball around it entirely contained in .
- A set is closed if it contains all of its limit points; equivalently, its complement is open.
- Arbitrary unions and finite intersections of open sets are open; arbitrary intersections and finite unions of closed sets are closed.
- Interior, closure, and boundary decompose into three disjoint pieces relative to any set .
- Sets can be neither open nor closed (e.g. in ), and , are both open and closed simultaneously.
- Key idea: openness and closedness are defined purely in terms of the metric structure of , giving a rigorous, coordinate-free language for "near" that underlies every later notion of limit, continuity, and compactness.
Where this lives today
The vocabulary of open and closed sets is the load-bearing frame for essentially all of modern analysis. In multivariable calculus itself, the definition of continuity of can be rephrased purely in terms of open sets ("preimages of open sets are open"), which is exactly the bridge to Limits and Continuity in Several Variables. Compact sets — closed and bounded subsets of by the Heine–Borel theorem — are built directly from closedness, and drive the extreme value theorem and uniform continuity results developed in Compactness in R^n. Beyond calculus, this language recurs across mathematics and its applications:
- Differential geometry and manifolds: manifolds are built by gluing together pieces that look like open subsets of , and smoothness, charts, and tangent spaces are all phrased locally using open neighborhoods.
- Optimization and convex analysis: constraint sets in linear and convex programming are frequently closed (feasibility regions defined by inequalities), and existence of optimal solutions typically relies on closedness plus boundedness (compactness).
- Numerical analysis and PDE theory: boundary conditions for partial differential equations are stated on the boundary of a domain , and whether is open (interior of the domain) versus its closure matters for well-posedness of Dirichlet and Neumann problems.
- Probability and measure theory: open and closed sets generate the Borel -algebra on , the foundation for defining probability measures and random vectors rigorously.
- Computer science and cryptography: in computational geometry, "is this point interior/boundary/exterior to a region" tests drive collision detection and mesh algorithms; in cryptographic lattice problems, closedness of certain sets (e.g. lattices themselves, which are closed and discrete) underlies security reductions for lattice-based cryptosystems.
- Dynamical systems: invariant sets, attractors, and basins of attraction are frequently characterized as closed (attractors) or open (basins), governing long-term qualitative behavior of iterated maps and flows.
:::quiz[Let . What is ?]
- ✓
Ask the tutor: Can you show me why the closure of a set equals the union of the set with all its limit points, using a concrete non-open, non-closed example in ?
Fix and equip with the Euclidean norm .
Open ball. For and , the open ball of radius centered at is
Interior point. A point is an interior point of if there exists with .
Open set. A set is open if every point of is an interior point of ; that is,
(The empty set is open vacuously.)
Limit point (accumulation point). A point is a limit point of if every open ball around contains a point of different from :
(Note need not belong to .)
Closed set. A set is closed if it contains all of its limit points.
Interior, closure, boundary. For :
- The interior (or ) is the set of all interior points of .
- The closure is together with all its limit points: , where denotes the set of limit points of .
- The boundary is .
Isolated point. A point is isolated if it is not a limit point of , i.e. some ball satisfies .
Intuition
Picture . The open ball is a disk with center and radius , not including the circular rim. Openness of a set says: no matter which point of you pick, even one extremely close to where "ends," there is still some (possibly tiny) disk of safety around it that stays inside . This rules out boundary points belonging to — if were on the edge, every disk around would poke outside , no matter how small. Closedness is a different, complementary demand: it says swallows all the points it is "approaching." If you can find a sequence of points in marching toward some limit , closedness insists itself is already in . This is why is closed in (a sequence approaching or from inside has its limit already included) while is not (points , but ). The three pieces — interior, boundary, exterior (the interior of the complement) — always partition relative to a set , regardless of whether itself is open, closed, or neither. The closed disk's boundary is its rim; the open disk's boundary is also that same rim, even though the rim is not part of the open disk. Boundary is a property of where a set sits in space, not of what the set happens to contain.
Let carry its Euclidean norm. Then: 1. Every open ball is an open set. 2. The empty set and are both open and both closed. 3. An arbitrary union of open sets is open: if are open, then is open. 4. A finite intersection of open sets is open: if are open, then is open. 5. Duality. A set is closed if and only if its complement is open. 6. Consequently, an arbitrary intersection of closed sets is closed, and a finite union of closed sets is closed. 7. For any : is open, is closed, is the smallest closed set containing , and is the largest open set contained in .
We prove each part in order, using only the definitions above and basic properties of the Euclidean norm (the triangle inequality and positive-definiteness ), established in Euclidean Space and Norms.
(1) Open balls are open. Let , , and let be arbitrary; we must exhibit a ball around inside . Since , set
We claim . Indeed, if , then , and by the triangle inequality,
So . Since was arbitrary and we found a suitable radius for each, is open by definition.
(2) and . is open vacuously (there is no point in for which the ball condition could fail). is closed vacuously as well: it has no limit points to worry about (if were a limit point of , every ball around would meet , impossible), so the condition "contains all its limit points" holds vacuously. For : it is open because for any , trivially. It is closed because every point of (limit point or not) already lies in .
(3) Arbitrary unions of open sets are open. Let be open sets and . Let . Then for some index . Since is open, there is with . As was arbitrary, is open. (No restriction on the cardinality of was used.)
(4) Finite intersections of open sets are open. Let be open and . If we are done by (2). Otherwise let , so for every . For each , openness of gives with . Let
(a minimum of finitely many positive numbers is positive — this is precisely where finiteness is used). Then for each , , since makes no bigger than . Hence . Since was arbitrary, is open.
(5) Duality: closed open. () Suppose is closed. Let ; we show is an interior point of the complement. Since , is not a limit point of (otherwise closedness of would force , contradiction — note here that if were a limit point of , since automatically any point of , so the "different from " caveat in the limit point definition is immaterial and by closedness, a contradiction). So by negating the definition of limit point, there exists such that ; but , so in fact , i.e. . Since was arbitrary in the complement, is open. () Suppose is open; we show is closed, i.e. contains all its limit points. Suppose toward contradiction is a limit point of with . Then , and since is open, there is with , i.e. . But being a limit point of means every ball around meets (in a point other than , though here anyway so it just means ) — contradiction. Hence every limit point of lies in , so is closed.
(6) Consequences for closed sets. Let be closed sets. By De Morgan's law,
Each is open by (5), so the right side is a union of open sets, open by (3). Hence its complement is closed by (5) again (applying the reverse direction). Similarly for finitely many closed sets ,
a finite intersection of open sets, open by (4); so is closed by (5).
(7) Interior is open, closure is closed, and extremality. Interior is open. Let . By definition there is with . By part (1), is open, so every point has some ball , meaning every such is itself an interior point of ; hence . Since was an arbitrary point of , is open. is the largest open subset of . Clearly by definition. If is open, then for any , openness of gives with , so ; hence . So contains every open subset of , and is itself one — it is the largest. Closure is closed. We show is open, then invoke (5). Let . Since and (not a limit point of ), negating the limit-point definition gives with ; since this means . We claim in fact , which gives and finishes the openness argument. Suppose for contradiction some . Since is open (part 1), there is with ; shrink further if necessary so also (possible since open guarantees room). Since : if , then , contradicting . If , then every ball around , in particular , meets at some point ; but , so , again contradicting . Either way we reach a contradiction, so indeed . Thus is open, so is closed. is the smallest closed set containing . Clearly . Suppose is closed with ; we show . Let . If , then since . If , then is a limit point of ; since , every ball around meeting (minus ) also meets (minus ), so is a limit point of too, hence (as is closed) . Either way . So . Thus is contained in every closed set containing , and is itself such a set — it is the smallest.
∎Worked examples
Example 1 — An open rectangle in minus a boundary segment. Let
This set is neither open nor closed; we verify this carefully and compute , , and . is not open. Consider the point (note satisfies ). For any , the point lies in since its distance to is , but its -coordinate violates , so this point is not in . Hence no ball around fits inside , so is not an interior point, so is not open. is not closed. The point is a limit point of : for any , the point lies within (distance ) and lies in (its -coordinate is in for small enough choice, and its -coordinate is ), and it differs from . So . But since requires strictly. So fails to contain a limit point, hence is not closed. Interior. We claim
Call this set . First, is open: for , let (all four quantities are strictly positive since the four inequalities are strict), and one checks by the triangle inequality argument identical to part (1) of the theorem restricted coordinatewise (if then and , forcing and ). Since and is open, by part (7) of the theorem. Conversely, any point of has exactly (the only way to be in but not , given the -range is identical), and by the first bullet argument above, no such point is an interior point of . So . Hence . Closure. We claim
the full closed rectangle. is closed (an intersection of four closed half-planes, each closed by an argument like the one for in the theorem, or directly: complements are open half-planes). Since and is closed, by minimality of closure (theorem, part 7). For the reverse inclusion, every point of is either in already, or is a limit point of : e.g. for is approached by with chosen appropriately close to inside ; similarly for the other three edges and the four corners, in each case one exhibits a sequence of points of (with and nudged strictly inside the open ranges) converging to the boundary point. Hence , giving . Boundary. , which is exactly the perimeter of the rectangle — all four edges and corners, a one-dimensional curve in , regardless of which edges happened to be included in itself. This illustrates a key point: boundary depends on the closure and interior, not on set membership details along the edge.
Example 2 — A punctured ball with an isolated point, in . Let
where and is a far-away isolated extra point (note , so genuinely sits outside the shell). Claim: is an isolated point of , hence not a limit point of , and is not closed. Let . We claim . Indeed, suppose with ; if also belonged to the shell part of , then . But by the triangle inequality,
contradicting . So cannot lie in the shell, and , so . This shows , so is isolated: no ball around meets in a point other than itself, so (it is not a limit point of , despite belonging to ). Claim: is not closed. Consider with , e.g. . For any , the point lies within the shell (its distance from is for small enough radius) and within distance of , and is different from . So . But fails the strict inequality needed to be in the shell, and clearly , so . A limit point outside the set means is not closed. Interior, closure, boundary. By an argument parallel to Example 1 (applied to the radial variable instead of coordinates), one finds:
Note : (trivially, as ) but (just argued), so by definition . This shows an isolated point of a set is always a boundary point of that set — a useful general fact following directly from the definitions.
It is tempting to think closed sets are simply those sets that fail to be open. This is false, and (viewing ) is a clean witness: is neither open nor closed. is not open: every ball around a rational contains irrational numbers (irrationals are dense), so no ball around lies inside ; hence is not an interior point of , for every . is not closed: every irrational is a limit point of (rationals are dense: every ball around contains a rational, e.g. via decimal truncation of ), but , so fails to contain a limit point. So a single set can fail both to be open and to be closed — "closed" is emphatically not the logical negation of "open" as sets; rather, closed is equivalent to "complement is open," a genuinely different condition, and openness and closedness are not exhaustive nor exclusive (indeed and are both).
Second counterexample — dropping "finite" in the intersection clause of the theorem. The theorem states that a finite intersection of open sets is open. This hypothesis is essential: consider the countably infinite family of open intervals
Each is open (it is an open ball in ). Yet
Indeed, for every , so lies in the intersection. Conversely if , choosing gives , wait more precisely , so , hence is excluded from the intersection. So the intersection is exactly , a single point. But is not open: any ball with contains points other than (e.g. ), so , meaning is not an interior point of . This shows the "finite" hypothesis in part (4) of the theorem cannot be weakened to "countable," let alone "arbitrary" — the proof itself breaks down exactly at the step "let ," since an infimum of infinitely many positive numbers can be , giving no valid radius.
Scope, edge cases & common traps
| Situation | What to remember |
|---|---|
| and | Both open and closed simultaneously — not a contradiction, since open/closed are not complementary labels. |
| Sets like , | Can be neither open nor closed. Always check both conditions directly. |
| Infinite unions/intersections | Open sets: arbitrary unions OK, only finite intersections guaranteed open. Closed sets: arbitrary intersections OK, only finite unions guaranteed closed. |
| Isolated points | Always contribute to the boundary of their set, never to the interior. |
| Limit point vs. point of | A limit point of need not belong to ; a point of need not be a limit point of (it may be isolated). |
| "Open" as informal shorthand | "Open" is a property of a set, defined relative to the ambient space — it is not a property of an individual point. |
The mathematician behind it
Origins · 1 minFelix Hausdorff and how this was discovered
Hausdorff's 1914 treatise Grundzüge der Mengenlehre gave the first fully general axiomatic treatment of topological spaces, extracting the open-set axioms (arbitrary unions, finite intersections, whole space and empty set included) directly from the kind of metric reasoning carried out above for . He recognized that the specific formula for distance was inessential — what mattered was the combinatorial pattern of which unions and intersections of open sets stay open. This abstraction, built by studying concrete spaces like first, is exactly the pattern this article follows: prove the axioms for the Euclidean case, then let them serve as the template for topology in general. Hausdorff, who was Jewish, took his own life in 1942 to avoid deportation to a Nazi concentration camp; his mathematical legacy — Hausdorff spaces, Hausdorff dimension, Hausdorff measure — remains central to modern analysis and topology.
Is every subset of either open or closed?
No. Openness and closedness are independent conditions, not complementary labels for a single dichotomy. The set is neither open (every ball around a rational contains irrationals) nor closed (every irrational is a limit point of but isn't itself rational). Likewise the half-open interval is neither open (the point has no ball of safety staying inside, since balls around dip into negative numbers) nor closed (it fails to contain its limit point ). At the other extreme, and are simultaneously open and closed — these are the only two subsets of with that dual property, a fact tied to the connectedness of .
What exactly is the difference between the closure of and the boundary of ?
The closure is together with every point it limits toward; it always contains itself. The boundary is the closure with the interior points stripped away — the "edge" points that are approached both from inside 's interior and from outside entirely. Every interior point of is in the closure but never in the boundary; conversely, isolated points of are always boundary points (they belong to trivially but can never have a ball fitting entirely in , so they are excluded from the interior). In short: closure = " plus what it touches," boundary = "the frontier where 's interior meets everything outside 's complement's interior."
Why does the proof of "finite intersections of open sets are open" fail for infinitely many sets?
The proof takes finitely many positive radii (one per open set, chosen so that ) and sets , which is guaranteed positive because a minimum of finitely many positive numbers is positive. With infinitely many sets , the natural analogue is , but an infimum of infinitely many positive numbers can be exactly — as it is for , where . No positive radius survives, so the argument gives no ball at all, and indeed the intersection is not open, confirming the theorem's finiteness hypothesis is sharp.
How do open balls in relate to open intervals in ?
When , the Euclidean norm is just absolute value, so , exactly the open interval centered at with radius . So every definition here — open set, closed set, interior, closure, boundary, limit point — specializes exactly to the single-variable definitions from introductory real analysis when . The theorems proved above (unions/intersections of open and closed sets, interior as largest open subset, closure as smallest closed superset) are simply the -dimensional generalizations of facts already true for subsets of the real line, now stated with the ball replaced by the disk, solid sphere, or higher-dimensional analogue.
Does "closed" mean "bounded," or "closed" the geometric shape word (like a closed curve)?
No — this is a common point of confusion because the word "closed" is used in ordinary English for shapes that "close up" (like a circle), and separately for boundedness. In this technical sense, closed means "contains all its limit points," which has nothing to do with boundedness a priori: itself is closed (and unbounded), and so is a closed half-space (unbounded). The combination "closed and bounded" is a much stronger, separately named property called compactness in (by the Heine–Borel theorem), which is the subject taken up next in Compactness in R^n. Closedness alone says nothing about size or extent, only about containing limiting positions.
If is a limit point of , must there be a sequence in converging to ?
Yes, and this equivalence is extremely useful in practice. If is a limit point of , then for each , the ball meets in some point (by definition of limit point, using ); the resulting sequence satisfies , so , and for every . Conversely, if some sequence of points of converges to , then every ball around eventually contains terms of the sequence, hence meets at a point other than , so is a limit point. This sequential characterization is often the fastest way to verify or refute limit-point claims in worked examples.
Why do we require the point to be "different from " in the definition of limit point, but not in the definition of interior point?
These are different notions serving different purposes. A limit point captures the idea of points of accumulating near — clustering infinitely close — which is a meaningful property even if , so we specifically ask about other points of nearby, otherwise every point of would trivially be a limit point of itself for no interesting reason (since always when ). An interior point, by contrast, asks whether an entire ball around — including itself — fits inside ; here there's no need to exclude , because the question is about a whole neighborhood being safely inside , not about approach from other points. The exclusion in the limit-point definition is precisely what makes isolated points (points of with no other nearby points of ) fail to be limit points, which is the desired behavior.