<s>[INST] Evaluating limits using Taylor expansions The limits are
$$\lim_{x\to 0}(\frac{\cos{x}-e^{-x^2/2}}{x^4})$$
$$\lim_{x\to 0}\frac{e^x\cdot\!\sin{x}-x(1+x)}{x^3}$$
Probably wrong things that I've tried
$\lim_{x\to 0}\frac{\cos{x}-e^{-x^2/2}}{x^4}=\lim_{x\to 0}(\frac{1-\frac{x^2}{2!}+\frac{x^4}{4!}+o(x^5)-1+\frac{x^2}{2}+\frac{x^4}{4}+o(x^4)}{x^4})$
$\lim_{x\to 0}\frac{e^x\cdot\!\sin{x}-x(1+x)}{x^3}=\lim_{x\to 0}\frac{(1+x+\frac{x^2}{2}+o(x^2))(x+o(x^2))-x-x^2)}{x^3}=\lim_{x\to 0}\frac{\frac{x^3}{2}+o(x^2)}{x^3}=1/2$
Could you please help me understand how these kinds of limits can be computed I keep getting all of them wrong and if this goes on for a little bit longer I may have a panic attack.
 [/INST] You have$$e^x\sin(x)=x+x^2+\frac{x^3}3+o(x^3),$$and therefore$$\lim_{x\to0}\frac{e^x\sin(x)-x-x^2}{x^3}=\frac13.$$
</s>