Disjoint union

For two spaces
Suppose $$X$$ and $$Y$$ are topological spaces. The disjoint union of $$X$$ and $$Y$$, denoted $$X \sqcup Y$$, is defined as follows:


 * As a set, it is a disjoint union of the spaces $$X$$ and $$Y$$, i.e., it is a union of two subsets with trivial intersection, identified with $$X$$ and $$Y$$ respectively.
 * A subset $$U$$ of $$X \sqcup Y$$ is defined to be an open subset if its intersection with $$X$$ is open in the $$X$$-copy and its intersection with $$Y$$ is open in the $$Y$$-copy.

Note that disjoint union in particular means that, even if $$X = Y$$, the space $$X \sqcup Y$$ contains two separate copies of the space.

The topology on the disjoint union is a special case of a coherent topology.

For an arbitrary number of spaces
Suppose $$I$$ is an indexing set, and $$X_i, i \in I$$, are all topological spaces. The disjoint union $$\bigsqcup_{i \in I} X_i$$. is defined as follows:


 * As a set, it is the disjoint union of the spaces $$X_i$$. In other words, it is the union pairwise disjoint subspaces, each identified with the different $$X_i$$s.
 * A subset $$U$$ of $$\bigsqcup_{i \in I} X_i$$ is defined to be open if the intersection of $$U$$ with the $$X_i$$-copy is an open subset of $$X_i$$.

As a coproduct
Disjoint union is the coproduct in the category of topological spaces.

Homotopy groups
When we take a disjoint union, the path component of a point in the disjoint union is the same as the path component inside whichever piece it originated from. Since homotopy groups, including the fundamental group, depend only on the homeomorphism type of the path component, the homotopy groups inside the disjoint union at a basepoint remain the same as the homotopy groups inside whichever piece the basepoint comes from.