Deriving with respect to t, with the chain rule we get
\varphi'(t)=\sum\limits_{i=1}^{n}\mathbb{E}[W'_i(t)\cdot \partial_i G(W_1(t),\dots,W_n(t))].
Since
W'_i(t)=(Z'_i(t)-\mathbb{E}[Z_i(t)Z'_i(t)])W_i(t),
we have
\varphi'(t)=\sum\limits_{i=1}^{n}\mathbb{E}[(Z'_i(t)-\mathbb{E}[Z_i(t)Z'_i(t)])W_i(t)\cdot \partial_i G(W_1(t),\dots,W_n(t))].
We now fix 1\leq i\leq n and apply the Gaussian integration by parts formula to the term Z'_i(t). When performing the Gaussian integration by parts, the Gaussian variable Z'_i(t) should contract with all other Gaussians in the expression above.
\bullet When the other Gaussian variable in the Gaussian integration by parts formula is W_i(t), for each fixed index 1\leq i\leq n we get the following contribution:
\mathbb{E}[W_i(t)\cdot \partial_i G(W_1(t),\dots,W_n(t))]\mathbb{E}[Z'_i(t)Z_i(t)].
This cancels with the linear part in \varphi'(t) with fixed i, namely
\mathbb{E}[-\mathbb{E}[Z_i(t)Z'_i(t)]W_i(t)\cdot \partial_i G(W_1(t),\dots,W_n(t))].
\bullet It remains to consider the case where the other Gaussian variable in the Gaussian integration by parts formula is in G(W_1(t),\dots,W_n(t)). For fixed 1\leq i\leq n, their contribution amounts to
\sum\limits_{j=1}^{n}\mathbb{E}[W_i(t)W_j(t)\partial_{ij} G(W_1(t),\dots,W_n(t))]\mathbb{E}[Z'_i(t)Z_j(t)].
Recalling that
\mathbb{E}[Z_i(t)Z'_j(t)]=\frac{1}{2}(\mathbb{E}[B_iB_j]-\mathbb{E}[A_iA_j])
and summing over all 1\leq i\leq n, we have proven that
\varphi'(t)=\frac{1}{2}\sum\limits_{1\leq i,j\leq n}\mathbb{E}[\partial_{ij}G(W_1(t),\dots,W_n(t))W_i(t)W_j(t)](\mathbb{E}[B_iB_j]-\mathbb{E}[A_iA_j]).
This finished the proof of (5).