Show that $S^n\cong\mathbb{R}^n\cup\{\infty\}.$ The problem statement is:
Show that $S^n\cong\mathbb{R}^n\cup\{\infty\}.$
My attempt at the proof is as follows:
Let $f:S^n\to\mathbb{R}^n\cup\{\infty\}$ be defined as $f(x)=h(x)$ for $x\neq p$ and $f(x)=\infty$ for $x=p$, where $h$ is the homeomorphism between $S^n-\{p\}$ and $\mathbb{R}^n$.
Since $h$ is bijective, $f(p)=\infty$ and $f^{-1}(\{\infty\})=p$, it's clear that $f$ too is bijective. We must show that $f$ and $f^{-1}$ are continuous. To begin, let $O\subset\mathbb{R}^n\cup\{\infty\}$ be open. Then $O\subset\mathbb{R}^n$ or $O=K^c\cup\{\infty\}$ for some compact $K\subset\mathbb{R}^n$. If $O\subset\mathbb{R}^n$ then $f^{-1}(O)=h^{-1}(O)$, which we know is open since $h$ is continuous.
Now, if $O=K^c\cup\{\infty\}$ then we have $f^{-1}(O)=f^{-1}(K^c\cup\{\infty\})=f^{-1}(K^c)\cup f^{-1}(\{\infty\})=(f^{-1}(K))^c\cup\{p\}=(h^{-1}(K))^c\cup\{p\}.$ 
This is where I get stuck in the proof. What I want to say is since $h:S^n-\{p\}\to\mathbb{R}^n$, $(h^{-1}(K))^c\subset S^n-\{p\}$ and so we really have $S^n-h^{-1}(K)$, which is open because $h^{-1}(K)$ is compact, more specifically closed and bounded, since $K$ is compact and $h^{-1}$ is continuous. Afterword, I figure showing  $\,f^{-1}$ is continuous will be a similar argument.
Another approach I wanted to take was to consider $S^n-\{p\}\cong\mathbb{R}^n$. Then since the one point compactification preserves homeomorphisms between sets, we must have $S^n-\{p\}\cup\{p\}=S^n\cong\mathbb{R}^n\cup\{\infty\}.$ In the text I'm reading, the one point compactification adds $\infty$, to add a different point, do we need to only confirm that $S^n-\{p\}$ is a locally compact Hausdorff space? That way, we satisfy the hypothesis for one point compactification?
Thank you for any help or feedback!
 A: For the sake of completeness, I was able to finish the proof correctly and wanted to post it. 
Here is my proof:
Since $h$ is bijective, $f(p)=\infty$ and $f^{-1}(\{\infty\})=p$, it's clear that $f$ too is bijective. We must show that $f$ and $f^{-1}$ are continuous. To begin, let $O\subset\mathbb{R}^n\cup\{\infty\}$ be open. Then $O\subset\mathbb{R}^n$ or $O=K^c\cup\{\infty\}$ for some compact $K\subset\mathbb{R}^n$. If $O\subset\mathbb{R}^n$ then $f^{-1}(O)=h^{-1}(O)$, which we know is open since $h$ is continuous.
Now, if $O=K^c\cup\{\infty\}$ then we have $f^{-1}(O)=f^{-1}(K^c\cup\{\infty\})=f^{-1}(K^c)\cup f^{-1}(\{\infty\})=(f^{-1}(K))^c\cup\{p\}=(h^{-1}(K))^c\cup\{p\}.$ Since $h:S^n-\{p\}\to\mathbb{R}^n$, $(h^{-1}(K))^c\subset S^n-\{p\}$ and so we really have $f^{-1}(O)=S^n-h^{-1}(K)$, which is open because $h^{-1}(K)$ is compact, more specifically closed and bounded, since $K$ is compact and $h^{-1}$ is continuous. Therefore, $f$ is continuous.
To show that $f^{-1}$ is continuous, we'll show that for any closed set $C\subset S^n$ the image $f(C)$ is closed in $\mathbb{R}^n.$ Since $S^n$ is compact, $C$ must be compact as well. Since $f$ is continuous, $f(C)$ is also compact and because $\mathbb{R}^n\cup\{\infty\}$ is Hausdorff, $f(C)$ must be closed. Thus, $f^{-1}$ is continuous.
A: If $X$ is a Hausdorff compact space, $x ∈ X$, then open neighborhoods of $x$ are precisely complements of compact subsets of $X \setminus \{x\}$. So if $x$ is not isolated, then $X$ is the one-point compactification of $X \setminus \{x\}$. So in our case, $S^n$ is the one-point compactification of $S^n \setminus \{p\}$, and hence the one point-compactification of $\mathbb{R}^n$, which was to be proved.
