I have to estimate the error when I approximate the function $$e^{\sin x}$$ to $$1+x+x^{2}+x^{3}$$ when $|x|<0.1$.
I really don't know how to do because my teacher didn't teach me. But what I did it was: I found the Taylor's polynom of $e^{\sin x}$ for $a=0$: $$T_{0}(x)=f(0)+f'(0)(x-0)+\frac{f''(0)}{2!}(x-0)^{2}+\frac{f'''(0)}{3!}(x-0)^{3}$$ then $$T_{0}(x)=1+x+\frac{1}{2}x^{2}$$ My question is: until here, is that the right way to solve it? If yes, what should I do now? How I use the fact that $|x|<0.1$? If it is wrong, where can I find some solved example to understand it? I didn't find anything good on google.
The Taylor expansion of $\exp\sin x$ around zero is $1+x+x^{2}/2+O(x^{4})$. Therefore, the error is \begin{align*} \left|\exp\sin x-(1+x+x^{2}+x^{3})\right| & =\left|-x^{2}/2+O(x^{3})\right|\\ & \leq|x^{2}|/2+|O(x^{3})|\\ & \approx|x^{2}|/2 & \text{for }|x|\text{ small}. \end{align*}