TITLE: Fundamental group of $\mathbb{R}^n\backslash \{0\}$
QUESTION [6 upvotes]: I am wondering about what the fundamental group of $\mathbb{R}^n \backslash \{0\}$ or more generally $\mathbb{R}^n \backslash U$ where $U$ is a subset of $\mathbb{R}^n$ for $n>1$. For $n=1$ I understand that the fundamental group is not trivial since the resulting space is not simply-connected. In all other case though the space is simply connected. Thus, logic says that the fundamental group is trivial. Therefore how do we classify spaces that we subtract various points out of them. E.g. how we can tell the difference between $\mathbb{R}^n \backslash U$ and $\mathbb{R}^n \backslash V$ for different sets $U,V$ (with different number of elements as well)? Is this the reason we need homology?

REPLY [9 votes]: For $n = 1$, the space $\mathbb{R} \setminus \{0\}$ is the disjoint union of two intervals, so both connected components are contractible and have trivial fundamental group.
When $n = 2$, you can see that $\mathbb{R}^2 \setminus \{0\}$ deformation retracts onto $$S^1 = \{ (x,y) \in \mathbb{R}^2 : x^2 + y^2 = 1 \},$$
the retraction being $z \mapsto \frac{z}{\|z\|}$. This is the standard circle, in particular its fundamental group is $\mathbb{Z}$ as usual. This space is not simply connected as you claimed.
More generally, the space $\mathbb{R}^n \setminus \{0\}$ deformation retracts onto
$$S^{n-1} = \left\{ (x_1, \dots, x_n) \in \mathbb{R}^n : \sum x_i^2 = 1 \right\}.$$
This is the standard $n$-sphere, and it's a classical exercise that this space is simply connected when $n > 2$.
Now when $U \subset \mathbb{R}^n$ is an arbitrary set, even open, you cannot say anything at all about the fundamental group of $\mathbb{R}^n \setminus U$, and not even its homology, without knowing anything about $U$. Indeed it's a theorem of Whitehead that any closed manifold embeds into $\mathbb{R}^n$ for some $n$; if you take $U$ to be the complement of the image of the embedding, you can see that $\mathbb{R}^n \setminus U$ can have pretty much any fundamental group or homology you can imagine (there are some restrictions for closed manifolds of course, but you can imagine even more exotic spaces).

Compared to simply the fundamental group, homology also allows you to detect higher dimensional structure of your space: $\pi_1$ doesn't distinguish the $n$-spheres $S^n$ for $n \ge 2$, but these spaces are intrinsically very different. But the higher homotopy groups $\pi_n$ also detect higher dimensional structure, and do distinguish the $n$-spheres.
From my perspective, the main reason you want to use homology instead of (or in addition to) homotopy groups is because of the Mayer–Vietoris exact sequence, an analog of the Seifert–van Kampen theorem for homology. This allows you to break up your space in smaller pieces. See this question and its excellent answer by Ronnie Brown.