Optimal. Leaf size=30 \[ \sqrt{9-x^2}-3 \tanh ^{-1}\left (\frac{\sqrt{9-x^2}}{3}\right ) \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0403956, antiderivative size = 30, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.267 \[ \sqrt{9-x^2}-3 \tanh ^{-1}\left (\frac{\sqrt{9-x^2}}{3}\right ) \]
Antiderivative was successfully verified.
[In] Int[Sqrt[9 - x^2]/x,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 2.56495, size = 20, normalized size = 0.67 \[ \sqrt{- x^{2} + 9} - 3 \operatorname{atanh}{\left (\frac{\sqrt{- x^{2} + 9}}{3} \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((-x**2+9)**(1/2)/x,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0124659, size = 32, normalized size = 1.07 \[ \sqrt{9-x^2}-3 \log \left (\sqrt{9-x^2}+3\right )+3 \log (x) \]
Antiderivative was successfully verified.
[In] Integrate[Sqrt[9 - x^2]/x,x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.006, size = 25, normalized size = 0.8 \[ \sqrt{-{x}^{2}+9}-3\,{\it Artanh} \left ( 3\,{\frac{1}{\sqrt{-{x}^{2}+9}}} \right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((-x^2+9)^(1/2)/x,x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.5095, size = 47, normalized size = 1.57 \[ \sqrt{-x^{2} + 9} - 3 \, \log \left (\frac{6 \, \sqrt{-x^{2} + 9}}{{\left | x \right |}} + \frac{18}{{\left | x \right |}}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(-x^2 + 9)/x,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.200965, size = 65, normalized size = 2.17 \[ -\frac{x^{2} - 3 \,{\left (\sqrt{-x^{2} + 9} - 3\right )} \log \left (\frac{\sqrt{-x^{2} + 9} - 3}{x}\right )}{\sqrt{-x^{2} + 9} - 3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(-x^2 + 9)/x,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 2.25545, size = 68, normalized size = 2.27 \[ \begin{cases} i \sqrt{x^{2} - 9} - 3 \log{\left (x \right )} + \frac{3 \log{\left (x^{2} \right )}}{2} + 3 i \operatorname{asin}{\left (\frac{3}{x} \right )} & \text{for}\: \frac{\left |{x^{2}}\right |}{9} > 1 \\\sqrt{- x^{2} + 9} + \frac{3 \log{\left (x^{2} \right )}}{2} - 3 \log{\left (\sqrt{- \frac{x^{2}}{9} + 1} + 1 \right )} & \text{otherwise} \end{cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((-x**2+9)**(1/2)/x,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.223263, size = 54, normalized size = 1.8 \[ \sqrt{-x^{2} + 9} - \frac{3}{2} \,{\rm ln}\left (\sqrt{-x^{2} + 9} + 3\right ) + \frac{3}{2} \,{\rm ln}\left (-\sqrt{-x^{2} + 9} + 3\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(-x^2 + 9)/x,x, algorithm="giac")
[Out]