3.8.30 \(\int \frac {\sqrt {\frac {x}{1+x}}}{x} \, dx\) [730]

Optimal. Leaf size=8 \[ 2 \sinh ^{-1}\left (\sqrt {x}\right ) \]

[Out]

2*arcsinh(x^(1/2))

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 8, 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, 56, 221} \begin {gather*} 2 \sinh ^{-1}\left (\sqrt {x}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

2*ArcSinh[Sqrt[x]]

Rule 56

Int[1/(Sqrt[(a_.) + (b_.)*(x_)]*Sqrt[(c_.) + (d_.)*(x_)]), x_Symbol] :> Dist[2/Sqrt[b], Subst[Int[1/Sqrt[b*c -
 a*d + d*x^2], x], x, Sqrt[a + b*x]], x] /; FreeQ[{a, b, c, d}, x] && GtQ[b*c - a*d, 0] && GtQ[b, 0]

Rule 221

Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Simp[ArcSinh[Rt[b, 2]*(x/Sqrt[a])]/Rt[b, 2], x] /; FreeQ[{a, b},
 x] && GtQ[a, 0] && PosQ[b]

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 \frac {\sqrt {\frac {x}{1+x}}}{x} \, dx &=\int \frac {1}{\sqrt {x} \sqrt {1+x}} \, dx\\ &=2 \text {Subst}\left (\int \frac {1}{\sqrt {1+x^2}} \, dx,x,\sqrt {x}\right )\\ &=2 \sinh ^{-1}\left (\sqrt {x}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.00, size = 14, normalized size = 1.75 \begin {gather*} 2 \tanh ^{-1}\left (\sqrt {\frac {x}{1+x}}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

2*ArcTanh[Sqrt[x/(1 + x)]]

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(31\) vs. \(2(6)=12\).
time = 0.06, size = 32, normalized size = 4.00

method result size
default \(\frac {\sqrt {\frac {x}{1+x}}\, \left (1+x \right ) \ln \left (x +\frac {1}{2}+\sqrt {x^{2}+x}\right )}{\sqrt {x \left (1+x \right )}}\) \(32\)
trager \(-\ln \left (2 \sqrt {\frac {x}{1+x}}\, x +2 \sqrt {\frac {x}{1+x}}-2 x -1\right )\) \(32\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x/(1+x))^(1/2)/x,x,method=_RETURNVERBOSE)

[Out]

(x/(1+x))^(1/2)*(1+x)/(x*(1+x))^(1/2)*ln(x+1/2+(x^2+x)^(1/2))

________________________________________________________________________________________

Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 27 vs. \(2 (6) = 12\).
time = 0.28, size = 27, normalized size = 3.38 \begin {gather*} \log \left (\sqrt {\frac {x}{x + 1}} + 1\right ) - \log \left (\sqrt {\frac {x}{x + 1}} - 1\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

log(sqrt(x/(x + 1)) + 1) - log(sqrt(x/(x + 1)) - 1)

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 27 vs. \(2 (6) = 12\).
time = 0.35, size = 27, normalized size = 3.38 \begin {gather*} \log \left (\sqrt {\frac {x}{x + 1}} + 1\right ) - \log \left (\sqrt {\frac {x}{x + 1}} - 1\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

log(sqrt(x/(x + 1)) + 1) - log(sqrt(x/(x + 1)) - 1)

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 22 vs. \(2 (6) = 12\).
time = 2.34, size = 22, normalized size = 2.75 \begin {gather*} -\log \left ({\left | -2 \, x + 2 \, \sqrt {x^{2} + x} - 1 \right |}\right ) \mathrm {sgn}\left (x + 1\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-log(abs(-2*x + 2*sqrt(x^2 + x) - 1))*sgn(x + 1)

________________________________________________________________________________________

Mupad [B]
time = 0.06, size = 12, normalized size = 1.50 \begin {gather*} 2\,\mathrm {atanh}\left (\sqrt {\frac {x}{x+1}}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

2*atanh((x/(x + 1))^(1/2))

________________________________________________________________________________________