In these lecture notes, the beta-function for the $\phi^4$-theory is computed by identifying the change in the action when integrating modes with momenta $\mu'<|p|<\mu$, where $\mu$ and $\mu'$ are cut-offs as being the Wilsonian effective action.
In particular this turn out to be equal to $$S[\varphi; \mu,g_{2n}(\mu)]-S[\varphi; \mu + \delta \mu,g_{2n}(\mu+\delta\mu)]=a \mu^{d-1}\int \mathrm d^d x \, \log (\mu^2+V''(\varphi))\delta \mu \,.$$
The author argues that the beta-functions for the couplings $g_{2n}$ can be computed by 'expanding the right-hand side in powers of $\varphi$, leading to
$$\mu\frac{\mathrm d g_{2n}}{\mathrm d \mu}= (n(d-2)-d)g_{2n} - a \mu^{n(d-2)}\left.\frac{\mathrm d^{2n}}{\mathrm d \varphi^{2n}}\log (\mu^2+V''(\varphi))\right|_{\varphi=0}\,. $$
Could someone give a lead to how to begin the derivation of this result?