The question is to evaluate this definite integral: $$\int_{0}^{\pi/2}\frac{x}{(a^2\cos^2x+b^2\sin^2x)}dx$$
I know the definite integration with limits from $0$ to $\pi$, where we use the identity $\int_{a}^{b}f(x)dx = \int_{a}^{b}f(a+b-x)dx$, but it obviously cannot be used here. I also tried breaking the $0$ to $\pi$ one into two parts to no avail. Since the other one had such a simple solution, I can't wrap my head around this one, and would love some help!
By enforcing the substitution $x=\arctan u$ we are left with
$$\mathcal{J}(a,b)=\int_{0}^{\pi/2}\frac{x}{a^2\cos^2 x+b^2\sin^2 x}=\int_{0}^{+\infty}\frac{\arctan u}{a^2+b^2 u^2}\,du $$ and for any $a,b,c>0$ $$ \frac{d}{dc}\int_{0}^{+\infty}\frac{\arctan(c u)}{a^2+b^2 u^2}\,du = \int_{0}^{+\infty}\frac{u\,du}{(a^2+b^2 u^2)(1+c^2 u^2)}\stackrel{\text{PFD}}{=}\frac{\log(c)-\log(b)+\log(a)}{a^2 c^2-b^2}$$ such that $$\mathcal{J}(a,b)=\int_{0}^{1}\frac{\log(c)-\log(b)+\log(a)}{a^2 c^2-b^2}\,dc $$ is related to $\log$ and $\text{Li}_2$ as pointed out by Sangchul Lee and tired in the comments.