I'm learning how to take surface integrals on the surface of spheres in $\mathbb{R}^n$. This question is related to Calculating the surface integral $\int_{S_1(0)}y_j \ d\sigma(y)$ where I try to compute a similar integral but I don't know if I did everything ok. (read that answer to have a better understanding of how to integrate over a surface if you need)
I'm asked to compute
$$\int_{S_1(0)}y_jy_k \ d\sigma(y)$$
Let's imagine the north hemisphere first, through the parametrization $\Sigma(y) = \left(y,\sqrt{1-|y|^2}\right)$:
$$\int_{S_1(0)^+}y_jy_k \ d\sigma(y) = \int_{C_1(0)+}y_jy_k\det [ye_1\ \cdots \ ye_{n-1} \ n(y)]\ dy$$
where $C_1(0)$ is just the 'circunference' on which the 'sphere' is parametrized. We can think of it as the region $|y|<1$ for $y\in\mathbb{R}^{n-1}$
Remember that the unit normal $n(y)$ in the unit sphere is just $y$. So the determinant above would give us $y_1\cdots y_{n-1}\sqrt{1-(y_1+\cdots y_{n-1})^2}$ because these are the diagonal terms multiplied and the rest of the elements are $0$ (except for the normal column but it gets multiplied by the other $0$s)
So we end up with
$$\int_{S_1(0)^+}y_jy_k \ d\sigma(y) = \int_{C_1(0)+} y_1\cdots y_j^2 \cdots y_k^2 \cdots \ y_{n-1}\sqrt{1-(y_1^2+\cdots + y_{n-1}^2)}\ dy$$
Now, breaking these onto the region $C_1(0)$ we get:
$$\int_{S_1(0)^+}y_jy_k \ d\sigma(y) = \\ \int_{-1}^1\cdots\int_{-1}^1 y_1\cdots y_j^2\cdots y_k^2 \cdots \ y_{n-1}\sqrt{1-(y_1^2+\cdots +y_{n-1}^2)} \ dy_1\cdots dy_j \cdots dy_{n-1}$$
And for the south hemisphere:
$$\int_{S_1(0)^-}y_jy_k \ d\sigma(y) =\\ \int_{-1}^1\cdots\int_{-1}^1 y_1\cdots y_j^2 \cdots y_k^2 \cdots \ y_{n-1}\sqrt{-1+(y_1^2+\cdots + y_{n-1}^2)} \ dy_1\cdots dy_j \cdots dy_{n-1}$$
I think it helps if I do the two cases of integration for the north hemisphere first. If $k\neq j$ then I have to integrate $y_i\sqrt(\cdots)$ or $y_i^2\sqrt(\cdots)$. If $k=j$ then it's a matter of integrating $y_i\sqrt(\cdots)$ and $y_i^3\sqrt(\cdots)$.
So for $k\neq j$, if we integrate $y_i\sqrt(\cdots)$:
$$\frac{1}{2}\int_{-1}^12y_i\sqrt{1-(y_1^2 + \cdots + y_i^2 + \cdots + y_{n-1}^2)}\ dy_i = \\\frac{1}{2}\int_{1}^{1}\sqrt{1-(y_1^2 + \cdots + u + \cdots + y_{n-1}^2)}\ du$$
I'm integrating with the substitution $u = y_i^2$ from $u(-1) = 1$ to $u(1) = 1$ so it should be $0$. This gets multiplied with every other integral so the entire integral is $0$ which is ok according to my book.
Now for $k=j$, if we integrate $y_i^4\sqrt(\cdots)$ we would get something, but it would also be multiplied by the integral of $y_i\sqrt(\cdots)$, so it should be $0$ too. But my book says it is $n^{-1}\int{S_1(0)}1$.
Batominovski's Comment: In the paragraph above, the claim that "it would also be multiplied by the integral of $y_i\sqrt(\cdots)$" is wrong. We do not have $\int\,(fg) =\left(\int\,f\right)\,\left(\int\,g\right)$. So, $\int\,g=0$ does not imply $\int\,(fg)=0$.
What is wrong?
Solution Employing Symmetry
Let $S^{n-1}$ denote the unit hypersphere in $\mathbb{R}^n$ (with coordinate vector $\mathbf{y}=(y_1,y_2,\ldots,y_n)$) centered at the origin $\boldsymbol{0}_n$. Write $\sigma_{n-1}$ for the hypersurface area measure of $S^{n-1}$. Declare the northern hemisphere $S^{n-1}_+$ to be the one with $y_j>0$, and the southern hemisphere $S^{n-1}_-$ to be the one with $y_j<0$. If $j\neq k$, then by symmetry, we have $$\int_{S^{n-1}_-}\,y_jy_k\,\text{d}\sigma_{n-1}(\mathbf{y}) = -\int_{S^{n-1}_-}\,y_jy_k\,\text{d}\sigma_{n-1}(\mathbf{y})\,.$$ This shows that $$\int_{S^{n-1}}\,y_jy_k\,\text{d}\sigma_{n-1}(\mathbf{y})=\int_{S^{n-1}_+}\,y_jy_k\,\text{d}\sigma_{n-1}(\mathbf{y})+\int_{S^{n-1}_-}\,y_jy_k\,\text{d}\sigma_{n-1}(\mathbf{y})=0\,.$$
If $j=k$, then we note from symmetry that $$\int_{S^{n-1}}\,y_1^2\,\text{d}\sigma_{n-1}(\mathbf{y})=\int_{S^{n-1}}\,y_2^2\,\text{d}\sigma_{n-1}(\mathbf{y})=\ldots=\int_{S^{n-1}}\,y_n^2\,\text{d}\sigma_{n-1}(\mathbf{y})\,.$$ Since $\sum\limits_{i=1}^n\,y_i^2=1$ on $S^{n-1}$, $$\int_{S^{n-1}}\,y_j^2\,\text{d}\sigma_{n-1}(\mathbf{y})=\frac{1}{n}\,\int_{S^{n-1}}\,\sum_{i=1}^n\,y_i^2\,\text{d}\sigma_{n-1}(\mathbf{y})=\frac{1}{n}\,\int_{S^{n-1}}\,\text{d}\sigma_{n-1}(\mathbf{y})=\frac{1}{n}\,\Sigma_{n-1}\,,$$ where $\Sigma_{n-1}:=\displaystyle \int_{S^{n-1}}\,\text{d}\sigma_{n-1}(\mathbf{y})=\dfrac{2\pi^{\frac{n}{2}}}{\Gamma\left(\frac{n}{2}\right)}$ is the hypersurface area of $S^{n-1}$. Here, $\Gamma$ is the usual gamma function. That is, $$\frac{1}{n}\,\Sigma_{n-1}=\frac{\pi^{\frac{n}{2}}}{\Gamma\left(\frac{n}{2}+1\right)}\,,$$ which equals the volume of a unit $n$-dimensional hypersphere.
Solution Implementing the Divergence Theorem
Let $\lambda_n$ be the Lebesgue measure on $\mathbb{R}^n$ and $\mathbf{e}_1,\mathbf{e}_2,\ldots,\mathbf{e}_n$ the standard basis vectors of $\mathbb{R}^n$. The normal vector to the hypersurface $S^{n-1}$ is given by $$\mathbf{n}=y_1\mathbf{e}_1+y_2\mathbf{e}_2+\ldots+y_n\mathbf{e}_n\,.$$ Write $B^n_r(\mathbf{x})$ for the open ball of radius $r>0$ centered at $\mathbf{x}\in\mathbb{R}^n$. Note from the Divergence Theorem that $$\int_{\partial B^n_1(\boldsymbol{0}_n)}\,y_j\,y_k\,\text{d}\sigma_{n-1}(\mathbf{y})=\int_{\partial B^n_1(\boldsymbol{0}_n)}\,y_k\mathbf{e}_j\cdot\mathbf{n}\,\text{d}\sigma_{n-1}(\mathbf{y})=\int_{B^n_1(\boldsymbol{0}_n)}\,\big(\boldsymbol{\nabla}\cdot(y_k\mathbf{e}_j)\big)\,\text{d}\lambda_n(\mathbf{y})\,.$$ Obviously, $\boldsymbol{\nabla}\cdot(y_k\mathbf{e}_j)=0$ for $j\neq k$ and $\boldsymbol{\nabla}\cdot(y_j\mathbf{e}_j)=1$.
Consequently, the integral $\displaystyle\int_{S^{n-1}}\,y_jy_k\,\text{d}\sigma_{n-1}(\mathbf{y})$ equals $\lambda_n\big(B_1^n(\textbf{0}_n)\big)\,\delta_{j,k}$. Here, $\delta$ is the Kronecker delta. Since $\lambda_n\big(B^n_1(\textbf{0}_n)\big)=\dfrac{1}{n}\,\Sigma_{n-1}$, we get the same result as the first solution.