Optimal. Leaf size=52 \[ \frac{\sqrt{-\frac{x^2}{1-x^2}} \sqrt{x^2-1} \tan ^{-1}\left (\frac{\sqrt{x^2-1}}{\sqrt{2}}\right )}{\sqrt{2} x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0989364, antiderivative size = 52, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.174, Rules used = {6719, 444, 63, 203} \[ \frac{\sqrt{-\frac{x^2}{1-x^2}} \sqrt{x^2-1} \tan ^{-1}\left (\frac{\sqrt{x^2-1}}{\sqrt{2}}\right )}{\sqrt{2} x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6719
Rule 444
Rule 63
Rule 203
Rubi steps
\begin{align*} \int \frac{\sqrt{\frac{x^2}{-1+x^2}}}{1+x^2} \, dx &=\frac{\left (\sqrt{\frac{x^2}{-1+x^2}} \sqrt{-1+x^2}\right ) \int \frac{x}{\sqrt{-1+x^2} \left (1+x^2\right )} \, dx}{x}\\ &=\frac{\left (\sqrt{\frac{x^2}{-1+x^2}} \sqrt{-1+x^2}\right ) \operatorname{Subst}\left (\int \frac{1}{\sqrt{-1+x} (1+x)} \, dx,x,x^2\right )}{2 x}\\ &=\frac{\left (\sqrt{\frac{x^2}{-1+x^2}} \sqrt{-1+x^2}\right ) \operatorname{Subst}\left (\int \frac{1}{2+x^2} \, dx,x,\sqrt{-1+x^2}\right )}{x}\\ &=\frac{\sqrt{-\frac{x^2}{1-x^2}} \sqrt{-1+x^2} \tan ^{-1}\left (\frac{\sqrt{-1+x^2}}{\sqrt{2}}\right )}{\sqrt{2} x}\\ \end{align*}
Mathematica [A] time = 0.0160615, size = 49, normalized size = 0.94 \[ \frac{\sqrt{\frac{x^2}{x^2-1}} \sqrt{x^2-1} \tan ^{-1}\left (\frac{\sqrt{x^2-1}}{\sqrt{2}}\right )}{\sqrt{2} x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.011, size = 42, normalized size = 0.8 \begin{align*}{\frac{\sqrt{2}}{2\,x}\sqrt{{\frac{{x}^{2}}{{x}^{2}-1}}}\sqrt{{x}^{2}-1}\arctan \left ({\frac{\sqrt{2}}{2}\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{x^{2}}{x^{2} - 1}}}{x^{2} + 1}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.48377, size = 88, normalized size = 1.69 \begin{align*} \frac{1}{2} \, \sqrt{2} \arctan \left (\frac{\sqrt{2}{\left (x^{2} - 1\right )} \sqrt{\frac{x^{2}}{x^{2} - 1}}}{2 \, x}\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{x^{2}}{x^{2} - 1}}}{x^{2} + 1}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.16685, size = 55, normalized size = 1.06 \begin{align*} \frac{1}{2} \, \sqrt{2} \arctan \left (\frac{1}{2} \, \sqrt{2} \sqrt{x^{2} - 1}\right ) \mathrm{sgn}\left (x^{2} - 1\right ) \mathrm{sgn}\left (x\right ) + \frac{1}{2} \, \sqrt{2} \arctan \left (\frac{1}{2} \, \sqrt{2} i\right ) \mathrm{sgn}\left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]