I would like to solve the integral
$$\int\left(1-x^{p}\right)^{\frac{n-1}{p}}\log\left(1-x^{p}\right)dx.$$
My problem is that I arrived at a solution via wolfram alpha, but I would like to understand how one would arrive there by hand.
What I did is to use the substitution $x=\left(1-\exp(z)\right)^{\frac{1}{p}}$. This yields $$-\frac{1}{p}\int\left(1-\exp(z)\right)^{\frac{1}{p}-1}\exp\left(\frac{n-1+p}{p}z\right)zdz$$ for which wolfram alpha yields the integral
\begin{align} &\frac{\exp\left(z\frac{(n+p-1)}{p}\right)}{\left(n+p-1\right)^{2}}p\,_{3}F_{2}\left(1-\frac{1}{p},\frac{n}{p}-\frac{1}{p}+1,\frac{n}{p}-\frac{1}{p}+1;\frac{n}{p}-\frac{1}{p}+2,\frac{n}{p}-\frac{1}{p}+2;\exp(z)\right)\\&-z\frac{\exp\left(z\frac{(n+p-1)}{p}\right)}{\left(n+p-1\right)}\,_{2}F_{1}\left(\frac{p-1}{p},\frac{n+p-1}{p};\frac{n+2p-1}{p};\exp z\right). \end{align}
I would really like to understand how it arrived at the generalized hypergeometric function in the solution because I think it would be useful to spot it in an integral (like spotting possible solutions in terms of a gamma function or beta function in integrals).
Does anybody have a hint how it arrived at the solution?