Are there any closed-form/analytical expressions for integrals of the form: $$\int_{0}^{2\pi}\arccos(-a-b\cos x)dx$$
or
$$\int_{0}^{2\pi}\sqrt{1 - (-a-b\cos x)^2}(-a-b \cos x) dx$$
where $a>0$, $b>0$ and $a+b<1$? Such integrals come up when trying to use the method of averaging to obtain the slow-flow equations for multi-degree-of-freedom dynamical systems with discontinuous forcing.
I tried to proceed with the first one as follows:
$$2\int_{0}^{\pi}\left(\pi-\arccos(a+b \cos x) \right) dx $$
Then, after a substitution $y=\arccos(a+b \cos x)$, we have:
$$ I = 2\pi^2 - \dfrac{2}{b}\int_{\arccos(a+b)}^{\arccos(a-b)} \dfrac{y \sin y}{\sqrt{1-\left(\frac{-a+\cos y}{b} \right)^2} }dy $$
A further substitution $\cos y = z$, brings the integral term to:
$$\bar{I} = -\int_{a+b}^{a-b} \dfrac{\arccos z}{\sqrt{1 - \left(\dfrac{z-a}{b} \right)^2 }} dz$$
The expressions appear to have a relation with some elliptic integral but is shifted by a parameter $\frac{a}{b}$. I have attempted to solve it in Mathematica but it is unable to perform the integration.
If anybody can provide an answer, that would be of great help. A step-by-step derivation would be ideal. But any suggestions/tips are also welcome.
Thanks in advance!