Trigonometric function integration: $\int_0^{\pi/2}\frac{dx}{(a^2\cos^2x+b^2 \sin^2x)^2}$ How to integrate $$\int_0^{\pi/2}\dfrac{dx}{(a^2\cos^2x+b^2 \sin^2x)^2}$$
What's  the approach to it?
Being a high school student , I don't know things like counter integration.(Atleast not taught in India in high school education ).I just know simple elementary results of definite and indefinite integration. Substitutions and all those works good. :)

You want to integrate
$$J = \int_0^{\pi/2} \dfrac{dx}{\left(a^2 +(b^2-a^2) \sin^2(x) \right)^2} = \dfrac1{a^4}\int_0^{\pi/2} \dfrac{dx}{\left(1 +c \sin^2(x) \right)^2}$$
where $c = \dfrac{b^2-a^2}{a^2}$.
We now want to integrate $I = \displaystyle \int_0^{\pi/2} \dfrac{dx}{\left(1 +c \sin^2(x) \right)^2}$. From Taylor series, we have
$$\dfrac1{(1+cy^2)^2} = \sum_{k=0}^{\infty}(-1)^k (k+1)c^k y^{2k}$$
Hence (swapping integral and infinite summation), we get that
$$\int_0^{\pi/2}\dfrac{dx}{(1+c\sin^2(x))^2} = \sum_{k=0}^{\infty}(-1)^k (k+1)c^k \int_0^{\pi/2}\sin^{2k}(x)dx$$
From here, we have
$$\int_0^{\pi/2} \sin^{2k}(x) dx = \dbinom{2k}k \dfrac{\pi}{2^{2k+1}}$$
Hence,
$$I = \sum_{k=0}^{\infty}(-1)^k (k+1)c^k \dbinom{2k}k \dfrac{\pi}{2^{2k+1}} = \dfrac{\pi}2 \sum_{k=0}^{\infty} (k+1) \dbinom{2k}k \left(-\dfrac{c}4\right)^k$$
Now from Taylor series, we have
$$\sum_{k=0}^{\infty} (k+1) \dbinom{2k}k x^k = \dfrac{1+4x\sqrt{1-4x}-2x-\sqrt{1-4x}}{(1-4x)^{3/2}}$$
Hence,
$$J = \dfrac{\pi}2 \left(\dfrac{1-c\sqrt{1+c}+c/2-\sqrt{1+c}}{a^4(1+c)^{3/2}} \right)$$
Now plug in the value of $c$ and get the value of the original integral $J$.
