How to solve the following integral, using Euler functions (Gamma, Beta, and Phi):
$$\int_{0}^{\pi}\frac{\sin^px}{1+\cos x} dx $$
I got this integral from "Collection of problems in mathematical analysis, Kudryavtsev. Book 3.". Under the theme "Euler functions".
There are also functions, which can help: \begin{align*} \phi(p) &= \beta(p,1-p)= \frac{\pi}{\sin(p\pi)}\\ \phi'(p) &= - \frac{\pi^2\cos(p\pi)}{\sin^2(p\pi)}\\ \phi''(p) &= \frac{\pi^3}{\sin(p\pi)}\left(\cot^2(p\pi)+\frac1{\sin^2(p\pi)}\right) \end{align*}
$$\int_{0}^{\pi}\frac{\sin^px}{1+\cos x} dx\overset{\cos x=u }=\int_{-1 }^1\frac{(1-u^2)^{\frac{p-1}{2}}}{1+u}du=\int_{-1}^1\frac{(1-u^2)^{\frac{p-1}{2}}(1-u)}{1-u^2}du$$ $$=\int_{-1}^1(1-u^2)^{\frac{p-3}{2}}dx-\underbrace{\int_{-1}^1 u(1-u^2)^{\frac{p-3}{2}}du}_{=0 \ (\text{odd})}\overset{u^2=t}=\int_0^1 t^{-1/2} (1-t)^{\frac{p-3}{2}}dt=\beta\left(\frac12,\frac{p-1}{2}\right)$$