[step:Convert the radial identity into a derivative formula for the scaled energy]
Define the energy distribution function $E:(0,R) \to [0,\infty)$ by
\begin{align*}
E(t)=\int_{B(x_0,t)} |\nabla u|^2\,d\mathcal{L}^m(x).
\end{align*}
Let $\mathcal{H}^{m-1}$ denote $(m-1)$-dimensional [Hausdorff measure](/page/Hausdorff%20Measure) on hypersurfaces in $\mathbb{R}^m$, and let $\mathcal{L}^1$ denote one-dimensional [Lebesgue measure](/page/Lebesgue%20Measure). Define the radial boundary energy function $A:(0,R) \to [0,\infty]$, for those radii for which the boundary integral is defined, by
\begin{align*}
A(t)=\int_{\partial B(x_0,t)} \left|\frac{\partial u}{\partial r}(x)\right|^2\,d\mathcal{H}^{m-1}(x).
\end{align*}
The distance map $s:B(x_0,R)\to (0,R)$, $s(x)=|x-x_0|$, is Lipschitz and satisfies $|\nabla s|=1$ for $\mathcal{L}^m$-a.e. $x\ne x_0$. Since $|\nabla u|^2\in L^1(B(x_0,R))$, the [Coarea Formula](/theorems/23) applied to $s$ gives absolute continuity of $E$ and, for $\mathcal{L}^1$-a.e. $t\in(0,R)$,
\begin{align*}
E'(t)=\int_{\partial B(x_0,t)} |\nabla u|^2\,d\mathcal{H}^{m-1}(x).
\end{align*}
Define $B:(0,R)\to[0,\infty]$ for those radii for which the boundary integral is defined by
\begin{align*}
B(t)=\int_{\partial B(x_0,t)} |\nabla u|^2\,d\mathcal{H}^{m-1}(x).
\end{align*}
By the coarea formula, $B\in L^1((0,R),\mathcal{L}^1)$, $E'(t)=B(t)$ for $\mathcal{L}^1$-a.e. $t\in(0,R)$, and
\begin{align*}
\int_0^R A(t)\,d\mathcal{L}^1(t)
=
\int_{B(x_0,R)} \left|\frac{\partial u}{\partial r}(x)\right|^2\,d\mathcal{L}^m(x)
\leq
\int_{B(x_0,R)} |\nabla u|^2\,d\mathcal{L}^m(x)<\infty.
\end{align*}
Thus $A\in L^1((0,R),\mathcal{L}^1)$. Applying the coarea formula to the radial identity from the previous step gives, for every $\eta\in C_c^1((0,R))$,
\begin{align*}
\int_0^R \left((m-2)\eta(t)+t\eta'(t)\right)B(t)\,d\mathcal{L}^1(t)
=
2\int_0^R t\eta'(t)A(t)\,d\mathcal{L}^1(t).
\end{align*}
Define $G\in L^1_{\mathrm{loc}}((0,R),\mathcal{L}^1)$ by
\begin{align*}
G(t)=t(B(t)-2A(t))+(2-m)E(t)
\end{align*}
for those $t$ for which $A(t)$ and $B(t)$ are defined, and choose any measurable value elsewhere. Since $E$ is absolutely continuous and $E'=B$ for $\mathcal{L}^1$-a.e. $t$, [integration by parts](/theorems/2098) for compactly supported $C^1$ functions gives, for every $\eta\in C_c^1((0,R))$,
\begin{align*}
\int_0^R E(t)\eta'(t)\,d\mathcal{L}^1(t)= -\int_0^R \eta(t)B(t)\,d\mathcal{L}^1(t).
\end{align*}
By the definition of $G$,
\begin{align*}
\int_0^R G(t)\eta'(t)\,d\mathcal{L}^1(t)=\int_0^R t\eta'(t)(B(t)-2A(t))\,d\mathcal{L}^1(t)+(2-m)\int_0^R E(t)\eta'(t)\,d\mathcal{L}^1(t).
\end{align*}
Substituting the [integration by parts](/theorems/210) identity into this expression gives
\begin{align*}
\int_0^R G(t)\eta'(t)\,d\mathcal{L}^1(t)=\int_0^R t\eta'(t)(B(t)-2A(t))\,d\mathcal{L}^1(t)+(m-2)\int_0^R \eta(t)B(t)\,d\mathcal{L}^1(t).
\end{align*}
The radial identity above states exactly that the right-hand side is zero, so
\begin{align*}
\int_0^R G(t)\eta'(t)\,d\mathcal{L}^1(t)=0.
\end{align*}
Hence the [distributional derivative](/page/Distributional%20Derivative) of $G$ is zero on $(0,R)$, so $G$ is equal to a constant $c\in\mathbb{R}$ for $\mathcal{L}^1$-a.e. $t\in(0,R)$.
It remains to identify this constant. Since $|\nabla u|^2\in L^1(B(x_0,R),\mathcal{L}^m)$, the absolute continuity of the [Lebesgue integral](/page/Lebesgue%20Integral) gives $E(t)\to0$ as $t\downarrow0$. Also $A+B\in L^1((0,R),\mathcal{L}^1)$, so there exists a sequence $t_j\downarrow0$ such that $t_j(A(t_j)+B(t_j))\to0$ and such that $G(t_j)=c$ for every $j$. Passing to the limit in
\begin{align*}
c=G(t_j)=t_j(B(t_j)-2A(t_j))+(2-m)E(t_j)
\end{align*}
gives $c=0$. Therefore, for $\mathcal{L}^1$-a.e. $t\in(0,R)$,
\begin{align*}
tB(t)+(2-m)E(t)=2tA(t).
\end{align*}
Using $B(t)=E'(t)$ for $\mathcal{L}^1$-a.e. $t$, this becomes
\begin{align*}
tE'(t)+(2-m)E(t)=2tA(t).
\end{align*}
Therefore, for $\mathcal{L}^1$-a.e. $t\in(0,R)$,
\begin{align*}
\frac{d}{dt}\left(t^{2-m}E(t)\right)=2t^{2-m}A(t).
\end{align*}
[/step]