I’m quite confused about some topological results. I know there must be something wrong in my reasoning, but I cannot find out what is wrong here. We know that:
- $\mathbb{R}$ is closed (and is also opened, but that’s not what confuses me)
- $\tan$ is a continuous function on $]-\pi/2, \pi/2[$
My question is quite simple: since the inverse image under a continuous function of a closed set is closed, why do we have $\tan^{-1}(\mathbb{R})=]-\pi/2,\pi/2[$, which is not closed?