I have to prove that the compactification of $\Bbb R^n$ (i.e. $\Bbb R^n\cup\{{\infty}\}) $ is diffeomorphic to $S^n=\{x \in \Bbb R^{n+1}: ||x||=1\} $.
Firstly, I proved the stereographic projection function on these sets:$ \pi: S^n \backslash\{(0,...,0,1)\} \to \Bbb R^n,\,\pi(x_1,...,x_{n+1}) = \frac{1}{1-x_{n+1}}(x_1,...,x_n)$ is a diffeomorphism, with inverse
$\pi^{-1}:\Bbb R^n \to S^n \backslash\{(0,...,0,1)\},\,\pi^{-1}(y_1,...,y_n)=\frac{2}{1+||y||^2}(y_1,...,y_n,\frac{||y||^2-1}{2}) $.
But I don't know how to prove $\pi$ is differentiable in $(0,...,0,1)$ and $\pi^{-1}$ in $\infty$.
I'm supossing that this $\pi$ function is the suitable one to prove the diffeomorpfism.