Find the value of $a+b$ if $$\lim _{x\to 0}\left(\frac{\tan\left(2x\right)\:-2\sin\left(ax\right)}{x\left(1-\cos\left(2x\right)\right)}\right)=b$$
I tried plugging in $x=0$ in the function which gives a $\frac{0}{0}$ indeterminate form,So used L'Hopital's Rule.The simplified final answer being
$$\lim _{x\to 0}\frac{\sec^2\left(x\right)-a\cos\left(ax\right)}{\sin^2\left(x\right)+x\sin\left(2x\right)}$$
On again plugging in $x=0$, I get $\frac{1-a}{0}$ (not in indeterminate form)and therefore cannot use the L'hopital's rule.I don't think differentiating again might be a good idea (i.e if its possible) as the degree of $a$ becomes 2 and it is $a+b$ that we wish to find.
So how do I go further with this? Thanks in advance.
Use the small-$y$ results$$\tan y=y+\frac13y^3+o(y^3),\,\sin y=y-\frac16y^3+o(y^3).$$As $x\to0$,$$\frac{\tan(2x)-2\sin ax}{x(1-\cos 2x)}\sim\frac{2(1-a)x+(8+a^3)x^3/3+o(x^3)}{2x^3+o(x^3)}.$$If this has finite limit, $a=1$ so the limit is $b=\frac{8+a^3}{6}=\frac32$, whence $a+b=\frac52$.