If you are in a hurry feel free to jump directly to the emphasized parts.
Setup. Let $A$ be a real invertible symmetric square matrix of size $n+1$ whose eigenvalues are: $$\lambda_0>\lambda_1>\cdots>\lambda_n.$$ Let $\{v_0,\ldots,v_n\}$ be an orthonormal basis of $\mathbb{R}^{n+1}$ formed by eigenvectors of $A$ with $v_i$ associated to $\lambda_i$. From now all vectors of $\mathbb{R}^{n+1}$ will be written in this basis, namely, one has: $$(x_0,\ldots,x_n):=x_iv^i.$$ Furthermore, let $F\colon\mathbb{S}^n\rightarrow\mathbb{R}$ defined by: $$F(x):={}^\intercal xAx.$$
Proposition. $F$ defines a Morse function on $\mathbb{S}^n$.
I have already computed the critical points of $F$, there set is $\{\pm v_0,\cdots,\pm v_n\}$, namely, one has: $$\textrm{Crit}(F)=\{(\pm 1,0,\ldots,0),(0,\pm 1,0,\ldots,0),\ldots,(0,\ldots,0,\pm 1)\}.$$ Let $x\in\textrm{Crit}(F)$ and let $\varphi$ a chart of $\mathbb{S}^n$ centered at $x$, I am supposed to prove that: $$\textrm{Hess}_0(F\circ\varphi^{-1})\in\textrm{GL}_{n+1}(\mathbb{R}).$$ I have been strongly advised to use the following charts: $$U_p^{\pm}:=\{x\in\mathbb{S}^n;\pm x_p>0\},\varphi_p^{\pm}\colon x\mapsto\left(\frac{x_i}{x_p}\right)_{i\in\{0,\ldots,n\}\setminus\{p\}}.$$ I have computed the inverse of $\varphi_p^{\pm}$ and found that: $$(\varphi_p^{\pm})^{-1}(x):=\frac{\pm 1}{\sqrt{1+\sum\limits_{i=0}^{n-1}{x_i}^2}}(x_0,\cdots,x_{p-1},1,x_p,\ldots,x_{n-1}).$$ Therefore, one has:
$$F\circ(\varphi_p^{\pm})^{-1}(x)=\frac{\lambda_p+\sum\limits_{i=0}^{p-1}\lambda_i{x_i}^2+\sum\limits_{j=p}^{n-1}\lambda_{j+1}{x_j}^2}{1+\sum\limits_{i=0}^{n-1}{x_i}^2}.$$
Questions.
I do not feel too confident in the above expression, I do not like those $1$ and $\lambda_p$ being apart. Can someone tell me if have made a mistake in my computations?
I can see that $\textrm{Hess}_{0}(F\circ{\varphi_p^{\pm}}^{-1})$ will be diagonal and therefore the index of the critical point $\pm v_p$ will be easy to compute, but is there a clever way to conduct the computations?
Any help will be greatly appreciated.
Let $p\in\{0,\ldots,n\}$, one has that: $$\left(F\circ(\varphi_p^{\pm})^{-1}\right)(x)-\left(F\circ(\varphi_p^{\pm})^{-1}\right)(0)=\frac{\sum\limits_{i=0}^{p-1}(\lambda_i-\lambda_p){x_i}^2+\sum\limits_{j=p}^{n-1}(\lambda_{j+1}-\lambda_p){x_j}^2}{1+\sum\limits_{i=0}^{n-1}{x_i}^2}.$$ Besides, recall that one has the following asymptotic: $$\frac{1}{1+\sum\limits_{i=0}^{n-1}{x_i}^2}=1+O(\|x\|^2).$$ Therefore, one gets: $$\left(F\circ(\varphi_p^{\pm})^{-1}\right)(x)-\left(F\circ(\varphi_p^{\pm})^{-1}\right)(0)=\sum\limits_{i=0}^{p-1}(\lambda_i-\lambda_p){x_i}^2+\sum\limits_{j=p}^{n-1}(\lambda_{j+1}-\lambda_p){x_j}^2+O(\|x\|^3).$$ Finally, one has: $$\textrm{Hess}_0(F\circ(\varphi_p^{\pm})^{-1})=2\textrm{diag}(\lambda_0-\lambda_p,\ldots,\lambda_{p-1}-\lambda_p,\lambda_{p+1}-\lambda_p,\ldots,\lambda_n-\lambda_p).$$ Hence, $\pm v_p$ is a non-degenerated critical point of $F$ whose index is $n-p$. Whence the result.