ACE 328/Chapter 1

Topological Spaces

The foundational structure of analysis: open sets, closed sets, and the topology axioms. Includes the discrete, trivial, and Euclidean topologies.

Real analysis, at its core, is the study of "closeness" — what it means for points to be near each other, for sequences to converge, and for functions to be continuous. In a first calculus course, closeness is measured by the absolute value xy|x - y| on R\mathbb{R}; in Rd\mathbb{R}^d, by the Euclidean norm xy\|\boldsymbol{x} - \boldsymbol{y}\|. But these notions of distance are, in a sense, extra structure. The deeper structure underneath convergence and continuity is simply a choice of which subsets of the space count as "open."

That choice is called a topology. A topological space is the most general setting in which limits, continuity, and neighbourhood make sense. Before diving into metric spaces (where a distance function generates a topology automatically), we take the abstract viewpoint so that we understand which results require distance and which are purely topological.


Preliminaries: Power Sets and Set Notation

DefinitionPower Set

Let XX be a set. The power set of XX, denoted 2X2^X (or sometimes P(X)\mathcal{P}(X)), is the set of all subsets of XX: 2X={A:AX}.2^X = \{ A : A \subseteq X \}.

Remark.

Intuition: If XX has nn elements then 2X2^X has 2n2^n elements — one for each binary choice of "in/out" for each element of XX. This is why the notation 2X2^X is standard. For an infinite set XX, 2X2^X is strictly "larger" than XX (Cantor's theorem), which foreshadows the distinction between countable and uncountable sets.

Throughout this chapter we use \subset and \subseteq interchangeably to mean "is a subset of" (allowing equality). For a subset AXA \subseteq X, the complement of AA in XX is Ac=XA={xX:xA}.A^c = X \setminus A = \{ x \in X : x \notin A \}.

Two identities we use constantly are de Morgan's laws: for any family (Aα)αA(A_\alpha)_{\alpha \in \mathcal{A}} of subsets of XX, (αAAα)c=αAAαc,(αAAα)c=αAAαc.\left( \bigcup_{\alpha \in \mathcal{A}} A_\alpha \right)^c = \bigcap_{\alpha \in \mathcal{A}} A_\alpha^c, \qquad \left( \bigcap_{\alpha \in \mathcal{A}} A_\alpha \right)^c = \bigcup_{\alpha \in \mathcal{A}} A_\alpha^c.

Remark.

Aside on sigma-algebras. A related but different structure on a set XX is a σ\sigma-algebra: a collection F2X\mathcal{F} \subseteq 2^X closed under complements, countable unions, and containing \emptyset and XX. Sigma-algebras are the foundation for measure theory. Topologies and σ\sigma-algebras share some flavour (closure under certain set operations) but differ in crucial ways: topologies allow arbitrary unions but only finite intersections; σ\sigma-algebras allow countable unions and countable intersections and require closure under complements. Do not conflate them.


Definition of a Topology

DefinitionTopology, Topological Space, Open Sets, Closed Sets

Let XX be a nonempty set. A collection T2X\mathcal{T} \subseteq 2^X is called a topology on XX if and only if:

  1. T\emptyset \in \mathcal{T} and XTX \in \mathcal{T}.
  2. For every Ω1,Ω2T\Omega_1, \Omega_2 \in \mathcal{T}, we have Ω1Ω2T\Omega_1 \cap \Omega_2 \in \mathcal{T} (closure under finite intersections).
  3. For every family (Ωα)αA(\Omega_\alpha)_{\alpha \in \mathcal{A}} with ΩαT\Omega_\alpha \in \mathcal{T} for all α\alpha, we have αAΩαT\bigcup_{\alpha \in \mathcal{A}} \Omega_\alpha \in \mathcal{T} (closure under arbitrary unions).

The pair (X,T)(X, \mathcal{T}) is called a topological space. Elements of T\mathcal{T} are called open sets. A subset FXF \subseteq X is called a closed set if and only if Fc=XFTF^c = X \setminus F \in \mathcal{T}.

Remark.

Intuition: A topology is a choice of which subsets we declare to be "open." The three axioms encode what we expect open sets to do: both the ambient space and nothing at all are open; intersecting two open sets leaves an open set; taking the union of any (even uncountably many) open sets keeps us open. Note the asymmetry — intersections are only guaranteed to stay open when finitely many sets are involved. We will see examples where an infinite intersection of open sets fails to be open.

Remark.

Why these axioms? The axioms are the minimal conditions needed so that the following familiar notions — limit of a sequence, continuity of a function, closure of a set — can be defined without any reference to distance. Everything in the first third of this course flows from these three bullet points.

Closed Sets from the Topology

Closed sets are not a separate structure; they are entirely determined by the topology. The behavior of closed sets is dual to that of open sets, as the next proposition shows.

PropositionCharacterization of the Family of Closed Sets

Let (X,T)(X, \mathcal{T}) be a topological space and let F={FX:FcT}\mathcal{F} = \{ F \subseteq X : F^c \in \mathcal{T} \} be the family of all closed sets. Then:

  1. F\emptyset \in \mathcal{F} and XFX \in \mathcal{F}.
  2. For every F1,F2FF_1, F_2 \in \mathcal{F}, we have F1F2FF_1 \cup F_2 \in \mathcal{F}.
  3. For every family (Fα)αA(F_\alpha)_{\alpha \in \mathcal{A}} with FαFF_\alpha \in \mathcal{F} for all α\alpha, we have αAFαF\bigcap_{\alpha \in \mathcal{A}} F_\alpha \in \mathcal{F}.
Remark.

Intuition: The closed-set axioms mirror the open-set axioms with roles of union/intersection swapped. In particular, arbitrary intersections of closed sets are closed, but only finite unions of closed sets are guaranteed to be closed.

Clopen Sets

Remark.

In every topological space (X,T)(X, \mathcal{T}), the sets \emptyset and XX are both open (by axiom 1) and closed (by the proposition above). Sets that are simultaneously open and closed are called clopen. Depending on the topology, there can be many clopen sets or only the trivial ones \emptyset and XX.


Examples of Topologies

The following four examples are the central ones to have in mind.

ExampleThe Trivial (Indiscrete) Topology

For any nonempty set XX, the collection Ttriv={,X}\mathcal{T}_{\text{triv}} = \{ \emptyset, X \} is a topology on XX. All three axioms are trivially satisfied. This is the trivial (or indiscrete) topology — the fewest possible open sets.

In this topology, the only open sets are \emptyset and XX, and the only closed sets are likewise \emptyset and XX. Every pair of points is "topologically indistinguishable" in a sense we will make precise shortly (they cannot be separated by open sets).

ExampleThe Discrete Topology

For any nonempty set XX, the collection Tdisc=2X\mathcal{T}_{\text{disc}} = 2^X of all subsets of XX is a topology on XX. The three axioms hold because every subset is declared open. This is the discrete topology — the most possible open sets.

In the discrete topology, every subset is both open and closed (every subset is clopen). In particular, every singleton {x}\{x\} is open.

ExampleThe Euclidean Topology on R to the n

Let Rn\mathbb{R}^n denote the set of nn-tuples of real numbers, equipped with the Euclidean norm x=(j=1nxj2)1/2,x=(x1,,xn)Rn.\|\boldsymbol{x}\| = \left( \sum_{j=1}^n x_j^2 \right)^{1/2}, \qquad \boldsymbol{x} = (x_1, \ldots, x_n) \in \mathbb{R}^n. For xRn\boldsymbol{x} \in \mathbb{R}^n and r>0r > 0, define the open ball of radius rr centered at x\boldsymbol{x}: B(x,r)={yRn:yx<r}.B(\boldsymbol{x}, r) = \{ \boldsymbol{y} \in \mathbb{R}^n : \| \boldsymbol{y} - \boldsymbol{x} \| < r \}. Then define E={ΩRn:xΩ,ρ>0 such that B(x,ρ)Ω}.\mathcal{E} = \{ \Omega \subseteq \mathbb{R}^n : \forall \boldsymbol{x} \in \Omega, \, \exists \rho > 0 \text{ such that } B(\boldsymbol{x}, \rho) \subseteq \Omega \}. The collection E\mathcal{E} is the Euclidean topology on Rn\mathbb{R}^n. This is exactly the usual definition of "open" from calculus: Ω\Omega is open if around every point in Ω\Omega there is some open ball entirely inside Ω\Omega. When n=1n = 1, we have x=x\|x\| = |x| and B(x,r)=(xr,x+r)B(x, r) = (x-r, x+r).

TheoremThe Euclidean Topology is a Topology

The collection E\mathcal{E} defined above is a topology on Rn\mathbb{R}^n.

Remark.

Intuition: The Euclidean topology is what you were implicitly using in first-year calculus whenever you said "open interval" or "continuous function." The topological axioms above are the abstract distillation of exactly what makes proofs in calculus work.

ExampleOpen and Closed Sets in the Euclidean Topology on R

Consider R\mathbb{R} with the Euclidean topology E\mathcal{E}.

  • For a<ba < b, the interval (a,b)(a,b) is open. Given x(a,b)x \in (a,b), set ρ=min{xa,bx}>0\rho = \min\{x - a, b - x\} > 0. Then B(x,ρ)=(xρ,x+ρ)(a,b)B(x, \rho) = (x - \rho, x + \rho) \subseteq (a,b).
  • For every aRa \in \mathbb{R}, the rays (,a)(-\infty, a) and (a,)(a, \infty) are open (similar argument).
  • For aba \le b, the interval [a,b][a,b] is closed. Its complement [a,b]c=(,a)(b,)[a,b]^c = (-\infty, a) \cup (b, \infty) is a union of two open sets, hence open.
  • The rays (,a](-\infty, a] and [a,)[a, \infty) are closed (by similar complement arguments).
  • The half-open interval [a,b)[a,b) with a<ba < b is neither open nor closed. It is not open because a[a,b)a \in [a,b) and for every ρ>0\rho > 0, B(a,ρ)=(aρ,a+ρ)⊈[a,b)B(a, \rho) = (a - \rho, a + \rho) \not\subseteq [a,b). It is not closed because its complement (,a)[b,)(-\infty, a) \cup [b, \infty) is not open: b[b,)b \in [b, \infty) but B(b,ρ)⊈(,a)[b,)B(b, \rho) \not\subseteq (-\infty, a) \cup [b, \infty) for any ρ>0\rho > 0.
ExampleThe Cofinite Topology

Let XX be any nonempty set. Define Tcofin={}{ΩX:XΩ is finite}.\mathcal{T}_{\text{cofin}} = \{ \emptyset \} \cup \{ \Omega \subseteq X : X \setminus \Omega \text{ is finite} \}. One can verify that this is a topology: the empty set is in by definition; XX=X \setminus X = \emptyset is finite so XX is in; if Ω1,Ω2\Omega_1, \Omega_2 have finite complements, then (Ω1Ω2)c=Ω1cΩ2c(\Omega_1 \cap \Omega_2)^c = \Omega_1^c \cup \Omega_2^c is a union of two finite sets, hence finite; and an arbitrary union of sets with finite complements has a complement equal to the intersection of finite sets, which is finite. In the cofinite topology, the closed sets are exactly XX and the finite subsets of XX.

ExampleA Non-Hausdorff Topology on R

On R\mathbb{R}, define Tlsc={(a,):aR}{,R}.\mathcal{T}_{\text{lsc}} = \{ (a, \infty) : a \in \mathbb{R} \} \cup \{ \emptyset, \mathbb{R} \}. This is a topology (the subscript "lsc" hints at its connection to lower-semicontinuous functions):

  • ,RTlsc\emptyset, \mathbb{R} \in \mathcal{T}_{\text{lsc}} by definition.
  • Intersections: (a1,)(a2,)=(max{a1,a2},)Tlsc(a_1, \infty) \cap (a_2, \infty) = (\max\{a_1, a_2\}, \infty) \in \mathcal{T}_{\text{lsc}}, and intersections involving \emptyset or R\mathbb{R} remain in the family.
  • Unions: a union of sets of the form (aα,)(a_\alpha, \infty) is either \emptyset, R\mathbb{R}, or another ray (a,)(a, \infty) where a=infαaαa = \inf_\alpha a_\alpha.

This topology has far fewer open sets than the Euclidean topology. We will see that it is not Hausdorff — distinct points cannot be separated by disjoint open sets.


Closure Under Intersections: Finite vs. Arbitrary

The axioms of a topology allow finite intersections of open sets, but an infinite intersection of open sets may fail to be open. The following example in (R,E)(\mathbb{R}, \mathcal{E}) illustrates this.

ExampleAn Infinite Intersection of Open Sets Can Fail to be Open

For each kZ>0k \in \mathbb{Z}_{>0}, the set (1k,1k)\left( -\tfrac{1}{k}, \tfrac{1}{k} \right) is open in R\mathbb{R}. Their intersection is k=1(1k,1k)={0},\bigcap_{k=1}^\infty \left( -\tfrac{1}{k}, \tfrac{1}{k} \right) = \{0\}, which is a single point. In (R,E)(\mathbb{R}, \mathcal{E}), the singleton {0}\{0\} is not open — there is no ρ>0\rho > 0 with B(0,ρ)=(ρ,ρ){0}B(0, \rho) = (-\rho, \rho) \subseteq \{0\}. So the intersection of infinitely many open sets need not be open.

Similarly, an infinite union of closed sets need not be closed. Each closed ball B(k1)/k(x)={y:yx(k1)/k}\overline{B}_{(k-1)/k}(\boldsymbol{x}) = \{ \boldsymbol{y} : \| \boldsymbol{y} - \boldsymbol{x} \| \le (k-1)/k \} is closed, but k=1B(k1)/k(x)=B1(x),\bigcup_{k=1}^\infty \overline{B}_{(k-1)/k}(\boldsymbol{x}) = B_1(\boldsymbol{x}), which is the open ball of radius 1 — not closed.


Neighbourhoods

DefinitionNeighbourhood

Let (X,T)(X, \mathcal{T}) be a topological space and let xXx \in X. A subset VXV \subseteq X is called a neighbourhood of xx (in the topology T\mathcal{T}) if and only if there exists ΩT\Omega \in \mathcal{T} such that xΩV.x \in \Omega \subseteq V. Given xXx \in X, we denote by Ux\mathcal{U}_x the family of all neighbourhoods of xx in the topology T\mathcal{T}.

Remark.

Intuition: A neighbourhood of xx is any set "fat enough around xx" to contain an open set through xx. Neighbourhoods need not themselves be open — for instance, in R\mathbb{R}, the closed interval [1,1][-1, 1] is a neighbourhood of 0 because it contains the open interval (1,1)0(-1, 1) \ni 0.

The family Ux\mathcal{U}_x has four basic properties:

  1. VUx    xVV \in \mathcal{U}_x \implies x \in V.
  2. If VUxV \in \mathcal{U}_x and WVW \supseteq V, then WUxW \in \mathcal{U}_x.
  3. V1,V2Ux    V1V2UxV_1, V_2 \in \mathcal{U}_x \implies V_1 \cap V_2 \in \mathcal{U}_x.
  4. For every VUxV \in \mathcal{U}_x, there exists WUxW \in \mathcal{U}_x such that VUyV \in \mathcal{U}_y for every yWy \in W.

Properties (1)–(3) are immediate from the definition. Property (4) says: every neighbourhood of xx is a neighbourhood of all points in some smaller neighbourhood. To see this, let VUxV \in \mathcal{U}_x; by definition there exists WTW \in \mathcal{T} with xWVx \in W \subseteq V. Then WUxW \in \mathcal{U}_x, and for every yWy \in W, WW is an open set containing yy with WVW \subseteq V, so VUyV \in \mathcal{U}_y.

PropositionOpenness via Neighbourhoods

Let (X,T)(X, \mathcal{T}) be a topological space and let ΩX\Omega \subseteq X. Then ΩT    ΩUx for every xΩ.\Omega \in \mathcal{T} \iff \Omega \in \mathcal{U}_x \text{ for every } x \in \Omega. In words: a set is open if and only if it is a neighbourhood of each of its points.

Remark.

Hausdorff's viewpoint. Specifying, for each xXx \in X, a family Ux\mathcal{U}_x of subsets satisfying properties (1)–(4), determines a unique topology T\mathcal{T} on XX such that Ux\mathcal{U}_x is the system of neighbourhoods of xx in the topology T\mathcal{T}. This was the approach Felix Hausdorff (1868–1942) took to define topological spaces in 1914. Modern treatments favour the open-set axioms, but the two approaches are equivalent.


Hausdorff Spaces

DefinitionHausdorff Space

A topological space (X,T)(X, \mathcal{T}) is called a Hausdorff space (or T2T_2-space) if and only if for every x,yXx, y \in X with xyx \ne y, there exist VUxV \in \mathcal{U}_x and WUyW \in \mathcal{U}_y such that VW=V \cap W = \emptyset.

Remark.

Intuition: In a Hausdorff space, distinct points can be "separated" by disjoint neighbourhoods. This is the minimum amount of separation we generally want to do analysis: without it, limits of sequences might fail to be unique, and points might be topologically indistinguishable. Almost every space arising in practice (every metric space, in particular) is Hausdorff.

ExampleA Non-Hausdorff Topology

Consider (R,Tlsc)(\mathbb{R}, \mathcal{T}_{\text{lsc}}) from earlier. This is not Hausdorff: let x,yRx, y \in \mathbb{R} with x<yx < y. Every nonempty proper open set in Tlsc\mathcal{T}_{\text{lsc}} is of the form (a,)(a, \infty). Every neighbourhood of xx must contain some (a,)(a, \infty) with a<xa < x, and therefore contains all of (x,)(x, \infty), which in turn contains yy. So every neighbourhood of xx and every neighbourhood of yy both contain the interval (y,)(y, \infty) and cannot be disjoint.

The key intuition behind the failure: the topology Tlsc\mathcal{T}_{\text{lsc}} has many fewer open sets than the Euclidean topology. This implies fewer neighbourhoods at our disposal when attempting to separate points; the separation attempt fails.

Similarly, if XX has at least two elements, the trivial topology (X,{,X})(X, \{\emptyset, X\}) is not Hausdorff, since the only neighbourhood of any point is XX itself — so two distinct points can never be placed in disjoint neighbourhoods.


Accumulation Points (Cluster Points) and the Derived Set

Before turning to limits and continuity, we introduce a key notion — points that are "approached" by a set, which formalizes the idea of a set piling up near a point.

DefinitionAccumulation Point, Derived Set

Let (X,T)(X, \mathcal{T}) be a topological space, let AXA \subseteq X, and let x0Xx_0 \in X. We say x0x_0 is an accumulation point (or cluster point, or limit point) of AA if and only if (A{x0})Vfor every VUx0.(A \setminus \{x_0\}) \cap V \ne \emptyset \qquad \text{for every } V \in \mathcal{U}_{x_0}. The set of all accumulation points of AA is called the derived set of AA and is denoted AA'.

This notion is due to Georg Cantor (1872).

Remark.

Intuition: x0x_0 is an accumulation point of AA if every neighbourhood of x0x_0 meets AA in some point other than x0x_0 itself. So AA "piles up" near x0x_0. Note carefully: this differs from saying "every neighbourhood meets AA." We forbid the meeting from being only at x0x_0 — there must be another point of AA nearby.

In a metric space (X,d)(X, d), equipped with the metric topology, the definition can be rewritten in terms of open balls: x0A    (A{x0})B(x0,ρ)for every ρ>0.x_0 \in A' \iff (A \setminus \{x_0\}) \cap B(x_0, \rho) \ne \emptyset \quad \text{for every } \rho > 0.

Remark.

Alternative characterization in Hausdorff spaces. Another common definition of "accumulation point" (often seen first in Rn\mathbb{R}^n) is: x0A    AV is infinite for every VUx0.x_0 \in A' \iff A \cap V \text{ is infinite for every } V \in \mathcal{U}_{x_0}. This equivalence holds when (X,T)(X, \mathcal{T}) is Hausdorff (and so, in particular, in every metric space). It need not hold in general non-Hausdorff spaces.


Limits of Functions Between Topological Spaces

With accumulation points in hand, we can state the topological definition of limit.

DefinitionLimit of a Function

Let (X,T)(X, \mathcal{T}) and (Y,S)(Y, \mathcal{S}) be topological spaces. Let AXA \subseteq X and f:AYf : A \to Y be a function. Let aAa \in A' (an accumulation point of AA) and λY\lambda \in Y. We say that λ\lambda is a limit of ff as xx tends to aa, and write limxaf(x)=λ\lim_{x \to a} f(x) = \lambda, if and only if VUλ,WUa such that f(x)V for every x(A{a})W.\forall V \in \mathcal{U}_\lambda, \, \exists W \in \mathcal{U}_a \text{ such that } f(x) \in V \text{ for every } x \in (A \setminus \{a\}) \cap W. To stress the dependence on the topologies T\mathcal{T} and S\mathcal{S}, we may write f(x)Sλf(x) \xrightarrow{\mathcal{S}} \lambda as xTax \xrightarrow{\mathcal{T}} a.

Remark.

Intuition: The statement limxaf(x)=λ\lim_{x \to a} f(x) = \lambda says: however tight a neighbourhood VV of λ\lambda we pick in the target, we can find a neighbourhood WW of aa in the source so small that ff maps every point of AA different from aa and inside WW into VV. Requiring aAa \in A' ensures that such "points near aa but not equal to aa" actually exist in AA.

ExampleLimits Need Not Be Unique

In a non-Hausdorff space, limits can fail to be unique. Consider (R,Tlsc)(\mathbb{R}, \mathcal{T}_{\text{lsc}}) and suppose f(x)λf(x) \to \lambda in this topology. We claim that f(x)μf(x) \to \mu for every μλ\mu \le \lambda.

Indeed, let V1UμV_1 \in \mathcal{U}_\mu in Tlsc\mathcal{T}_{\text{lsc}}. By definition there is αR\alpha \in \mathbb{R} with μ(α,)V1\mu \in (\alpha, \infty) \subseteq V_1. Since α<μλ\alpha < \mu \le \lambda, we have λ(α,)V1\lambda \in (\alpha, \infty) \subseteq V_1, so V1V_1 is also a neighbourhood of λ\lambda. Hence by convergence to λ\lambda there exists W1UaW_1 \in \mathcal{U}_a with f(x)V1f(x) \in V_1 for every x(A{a})W1x \in (A \setminus \{a\}) \cap W_1. This is the condition for convergence to μ\mu. So the same function simultaneously converges to λ\lambda and to every μλ\mu \le \lambda.

TheoremUniqueness of Limits in Hausdorff Target

Let (X,T)(X, \mathcal{T}) and (Y,S)(Y, \mathcal{S}) be topological spaces with (Y,S)(Y, \mathcal{S}) Hausdorff. Let AXA \subseteq X, f:AYf : A \to Y, and aAa \in A'. If limxaf(x)=λ\lim_{x \to a} f(x) = \lambda and limxaf(x)=μ\lim_{x \to a} f(x) = \mu, then λ=μ\lambda = \mu.

Remark.

Consequence for metric spaces. Since every metric space is Hausdorff, limits of functions taking values in a metric space (with the metric topology) are unique whenever they exist. In particular, limits of sequences in metric spaces are unique.


The Extended Real Line

The topological framework is broad enough to handle limits like limx+ex=0\lim_{x \to +\infty} e^{-x} = 0, limx01/x2=+\lim_{x \to 0} 1/x^2 = +\infty, and limx2logx2=\lim_{x \to 2} \log|x - 2| = -\infty — all within the same neighbourhood-based definition of limit. To do this, we extend R\mathbb{R} with two new points and define a topology that makes the familiar notion of "convergence at infinity" a special case of the topological definition.

DefinitionExtended Real Line

Set R=R{+,}\overline{\mathbb{R}} = \mathbb{R} \cup \{+\infty, -\infty\}. For r>0r > 0, define B(+,r)=(1r,+){+},B(,r)=(,1r){}.B(+\infty, r) = \left( \tfrac{1}{r}, +\infty \right) \cup \{+\infty\}, \qquad B(-\infty, r) = \left( -\infty, -\tfrac{1}{r} \right) \cup \{-\infty\}. These play the role of "balls centered at ±\pm\infty." Then define E={ΩR:xΩ,ρ>0 with B(x,ρ)Ω},\overline{\mathcal{E}} = \{ \Omega \subseteq \overline{\mathbb{R}} : \forall x \in \Omega, \, \exists \rho > 0 \text{ with } B(x, \rho) \subseteq \Omega \}, where for xRx \in \mathbb{R} the ball B(x,ρ)B(x, \rho) is the ordinary Euclidean open ball (xρ,x+ρ)(x - \rho, x + \rho). The collection E\overline{\mathcal{E}} is a topology (exercise); the topological space (R,E)(\overline{\mathbb{R}}, \overline{\mathcal{E}}) is called the extended real line.

Remark.

Intuition: A neighbourhood of ++\infty is a set containing some tail (M,){+}(M, \infty) \cup \{+\infty\}; smaller rr corresponds to larger M=1/rM = 1/r, i.e., more restrictive tails. This is exactly the "arbitrarily large" condition we use when saying x+x \to +\infty.

On the extended real line, ++\infty is an accumulation point of a set ARRA \subseteq \mathbb{R} \subseteq \overline{\mathbb{R}} if and only if supA=+\sup A = +\infty; similarly A-\infty \in A' iff infA=\inf A = -\infty. For a function f:ARf : A \to \mathbb{R} with ARA \subseteq \mathbb{R} and supA=+\sup A = +\infty, treating domain and codomain as subsets of R\overline{\mathbb{R}} gives limx+f(x)=λR    ε>0M>0 such that f(x)(λε,λ+ε)x(M,)A.\lim_{x \to +\infty} f(x) = \lambda \in \mathbb{R} \iff \forall \varepsilon > 0 \, \exists M > 0 \text{ such that } f(x) \in (\lambda - \varepsilon, \lambda + \varepsilon) \, \forall x \in (M, \infty) \cap A. A special case with A=NA = \mathbb{N} and f(n)=anf(n) = a_n recovers the familiar definition of the limit of a sequence. Similarly, limxaf(x)=+    M>0δ>0 such that f(x)>Mx(A{a})(aδ,a+δ),\lim_{x \to a} f(x) = +\infty \iff \forall M > 0 \, \exists \delta > 0 \text{ such that } f(x) > M \, \forall x \in (A \setminus \{a\}) \cap (a - \delta, a + \delta), and analogous statements for all other combinations of finite or infinite aa and λ\lambda.

Remark.

Intuition: Adding ±\pm\infty as genuine points and choosing their neighbourhoods to be "tails" makes the ordinary topological definition of limit coincide with every flavour of limit seen in first-year calculus — limits at infinity, limits equal to infinity, and limits of sequences. Everything becomes the same definition.


Bases for a Topology

Sometimes it is inconvenient to describe a topology by listing every open set; instead, we describe a smaller collection from which all open sets can be built by unions.

DefinitionBasis for a Topology

Let XX be a nonempty set. A collection B2X\mathcal{B} \subseteq 2^X is a basis for a topology on XX if:

  1. For every xXx \in X, there exists BBB \in \mathcal{B} with xBx \in B (the basis covers XX).
  2. For every B1,B2BB_1, B_2 \in \mathcal{B} and every xB1B2x \in B_1 \cap B_2, there exists B3BB_3 \in \mathcal{B} with xB3B1B2x \in B_3 \subseteq B_1 \cap B_2.

The topology generated by B\mathcal{B} is TB={ΩX:xΩ,BB with xBΩ}.\mathcal{T}_\mathcal{B} = \{ \Omega \subseteq X : \forall x \in \Omega, \, \exists B \in \mathcal{B} \text{ with } x \in B \subseteq \Omega \}. Equivalently, ΩTB\Omega \in \mathcal{T}_\mathcal{B} if and only if Ω\Omega is a union of elements of B\mathcal{B}.

Remark.

Intuition: A basis is a "generating set" for a topology. The Euclidean topology on Rn\mathbb{R}^n is generated by the collection of all open balls {B(x,r):xRn,r>0}\{ B(\boldsymbol{x}, r) : \boldsymbol{x} \in \mathbb{R}^n, \, r > 0 \} — every open set is a union of open balls, and this is often an easier way to describe the topology than specifying every open set directly. The axioms on B\mathcal{B} guarantee that the generated TB\mathcal{T}_\mathcal{B} is genuinely a topology.

PropositionOpen Balls Form a Basis for the Euclidean Topology

The collection B={B(x,r):xRn,r>0}\mathcal{B} = \{ B(\boldsymbol{x}, r) : \boldsymbol{x} \in \mathbb{R}^n, \, r > 0 \} is a basis, and the topology it generates is the Euclidean topology E\mathcal{E}.


The Subspace (Relative) Topology

Given a topological space, any subset inherits a natural topology.

DefinitionSubspace Topology

Let (X,T)(X, \mathcal{T}) be a topological space and let AXA \subseteq X. The subspace topology (or relative topology, or induced topology) on AA is TA={AΩ:ΩT}.\mathcal{T}_A = \{ A \cap \Omega : \Omega \in \mathcal{T} \}. Sets in TA\mathcal{T}_A are called open relative to AA (or open in AA).

PropositionThe Subspace Topology is a Topology

TA\mathcal{T}_A is a topology on AA.

Remark.

Intuition: The subspace topology is exactly the "restriction" of the topology on XX to AA: a set is open in AA iff it is the intersection of AA with an open set from XX. Concretely, [0,12)[0, \tfrac12) is open in the subspace [0,1][0, 1] of R\mathbb{R} (it's the intersection of [0,1][0,1] with the open set (1,12)(-1, \tfrac12)), even though it's not open in R\mathbb{R}. The closed sets in TA\mathcal{T}_A are exactly the sets of the form AFA \cap F where FF is closed in XX.


Continuity Between Topological Spaces

We close the chapter with one of the central definitions of topology — continuity — formulated purely in terms of open sets.

DefinitionContinuity at a Point

Let (X,T)(X, \mathcal{T}) and (Y,S)(Y, \mathcal{S}) be topological spaces, let AXA \subseteq X, let aAa \in A, and let f:AYf : A \to Y be a function. We say ff is continuous at aa if and only if VUf(a),WUa such that f(AW)V.\forall V \in \mathcal{U}_{f(a)}, \, \exists W \in \mathcal{U}_a \text{ such that } f(A \cap W) \subseteq V. We say ff is continuous if it is continuous at every aAa \in A.

Remark.

Intuition: The definition says: given any target neighbourhood VV of the value f(a)f(a), we can find a source neighbourhood WW of aa so small that ff maps AWA \cap W entirely inside VV. This is the topological rendering of the ε\varepsilon-δ\delta definition — the ε\varepsilon-ball around f(a)f(a) becomes "any neighbourhood VV" and the δ\delta-ball around aa becomes "some neighbourhood WW."

Remark.

Isolated points. If aAa \in A is isolated (i.e., {a}\{a\} is open in the subspace topology TA\mathcal{T}_A), then ff is automatically continuous at aa: take WW to be the open set witnessing that {a}\{a\} is open in AA; then AW={a}A \cap W = \{a\}, so f(AW)={f(a)}Vf(A \cap W) = \{f(a)\} \subseteq V for every VUf(a)V \in \mathcal{U}_{f(a)}. So every function is continuous at every isolated point of its domain.

TheoremContinuity via Preimages of Open Sets

Let (X,T)(X, \mathcal{T}) and (Y,S)(Y, \mathcal{S}) be topological spaces, let AXA \subseteq X, and let f:AYf : A \to Y. Then ff is continuous if and only if for every OSO \in \mathcal{S} there exists ΩT\Omega \in \mathcal{T} such that f1(O)=AΩ.f^{-1}(O) = A \cap \Omega. In words: ff is continuous if and only if the preimage of every open set in YY is relatively open in AA.

Remark.

Intuition: The preimage characterization is usually the most convenient definition to work with. Observe that the condition is "f1(O)f^{-1}(O) is relatively open in AA," not "f1(O)f^{-1}(O) is open in XX" — this is because the domain of ff is AA, not all of XX. When A=XA = X, the condition simplifies to "f1(O)Tf^{-1}(O) \in \mathcal{T} for every OSO \in \mathcal{S}."

CorollaryComposition of Continuous Functions is Continuous

Let (X,T)(X, \mathcal{T}), (Y,S)(Y, \mathcal{S}), (Z,R)(Z, \mathcal{R}) be topological spaces and let f:XYf : X \to Y and g:YZg : Y \to Z be continuous. Then gf:XZg \circ f : X \to Z is continuous.


Looking Ahead

We have developed the abstract framework of topology. The next step is to specialize: most topological spaces encountered in analysis come equipped with a distance function (a metric), which automatically generates a topology through open balls. Metric spaces are the subject of the next chapter, and they form the arena for most of the rest of real analysis — sequences, completeness, compactness, and the basic theorems of calculus all live most naturally there.