So I have $$e^{1-cos(x)}$$ and want to find the taylor series expansions up to and including the fourth degree in the form of $$c_{0} \frac{x^0}{0!} + c_{1} \frac{x^1}{1!} + c_{2} \frac{x^2}{2!} + c_3 \frac{x^3}{3!} + c_{4} \frac{x^4}{4!} + HOT$$ or just $$1 + c_{1} x^1 + c_{2} x^2 + c_3 x^3 + c_{4} x^4 +HOT$$ at that.
I know of two ways to do this, by substitution in the series summation or by differentiating the original four times. When substituting I am left with cosines in my result which is not sufficient, but differentiating this formula will take a $very$ long time. Is there a pattern in differentiating this function that im missing or is there a way to get rid of the $cos$ when substituting?
I did eventually go for differentiating everything and took me forever, much longer than I think was intended for this assignment, that is why I think I am missing the point. The derivatives to the fourth degree fill an entire page in my noteblock so I wont type it over here but my result was $$1+\frac{x^2}{2}+\frac{x^4}{12}+HOT$$ I have yet to find out if I was correct, but nevertheless I think I should learn an insight here about how to get this answer an easier way. Hopefully someone knows what im missing here. Thanks in advance!