How to integrate $$\int_0^{\pi/2}\!\dfrac{2a \sin^2 x}{a^2 \sin^2 x +b^2 \cos^2 x}\,dx $$
my first step is $$\frac{2}{a} \int_0^{\pi/2}\!\dfrac{a^2 \sin^2 x}{a^2 +(b^2 - a^2) \cos^2 x}\, dx $$
I would kind of want to do some sort of $u=\cos x$ substitution, to get at $\arctan u $ but no idea what to do with the sine in the numerator.