Optimal. Leaf size=60 \[ \frac {5}{8} \left (\frac {1}{x^2}-1\right )^{3/2} x^2-\frac {15}{8} \sqrt {\frac {1}{x^2}-1}+\frac {15}{8} \tan ^{-1}\left (\sqrt {\frac {1}{x^2}-1}\right )+\frac {1}{4} \left (\frac {1}{x^2}-1\right )^{5/2} x^4 \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 60, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {25, 266, 47, 50, 63, 203} \[ \frac {1}{4} \left (\frac {1}{x^2}-1\right )^{5/2} x^4+\frac {5}{8} \left (\frac {1}{x^2}-1\right )^{3/2} x^2-\frac {15}{8} \sqrt {\frac {1}{x^2}-1}+\frac {15}{8} \tan ^{-1}\left (\sqrt {\frac {1}{x^2}-1}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 25
Rule 47
Rule 50
Rule 63
Rule 203
Rule 266
Rubi steps
\begin {align*} \int \frac {\sqrt {-1+\frac {1}{x^2}} \left (-1+x^2\right )^2}{x} \, dx &=\int \left (-1+\frac {1}{x^2}\right )^{5/2} x^3 \, dx\\ &=-\left (\frac {1}{2} \operatorname {Subst}\left (\int \frac {(-1+x)^{5/2}}{x^3} \, dx,x,\frac {1}{x^2}\right )\right )\\ &=\frac {1}{4} \left (-1+\frac {1}{x^2}\right )^{5/2} x^4-\frac {5}{8} \operatorname {Subst}\left (\int \frac {(-1+x)^{3/2}}{x^2} \, dx,x,\frac {1}{x^2}\right )\\ &=\frac {5}{8} \left (-1+\frac {1}{x^2}\right )^{3/2} x^2+\frac {1}{4} \left (-1+\frac {1}{x^2}\right )^{5/2} x^4-\frac {15}{16} \operatorname {Subst}\left (\int \frac {\sqrt {-1+x}}{x} \, dx,x,\frac {1}{x^2}\right )\\ &=-\frac {15}{8} \sqrt {-1+\frac {1}{x^2}}+\frac {5}{8} \left (-1+\frac {1}{x^2}\right )^{3/2} x^2+\frac {1}{4} \left (-1+\frac {1}{x^2}\right )^{5/2} x^4+\frac {15}{16} \operatorname {Subst}\left (\int \frac {1}{\sqrt {-1+x} x} \, dx,x,\frac {1}{x^2}\right )\\ &=-\frac {15}{8} \sqrt {-1+\frac {1}{x^2}}+\frac {5}{8} \left (-1+\frac {1}{x^2}\right )^{3/2} x^2+\frac {1}{4} \left (-1+\frac {1}{x^2}\right )^{5/2} x^4+\frac {15}{8} \operatorname {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sqrt {-1+\frac {1}{x^2}}\right )\\ &=-\frac {15}{8} \sqrt {-1+\frac {1}{x^2}}+\frac {5}{8} \left (-1+\frac {1}{x^2}\right )^{3/2} x^2+\frac {1}{4} \left (-1+\frac {1}{x^2}\right )^{5/2} x^4+\frac {15}{8} \tan ^{-1}\left (\sqrt {-1+\frac {1}{x^2}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.01, size = 35, normalized size = 0.58 \[ -\frac {\sqrt {\frac {1}{x^2}-1} \, _2F_1\left (-\frac {5}{2},-\frac {1}{2};\frac {1}{2};x^2\right )}{\sqrt {1-x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.45, size = 50, normalized size = 0.83 \[ \frac {1}{8} \, {\left (2 \, x^{4} - 9 \, x^{2} - 8\right )} \sqrt {-\frac {x^{2} - 1}{x^{2}}} + \frac {15}{4} \, \arctan \left (\frac {x \sqrt {-\frac {x^{2} - 1}{x^{2}}} - 1}{x}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.43, size = 67, normalized size = 1.12 \[ \frac {1}{8} \, {\left (2 \, x^{2} \mathrm {sgn}\relax (x) - 9 \, \mathrm {sgn}\relax (x)\right )} \sqrt {-x^{2} + 1} x - \frac {15}{8} \, \arcsin \relax (x) \mathrm {sgn}\relax (x) + \frac {x \mathrm {sgn}\relax (x)}{2 \, {\left (\sqrt {-x^{2} + 1} - 1\right )}} - \frac {{\left (\sqrt {-x^{2} + 1} - 1\right )} \mathrm {sgn}\relax (x)}{2 \, x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 69, normalized size = 1.15 \[ -\frac {\sqrt {-\frac {x^{2}-1}{x^{2}}}\, \left (2 \left (-x^{2}+1\right )^{\frac {3}{2}} x^{2}+15 \sqrt {-x^{2}+1}\, x^{2}+15 x \arcsin \relax (x )+8 \left (-x^{2}+1\right )^{\frac {3}{2}}\right )}{8 \sqrt {-x^{2}+1}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 2.00, size = 67, normalized size = 1.12 \[ -x^{2} \sqrt {\frac {1}{x^{2}} - 1} - \sqrt {\frac {1}{x^{2}} - 1} - \frac {{\left (\frac {1}{x^{2}} - 1\right )}^{\frac {3}{2}} - \sqrt {\frac {1}{x^{2}} - 1}}{8 \, {\left ({\left (\frac {1}{x^{2}} - 1\right )}^{2} + \frac {2}{x^{2}} - 1\right )}} + \frac {15}{8} \, \arctan \left (\sqrt {\frac {1}{x^{2}} - 1}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.36, size = 44, normalized size = 0.73 \[ \frac {15\,\mathrm {atan}\left (\sqrt {\frac {1}{x^2}-1}\right )}{8}-\sqrt {\frac {1}{x^2}-1}-\frac {7\,x^4\,\sqrt {\frac {1}{x^2}-1}}{8}-\frac {9\,x^4\,{\left (\frac {1}{x^2}-1\right )}^{3/2}}{8} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 118.56, size = 60, normalized size = 1.00 \[ \frac {x^{4} \sqrt {-1 + \frac {1}{x^{2}}} \left (2 - \frac {1}{x^{2}}\right )}{8} - x^{2} \sqrt {-1 + \frac {1}{x^{2}}} - \sqrt {-1 + \frac {1}{x^{2}}} + \frac {15 \operatorname {atan}{\left (\sqrt {-1 + \frac {1}{x^{2}}} \right )}}{8} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________