I'm having trouble solving the following limit: $$ \lim_{x \to 0}\frac{xe^{2x}+xe^{x}-2e^{2x}+2e^{x}}{(e^{x}-1)^{3}} $$
substitution gives a 0/0 indeterminate, and we can get around it with de l'hopital rule, but i've tried to simplify the expression in order to solve the limit without it: $$ \lim_{x \to 0}{\frac{x}{e^{x}-1}} \times \lim_{x \to 0}{\frac{e^{2x}+e^{x}}{(e^{x}-1)^2}}+2\lim_{x \to 0}{\frac{e^{x}-e^{2x}}{(e^{x}-1)^3}} $$ $$ =\lim_{x \to 0}{e^{x}}\times \lim_{x \to 0}{\frac{e^{x}+1}{(e^{x}-1)^2}}+2\lim_{x \to 0}{e^{x}}\times \lim_{x \to 0}{\frac{1-e^{x}}{(e^{x}-1)^3}} $$
$$ =\lim_{x \to 0}{\frac{e^{x}+1}{(e^{x}-1)^2}}-2\lim_{x \to 0}{\frac{e^{x}-1}{(e^{x}-1)^3}} $$
$$ =\lim_{x \to 0}{\frac{e^{x}+1}{(e^{x}-1)^2}}-2\lim_{x \to 0}{\frac{1}{(e^{x}-1)^2}} $$
$$ =\lim_{x \to 0}{\frac{e^{x}+1-2}{(e^{x}-1)^2}}=\lim_{x \to 0}{\frac{1}{e^{x}-1}} $$
I obviously did something wrong in the middle, as the limit I arrive at doesn't exist, but the initial limit does exist and is 1/6 (from de l'hopital rule). Can someone point out the error(s)? thank you for the help
Differentiating with l'Hospital:
$$\lim_{x\to 0}\frac{xe^{2x}+xe^x-2e^{2x}+2e^x}{(e^x-1)^3}\stackrel{l\,'H}=\lim_{x\to 0}\frac{-3e^{2x}+2xe^{2x}+3e^x+xe^x}{3e^x(e^x-1)^2}=$$
$$=\lim_{x\to 0}\frac{-3e^x+2xe^x+3+x}{3(e^x-1)^2}\stackrel{l\,'H}=\lim_{x\to 0}\frac{-e^x+2xe^x+1}{6e^x(e^x-1)}\stackrel{l\,'H}=$$
$$=\lim_{x\to 0}\frac{e^x+2xe^x}{6(e^x-1)+6e^{2x}}=\frac16$$