3.11.8 \(\int \sqrt {\frac {x^n}{1+x^n}} \, dx\) [1008]

Optimal. Leaf size=46 \[ \frac {2 x \sqrt {x^n} \, _2F_1\left (\frac {1}{2},\frac {1}{2} \left (1+\frac {2}{n}\right );\frac {1}{2} \left (3+\frac {2}{n}\right );-x^n\right )}{2+n} \]

[Out]

2*x*hypergeom([1/2, 1/2+1/n],[3/2+1/n],-x^n)*(x^n)^(1/2)/(2+n)

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 46, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {1978, 15, 371} \begin {gather*} \frac {2 x \sqrt {x^n} \, _2F_1\left (\frac {1}{2},\frac {1}{2} \left (1+\frac {2}{n}\right );\frac {1}{2} \left (3+\frac {2}{n}\right );-x^n\right )}{n+2} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sqrt[x^n/(1 + x^n)],x]

[Out]

(2*x*Sqrt[x^n]*Hypergeometric2F1[1/2, (1 + 2/n)/2, (3 + 2/n)/2, -x^n])/(2 + n)

Rule 15

Int[(u_.)*((a_.)*(x_)^(n_))^(m_), x_Symbol] :> Dist[a^IntPart[m]*((a*x^n)^FracPart[m]/x^(n*FracPart[m])), Int[
u*x^(m*n), x], x] /; FreeQ[{a, m, n}, x] &&  !IntegerQ[m]

Rule 371

Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[a^p*((c*x)^(m + 1)/(c*(m + 1)))*Hyperg
eometric2F1[-p, (m + 1)/n, (m + 1)/n + 1, (-b)*(x^n/a)], x] /; FreeQ[{a, b, c, m, n, p}, x] &&  !IGtQ[p, 0] &&
 (ILtQ[p, 0] || GtQ[a, 0])

Rule 1978

Int[(u_.)*(((e_.)*((a_.) + (b_.)*(x_)^(n_.)))/((c_) + (d_.)*(x_)^(n_.)))^(p_), x_Symbol] :> Int[u*((a*e + b*e*
x^n)^p/(c + d*x^n)^p), x] /; FreeQ[{a, b, c, d, e, n, p}, x] && GtQ[b*d*e, 0] && GtQ[c - a*(d/b), 0]

Rubi steps

\begin {align*} \int \sqrt {\frac {x^n}{1+x^n}} \, dx &=\int \frac {\sqrt {x^n}}{\sqrt {1+x^n}} \, dx\\ &=\left (x^{-n/2} \sqrt {x^n}\right ) \int \frac {x^{n/2}}{\sqrt {1+x^n}} \, dx\\ &=\frac {2 x \sqrt {x^n} \, _2F_1\left (\frac {1}{2},\frac {1}{2} \left (1+\frac {2}{n}\right );\frac {1}{2} \left (3+\frac {2}{n}\right );-x^n\right )}{2+n}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 38, normalized size = 0.83 \begin {gather*} \frac {2 x \sqrt {x^n} \, _2F_1\left (\frac {1}{2},\frac {1}{2}+\frac {1}{n};\frac {3}{2}+\frac {1}{n};-x^n\right )}{2+n} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[x^n/(1 + x^n)],x]

[Out]

(2*x*Sqrt[x^n]*Hypergeometric2F1[1/2, 1/2 + n^(-1), 3/2 + n^(-1), -x^n])/(2 + n)

________________________________________________________________________________________

Maple [F]
time = 0.01, size = 0, normalized size = 0.00 \[\int \sqrt {\frac {x^{n}}{1+x^{n}}}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x^n/(1+x^n))^(1/2),x)

[Out]

int((x^n/(1+x^n))^(1/2),x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x^n/(1+x^n))^(1/2),x, algorithm="maxima")

[Out]

integrate(sqrt(x^n/(x^n + 1)), x)

________________________________________________________________________________________

Fricas [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x^n/(1+x^n))^(1/2),x, algorithm="fricas")

[Out]

Exception raised: TypeError >>  Error detected within library code:   integrate: implementation incomplete (co
nstant residues)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {\frac {x^{n}}{x^{n} + 1}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x**n/(1+x**n))**(1/2),x)

[Out]

Integral(sqrt(x**n/(x**n + 1)), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x^n/(1+x^n))^(1/2),x, algorithm="giac")

[Out]

integrate(sqrt(x^n/(x^n + 1)), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \sqrt {\frac {x^n}{x^n+1}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x^n/(x^n + 1))^(1/2),x)

[Out]

int((x^n/(x^n + 1))^(1/2), x)

________________________________________________________________________________________