I have been trying to solve the Exercise 7.11 of Loring Tu's An Introduction to Manifolds (Second Edition, page no. 77). It reads as follows.
The way I proceeded to solve it, it has been discussed partly here. But I also wanted to understand the solution supplied by the author given below.
I have some questions about this solution.
My Questions
Here $\pi_2$ is continuous because it is a projection map. How do we deduce that $f: \mathbb{R}^{n+1} - \lbrace 0 \rbrace \to S^n, f(x) = \frac{x}{||x||},$ is continuous so that $\pi_2 \circ f$ is continuous?
In the second part of the proof, Tu applies the same technique (which is used to prove $\bar{f}$ continuous) to prove $\bar{g}$ continuous. What is the motivation for defining $g: S^n \to \mathbb{R}^{n+1} - \lbrace 0 \rbrace$ by $g(x) = x$? In other words, how do we know that $g$ needs to be defined in this way?