I have a limit $$\lim_{x\to 0}{\frac{e^x+a x \sin(2x)-b \cos(2x)-x}{x^2}}=\frac{9}{2},$$ where $a,b\in\mathbb{R}$, and I want to find $a$ and $b$.
In other cases, I evaluate the limits of numerator and denominator separately, which results in a relationship between $a$ and $b$. But now both the denominator and numerator are going to zero. How can I solve this problem?
Firstly, $e^x+ax\sin2x-b\cos2x-x=0$ for $x=0$, which gives $b=1$.
Hence, $$\lim_{x\to 0}\frac{e^x+ax\sin2x-b \cos2x-x}{x^2}=$$ $$=\lim_{x\to 0}\frac{e^x+a x\sin2x-\cos2x-x}{x^2}=$$ $$=\lim_{x\to 0}\frac{e^x+a(\sin2x+2x\cos2x)+2\sin2x-1}{2x}=$$ $$=\lim_{x\rightarrow0}\left(\frac{e^x-1}{2x}+\frac{a\sin2x}{2x}+a\cos2x+2\cdot\frac{\sin2x}{2x}\right)=\frac{1}{2}+a+a+2,$$ which gives $a=1$.