$$\lim _{x\to 0}\left(\frac{\cos \left(xe^x\right)-\cos \left(xe^{-x}\right)}{x^3}\right)=?$$
Trig transformations and such don't seem to help at all, and L'Hospitals rule just complicates matters even more. So how would you solve this limit, thanks.
Since $\cos t=1-t^2/2+o(t^3)$, we have $$ \cos(xe^x)-\cos(xe^{-x})= -\frac{1}{2}x^2e^{2x}+\frac{1}{2}x^2e^{-2x}+o(x^3) $$ Now it should be quite easy.