While studying Stirling numbers of the second kind the following formula for $n!$ suddenly popped up!
$$n! = (-1)^n \sum_{i=1}^n (-1)^i\binom{n}{i} i^n $$
I was curious if I could find a "direct" proof, i.e. not involving Stirling numbers, but after trying different approaches, f.i. induction, I was stuck. So a hint would be welcome!
Apply the differential operator $(x \frac{d}{dx})^n$ (i.e. differentiate then multiply by $x$, a total of $n$ times) to the expression $(1-x)^n = \sum_{i=0}^n (-1)^i \binom{n}{i} x^i$. On the left hand side differentiate using the chain rule (e.g. $x\frac{d}{dx} (1-x)^n = -nx(1-x)^{n-1}$) and on the right hand side differentiate like you would a polynomial. Then take $x=1$. The answer falls right out.
Out of curiosity, did this problem come from study of the Chern-Weil homomorphism?