Skip to content

The Fundamental Group

In this lesson you’ll build the fundamental group from path-homotopy classes of loops, compute it for the circle, torus and sphere, learn what simply connected means, and see the invariant do work that no earlier one could.

Fix a base point x0Xx_0\in X and consider all loops at x0x_0, that is paths starting and ending there. Declare two of them equivalent when they are path-homotopic, keeping the base point fixed throughout.

π1(X,x0)\pi_1(X,x_0) is the set of path-homotopy classes of loops at x0x_0, with the operation

[γ1][γ2]=[γ1γ2][\gamma_1]\cdot[\gamma_2] = [\gamma_1\cdot\gamma_2]

given by traversing one loop then the other.

This really is a group:

  • Identity - the constant loop at x0x_0.
  • Inverse - the same loop traversed backwards, tγ(1t)t\mapsto\gamma(1-t).
  • Associativity - up to homotopy. The two ways of bracketing three loops differ only in the timing, and a reparametrisation homotopy fixes that.

The reliance on homotopy rather than equality is essential. Concatenation is genuinely not associative on the nose, and it becomes associative exactly at the level of classes.

For a path-connected space, changing the base point gives an isomorphic group, so one usually writes π1(X)\pi_1(X) and omits it.

π1(S1)Z\pi_1(S^1)\cong\mathbb{Z}

The isomorphism sends a loop to its winding number: how many times, with sign, it goes around.

The figure draws three loops in the punctured plane, which is homotopy equivalent to the circle, and measures each winding number by accumulating the change in angle along the curve. The values come out as integers, and the labels are the measurements rather than assertions.

Why Z\mathbb{Z} and not something smaller: concatenating loops adds winding numbers, so the group structure is addition on the integers. And why not something larger: two loops with the same winding number can be deformed into each other. Proving this properly uses the covering space RS1\mathbb{R}\to S^1, and it is the first real theorem of algebraic topology.

This one computation is what makes the fundamental group useful. It gives a nontrivial group for a space with a hole, which finally distinguishes such spaces from contractible ones.

Spaceπ1\pi_1
Point, disc, Rn\mathbb{R}^ntrivial
S1S^1, annulus, punctured plane, solid torus, Möbius stripZ\mathbb{Z}
SnS^n for n2n\ge2trivial
Torus T2T^2Z×Z\mathbb{Z}\times\mathbb{Z}
Figure eightfree group on 2 generators
RP2\mathbb{RP}^2Z/2\mathbb{Z}/2
Klein bottlea non-abelian group of order infinity
Genus gg surface2g2g generators with one relation

Three of those deserve comment.

S2S^2 is simply connected. Any loop on a sphere can be slid off to one side and contracted. So the sphere has a hole in a different sense - one detected by the second homotopy group, not the first.

The torus gives Z×Z\mathbb{Z}\times\mathbb{Z}, abelian, with one generator going around the tube and one through the hole. The two commute because the surface is a product.

The figure eight gives a free group, which is non-abelian: going round the left loop then the right is not homotopic to the reverse. This is where the fundamental group starts recording more than counting.

XX is simply connected if it is path-connected and π1(X)\pi_1(X) is trivial.

Informally, no holes that a loop can detect. Simply connected examples: Rn\mathbb{R}^n, discs, balls, spheres SnS^n for n2n\ge2, and any convex or star-shaped set. Not simply connected: the circle, annulus, torus, punctured plane.

This is the same condition that appeared as a hypothesis in Cauchy’s theorem in complex analysis, and now it has a precise meaning: π1\pi_1 of the domain is trivial. The reason dzz=2πi\oint\frac{dz}{z}=2\pi i on a punctured plane is that π1\pi_1 there is Z\mathbb{Z}, and the integral is reading the winding number.

A continuous f:XYf:X\to Y with f(x0)=y0f(x_0)=y_0 induces a group homomorphism

f:π1(X,x0)π1(Y,y0),f[γ]=[fγ]f_*:\pi_1(X,x_0)\to\pi_1(Y,y_0), \qquad f_*[\gamma] = [f\circ\gamma]

Two consequences: homeomorphic spaces have isomorphic fundamental groups, and so do homotopy equivalent ones. That makes π1\pi_1 a homotopy invariant, and it is far sharper than the ones before it.

Useful computational tools:

  • Products. π1(X×Y)π1(X)×π1(Y)\pi_1(X\times Y)\cong\pi_1(X)\times\pi_1(Y), which gives the torus immediately.
  • Retractions. A deformation retract has the same π1\pi_1, which handles the annulus, solid torus and Möbius strip.
  • Van Kampen’s theorem computes π1\pi_1 of a union from the pieces and their overlap, which is how the figure eight and all surfaces are handled.

The circle is not contractible, since Z\mathbb{Z} is not trivial. This finally settles what earlier lessons could only assert.

S2≇T2S^2\not\cong T^2, since trivial is not Z×Z\mathbb{Z}\times\mathbb{Z}. The Euler characteristic also distinguishes these, but π1\pi_1 does it in cases where χ\chi fails.

The torus and the Klein bottle are not homeomorphic, since one has an abelian π1\pi_1 and the other does not. Recall both have χ=0\chi=0, so this is a case where the earlier invariant was silent.

No retraction of the disc onto its boundary circle exists, which is the key step in the proof of Brouwer’s fixed point theorem next lesson.

Example 1: Show π1\pi_1 of a convex set is trivial.

Solution. Let CC be convex and γ\gamma a loop at x0x_0. The straight-line homotopy

H(t,s)=(1s)γ(t)+sx0H(t,s) = (1-s)\gamma(t)+sx_0

stays in CC by convexity, fixes the base point at every ss, and contracts γ\gamma to the constant loop.

π1(C)=trivial\pi_1(C) = \text{trivial}

Example 2: Compute π1\pi_1 of the annulus.

Solution. The annulus deformation retracts to its core circle, and homotopy equivalent spaces have isomorphic fundamental groups.

π1(annulus)π1(S1)Z\pi_1(\text{annulus})\cong\pi_1(S^1)\cong\mathbb{Z}

The same argument gives Z\mathbb{Z} for the punctured plane, the solid torus, and the Möbius strip.

Example 3: Compute π1\pi_1 of the torus.

Solution. Since T2=S1×S1T^2 = S^1\times S^1 and π1\pi_1 of a product is the product of the groups,

π1(T2)Z×Z\pi_1(T^2)\cong\mathbb{Z}\times\mathbb{Z}

The two generators are the loop around the tube and the loop through the hole. They commute, which reflects the product structure. ∎

Example 4: Show the torus and Klein bottle are not homeomorphic.

Solution. π1(T2)=Z×Z\pi_1(T^2)=\mathbb{Z}\times\mathbb{Z} is abelian. The Klein bottle’s fundamental group has presentation a,babab1\langle a,b \mid abab^{-1}\rangle, in which abbaab\ne ba, so it is not abelian.

Since π1\pi_1 is a topological invariant and the groups are not isomorphic, the spaces are not homeomorphic.

T2≇KT^2\not\cong K

Both have χ=0\chi=0, so the Euler characteristic could not decide this. That is the fundamental group earning its place.

Example 5: Show S2S^2 is simply connected.

Solution. Any loop on the sphere can be pushed off a point not on it, by a small perturbation if the loop is space-filling. The sphere minus a point is homeomorphic to R2\mathbb{R}^2 by stereographic projection, which is convex, so the loop contracts there.

π1(S2)=trivial\pi_1(S^2) = \text{trivial}

Simply connected does not mean contractible. The sphere is simply connected and not contractible, and detecting that needs π2\pi_2, which is Z\mathbb{Z}.

Example 6: Show no continuous retraction D2S1D^2\to S^1 exists.

Solution. Suppose r:D2S1r:D^2\to S^1 were continuous with rr restricted to S1S^1 the identity. Let i:S1D2i:S^1\to D^2 be the inclusion, so ri=idS1r\circ i=\operatorname{id}_{S^1}.

Applying π1\pi_1 and using functoriality,

ri=id on π1(S1)=Zr_*\circ i_* = \operatorname{id} \text{ on } \pi_1(S^1)=\mathbb{Z}

But ii_* factors through π1(D2)\pi_1(D^2), which is trivial, so the composite is the zero map - not the identity on Z\mathbb{Z}.

contradiction, so no such r\text{contradiction, so no such } r

This is the key lemma for Brouwer’s theorem, and it is a pure algebra argument once π1\pi_1 is available.

Example 7: Compute π1\pi_1 of the figure eight.

Solution. By van Kampen’s theorem applied to the two circles glued at a point, with contractible overlap,

π1(S1S1)F2\pi_1(S^1\vee S^1)\cong F_2

the free group on two generators aa and bb, with no relations.

It is non-abelian: the loop abab is not homotopic to baba, since going round the left circle then the right cannot be deformed into the reverse order. ∎

Non-abelian fundamental groups are the normal case. The abelian examples earlier were special.

Complex analysis. Simple connectivity is the hypothesis of Cauchy’s theorem, and π1(C{0})=Z\pi_1(\mathbb{C}\setminus\{0\})=\mathbb{Z} is why the contour integral of 1/z1/z counts loops. The winding number in that subject is literally an element of this group.

Path planning with obstacles. Homotopy classes of routes are elements of the fundamental group of the free space, so a planner can enumerate qualitatively distinct paths by enumerating group elements rather than searching blindly.

Cable and tether management. Whether a tethered robot can return to base without tangling is a question about which class its path lies in. Tracking the group element is how tangle-free operation is guaranteed.

Physics: Aharonov–Bohm effect. An electron’s phase shift around a solenoid depends on the loop’s homotopy class, not on the local field it passes through. The observable effect is a fundamental group measurement.

Topological defects. Vortices in superfluids and defects in liquid crystals are classified by fundamental group elements of the order-parameter space, and the group tells you which defects can annihilate.

Robotic arm winding. A revolute joint’s configuration space is a circle, so the total rotation is an integer winding number. Joint limit management is bookkeeping in Z\mathbb{Z}.

What are the elements of π₁(X, x₀)?
What is π₁(S¹) and what is the isomorphism?
What is π₁(S²)?
What is π₁ of the torus, and why?
How does π₁ distinguish the torus from the Klein bottle?
What does simply connected mean?
Why is there no continuous retraction from the disc onto its boundary circle?
Which spaces have π₁ ≅ ℤ?