Find the Taylor series for $f(x)=(x^2+2x)e^x$ centered at a=0
I know this is just a Maclaurin series, so I calculated the first four orders, which yields these terms:
$2x+3x^2+2x^3+\frac{5x^4}6+\frac{x^5}4+O(x^6)$
I'm having trouble finding the Taylor series as a sum using n representation (need to find the actual generalized series)
I know it's something with $x^{n+1}$, but I'm not sure about the coefficients
$$ e^x \underset{x \to 0}{=} \sum_{k=0}^n \frac{x^k}{k!} + \mathcal{O}(x^{n+1}) $$ so $$ (x^2 + 2x)e^x \underset{x\to0}{=} \sum_{k=0}^n \frac{x^{k+2}}{k!} + 2 \sum_{k=0}^n \frac{x^{k+1}}{k!} + \mathcal{O}(x^{n+2})\\ = 2x + \sum_{k=2}^{n+1} x^k \left(\frac{1}{(k-2)!} + \frac{2}{(k-1)!}\right) + \mathcal{O}(x^{n+2}) $$
EDIT: from @tomi remark: $$ f(x) \underset{x\to0}{=} 2x + \sum_{k=2}^{n+1} x^k \frac{k+1}{(k-1)!} + \mathcal{O}(x^{n+2}) $$