I got stuck trying to find a general formula for the following integral $$\int_0^{\pi} t \cdot\cos^{2n}{\left(\frac{t}{2}\right)} \, dt = 4 \int_0^{\pi/2} t \cdot\cos^{2n}t \,dt \; , \; \text{ for } n \in \mathbb{N}.$$ It doesn't seem to be listed on Wikipedias Lists of integrals. After playing around for a while I found the following potentially useful identities$$\begin{align} \int_0^{\pi} t \cdot\cos^{2n}{\left(\frac{t}{2}\right)} \, dt &= \frac{(2n-1)!!}{(2n)!!} \pi^2 - 4\int_{0}^{\pi/2}{\int_0^{t} \cos^{2n}{\tau} \, d\tau} \, dt \\ &= \frac{(2n-1)!!}{(2n)!!}\cdot \left( \frac{\pi^2}{2} - \sum_{k=1}^n \frac{(2k)!!}{(2k-1)!! \, k^2} \right) \,, \end{align}$$ where I would consider the last line a solution if one was able to find a closed formula for the sum that is not given in terms of another integral or another horrible function like Wolfram Alpha suggests.
Edits:
- Moved the power closer to $\cos$ to avoid confusion.
- Corrected some constants in the identities.
- Emphasized that $n \in \mathbb{N}$.