Show that the set of solutions of the system of equations $$x_1^2+\ldots+x_n^2=1$$ and $$x_1+\ldots+x_n=0$$ is an $(n-2)$-dimensional submanifold of $\mathbb{R}^n$.
I want to take $f(x_1,\ldots,x_n)=(x_1^2+\ldots+x_n^2,x_1+\ldots+x_n)$.
Then the desired set is $f^{-1}(1,0)$. It only remains to show that for every $p\in f^{-1}(1,0)$, $f$ is a submersion at $p$. That is, $Df(p)$ is onto.
But $Df(p)$ is the $2\times n$ matrix $\begin{bmatrix}2x_1 & 2x_2 & \ldots & 2x_n \\1 & 1 & \ldots & 1\end{bmatrix}$. If it were not onto, the matrix would have rank $1$, so $x_1=\ldots=x_n$, impossible from the two equations above.
What are other ways to solve this problem? I would be curious to see. :)