the solution given in book is $1$ and by L'Hospital approach i do get one so what's the fault in method
Question:
$$\lim_{x\to 0} \frac{ e^x - e^{-x}-2\ln(1+x)}{x \sin x}$$
Work: $$\begin{aligned} \lim_{x\to 0} \frac{ e^x - e^{-x}-2\ln(1+x)}{x \sin x} & = \lim_{x\to 0} \frac{ x(\frac{e^x-1}{x}) +1 - \frac{1}{x(\frac{e^x-1}{x}) + 1}-2\frac{\ln(1+x)}{x}\cdot x}{x^2\cdot \frac{\sin x}{x} }\\& = \lim_{x\to 0} \frac{x + 1- \frac{1}{x+1} - 2x}{x^2}\\& = \lim_{x\to0}\frac{1 - x- \frac{1}{x+1}}{x^2}\\& = \lim_{x\to0} \frac{1 - x^2 - 1}{(x+1)x^2}\\& = \lim_{x\to 0}\frac{-1}{x+1}\\& = -1\end{aligned}$$
Why is this method wrong?
$$\lim_{x\to0}\frac{e^x-e^{-x}-2\ln(1+x)}{x\sin{x}}$$ Substitute the quadratic Taylor approximation of each function $$\lim_{x\to0}\frac{\left(1+x+\frac{x^2}{2}\right)-\left(1-x+\frac{x^2}{2}\right)-2\left(x-\frac{x^2}{2}\right)}{x(x)}=\lim_{x\to0}\frac{x^2}{x^2}=1$$ Your method is wrong because the limit formulas that you used are linear approximations, which omit higher degree terms such as $x^2$