For $a,b>0$, evaluate $$I(a,b)= \int_0^\infty \ln(a^2\sin^2x+b^2\cos^2x)dx.$$
What I thought of is that I can try to find an integral $\int_a^b \text{(something)}dy$ such that the result would be $\ln(a^2\sin^2x+b^2\cos^2x)$ (and therefore obtaining a double integral that can be easily computed). Is that the correct approach?
P.S. : The idea that stood behind this incomplete reasoning was the striking similarity between the formula $\int \frac{x}{x^2+a^2}=\frac{1}{2}\ln(x^2+a^2)+C$ and what I have above.