Why is this Maclaurin series incorrect?

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
tmt1
Messages
230
Reaction score
0
I need to find the Maclaurin series for

$$f(x) = x^2e^x$$

I know

$$e^x = \sum_{n = 0}^{\infty} \frac{x^n}{n!}$$

So, why can't I do

$$x^2 e^x =x^2 \sum_{n = 0}^{\infty} \frac{x^n}{n!} = \sum_{n = 0}^{\infty} \frac{x^2 x^n}{n!} $$
 
Physics news on Phys.org
You can! I'd say you could combine the exponents in your final result:
$$x^2e^x=\sum_{n=0}^{\infty}\frac{x^{n+2}}{n!}.$$
Now this is a Maclaurin series, not a Taylor series expanded at a point other than $0$, right?