I have an expression:
$$ f(x) = \sum\limits_{N=0}^\infty (N-x)^2 \frac{x^N}{N!}$$
I want to figure out whose Taylor Expansion this is.
I've found that I can separate out the above expression, and get the following:
$$f(x) = \sum\limits_{N=0}^\infty N^2 \frac{x^N}{N!} - 2 \sum\limits_{N=0}^\infty xN \frac{x^N}{N!} + \sum\limits_{N=0}^\infty x^2 \frac{x^N}{N!}$$
I figured out this much: $$x^2 e^x = \sum\limits_{N=0}^\infty x^2 \frac{x^N}{N!} = \sum\limits_{N=0}^\infty xN \frac{x^N}{N!}$$
$$xe^x = \sum\limits_{N=0}^\infty N \frac{x^N}{N!}$$
But I cannot figure out who the first mysterious sum belongs to!
Note that differentiating and multiplying by $x$ in the power series $\sum_{n=0}^\infty a_nx^n$ gives the power series $(xD)\sum_{n=0}^\infty a_nx^n=\sum_{n=0}^\infty na_nx^n$, where $D$ is the differentiation operator. So in general for any polynomial $p(n)$, we have the identity $$p(xD)\sum_{n=0}^\infty a_nx^n=\sum_{n=0}^\infty p(n)a_nx^n.$$ In this case taking $a_n=1/n!$ gives that the desired expression is $(xD)^2e^x$, or $$ (xD)^2e^x=(xD)xe^x=x(e^x+xe^x)=xe^x+x^2e^x. $$