Optimal. Leaf size=37 \[ \sqrt{3-x^2}-\sqrt{3} \tanh ^{-1}\left (\frac{\sqrt{3-x^2}}{\sqrt{3}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0195136, antiderivative size = 37, 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, Rules used = {266, 50, 63, 206} \[ \sqrt{3-x^2}-\sqrt{3} \tanh ^{-1}\left (\frac{\sqrt{3-x^2}}{\sqrt{3}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 266
Rule 50
Rule 63
Rule 206
Rubi steps
\begin{align*} \int \frac{\sqrt{3-x^2}}{x} \, dx &=\frac{1}{2} \operatorname{Subst}\left (\int \frac{\sqrt{3-x}}{x} \, dx,x,x^2\right )\\ &=\sqrt{3-x^2}+\frac{3}{2} \operatorname{Subst}\left (\int \frac{1}{\sqrt{3-x} x} \, dx,x,x^2\right )\\ &=\sqrt{3-x^2}-3 \operatorname{Subst}\left (\int \frac{1}{3-x^2} \, dx,x,\sqrt{3-x^2}\right )\\ &=\sqrt{3-x^2}-\sqrt{3} \tanh ^{-1}\left (\frac{\sqrt{3-x^2}}{\sqrt{3}}\right )\\ \end{align*}
Mathematica [A] time = 0.0068919, size = 33, normalized size = 0.89 \[ \sqrt{3-x^2}-\sqrt{3} \tanh ^{-1}\left (\sqrt{1-\frac{x^2}{3}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.004, size = 30, normalized size = 0.8 \begin{align*} \sqrt{-{x}^{2}+3}-\sqrt{3}{\it Artanh} \left ({\sqrt{3}{\frac{1}{\sqrt{-{x}^{2}+3}}}} \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.42444, size = 55, normalized size = 1.49 \begin{align*} -\sqrt{3} \log \left (\frac{2 \, \sqrt{3} \sqrt{-x^{2} + 3}}{{\left | x \right |}} + \frac{6}{{\left | x \right |}}\right ) + \sqrt{-x^{2} + 3} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.12917, size = 104, normalized size = 2.81 \begin{align*} \frac{1}{2} \, \sqrt{3} \log \left (-\frac{x^{2} + 2 \, \sqrt{3} \sqrt{-x^{2} + 3} - 6}{x^{2}}\right ) + \sqrt{-x^{2} + 3} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.37867, size = 88, normalized size = 2.38 \begin{align*} \begin{cases} i \sqrt{x^{2} - 3} - \sqrt{3} \log{\left (x \right )} + \frac{\sqrt{3} \log{\left (x^{2} \right )}}{2} + \sqrt{3} i \operatorname{asin}{\left (\frac{\sqrt{3}}{x} \right )} & \text{for}\: \frac{\left |{x^{2}}\right |}{3} > 1 \\\sqrt{3 - x^{2}} + \frac{\sqrt{3} \log{\left (x^{2} \right )}}{2} - \sqrt{3} \log{\left (\sqrt{1 - \frac{x^{2}}{3}} + 1 \right )} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.09109, size = 63, normalized size = 1.7 \begin{align*} \frac{1}{2} \, \sqrt{3} \log \left (\frac{\sqrt{3} - \sqrt{-x^{2} + 3}}{\sqrt{3} + \sqrt{-x^{2} + 3}}\right ) + \sqrt{-x^{2} + 3} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]