f(x) = ${e^x cos(x^2)}$
So I have the answer which is ${1+x+\frac{x^2}{2!}+\frac{x^3}{3!}+(\frac{1}{4!}-\frac{1}{2!})x^4+...}$
So I know that ${e^x = \sum\frac{x^n}{n!}}$ and that ${cos(x)=\sum(-1)^n\frac{x^{2n}}{(2n)!}}$
However I don't see/understand how this is the answer. The first 4 terms look like ${\sum e^x}$ then it changes which is due to the cosine I am guessing.
How can I represent ${cos(x^2)}$ as a series? I think it is ${\sum(-1)^n\frac{x^{4n}}{(2n)!}}$.
Furthermore how can I represent f(x) as a power series?
Thanks for any help in advance!