Optimal. Leaf size=22 \[ x \left (-\sqrt{\frac{a}{x^2}}\right ) \tanh ^{-1}\left (\sqrt{x^2+1}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0085699, antiderivative size = 22, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.21, Rules used = {15, 266, 63, 207} \[ x \left (-\sqrt{\frac{a}{x^2}}\right ) \tanh ^{-1}\left (\sqrt{x^2+1}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 15
Rule 266
Rule 63
Rule 207
Rubi steps
\begin{align*} \int \frac{\sqrt{\frac{a}{x^2}}}{\sqrt{1+x^2}} \, dx &=\left (\sqrt{\frac{a}{x^2}} x\right ) \int \frac{1}{x \sqrt{1+x^2}} \, dx\\ &=\frac{1}{2} \left (\sqrt{\frac{a}{x^2}} x\right ) \operatorname{Subst}\left (\int \frac{1}{x \sqrt{1+x}} \, dx,x,x^2\right )\\ &=\left (\sqrt{\frac{a}{x^2}} x\right ) \operatorname{Subst}\left (\int \frac{1}{-1+x^2} \, dx,x,\sqrt{1+x^2}\right )\\ &=-\sqrt{\frac{a}{x^2}} x \tanh ^{-1}\left (\sqrt{1+x^2}\right )\\ \end{align*}
Mathematica [A] time = 0.003938, size = 22, normalized size = 1. \[ x \left (-\sqrt{\frac{a}{x^2}}\right ) \tanh ^{-1}\left (\sqrt{x^2+1}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.005, size = 19, normalized size = 0.9 \begin{align*} -\sqrt{{\frac{a}{{x}^{2}}}}x{\it Artanh} \left ({\frac{1}{\sqrt{{x}^{2}+1}}} \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{\frac{a}{x^{2}}}}{\sqrt{x^{2} + 1}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.00657, size = 182, normalized size = 8.27 \begin{align*} \left [x \sqrt{\frac{a}{x^{2}}} \log \left (\frac{\sqrt{x^{2} + 1} - 1}{x}\right ), 2 \, \sqrt{-a} \arctan \left (-\frac{\sqrt{-a} x^{2} \sqrt{\frac{a}{x^{2}}} - \sqrt{x^{2} + 1} \sqrt{-a} x \sqrt{\frac{a}{x^{2}}}}{a}\right )\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{\frac{a}{x^{2}}}}{\sqrt{x^{2} + 1}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.12686, size = 41, normalized size = 1.86 \begin{align*} -\frac{1}{2} \, \sqrt{a}{\left (\log \left (\sqrt{x^{2} + 1} + 1\right ) - \log \left (\sqrt{x^{2} + 1} - 1\right )\right )} \mathrm{sgn}\left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]