limit using taylor series I keep getting an error in the expansion
$$\lim_{x\to 0 }\frac{2\exp(\sin(x))-2-x-x^2-\arctan (x) }{x^3}$$
The numerator works out as
$$\approx 2 (1+\sin(x) + 1/2 \sin^2(x)) -2-x-x^2 - (x-x^3/3+x^5/5)$$
$$\approx 2(1+x-x^3/3!+1/2(x-x^3/3!)^2 -2-2x+x^3/3-x^2 -x^5/5 $$
$$ = o(x^4)$$
so that the limit is zero. But it is supposed to be $1/3$. Where is my mistake?

Use the fact

$$e^{\sin(x)} \sim_{x\sim 0} 1+x+x^2/2-x^4/8.  $$

