How could we prove that
$$\int_0^1\sqrt{\frac{1+x^n}{1-x^n}}~dx~=~a\cdot2^{a-1}~\bigg[\frac12~B\bigg(\frac a2,~\frac a2\bigg)~+~B\bigg(\dfrac{a+1}2,~\dfrac{a+1}2\bigg)\bigg],$$
where $a=+~\dfrac1n$ , and
$$\int_0^1\sqrt[n]{\frac{1+x^2}{1-x^2}}~dx~=~a\cdot2^{a-1}~\bigg[\frac12~B\bigg(\frac a2,~\frac a2\bigg)~-~B\bigg(\dfrac{a+1}2,~\dfrac{a+1}2\bigg)\bigg],$$
where $a=-~\dfrac1n$ ?
This question arose as a generalization of the fact that the arc length of the $($co$)$sine function over an interval of the form $\bigg(k~\dfrac\pi2,~m~\dfrac\pi2\bigg)$, with $k,~m\in\mathbb Z$, can be expressed in terms of $\Gamma$ functions, which was somewhat surprising, since the evaluation of such arc lengths usually involves elliptic integrals; indeed, it was one of the main historical reasons for defining them in the first place.
I tried substituting $x^n=\cos2t$, and then employing the well-known trigonometric formulas for $1\pm\cos2t$, in the hopes of reducing the original problem to a beta function by means of Wallis' integrals, since $\sqrt{\dfrac{1+x^n}{1-x^n}}~=~\cot(t)$, but this approach ultimately lead me nowhere $($which is not to imply that the same method might not prove fruitful in someone else's skilled hands$)$.