I have a problem with this integral
$$\int_\ \frac{\sin 2x }{ \sqrt{4-\cos^2 x}} \, dx$$
We can transform it to
$$\int_\ \frac{2\sin x \cos x }{ \sqrt{4-\cos^2 x}} \, dx$$
Using substitution $u^2 = 4 - \cos^2 x $ we get
$$\int_\ \frac{2u }{\ u } \, du$$
And it gives bad result. Can you point when did i make the mistake ?