[guided]Fix one smooth piece of the curve, indexed by $j\in\{1,\dots,m\}$. On the open interval $(t_{j-1},t_j)$, the curve has a well-defined velocity
\begin{align*}
\gamma'(t)\in T_{\gamma(t)}M.
\end{align*}
The composed curve $f\circ\gamma$ has values in $N$, and its velocity at the same parameter value lies in the tangent space at the image point:
\begin{align*}
(f\circ\gamma)'(t)\in T_{f(\gamma(t))}N.
\end{align*}
The differential of $f$ at $\gamma(t)$ is the [linear map](/page/Linear%20Map)
\begin{align*}
df_{\gamma(t)}:T_{\gamma(t)}M\to T_{f(\gamma(t))}N.
\end{align*}
Differentiating the composition therefore identifies the velocity of the image curve as
\begin{align*}
(f\circ\gamma)'(t)=df_{\gamma(t)}(\gamma'(t)).
\end{align*}
Now the hypothesis that $f$ is a Riemannian isometry is used exactly at the tangent vector $\gamma'(t)$. Since $f$ preserves the metric on tangent vectors, for every $p\in M$ and every $v,w\in T_pM$,
\begin{align*}
h_{f(p)}(df_p(v),df_p(w))=g_p(v,w).
\end{align*}
Taking $p=\gamma(t)$ and $v=w=\gamma'(t)$ gives
\begin{align*}
h_{f(\gamma(t))}(df_{\gamma(t)}(\gamma'(t)),df_{\gamma(t)}(\gamma'(t)))=g_{\gamma(t)}(\gamma'(t),\gamma'(t)).
\end{align*}
Substituting the velocity identity for the composed curve yields
\begin{align*}
h_{f(\gamma(t))}((f\circ\gamma)'(t),(f\circ\gamma)'(t))=g_{\gamma(t)}(\gamma'(t),\gamma'(t)).
\end{align*}
The speed of a Riemannian curve is the non-negative square root of the metric applied to its velocity vector. Therefore equality of the squared speeds implies equality of the speeds, using the norm notation fixed in the theorem statement:
\begin{align*}
\|(f\circ\gamma)'(t)\|_{h,f(\gamma(t))}=\|\gamma'(t)\|_{g,\gamma(t)}.
\end{align*}
This equality holds at every differentiability point of the smooth piece. When we integrate over the closed interval $[t_{j-1},t_j]$, the only additional points are endpoints of smooth pieces, and a finite set has $\mathcal{L}^1$-measure zero. Hence the speed equality holds $\mathcal{L}^1$-almost everywhere on $[t_{j-1},t_j]$. This almost-everywhere equality is the whole mechanism of the theorem: a Riemannian isometry preserves tangent-vector lengths, and the length of a curve is obtained by integrating the tangent-vector length along the parameter interval.[/guided]