Contour Integration $\int_0^1\frac1{\sqrt[n]{1-x^n}}dx$

Here is another contour integration using the contour that arises from not using any substitution.

Using the diagram and contour below, where $f(z)=\frac1{(1-z^n)^{1/n}}$

$\hspace{4cm}$enter image description here

it is easy to see that the integral along the red contour is $$ \begin{align} &\int_0^1\frac{\mathrm{d}t}{(1-t^n)^{1/n}}-e^{2\pi i/n}\int_0^1\frac{\mathrm{d}t}{(1-t^n)^{1/n}}\\ &=\left(1-e^{2\pi i/n}\right)\int_0^1\frac{\mathrm{d}t}{(1-t^n)^{1/n}}\tag{1} \end{align} $$ The integrand along each successive arm clockwise is $e^{2\pi i/n}$ times the integrand from the previous arm. $\mathrm{d}z$ along each successive arm is $e^{-2\pi i/n}$ times $\mathrm{d}z$ from the previous arm. Therefore, the integral along each successive arm is the same as the integral from the previous arm. Thus, the total of the integral along all the arms is $$ n\left(1-e^{2\pi i/n}\right)\int_0^1\frac{\mathrm{d}t}{(1-t^n)^{1/n}}\tag{2} $$ Now, if $z$ follows a circle of radius $R$ as $R\to\infty$, $f(z)\sim\frac{e^{\pi i/n}}z$ so the integral along a large clockwise circle is $$ -2\pi ie^{\pi i/n}\tag{3} $$ Since $(2)$ is equal to $(3)$, we have $$ \begin{align} \int_0^1\frac{\mathrm{d}t}{(1-t^n)^{1/n}} &=\frac{-2\pi ie^{\pi i/n}}{n\left(1-e^{2\pi i/n}\right)}\\ &=\frac\pi{n\sin(\pi/n)}\tag{4} \end{align} $$


The Branch Cut

Consider the function defined by $$ \begin{align} g(z) &=\pi i-\log(1-2^{-n})+\int_2^z\left(\vphantom{\sum_{k=0}^{n-1}}\right.\overbrace{\vphantom{\sum_{k=0}^{n-1}}\frac nw}^{\text{residue$=n$}}+\overbrace{\sum_{k=0}^{n-1}\frac1{e^{2\pi ik/n}-w}}^{\text{residue$=-n$}}\left.\vphantom{\sum_{k=0}^{n-1}}\right)\,\mathrm{d}w\\ &=\log\left(\frac{z^n}{1-z^n}\right)\tag{5} \end{align} $$ $g$ is well defined as long as the path of integration does not circle any of the poles of the integrand, or circles them all (since the sum of the residues is $0$); that is, the poles at $0$ and $\{e^{2\pi ik/n}:k\in\mathbb{Z}\}$. Circling none or all of these points is guaranteed by the branch cut in the diagram above. Therefore, with the branch cuts in the diagram above, $(5)$ allows us to define $$ \frac1ze^{g(z)/n}=\frac1{(1-z^n)^{1/n}}\tag{6} $$


In questions like this one, in order to avoid the problems of defining the right branch of the logarithm or the $n$th root, I suggest to, first start with a change of variables and to use Residue Theorem afterwards.

So, here how I do this. First the change of variables $x^n=\dfrac{e^t}{1+e^t}$ we get $$ I_n~{\buildrel {\rm def}\over =}~\int_0^1\frac{dx}{\root{n}\of{1-x^n}}=\frac{1}{n}\int_{-\infty}^\infty \frac{e^{t/n}}{1+e^t}dt $$ Next we integrate $F(z)=\dfrac{e^{z/n}}{n(1+e^z)}$ on the rectangle $\Gamma_R$ with vertexes $-R$, $R$,$R+2i\pi$ and $-R+2i\pi$. Letting $R$ tend to $+\infty$ we get $$ I_n-e^{2i\pi/n}I_n=2i\pi~\hbox{Res}(F(z),i\pi)=-2i\frac{\pi}{n} e^{i\pi/n}. $$ This yields $$I_n=\frac{\pi}{n\sin(\pi/n)}.$$ Note that we didn't use the fact that $n$ is a natural number. This is valid for any real $n>1$.


Using the substitution $$ x^n=\frac{z^n}{1+z^n}\qquad\text{and}\qquad\mathrm{d}x=\frac{\mathrm{d}z}{(1+z^n)^{1+1/n}} $$ we get $$ \begin{align} \int_0^1\frac{\color{#00A000}{\mathrm{d}x}}{\color{#C00000}{(1-x^n)^{1/n}}} &=\int_0^\infty\color{#C00000}{(1+z^n)^{1/n}}\color{#00A000}{\frac{\mathrm{d}z}{(1+z^n)^{1+1/n}}}\\ &=\int_0^\infty\frac{\mathrm{d}z}{1+z^n}\\[6pt] &=\frac\pi{n\sin(\pi/n)} \end{align} $$ Using the result of the contour integration in this answer, which says $$ \int_0^\infty\frac{x^m}{1+x^n}\,\mathrm{d}x=\frac{\pi}{n}\csc\left(\pi\frac{m+1}{n}\right) $$