To prove $\lim_{x\to 0}\frac{e^x-e^{x\cos x}}{x-\sin x}=3$ I came across this question to prove the given limit
$$\lim_{x\to 0}\frac{e^x-e^{x\cos x}}{x-\sin x}=3$$
First I tried using LHospital's rule directly.
Then I tried using expansion of $e^x$ and then using LHospital's rule but I am getting stuck.

You can use L'Hospital's Rule or Taylor's series and easily get the answer, but these techniques are never applied directly (unless the problem is too simple). 
We can proceed as follows
\begin{align}
L&=\lim_{x\to 0}\frac{e^{x}-e^{x\cos x}} {x-\sin x} \notag\\
&=\lim_{x\to 0}e^{x\cos x} \cdot \frac{e^{x(1-\cos x)} - 1}{x(1-\cos x)}\cdot \frac{1-\cos x} {x^{2}}\cdot\frac{x^{3}}{x-\sin x} \notag\\
&=1\cdot 1\cdot\frac{1}{2}\cdot 6=3\notag
\end{align}
All the limits are well known and you can evaluate limit of $(x-\sin x) /x^{3}$ either using L'Hospital's Rule or Taylor series to get $1/6$. Therefore its reciprocal tends to $6$.
