Integrate $$\int_{0}^{\pi/2} \ln(p + q \cos^2x)dx,$$
where $p > 0, q \geq 0$
What I tried already
This task seems to be about parameter derivation. I tried both to differentiate by $p$ or by $q$. By $q$ it seems more logical - because $q\geq 0$, it would be easy to find constant when $q = 0.$ After derivation I get a pretty stange integral, which I sometimes with plenty of mistakes manage to count, but it becomes almost impossible to integrate it after. 2. I tried to use that when $x = 0$ to $\pi/2d$,
$$I = \int_{0}^{\pi/2} \ln(p + q \cos^2x)dx = \int_{0}^{\pi/2} \ln(p + q \sin^2x)dx,$$
which implies
$$\begin{align} I &= \frac{1}{2}(I + I) \\ &= \frac{1}{2}\int_{0}^{\pi/2} (\ln(p + q \cos^2x) + \ln(p + q \sin^2x)) dx \\ &= \frac{1}{2} \int_{0}^{\pi/2} \ln((p + q \cos^2x)(p + q \sin^2x))dx \\ &= \frac{1}{2} \int_{0}^{\pi/2} \ln(p^2 + pq + q^2 \frac{\sin^22x}{4})dx\| & = \frac{1}{2} \int_{0}^{\pi} \ln(p^2 + pq + q^2 \frac{\sin^2x}{4})dx \end{align}$$
This almost gives nothing, I tried to count the last integral also by derivation, but got nothing. Maybe problem is wrong, but I don't think so. Thanks for the help)