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 {(x,y):x2+y2<1}\{(x,y): x^2+y^2 < 1\}, the answer is always yes. This holds no matter which point you pick. This is the intuitive content of "openness." For the closed disk {(x,y):x2+y2≤1}\{(x,y): x^2+y^2 \le 1\}, 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 Rn\mathbb{R}^n are all phrased in terms of which sets are open. Before we can rigorously say "ff is continuous" or "KK 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 Rn\mathbb{R}^n 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 Rn\mathbb{R}^n carries a natural notion of "nearness" via open balls. This nearness comes from equipping Rn\mathbb{R}^n 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 Rn\mathbb{R}^n 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 R2\mathbb{R}^2 and R3\mathbb{R}^3. 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.

Key takeaways
  • An open ball B(x,r)={y∈Rn:∥y−x∥<r}B(x,r) = \{y \in \mathbb{R}^n : \|y-x\| < r\} is the basic building block of nearness in Rn\mathbb{R}^n.
  • A set UU is open if every point of UU has some open ball around it entirely contained in UU.
  • A set CC 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 Rn\mathbb{R}^n into three disjoint pieces relative to any set AA.
  • Sets can be neither open nor closed (e.g. [0,1)[0,1) in R\mathbb{R}), and ∅\emptyset, Rn\mathbb{R}^n are both open and closed simultaneously.
  • Key idea: openness and closedness are defined purely in terms of the metric structure of Rn\mathbb{R}^n, 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 f:Rn→Rmf:\mathbb{R}^n \to \mathbb{R}^m 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 Rn\mathbb{R}^n 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 Rn\mathbb{R}^n, 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 ≤\le 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 ∂Ω\partial \Omega of a domain Ω⊂Rn\Omega \subset \mathbb{R}^n, and whether Ω\Omega 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 σ\sigma-algebra on Rn\mathbb{R}^n, 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 A=(0,1]⊂RA = (0,1] \subset \mathbb{R}. What is ∂A\partial A?]

  • ∅\emptyset
  • {0}\{0\}
  • {1}\{1\}
  • {0,1}\{0,1\} ✓

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 R3\mathbb{R}^3?

DefinitionOpen balls, open sets, closed sets, and related notions in Rn\mathbb{R}^n

Fix n≥1n \ge 1 and equip Rn\mathbb{R}^n with the Euclidean norm ∥x∥=(∑i=1nxi2)1/2\|x\| = \left(\sum_{i=1}^n x_i^2\right)^{1/2}.

Open ball. For x∈Rnx \in \mathbb{R}^n and r>0r > 0, the open ball of radius rr centered at xx is

B(x,r)={y∈Rn:∥y−x∥<r}.B(x,r) = \{ y \in \mathbb{R}^n : \|y - x\| < r \}.

Interior point. A point x∈A⊆Rnx \in A \subseteq \mathbb{R}^n is an interior point of AA if there exists r>0r>0 with B(x,r)⊆AB(x,r) \subseteq A.

Open set. A set U⊆RnU \subseteq \mathbb{R}^n is open if every point of UU is an interior point of UU; that is,

∀x∈U, ∃r>0 such that B(x,r)⊆U.\forall x \in U,\ \exists r > 0 \text{ such that } B(x,r) \subseteq U.

(The empty set is open vacuously.)

Limit point (accumulation point). A point x∈Rnx \in \mathbb{R}^n is a limit point of A⊆RnA \subseteq \mathbb{R}^n if every open ball around xx contains a point of AA different from xx:

∀r>0, (B(x,r)∖{x})∩A≠∅.\forall r > 0,\ \big(B(x,r) \setminus \{x\}\big) \cap A \neq \emptyset.

(Note xx need not belong to AA.)

Closed set. A set C⊆RnC \subseteq \mathbb{R}^n is closed if it contains all of its limit points.

Interior, closure, boundary. For A⊆RnA \subseteq \mathbb{R}^n:

  • The interior int⁡(A)\operatorname{int}(A) (or A∘A^\circ) is the set of all interior points of AA.
  • The closure A‾\overline{A} is AA together with all its limit points: A‾=A∪A′\overline{A} = A \cup A', where A′A' denotes the set of limit points of AA.
  • The boundary ∂A\partial A is A‾∖int⁡(A)\overline{A} \setminus \operatorname{int}(A).

Isolated point. A point x∈Ax \in A is isolated if it is not a limit point of AA, i.e. some ball B(x,r)B(x,r) satisfies B(x,r)∩A={x}B(x,r) \cap A = \{x\}.

Intuition

Picture R2\mathbb{R}^2. The open ball B(x,r)B(x,r) is a disk with center xx and radius rr, not including the circular rim. Openness of a set UU says: no matter which point of UU you pick, even one extremely close to where UU "ends," there is still some (possibly tiny) disk of safety around it that stays inside UU. This rules out boundary points belonging to UU — if xx were on the edge, every disk around xx would poke outside UU, no matter how small. Closedness is a different, complementary demand: it says CC swallows all the points it is "approaching." If you can find a sequence of points in CC marching toward some limit xx, closedness insists xx itself is already in CC. This is why [0,1][0,1] is closed in R\mathbb{R} (a sequence approaching 00 or 11 from inside has its limit already included) while [0,1)[0,1) is not (points 1−1/k→11 - 1/k \to 1, but 1∉[0,1)1 \notin [0,1)). The three pieces — interior, boundary, exterior (the interior of the complement) — always partition Rn\mathbb{R}^n relative to a set AA, regardless of whether AA 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.

Figure
Open ball, interior/boundary/exterior of the closed disk of radius 2, and a wiggle-room ball at an interior point
Open ball B(x, r) x r = 1.2 dashed rim: NOT included Closed disk x²+y² ≤ 4 boundary ∂A: circle radius 2 interior point, small ball fits boundary point int(A): open disk radius 2 (orange interior)
TheoremFundamental properties of open and closed sets in Rn\mathbb{R}^n

Let Rn\mathbb{R}^n carry its Euclidean norm. Then: 1. Every open ball B(x,r)B(x,r) is an open set. 2. The empty set ∅\emptyset and Rn\mathbb{R}^n are both open and both closed. 3. An arbitrary union of open sets is open: if {Uα}α∈I\{U_\alpha\}_{\alpha \in I} are open, then ⋃α∈IUα\bigcup_{\alpha \in I} U_\alpha is open. 4. A finite intersection of open sets is open: if U1,…,UkU_1, \dots, U_k are open, then ⋂i=1kUi\bigcap_{i=1}^k U_i is open. 5. Duality. A set C⊆RnC \subseteq \mathbb{R}^n is closed if and only if its complement Rn∖C\mathbb{R}^n \setminus C is open. 6. Consequently, an arbitrary intersection of closed sets is closed, and a finite union of closed sets is closed. 7. For any A⊆RnA \subseteq \mathbb{R}^n: int⁡(A)\operatorname{int}(A) is open, A‾\overline{A} is closed, A‾\overline{A} is the smallest closed set containing AA, and int⁡(A)\operatorname{int}(A) is the largest open set contained in AA.

Proof

We prove each part in order, using only the definitions above and basic properties of the Euclidean norm (the triangle inequality ∥a+b∥≤∥a∥+∥b∥\|a+b\| \le \|a\|+\|b\| and positive-definiteness ∥a∥=0  ⟺  a=0\|a\|=0 \iff a=0), established in Euclidean Space and Norms.

(1) Open balls are open. Let x0∈Rnx_0 \in \mathbb{R}^n, r>0r > 0, and let y∈B(x0,r)y \in B(x_0, r) be arbitrary; we must exhibit a ball around yy inside B(x0,r)B(x_0,r). Since ∥y−x0∥<r\|y - x_0\| < r, set

ρ=r−∥y−x0∥>0.\rho = r - \|y - x_0\| > 0.

We claim B(y,ρ)⊆B(x0,r)B(y, \rho) \subseteq B(x_0, r). Indeed, if z∈B(y,ρ)z \in B(y,\rho), then ∥z−y∥<ρ\|z - y\| < \rho, and by the triangle inequality,

∥z−x0∥≤∥z−y∥+∥y−x0∥<ρ+∥y−x0∥=r.\|z - x_0\| \le \|z - y\| + \|y - x_0\| < \rho + \|y-x_0\| = r.

So z∈B(x0,r)z \in B(x_0,r). Since y∈B(x0,r)y \in B(x_0,r) was arbitrary and we found a suitable radius ρ\rho for each, B(x0,r)B(x_0,r) is open by definition.

(2) ∅\emptyset and Rn\mathbb{R}^n. ∅\emptyset is open vacuously (there is no point in ∅\emptyset for which the ball condition could fail). ∅\emptyset is closed vacuously as well: it has no limit points to worry about (if xx were a limit point of ∅\emptyset, every ball around xx would meet ∅\emptyset, impossible), so the condition "contains all its limit points" holds vacuously. For Rn\mathbb{R}^n: it is open because for any x∈Rnx \in \mathbb{R}^n, B(x,1)⊆RnB(x,1) \subseteq \mathbb{R}^n trivially. It is closed because every point of Rn\mathbb{R}^n (limit point or not) already lies in Rn\mathbb{R}^n.

(3) Arbitrary unions of open sets are open. Let {Uα}α∈I\{U_\alpha\}_{\alpha \in I} be open sets and U=⋃αUαU = \bigcup_\alpha U_\alpha. Let x∈Ux \in U. Then x∈Uα0x \in U_{\alpha_0} for some index α0\alpha_0. Since Uα0U_{\alpha_0} is open, there is r>0r>0 with B(x,r)⊆Uα0⊆UB(x,r) \subseteq U_{\alpha_0} \subseteq U. As x∈Ux \in U was arbitrary, UU is open. (No restriction on the cardinality of II was used.)

(4) Finite intersections of open sets are open. Let U1,…,UkU_1, \dots, U_k be open and U=⋂i=1kUiU = \bigcap_{i=1}^k U_i. If U=∅U = \emptyset we are done by (2). Otherwise let x∈Ux \in U, so x∈Uix \in U_i for every i=1,…,ki = 1,\dots,k. For each ii, openness of UiU_i gives ri>0r_i > 0 with B(x,ri)⊆UiB(x,r_i) \subseteq U_i. Let

r=min⁡{r1,…,rk}>0r = \min\{r_1, \dots, r_k\} > 0

(a minimum of finitely many positive numbers is positive — this is precisely where finiteness is used). Then for each ii, B(x,r)⊆B(x,ri)⊆UiB(x,r) \subseteq B(x,r_i) \subseteq U_i, since r≤rir \le r_i makes B(x,r)B(x,r) no bigger than B(x,ri)B(x,r_i). Hence B(x,r)⊆⋂i=1kUi=UB(x,r) \subseteq \bigcap_{i=1}^k U_i = U. Since xx was arbitrary, UU is open.

(5) Duality: CC closed   ⟺  \iff Rn∖C\mathbb{R}^n \setminus C open. (⇒\Rightarrow) Suppose CC is closed. Let x∈Rn∖Cx \in \mathbb{R}^n \setminus C; we show xx is an interior point of the complement. Since x∉Cx \notin C, xx is not a limit point of CC (otherwise closedness of CC would force x∈Cx \in C, contradiction — note here that if xx were a limit point of CC, since x∉Cx \notin C automatically x≠x \ne any point of CC, so the "different from xx" caveat in the limit point definition is immaterial and x∈C′⊆Cx\in C'\subseteq C by closedness, a contradiction). So by negating the definition of limit point, there exists r>0r>0 such that B(x,r)∩C⊆{x}B(x,r) \cap C \subseteq \{x\}; but x∉Cx \notin C, so in fact B(x,r)∩C=∅B(x,r) \cap C = \emptyset, i.e. B(x,r)⊆Rn∖CB(x,r) \subseteq \mathbb{R}^n \setminus C. Since xx was arbitrary in the complement, Rn∖C\mathbb{R}^n \setminus C is open. (⇐\Leftarrow) Suppose U:=Rn∖CU := \mathbb{R}^n \setminus C is open; we show CC is closed, i.e. CC contains all its limit points. Suppose toward contradiction xx is a limit point of CC with x∉Cx \notin C. Then x∈Ux \in U, and since UU is open, there is r>0r > 0 with B(x,r)⊆UB(x,r) \subseteq U, i.e. B(x,r)∩C=∅B(x,r) \cap C = \emptyset. But xx being a limit point of CC means every ball around xx meets CC (in a point other than xx, though here x∉Cx \notin C anyway so it just means B(x,r)∩C≠∅B(x,r) \cap C \ne \emptyset) — contradiction. Hence every limit point of CC lies in CC, so CC is closed.

(6) Consequences for closed sets. Let {Cα}α∈I\{C_\alpha\}_{\alpha \in I} be closed sets. By De Morgan's law,

Rn∖⋂αCα=⋃α(Rn∖Cα).\mathbb{R}^n \setminus \bigcap_{\alpha} C_\alpha = \bigcup_\alpha \big(\mathbb{R}^n \setminus C_\alpha\big).

Each Rn∖Cα\mathbb{R}^n \setminus C_\alpha is open by (5), so the right side is a union of open sets, open by (3). Hence its complement ⋂αCα\bigcap_\alpha C_\alpha is closed by (5) again (applying the reverse direction). Similarly for finitely many closed sets C1,…,CkC_1,\dots,C_k,

Rn∖⋃i=1kCi=⋂i=1k(Rn∖Ci),\mathbb{R}^n \setminus \bigcup_{i=1}^k C_i = \bigcap_{i=1}^k \big(\mathbb{R}^n \setminus C_i\big),

a finite intersection of open sets, open by (4); so ⋃i=1kCi\bigcup_{i=1}^k C_i is closed by (5).

(7) Interior is open, closure is closed, and extremality. Interior is open. Let x∈int⁡(A)x \in \operatorname{int}(A). By definition there is r>0r>0 with B(x,r)⊆AB(x,r) \subseteq A. By part (1), B(x,r)B(x,r) is open, so every point y∈B(x,r)y \in B(x,r) has some ball B(y,ρ)⊆B(x,r)⊆AB(y,\rho) \subseteq B(x,r) \subseteq A, meaning every such yy is itself an interior point of AA; hence B(x,r)⊆int⁡(A)B(x,r) \subseteq \operatorname{int}(A). Since xx was an arbitrary point of int⁡(A)\operatorname{int}(A), int⁡(A)\operatorname{int}(A) is open. int⁡(A)\operatorname{int}(A) is the largest open subset of AA. Clearly int⁡(A)⊆A\operatorname{int}(A) \subseteq A by definition. If V⊆AV \subseteq A is open, then for any x∈Vx \in V, openness of VV gives r>0r>0 with B(x,r)⊆V⊆AB(x,r) \subseteq V \subseteq A, so x∈int⁡(A)x \in \operatorname{int}(A); hence V⊆int⁡(A)V \subseteq \operatorname{int}(A). So int⁡(A)\operatorname{int}(A) contains every open subset of AA, and is itself one — it is the largest. Closure is closed. We show Rn∖A‾\mathbb{R}^n \setminus \overline{A} is open, then invoke (5). Let x∉A‾=A∪A′x \notin \overline{A} = A \cup A'. Since x∉Ax \notin A and x∉A′x \notin A' (not a limit point of AA), negating the limit-point definition gives r>0r>0 with B(x,r)∩A⊆{x}B(x,r) \cap A \subseteq \{x\}; since x∉Ax \notin A this means B(x,r)∩A=∅B(x,r) \cap A = \emptyset. We claim in fact B(x,r)∩A‾=∅B(x,r) \cap \overline{A} = \emptyset, which gives B(x,r)⊆Rn∖A‾B(x,r) \subseteq \mathbb{R}^n \setminus \overline{A} and finishes the openness argument. Suppose for contradiction some z∈B(x,r)∩A‾z \in B(x,r) \cap \overline{A}. Since B(x,r)B(x,r) is open (part 1), there is ρ>0\rho>0 with B(z,ρ)⊆B(x,r)B(z,\rho) \subseteq B(x,r); shrink further if necessary so also ρ<r−∥z−x∥\rho < r - \|z-x\| (possible since B(x,r)B(x,r) open guarantees room). Since z∈A‾=A∪A′z \in \overline{A} = A \cup A': if z∈Az \in A, then z∈B(x,r)∩Az \in B(x,r)\cap A, contradicting B(x,r)∩A=∅B(x,r)\cap A = \emptyset. If z∈A′z \in A', then every ball around zz, in particular B(z,ρ)B(z,\rho), meets AA at some point w≠zw \ne z; but B(z,ρ)⊆B(x,r)B(z,\rho) \subseteq B(x,r), so w∈B(x,r)∩Aw \in B(x,r) \cap A, again contradicting B(x,r)∩A=∅B(x,r) \cap A = \emptyset. Either way we reach a contradiction, so indeed B(x,r)∩A‾=∅B(x,r) \cap \overline{A} = \emptyset. Thus Rn∖A‾\mathbb{R}^n \setminus \overline{A} is open, so A‾\overline{A} is closed. A‾\overline{A} is the smallest closed set containing AA. Clearly A⊆A‾A \subseteq \overline{A}. Suppose FF is closed with A⊆FA \subseteq F; we show A‾⊆F\overline{A} \subseteq F. Let x∈A‾=A∪A′x \in \overline{A} = A \cup A'. If x∈Ax \in A, then x∈Fx \in F since A⊆FA \subseteq F. If x∈A′x \in A', then xx is a limit point of AA; since A⊆FA \subseteq F, every ball around xx meeting AA (minus xx) also meets FF (minus xx), so xx is a limit point of FF too, hence (as FF is closed) x∈Fx \in F. Either way x∈Fx \in F. So A‾⊆F\overline{A} \subseteq F. Thus A‾\overline A is contained in every closed set containing AA, and is itself such a set — it is the smallest. ■\blacksquare

∎

Worked examples

Example 1 — An open rectangle in R2\mathbb{R}^2 minus a boundary segment. Let

A={(x,y)∈R2:0<x<3, −1≤y<2}.A = \{(x,y) \in \mathbb{R}^2 : 0 < x < 3,\ -1 \le y < 2\}.

This set is neither open nor closed; we verify this carefully and compute int⁡(A)\operatorname{int}(A), A‾\overline{A}, and ∂A\partial A. AA is not open. Consider the point p=(1.5,−1)∈Ap = (1.5, -1) \in A (note y=−1y=-1 satisfies −1≤y-1 \le y). For any r>0r>0, the point (1.5,−1−r/2)(1.5, -1 - r/2) lies in B(p,r)B(p,r) since its distance to pp is r/2<rr/2 < r, but its yy-coordinate −1−r/2<−1-1-r/2 < -1 violates y≥−1y \ge -1, so this point is not in AA. Hence no ball around pp fits inside AA, so pp is not an interior point, so AA is not open. AA is not closed. The point q=(1.5,2)q = (1.5, 2) is a limit point of AA: for any r>0r>0, the point (1.5, 2−min⁡(r,1)/2)(1.5,\, 2 - \min(r,1)/2) lies within B(q,r)B(q,r) (distance <r< r) and lies in AA (its yy-coordinate is in [−1,2)[-1,2) for small enough choice, and its xx-coordinate is 1.5∈(0,3)1.5\in(0,3)), and it differs from qq. So q∈A′q \in A'. But q=(1.5,2)∉Aq = (1.5,2) \notin A since AA requires y<2y < 2 strictly. So AA fails to contain a limit point, hence is not closed. Interior. We claim

int⁡(A)={(x,y):0<x<3, −1<y<2}.\operatorname{int}(A) = \{(x,y) : 0 < x < 3,\ -1 < y < 2\}.

Call this set VV. First, VV is open: for (x,y)∈V(x,y) \in V, let d=min⁡(x,3−x,y−(−1),2−y)>0d = \min(x, 3-x, y-(-1), 2-y) > 0 (all four quantities are strictly positive since the four inequalities are strict), and one checks B((x,y),d)⊆VB((x,y), d) \subseteq V by the triangle inequality argument identical to part (1) of the theorem restricted coordinatewise (if ∥(x′,y′)−(x,y)∥<d\|(x',y')-(x,y)\|<d then ∣x′−x∣<d|x'-x|<d and ∣y′−y∣<d|y'-y|<d, forcing x′∈(0,3)x'\in(0,3) and y′∈(−1,2)y'\in(-1,2)). Since V⊆AV \subseteq A and VV is open, V⊆int⁡(A)V \subseteq \operatorname{int}(A) by part (7) of the theorem. Conversely, any point of A∖VA \setminus V has y=−1y = -1 exactly (the only way to be in AA but not VV, given the xx-range is identical), and by the first bullet argument above, no such point is an interior point of AA. So int⁡(A)⊆V\operatorname{int}(A) \subseteq V. Hence int⁡(A)=V\operatorname{int}(A) = V. Closure. We claim

A‾={(x,y):0≤x≤3, −1≤y≤2}=:R,\overline{A} = \{(x,y) : 0 \le x \le 3,\ -1 \le y \le 2\} =: R,

the full closed rectangle. RR is closed (an intersection of four closed half-planes, each closed by an argument like the one for A‾\overline{A} in the theorem, or directly: complements are open half-planes). Since A⊆RA \subseteq R and RR is closed, A‾⊆R\overline{A} \subseteq R by minimality of closure (theorem, part 7). For the reverse inclusion, every point of RR is either in AA already, or is a limit point of AA: e.g. (0,y)(0,y) for y∈[−1,2]y\in[-1,2] is approached by (1/k,y′)∈A(1/k, y')\in A with y′y' chosen appropriately close to yy inside [−1,2)[-1,2); similarly for the other three edges and the four corners, in each case one exhibits a sequence of points of AA (with xx and yy nudged strictly inside the open ranges) converging to the boundary point. Hence R⊆A‾R \subseteq \overline{A}, giving A‾=R\overline{A} = R. Boundary. ∂A=A‾∖int⁡(A)=R∖V\partial A = \overline{A} \setminus \operatorname{int}(A) = R \setminus V, which is exactly the perimeter of the rectangle [0,3]×[−1,2][0,3]\times[-1,2] — all four edges and corners, a one-dimensional curve in R2\mathbb{R}^2, regardless of which edges happened to be included in AA 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 R3\mathbb{R}^3. Let

B={x∈R3:1<∥x−c∥<2}∪{p},B = \{ x \in \mathbb{R}^3 : 1 < \|x - c\| < 2 \} \cup \{p\},

where c=(1,0,−1)c = (1,0,-1) and p=(10,10,10)p = (10, 10, 10) is a far-away isolated extra point (note ∥p−c∥=81+100+121=302≈17.38≫2\|p - c\| = \sqrt{81+100+121} = \sqrt{302} \approx 17.38 \gg 2, so pp genuinely sits outside the shell). Claim: pp is an isolated point of BB, hence not a limit point of BB, and BB is not closed. Let ρ=∥p−c∥−2=302−2>0\rho = \|p - c\| - 2 = \sqrt{302} - 2 > 0. We claim B(p,ρ)∩B={p}B(p,\rho) \cap B = \{p\}. Indeed, suppose z∈B(p,ρ)z \in B(p,\rho) with z≠pz \ne p; if zz also belonged to the shell part of BB, then 1<∥z−c∥<21 < \|z-c\|<2. But by the triangle inequality,

∥z−c∥≥∥p−c∥−∥z−p∥>∥p−c∥−ρ=2,\|z - c\| \ge \|p-c\| - \|z-p\| > \|p-c\| - \rho = 2,

contradicting ∥z−c∥<2\|z-c\|<2. So zz cannot lie in the shell, and z≠pz \ne p, so z∉Bz \notin B. This shows B(p,ρ)∩B={p}B(p,\rho)\cap B=\{p\}, so pp is isolated: no ball around pp meets BB in a point other than pp itself, so p∉B′p \notin B' (it is not a limit point of BB, despite belonging to BB). Claim: BB is not closed. Consider x0x_0 with ∥x0−c∥=2\|x_0 - c\| = 2, e.g. x0=c+(2,0,0)=(3,0,−1)x_0 = c + (2,0,0) = (3,0,-1). For any r>0r>0, the point c+(2−min⁡(r,1)/2)⋅(1,0,0)c + (2 - \min(r,1)/2)\cdot(1,0,0) lies within the shell (its distance from cc is 2−min⁡(r,1)/2∈(1,2)2 - \min(r,1)/2 \in (1,2) for small enough radius) and within distance min⁡(r,1)/2<r\min(r,1)/2 < r of x0x_0, and is different from x0x_0. So x0∈B′x_0 \in B'. But ∥x0−c∥=2\|x_0-c\|=2 fails the strict inequality ∥x−c∥<2\|x-c\|<2 needed to be in the shell, and clearly x0≠px_0 \ne p, so x0∉Bx_0 \notin B. A limit point outside the set means BB is not closed. Interior, closure, boundary. By an argument parallel to Example 1 (applied to the radial variable ∥x−c∥\|x-c\| instead of coordinates), one finds:

int⁡(B)={x:1<∥x−c∥<2}(the isolated point p contributes nothing to the interior, since no ball around p lies in B unless the ball misses everything else, which is impossible for the required inclusion B(p,r)⊆B once r>0 is fixed and B’s shell part is far away — more simply, p fails to be interior because B(p,r)⊈B for any r, since only single point p of B(p,r) lies in B when r<ρ, so B(p,r) contains points outside B).\operatorname{int}(B) = \{x : 1 < \|x-c\| < 2\} \quad (\text{the isolated point } p \text{ contributes nothing to the interior, since no ball around } p \text{ lies in } B \text{ unless the ball misses everything else, which is impossible for the required inclusion } B(p,r)\subseteq B \text{ once } r>0 \text{ is fixed and } B\text{'s shell part is far away — more simply, } p \text{ fails to be interior because } B(p,r)\not\subseteq B \text{ for any } r, \text{ since only single point } p \text{ of } B(p,r) \text{ lies in } B \text{ when } r<\rho, \text{ so } B(p,r) \text{ contains points outside } B).
B‾={x:1≤∥x−c∥≤2}∪{p},∂B={x:∥x−c∥∈{1,2}}∪{p}.\overline{B} = \{x : 1 \le \|x-c\| \le 2\} \cup \{p\}, \qquad \partial B = \{x : \|x-c\| \in \{1,2\}\} \cup \{p\}.

Note p∈∂Bp \in \partial B: p∈B‾p \in \overline B (trivially, as p∈B⊆B‾p\in B\subseteq\overline B) but p∉int⁡(B)p \notin \operatorname{int}(B) (just argued), so by definition p∈B‾∖int⁡(B)=∂Bp \in \overline{B}\setminus \operatorname{int}(B) = \partial B. 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.

CounterexampleWhy "closed" cannot be defined as "not open," and why finiteness is needed for intersections of open sets

It is tempting to think closed sets are simply those sets that fail to be open. This is false, and Q⊆R\mathbb{Q} \subseteq \mathbb{R} (viewing R=R1\mathbb{R} = \mathbb{R}^1) is a clean witness: Q\mathbb{Q} is neither open nor closed. Q\mathbb{Q} is not open: every ball B(q,r)=(q−r,q+r)B(q,r) = (q-r,q+r) around a rational qq contains irrational numbers (irrationals are dense), so no ball around qq lies inside Q\mathbb{Q}; hence qq is not an interior point of Q\mathbb{Q}, for every q∈Qq \in \mathbb{Q}. Q\mathbb{Q} is not closed: every irrational xx is a limit point of Q\mathbb{Q} (rationals are dense: every ball around xx contains a rational, e.g. via decimal truncation of xx), but x∉Qx \notin \mathbb{Q}, so Q\mathbb{Q} 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 ∅\emptyset and Rn\mathbb{R}^n 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

Uk=(−1k,1k),k=1,2,3,…U_k = \left(-\tfrac{1}{k}, \tfrac{1}{k}\right), \qquad k = 1, 2, 3, \dots

Each UkU_k is open (it is an open ball B(0,1/k)B(0, 1/k) in R\mathbb{R}). Yet

⋂k=1∞Uk={0}.\bigcap_{k=1}^{\infty} U_k = \{0\}.

Indeed, 0∈Uk0 \in U_k for every kk, so 00 lies in the intersection. Conversely if x≠0x \ne 0, choosing k>1/∣x∣k > 1/|x| gives ∣x∣≥1/k|x| \ge 1/k, wait more precisely 1/k<∣x∣1/k < |x|, so x∉Ukx \notin U_k, hence xx is excluded from the intersection. So the intersection is exactly {0}\{0\}, a single point. But {0}\{0\} is not open: any ball B(0,r)=(−r,r)B(0,r) = (-r,r) with r>0r>0 contains points other than 00 (e.g. r/2r/2), so B(0,r)⊈{0}B(0,r) \not\subseteq \{0\}, meaning 00 is not an interior point of {0}\{0\}. 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 r=min⁡{r1,…,rk}r = \min\{r_1,\dots,r_k\}," since an infimum of infinitely many positive numbers rk=1/kr_k = 1/k can be 00, giving no valid radius.

Scope, edge cases & common traps

SituationWhat to remember
∅\emptyset and Rn\mathbb{R}^nBoth open and closed simultaneously — not a contradiction, since open/closed are not complementary labels.
Sets like Q\mathbb{Q}, [0,1)[0,1)Can be neither open nor closed. Always check both conditions directly.
Infinite unions/intersectionsOpen sets: arbitrary unions OK, only finite intersections guaranteed open. Closed sets: arbitrary intersections OK, only finite unions guaranteed closed.
Isolated pointsAlways contribute to the boundary ∂A\partial A of their set, never to the interior.
Limit point vs. point of AAA limit point of AA need not belong to AA; a point of AA need not be a limit point of AA (it may be isolated).
"Open" as informal shorthand"Open" is a property of a set, defined relative to the ambient space Rn\mathbb{R}^n — it is not a property of an individual point.

The mathematician behind it

Origins · 1 minFelix Hausdorff and how this was discovered
FH
Felix Hausdorff
1868–1942 · Foundations of general topology, Bonn/Greifswald

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 Rn\mathbb{R}^n. 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 Rn\mathbb{R}^n 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.

History
- 1817 — Bernard Bolzano gives an early rigorous treatment of limit points and the intermediate value property for real functions, anticipating the analytic need for these notions.
- 1872 — Georg Cantor develops the theory of point sets on the real line, introducing limit points and derived sets A′A' in the modern sense.
- 1906 — Maurice Fréchet introduces general metric spaces, defining open balls and continuity via distance in an abstract setting that includes Rn\mathbb{R}^n as a special case.
- 1914 — Felix Hausdorff publishes Grundzüge der Mengenlehre, axiomatizing open sets and founding general topology.
- 1930s — Textbook treatments (Kuratowski, and later Rudin's Principles of Mathematical Analysis) crystallize the modern Rn\mathbb{R}^n-first pedagogical route: balls, open sets, closed sets, then abstraction to metric and topological spaces.
Is every subset of Rn\mathbb{R}^n either open or closed?

No. Openness and closedness are independent conditions, not complementary labels for a single dichotomy. The set Q⊂R\mathbb{Q} \subset \mathbb{R} is neither open (every ball around a rational contains irrationals) nor closed (every irrational is a limit point of Q\mathbb{Q} but isn't itself rational). Likewise the half-open interval [0,1)[0,1) is neither open (the point 00 has no ball of safety staying inside, since balls around 00 dip into negative numbers) nor closed (it fails to contain its limit point 11). At the other extreme, ∅\emptyset and Rn\mathbb{R}^n are simultaneously open and closed — these are the only two subsets of Rn\mathbb{R}^n with that dual property, a fact tied to the connectedness of Rn\mathbb{R}^n.

What exactly is the difference between the closure of AA and the boundary of AA?

The closure A‾=A∪A′\overline{A} = A \cup A' is AA together with every point it limits toward; it always contains AA itself. The boundary ∂A=A‾∖int⁡(A)\partial A = \overline{A}\setminus \operatorname{int}(A) is the closure with the interior points stripped away — the "edge" points that are approached both from inside AA's interior and from outside AA entirely. Every interior point of AA is in the closure but never in the boundary; conversely, isolated points of AA are always boundary points (they belong to A‾\overline A trivially but can never have a ball fitting entirely in AA, so they are excluded from the interior). In short: closure = "AA plus what it touches," boundary = "the frontier where AA's interior meets everything outside A‾\overline A'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 r1,…,rkr_1, \dots, r_k (one per open set, chosen so that B(x,ri)⊆UiB(x,r_i)\subseteq U_i) and sets r=min⁡{r1,…,rk}r = \min\{r_1,\dots,r_k\}, which is guaranteed positive because a minimum of finitely many positive numbers is positive. With infinitely many sets U1,U2,…U_1, U_2, \dots, the natural analogue is r=inf⁡krkr = \inf_k r_k, but an infimum of infinitely many positive numbers can be exactly 00 — as it is for Uk=(−1/k,1/k)U_k = (-1/k, 1/k), where inf⁡k(1/k)=0\inf_k (1/k) = 0. No positive radius survives, so the argument gives no ball at all, and indeed the intersection ⋂kUk={0}\bigcap_k U_k = \{0\} is not open, confirming the theorem's finiteness hypothesis is sharp.

How do open balls in Rn\mathbb{R}^n relate to open intervals in R\mathbb{R}?

When n=1n=1, the Euclidean norm is just absolute value, so B(x,r)={y∈R:∣y−x∣<r}=(x−r,x+r)B(x,r) = \{y \in \mathbb{R} : |y-x| < r\} = (x-r, x+r), exactly the open interval centered at xx with radius rr. 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 n=1n=1. The theorems proved above (unions/intersections of open and closed sets, interior as largest open subset, closure as smallest closed superset) are simply the nn-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: Rn\mathbb{R}^n itself is closed (and unbounded), and so is a closed half-space {x:x1≥0}\{x : x_1 \ge 0\} (unbounded). The combination "closed and bounded" is a much stronger, separately named property called compactness in Rn\mathbb{R}^n (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 xx is a limit point of AA, must there be a sequence in AA converging to xx?

Yes, and this equivalence is extremely useful in practice. If xx is a limit point of AA, then for each k=1,2,3,…k = 1, 2, 3, \dots, the ball B(x,1/k)B(x, 1/k) meets AA in some point ak≠xa_k \ne x (by definition of limit point, using r=1/kr = 1/k); the resulting sequence (ak)(a_k) satisfies ∥ak−x∥<1/k→0\|a_k - x\| < 1/k \to 0, so ak→xa_k \to x, and ak∈Aa_k \in A for every kk. Conversely, if some sequence of points of A∖{x}A \setminus \{x\} converges to xx, then every ball around xx eventually contains terms of the sequence, hence meets AA at a point other than xx, so xx 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 xx" 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 AA accumulating near xx — clustering infinitely close — which is a meaningful property even if x∉Ax \notin A, so we specifically ask about other points of AA nearby, otherwise every point of AA would trivially be a limit point of itself for no interesting reason (since x∈B(x,r)∩Ax \in B(x,r)\cap A always when x∈Ax\in A). An interior point, by contrast, asks whether an entire ball around xx — including xx itself — fits inside AA; here there's no need to exclude xx, because the question is about a whole neighborhood being safely inside AA, not about approach from other points. The exclusion in the limit-point definition is precisely what makes isolated points (points of AA with no other nearby points of AA) fail to be limit points, which is the desired behavior.

Before this

Where this leads