Topology studies spaces through open sets and continuity instead of exact distance. The central definition you compute with is the continuity criterion: a function f:XYf:X \to Y between topological spaces is continuous when

f is continuous if f1(U) is open for every open UYf \text{ is continuous if } f^{-1}(U) \text{ is open for every open } U \subseteq Y

The symbols: XX is the source space, YY the target, UU any open set in YY, and f1(U)f^{-1}(U) its inverse image in XX. The fastest way into topology is to choose which subsets are open, then read continuity straight off that choice — no distance formula required.

Why this rests on open sets

Before the continuity test means anything, you need open sets. A topology on a set XX is a collection T\mathcal{T} of subsets, called open sets, satisfying:

  1. \varnothing and XX are in T\mathcal{T}.
  2. Any union of sets in T\mathcal{T} is also in T\mathcal{T}.
  3. Any finite intersection of sets in T\mathcal{T} is also in T\mathcal{T}.

The pair (X,T)(X,\mathcal{T}) is a topological space. Open sets encode the idea that a point has room around it. In the usual topology on R\mathbb{R}, an open interval like (1,3)(1,3) is open because every interior point has a smaller interval around it still inside (1,3)(1,3). That local wiggle room is the heart of the subject, and it is exactly why the continuity criterion is built from inverse images of open sets: continuity means local structure is preserved. Openness is relative — the same subset can be open in one topology and not in another.

These open sets generate the rest of the vocabulary:

  • Neighborhood: any set containing an open set around a point — local closeness without distance.
  • Closed set: a set whose complement is open. On the real line, closed sets often contain their boundary, but that is a consequence, not the definition.
  • Homeomorphism: a bijection that is continuous and has a continuous inverse. Homeomorphic spaces are "the same shape" topologically, but only because continuity holds in both directions — a bijection alone is not enough.

Worked example: why f(x)=x2f(x)=x^2 is continuous in the usual topology

Take f:RRf:\mathbb{R} \to \mathbb{R},

f(x)=x2f(x)=x^2

with the usual topology on R\mathbb{R}. Pick the open set (1,4)(1,4) in the codomain and compute its inverse image:

f1((1,4))={xR:1<x2<4}f^{-1}((1,4))=\{x \in \mathbb{R} : 1 < x^2 < 4\}

which simplifies to

(2,1)(1,2).(-2,-1)\cup(1,2).

That set is open in the usual topology because it is a union of open intervals. Notice the direction the test runs: continuity is about inverse images of open sets being open, not about ff sending open sets to open sets. On R\mathbb{R}, this condition matches the usual limit-based definition.

Try the computation yourself

Use the same f(x)=x2f(x)=x^2, but start from the open set (0,1)(0,1). Compute f1((0,1))f^{-1}((0,1)) and check whether it is open in R\mathbb{R}. For a next step, compare the topological definition of continuity here with the limit-based one from calculus.

Computation traps to avoid

  • "Open" is absolute. It is not — openness is defined relative to the chosen topology.
  • Image vs. inverse image. Continuity uses inverse images of open sets. Images of open sets need not be open without extra conditions on ff.
  • Topology as relabeled metric geometry. Many spaces come from metrics, but topology keeps only the structure needed for local behavior and continuity.
  • Every bijection is an equivalence. A homeomorphism must be bijective, continuous, and have a continuous inverse.

Topology supplies the language behind continuity, compactness, connectedness, and convergence in analysis, and reaches into geometry, dynamical systems, differential equations, and shape-based data analysis. For a beginner the payoff is concrete: continuity can be defined without coordinates or a distance formula.

Frequently Asked Questions

What is a topological space?
A topological space is a set X together with a collection of subsets, called open sets, satisfying three rules: the empty set and X itself are open, any union of open sets is open, and any finite intersection of open sets is open. Once you know which sets are open, you can define continuity, neighborhoods, and closed sets without any distance formula.
How is continuity defined in topology?
A function between topological spaces is continuous if the inverse image of every open set in the target space is open in the source space. This agrees with the usual calculus idea of continuity on the real line, but it also works in spaces where distance is not the main structure.
What is the difference between open and closed sets?
A set is open when every point inside it has some local room, an open set around it, that stays inside. A set is closed if its complement is open. In familiar spaces like the real line, closed sets often contain their boundary, but that is a consequence, not the definition. Openness also depends on which topology you chose.
What is a homeomorphism?
A homeomorphism is a bijective function that is continuous and has a continuous inverse. If two spaces are homeomorphic, topology treats them as the same space, because they share all properties that can be expressed through open sets and continuity rather than through lengths, angles, or coordinates.
Why does topology use open sets instead of distance?
Open sets capture the idea that a point has room around it, which is the local behavior topology cares about. This lets topology compare spaces by local structure rather than by lengths, angles, or coordinates. The same subset can be open in one topology and not in another, so openness is a choice of structure, not an absolute fact.

Need help with a problem?

Upload your question and get a verified, step-by-step solution in seconds.

Open GPAI Solver →