[guided]The first variation still contains the derivative of the variation field, namely the term $g(\nabla_{\dot{\gamma}}X,\dot{\gamma})$. To obtain an Euler-Lagrange equation, we must move this derivative off $X$ and onto the coefficient of $X$ by [integration by parts](/theorems/2098).
For the vector fields $X$ and $\dot{\gamma}$ along $\gamma$, the metric depends on $\tau$, so the ordinary product rule has an extra term. The time-dependent metric product rule gives
\begin{align*}
\frac{d}{d\tau}g(X,\dot{\gamma})
=
\frac{\partial g}{\partial \tau}(X,\dot{\gamma})
+
g(\nabla_{\dot{\gamma}}X,\dot{\gamma})
+
g(X,\nabla_{\dot{\gamma}}\dot{\gamma}).
\end{align*}
Because the metric evolves by backward Ricci flow, $\frac{\partial g}{\partial \tau}=2\operatorname{Ric}$. Solving this identity for the derivative term gives
\begin{align*}
g(\nabla_{\dot{\gamma}}X,\dot{\gamma})
=
\frac{d}{d\tau}g(X,\dot{\gamma})
-
2\operatorname{Ric}(X,\dot{\gamma})
-
g(X,\nabla_{\dot{\gamma}}\dot{\gamma}).
\end{align*}
Substituting this into the kinetic part of the first variation yields
\begin{align*}
\int_a^b 2\sqrt{\tau}\,g(\nabla_{\dot{\gamma}}X,\dot{\gamma})\,d\mathcal L^1(\tau)=\int_a^b \left(2\sqrt{\tau}\,\frac{d}{d\tau}g(X,\dot{\gamma})-4\sqrt{\tau}\,\operatorname{Ric}(X,\dot{\gamma})-2\sqrt{\tau}\,g(X,\nabla_{\dot{\gamma}}\dot{\gamma})\right)\,d\mathcal L^1(\tau).
\end{align*}
Now apply the one-dimensional [integration by parts](/theorems/210) formula on $[a,b]$ to the scalar function $\tau \mapsto g(X(\tau),\dot{\gamma}(\tau))$ and the weight $\tau \mapsto 2\sqrt{\tau}$. Since $X(a)=X(b)=0$, the boundary term vanishes. Since $\frac{d}{d\tau}(2\sqrt{\tau})=\frac{1}{\sqrt{\tau}}$, we get
\begin{align*}
\int_a^b 2\sqrt{\tau}\,\frac{d}{d\tau}g(X,\dot{\gamma})\,d\mathcal L^1(\tau)=-\int_a^b \frac{1}{\sqrt{\tau}}g(X,\dot{\gamma})\,d\mathcal L^1(\tau).
\end{align*}
Combining this with the scalar curvature term from the first variation gives
\begin{align*}
0
=
\int_a^b
g\left(
\sqrt{\tau}\nabla R
-
\frac{1}{\sqrt{\tau}}\dot{\gamma}
-
4\sqrt{\tau}\operatorname{Ric}(\dot{\gamma},\cdot)^\sharp
-
2\sqrt{\tau}\nabla_{\dot{\gamma}}\dot{\gamma},
X
\right)\,d\mathcal L^1(\tau).
\end{align*}
This is the key reduction: the first variation is now an integral pairing an arbitrary variation field $X$ against a coefficient vector field along $\gamma$.[/guided]