Define $g,h:\{x\in \mathbb{R}^2: ||x|| \leq 1\} \rightarrow \ \mathbb{R}^3$ by: $$g(x,y)=(x,y,\sqrt{1-x^2-y^2}) $$ $$h(x,y)=(x,y,-\sqrt{1-x^2-y^2}) $$ Show that the maximum of $f$ on $\{x\in \mathbb{R}^3: ||x||=1\}$ is either the maximum of $f\circ g$ or the maximum of $f \circ h$ on $\{x\in \mathbb{R}^2: ||x||\leq1\}$
My attempt:
I am not really sure how to start here except I know that:
If $A \subset\mathbb{R}^n$ then the max (or min) of $f: A \rightarrow \mathbb{R}^n$ occurs at a point $a$ in the interior of $A$ and $D_if(a)=0$ (if it exists).
If we let $A=\{x\in \mathbb{R}^2: ||x|| \leq 1\}$ then $int(A)=||x|| < 1$