computing the Taylor series for $e^{1-\cos x}$ I was told to compute the Taylor series for $e^{1-\cos x}$ to the fourth degree.
I plugged the Taylor series for $1-\cos x$ into the Taylor series for $e$.
This got me: $$1-\frac{x^2}2+\frac{x^4}{24}+\frac{(\frac{-x^2}2)^2}{2}$$A bit of simplification results in: $1+\frac{x^2}2+\frac{x^4}6$.
Is this correct? The answer key to the question gave a different answer - it put the denominator of the last term as 12 instead of 6. However, I do not see the flaw in my calculations. Did I make the error or did they?

My answer agrees with the answer key:
$\cos x=1-\dfrac{x^2}2+\dfrac{x^4}{24}+O(x^6),$ so $1-\cos x=\dfrac{x^2}2-\dfrac{x^4}{24}+O(x^6),$
so $\exp(1-\cos x)=1 + \left(\dfrac{x^2}2 - \dfrac{x^4}{24} \right)+ \dfrac12\left(\dfrac{x^2}2\right)^2+O(x^6)=1 + \dfrac{x^2}2 + \dfrac{x^4}{12}+O(x^6).$
