I have a problem with this limit, I don't know what method to use. I have no idea how to compute it. Is it possible to compute this limit with the McLaurin expansion? Can you explain the method and the steps used? Thanks. (I prefer to avoid to use l'Hospital's rule.)
$$\lim _{x\to 0}\left(\frac{xe^x-2+2\cos x-x}{\left(\sin x\right)^2 \tan\left(2x\right)+xe^{-\frac{1}{\left|x\right|}}}\right)$$
Its best to use Taylor expansions here. We have $$e^{x} = 1 + x + \frac{x^{2}}{2} + o(x^{2}),\, \cos x = 1 - \frac{x^{2}}{2} + o(x^{3})$$ and $$\sin x = x + o(x), \, \tan 2x = 2x + o(x)$$ Also note that $$e^{-1/|x|} = o(x^{n})$$ for all positive integers $n$ (this fact is the key to solving this problem and requires some effort to prove, but it can be taken as one of the standard limits). It thus follows that the numerator is equal to $$x + x^{2} + \frac{x^{3}}{2} - 2 + 2 - x^{2} - x + o(x^{3}) = \frac{x^{3}}{2} + o(x^{3})$$ and the denominator is equal to $$x^{2}\cdot 2x + o(x^{3}) = 2x^{3} + o(x^{3}) $$ and therefore the ratio is equal to $$ \dfrac{\dfrac{x^{3}}{2} + o(x^{3})}{2x^{3} + o(x^{3})} = \frac{1 + o(1)}{4 + o(1)}$$ and thus it tends to $1/4$ as $x \to 0$.