Let $\alpha(n)$ be the volume of the unit ball in $\mathbb{R}^n$, $U\subset\mathbb{R}^n$ an open set, $u\in C^2(U)$ a harmonic function, $x\in U$ and, for $r$ small enough, $$\phi(r)=\frac{1}{n\alpha(n)r^{n-1}}\int_{\partial B(x,r)}u(y)\;dS(y).$$
In order to calculate $\phi'(r)$ we need to change variables. According to the PDE Evans book (p. 26), if we take $y=x+rz$ then we get
$$\frac{1}{n\alpha(n)r^{n-1}}\int_{\partial B(x,r)}u(y)\;dS(y)=\frac{1}{n\alpha(n)}\int_{\partial B(0,1)}u(x+rz)\;dS(z).$$
Therefore, the determinant $|J|$ of the Jacobian matrix $J$ is $|J|=r^{n-1}$.
My question is: since $u$ is a function of $n$ variables, shouldn't $J$ be a $n\text{-by-}n$ matrix? Thus, shouldn't we get $|J|=r^n$? I think it's a very elementary question, but I hope you help me.
Thanks.