$\int_0^{\frac{\pi}{2}} \frac{1}{\sqrt{a^2 \cos^2 \theta+b^2 \sin^2 \theta}} d \theta$
$ = \int_0^{\frac{\pi}{2}} \frac{1}{a}\sec \theta \frac{1}{ \sqrt{1+(b/a)^2 \tan^2 \theta}} d \theta$
But i know $d(\tan \theta) = \sec^2 \theta$. But this is not in that form. Can you tell me how to proceed further?