We locally lift \sigma_t to \mathrm{SL}(2,\mathbb C), and we denote by \mathtt I_t, \mathtt {II}_t, and N_t the corresponding fundamental forms and normal vector fields. Recalling that
\dot\sigma=\left.\frac d {dt}\right|_{t=0}\sigma_t=fN~,
and observing that, as a consequence of Equation (B.2), for every X \in\Gamma(\operatorname{\mathbb{C}} T S),
d_X N:=d_{\mathrm{d}\sigma(X)} N= D_{\mathrm{d}\sigma(X)} N =-\mathrm{d}\sigma(B(X)) ,
we compute:
\begin{aligned}
\dot \mathtt I(X,Y) &=\left.\frac d {dt}\right|_{t=0} \langle{d_X\sigma_t, d_Y\sigma_t}\rangle \\ &= \langle{d_X\dot \sigma, d_Y\sigma}\rangle+ \langle{d_X\sigma, d_Y\dot\sigma}\rangle \\
&=\langle{\mathrm{d}f(X)N + fd_X N, d_Y\sigma}\rangle+ \langle{d_X\sigma, \mathrm{d}f(Y)N +fd_Y N}\rangle\\
&=f\langle{d_X N, d_Y\sigma}\rangle+ f\langle{d_X\sigma,d_Y N}\rangle\\
&=f\mathtt I(-B(X),Y)+f\mathtt I(X,-B(Y)) \\
&=-2f \mathtt {II}(X,Y)~.
\end{aligned}
To compute the infinitesimal variation of \mathtt {II}_t, we first show the following formula for the infinitesimal variation of N_t:
\dot N= f\sigma - \mathrm{grad}f~,
where \mathrm{grad} f denotes the complex gradient vector field associated with the function f. To see this, we differentiate the identities \langle N_t,N_t\rangle=1, \langle N_t,\sigma_t\rangle=0 and \langle N_t,\mathrm{d}\sigma_t(X)\rangle=0, to obtain \langle{\dot N, N}\rangle=0, \langle{\dot N, \sigma}\rangle=-\langle{N, \dot \sigma}\rangle= -f and
\langle{\dot N, \mathrm{d}\sigma(X)}\rangle= -\langle{N, \mathrm{d}\dot \sigma (X)}\rangle= - \langle{N, \mathrm d f(X) N + f D_X N }\rangle= -\mathrm df(X)~.
This implies the formula.
Therefore, the infinitesimal variation of the second fundamental form is given by the following computation:
\begin{aligned}
\dot{\mathtt {II}}(X,Y) & = - \left. \frac{d}{dt} \right|_{t=0} \langle{d_X\sigma_t, D_Y N_t}\rangle \\
& = - \left. \frac{d}{dt} \right|_{t=0} \langle{d_X \sigma_t, d_Y N_t}\rangle \\
& = - \langle{d_X \dot \sigma, d_Y N}\rangle - \langle{d_X \sigma, d_Y \dot N}\rangle \\
&=- \langle{\mathrm{d}f(X) \cdot N + f d_X N, d_Y N}\rangle - \langle{d_X \sigma, -d_Y \mathrm{grad} f + \mathrm{d}f(Y) \cdot \sigma + f d_Y\sigma}\rangle \\
&=- \langle{fd_X N, d_Y N}\rangle + \langle{d_X \sigma, \mathrm{d}\sigma(\nabla_Y^{\mathtt I} \mathrm{grad} f)}\rangle - \langle{d_X \sigma,f d_Y \sigma}\rangle \\
&=-f \mathtt I(B(X), B(Y))+(\operatorname{\mathrm{Hess}}_{\mathtt I} f)(X,Y) - f \mathtt I(X,Y) ,
\end{aligned}
where, in the second-to-last equality, we observed that \langle N, d_Y N \rangle = Y(\langle N, N \rangle) = 0. By taking the trace of the last expression with respect to the first fundamental form \mathtt I, we also obtain the identity:
\mathrm{tr}_{\mathtt I}(\dot{\mathtt {II}}) = - f \mathrm{tr}(B^2) + \Delta_{\mathtt I} f - 2 f .
To compute the infinitesimal variation of the mean curvature \dot H_\sigma, we observe that (formally, we treat \mathtt I_t and \mathtt {II}_t as matrices here, with respect to a local frame, since the result does not depend on the frame)
\dot H_\sigma =\left.\frac{\mathrm{d}}{\mathrm{d}t}\right|_{t=0} \mathrm{tr}_{\mathtt I_t}\mathtt {II}_t= \mathrm{tr}_{\mathtt I} \dot \mathtt {II} + \mathrm{tr}\left(\dot{(\mathtt I^{-1})}\mathtt {II}\right).
By the above computation, \dot \mathtt I=-2f\mathtt {II}, and since \dot{(\mathtt I^{-1})}=-(\mathtt I^{-1})\dot\mathtt I (\mathtt I^{-1}), we obtain
\mathrm{tr}\left(\dot{(\mathtt I^{-1})}\mathtt {II}\right)=2f\tr\left((\mathtt I^{-1}\mathtt {II})\right)=2f\tr(B^2)~.
In conclusion, \dot H_\sigma= f \cdot \mathrm{tr}(B^2) -2f +\Delta_{\mathtt I} f as claimed.