[guided]The [mean curvature scalar](/page/Mean%20Curvature) is obtained by taking the trace of the [second fundamental form](/page/Second%20Fundamental%20Form) with respect to the [induced metric](/page/Induced%20Metric), not with respect to the Euclidean metric on the parameter domain. We use the convention that this scalar is the full trace, without the normalizing factor $1/m$. The convention with the extra factor $1/m$, or the opposite sign convention for the second fundamental form, gives an equation multiplied by a nonzero constant or by $-1$, so the zero set of the mean curvature is unchanged.
First recall why the second fundamental form has the displayed form. For the graph parametrization $F: U \to \mathbb{R}^{m+1}$, the coordinate tangent fields are $E_i: U \to \mathbb{R}^{m+1}$ with
\begin{align*}
E_i(x)=e_i+\partial_{x_i}u(x)e_{m+1}.
\end{align*}
The upward unit normal field is $\nu: U \to \mathbb{R}^{m+1}$ given by
\begin{align*}
\nu(x)=\frac{1}{W(x)}\left(-\partial_{x_1}u(x),\dots,-\partial_{x_m}u(x),1\right).
\end{align*}
This vector is orthogonal to every $E_i(x)$ and has Euclidean norm one because $W(x)^2=1+|\nabla u(x)|^2$. Define $h_{ij}: U \to \mathbb{R}$ by
\begin{align*}
h_{ij}(x):=\partial_{x_i}\partial_{x_j}F(x)\cdot \nu(x).
\end{align*}
Since $\partial_{x_i}\partial_{x_j}F(x)=\partial_{x_i}\partial_{x_j}u(x)e_{m+1}$ and the last component of $\nu(x)$ is $1/W(x)$, we get
\begin{align*}
h_{ij}(x)=\frac{\partial_{x_i}\partial_{x_j}u(x)}{W(x)}.
\end{align*}
The inverse metric coefficients are
\begin{align*}
g^{ij}(x)=\delta_{ij}-\frac{\partial_{x_i}u(x)\partial_{x_j}u(x)}{W(x)^2}.
\end{align*}
Thus, with respect to the upward normal field $\nu$, define $H_\nu: U \to \mathbb{R}$ by
\begin{align*}
H_\nu(x)=\sum_{i,j=1}^m g^{ij}(x)h_{ij}(x).
\end{align*}
Substituting the formulas for $g^{ij}$ and $h_{ij}$ gives
\begin{align*}
H_\nu=\sum_{i,j=1}^m \left(\delta_{ij}-\frac{\partial_{x_i}u\,\partial_{x_j}u}{W^2}\right)\frac{\partial_{x_i}\partial_{x_j}u}{W}.
\end{align*}
Expanding this contraction gives
\begin{align*}
H_\nu=\frac{1}{W}\sum_{i=1}^m \partial_{x_i}\partial_{x_i}u-\frac{1}{W^3}\sum_{i,j=1}^m \partial_{x_i}u\,\partial_{x_j}u\,\partial_{x_i}\partial_{x_j}u.
\end{align*}
Now we compare this expression with the divergence in the theorem statement. Define the vector field $V: U \to \mathbb{R}^m$ by
\begin{align*}
V(x)=\frac{\nabla u(x)}{W(x)}.
\end{align*}
Since $u \in C^2(U;\mathbb{R})$, we have $\nabla u \in C^1(U;\mathbb{R}^m)$, and since $W$ is positive and $C^1$, the vector field $V$ is $C^1$. Therefore its divergence is computed componentwise:
\begin{align*}
\operatorname{div}V
=
\sum_{i=1}^m \partial_{x_i}\left(\frac{\partial_{x_i}u}{W}\right).
\end{align*}
Using the product rule for each summand gives
\begin{align*}
\operatorname{div}V
=
\frac{1}{W}\sum_{i=1}^m \partial_{x_i}\partial_{x_i}u
-
\frac{1}{W^2}\sum_{i=1}^m \partial_{x_i}u\,\partial_{x_i}W.
\end{align*}
It remains to compute $\partial_{x_i}W$. Because
\begin{align*}
W=(1+|\nabla u|^2)^{1/2},
\end{align*}
the chain rule gives
\begin{align*}
\partial_{x_i}W=\frac{1}{2}(1+|\nabla u|^2)^{-1/2}\partial_{x_i}\left(1+\sum_{j=1}^m(\partial_{x_j}u)^2\right).
\end{align*}
Since $W=(1+|\nabla u|^2)^{1/2}$, this becomes
\begin{align*}
\partial_{x_i}W=\frac{1}{2W}\sum_{j=1}^m 2\partial_{x_j}u\,\partial_{x_i}\partial_{x_j}u.
\end{align*}
After cancelling the factor $2$, we obtain
\begin{align*}
\partial_{x_i}W=\frac{1}{W}\sum_{j=1}^m \partial_{x_j}u\,\partial_{x_i}\partial_{x_j}u.
\end{align*}
Substituting this into the divergence computation gives
\begin{align*}
\operatorname{div}\left(\frac{\nabla u}{W}\right)=\frac{1}{W}\sum_{i=1}^m \partial_{x_i}\partial_{x_i}u-\frac{1}{W^2}\sum_{i=1}^m \partial_{x_i}u\left(\frac{1}{W}\sum_{j=1}^m \partial_{x_j}u\,\partial_{x_i}\partial_{x_j}u\right).
\end{align*}
Equivalently,
\begin{align*}
\operatorname{div}\left(\frac{\nabla u}{W}\right)=\frac{1}{W}\sum_{i=1}^m \partial_{x_i}\partial_{x_i}u-\frac{1}{W^3}\sum_{i,j=1}^m \partial_{x_i}u\,\partial_{x_j}u\,\partial_{x_i}\partial_{x_j}u.
\end{align*}
This is exactly the expression obtained for $H_\nu$. Hence
\begin{align*}
H_\nu
=
\operatorname{div}\left(\frac{\nabla u}{\sqrt{1+|\nabla u|^2}}\right).
\end{align*}[/guided]