3.816 \(\int \frac{\sqrt{x}}{x-x^3} \, dx\)

Optimal. Leaf size=13 \[ \tan ^{-1}\left (\sqrt{x}\right )+\tanh ^{-1}\left (\sqrt{x}\right ) \]

[Out]

ArcTan[Sqrt[x]] + ArcTanh[Sqrt[x]]

_______________________________________________________________________________________

Rubi [A]  time = 0.0191388, antiderivative size = 13, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333 \[ \tan ^{-1}\left (\sqrt{x}\right )+\tanh ^{-1}\left (\sqrt{x}\right ) \]

Antiderivative was successfully verified.

[In]  Int[Sqrt[x]/(x - x^3),x]

[Out]

ArcTan[Sqrt[x]] + ArcTanh[Sqrt[x]]

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 2.37322, size = 12, normalized size = 0.92 \[ \operatorname{atan}{\left (\sqrt{x} \right )} + \operatorname{atanh}{\left (\sqrt{x} \right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate(x**(1/2)/(-x**3+x),x)

[Out]

atan(sqrt(x)) + atanh(sqrt(x))

_______________________________________________________________________________________

Mathematica [B]  time = 0.00756152, size = 33, normalized size = 2.54 \[ -\frac{1}{2} \log \left (1-\sqrt{x}\right )+\frac{1}{2} \log \left (\sqrt{x}+1\right )+\tan ^{-1}\left (\sqrt{x}\right ) \]

Antiderivative was successfully verified.

[In]  Integrate[Sqrt[x]/(x - x^3),x]

[Out]

ArcTan[Sqrt[x]] - Log[1 - Sqrt[x]]/2 + Log[1 + Sqrt[x]]/2

_______________________________________________________________________________________

Maple [A]  time = 0.005, size = 10, normalized size = 0.8 \[ \arctan \left ( \sqrt{x} \right ) +{\it Artanh} \left ( \sqrt{x} \right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int(x^(1/2)/(-x^3+x),x)

[Out]

arctan(x^(1/2))+arctanh(x^(1/2))

_______________________________________________________________________________________

Maxima [A]  time = 0.794672, size = 28, normalized size = 2.15 \[ \arctan \left (\sqrt{x}\right ) + \frac{1}{2} \, \log \left (\sqrt{x} + 1\right ) - \frac{1}{2} \, \log \left (\sqrt{x} - 1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(-sqrt(x)/(x^3 - x),x, algorithm="maxima")

[Out]

arctan(sqrt(x)) + 1/2*log(sqrt(x) + 1) - 1/2*log(sqrt(x) - 1)

_______________________________________________________________________________________

Fricas [A]  time = 0.28008, size = 28, normalized size = 2.15 \[ \arctan \left (\sqrt{x}\right ) + \frac{1}{2} \, \log \left (\sqrt{x} + 1\right ) - \frac{1}{2} \, \log \left (\sqrt{x} - 1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(-sqrt(x)/(x^3 - x),x, algorithm="fricas")

[Out]

arctan(sqrt(x)) + 1/2*log(sqrt(x) + 1) - 1/2*log(sqrt(x) - 1)

_______________________________________________________________________________________

Sympy [A]  time = 164.965, size = 26, normalized size = 2. \[ - \frac{\log{\left (\sqrt{x} - 1 \right )}}{2} + \frac{\log{\left (\sqrt{x} + 1 \right )}}{2} + \operatorname{atan}{\left (\sqrt{x} \right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(x**(1/2)/(-x**3+x),x)

[Out]

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

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.268558, size = 30, normalized size = 2.31 \[ \arctan \left (\sqrt{x}\right ) + \frac{1}{2} \,{\rm ln}\left (\sqrt{x} + 1\right ) - \frac{1}{2} \,{\rm ln}\left ({\left | \sqrt{x} - 1 \right |}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(-sqrt(x)/(x^3 - x),x, algorithm="giac")

[Out]

arctan(sqrt(x)) + 1/2*ln(sqrt(x) + 1) - 1/2*ln(abs(sqrt(x) - 1))