Yesterday, I asked if there is a formula given by a finite sum for the expression. Having experimented with Wolfram Alpha I found that it can be represented as
$$ \sum_{j=0}^{n}a_{j}g^{j}\frac{d^{j}}{dg^{j}}f(g),$$ where $a^{j}$ is given by the coefficient attached to $z^{n-1}$ in the sum expansion of the generating function $$\frac{z^{j}}{(1-jz)(1-(j-1)z)...(1-z)},$$
assuming I did not make any mistakes.
How does one go about proving it?
In the title there are $n$ iterations of $g\frac{d}{dg}$.
I have come up with an answer.
$$ a_{j} = {n \brace j}. $$
The equation holds for $n = 1$. I shall now prove that if it holds for $n$, it must hold for $n+1$.
Notice that Stirling numbers of the second kind have the property $$ {n + 1\brace j} = j{n \brace j} + {n \brace j - 1} $$ which I used for the proof.
$$ g\frac{d}{dg}\sum_{j = 1}^{n}{n \brace j}g^{j}\frac{d^{j}}{dg^{j}}f(g) = \sum_{j = 1}^{n}{n \brace j}jg^{j}\frac{d^{j}}{dg^{j}}f(g) + \sum_{j = 1}^{n}{n \brace j}g^{j+1}\frac{d^{j+1}}{dg^{j+1}}f(g) = \sum_{j = 1}^{n}{n \brace j}jg^{j}\frac{d^{j}}{dg^{j}}f(g) + \sum_{j = 1}^{n-1}{n \brace j}g^{j+1}\frac{d^{j+1}}{dg^{j+1}}f(g) + g^{n+1}\frac{d^{n+1}}{dg^{n+1}}f(g) = \sum_{j = 1}^{n}{n \brace j}jg^{j}\frac{d^{j}}{dg^{j}}f(g) + \sum_{j = 1}^{n}{n \brace j-1}g^{j}\frac{d^{j}}{dg^{j}}f(g) + g^{n+1}\frac{d^{n+1}}{dg^{n+1}}f(g) = g^{n+1}\frac{d^{n+1}}{dg^{n+1}}f(g) + \sum_{j = 1}^{n}{n + 1 \brace j}g^{j}\frac{d^{j}}{dg^{j}}f(g) = \sum_{j = 1}^{n + 1}{n + 1 \brace j}g^{j}\frac{d^{j}}{dg^{j}}f(g). $$ This is the end of the proof.