Optimal. Leaf size=133 \[ \frac {\sqrt {-1+x^2} \left (-2+17 x^2\right )}{64 x^4}-\frac {3 \sec ^{-1}(x)}{8 x \sqrt {x^2}}+\frac {9 x \sec ^{-1}(x)}{64 \sqrt {x^2}}+\frac {\left (-1+x^2\right )^2 \sec ^{-1}(x)}{8 x^3 \sqrt {x^2}}-\frac {3 \sqrt {-1+x^2} \sec ^{-1}(x)^2}{8 x^2}-\frac {\left (-1+x^2\right )^{3/2} \sec ^{-1}(x)^2}{4 x^4}+\frac {x \sec ^{-1}(x)^3}{8 \sqrt {x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.14, antiderivative size = 172, normalized size of antiderivative = 1.29, number of steps
used = 11, number of rules used = 9, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.529, Rules used = {5350, 4744,
4742, 4738, 4724, 327, 222, 4768, 201} \begin {gather*} \frac {\left (1-\frac {1}{x^2}\right )^{3/2}}{32 \sqrt {x^2}}+\frac {15 \sqrt {1-\frac {1}{x^2}}}{64 \sqrt {x^2}}-\frac {9 \sqrt {x^2} \csc ^{-1}(x)}{64 x}+\frac {\sqrt {x^2} \sec ^{-1}(x)^3}{8 x}-\frac {\left (1-\frac {1}{x^2}\right )^{3/2} \sec ^{-1}(x)^2}{4 \sqrt {x^2}}-\frac {3 \sqrt {1-\frac {1}{x^2}} \sec ^{-1}(x)^2}{8 \sqrt {x^2}}+\frac {\left (1-\frac {1}{x^2}\right )^2 \sqrt {x^2} \sec ^{-1}(x)}{8 x}-\frac {3 \sqrt {x^2} \sec ^{-1}(x)}{8 x^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 201
Rule 222
Rule 327
Rule 4724
Rule 4738
Rule 4742
Rule 4744
Rule 4768
Rule 5350
Rubi steps
\begin {align*} \int \frac {\left (-1+x^2\right )^{3/2} \sec ^{-1}(x)^2}{x^5} \, dx &=-\frac {\sqrt {x^2} \text {Subst}\left (\int \left (1-x^2\right )^{3/2} \cos ^{-1}(x)^2 \, dx,x,\frac {1}{x}\right )}{x}\\ &=-\frac {\left (1-\frac {1}{x^2}\right )^{3/2} \sec ^{-1}(x)^2}{4 \sqrt {x^2}}-\frac {\sqrt {x^2} \text {Subst}\left (\int x \left (1-x^2\right ) \cos ^{-1}(x) \, dx,x,\frac {1}{x}\right )}{2 x}-\frac {\left (3 \sqrt {x^2}\right ) \text {Subst}\left (\int \sqrt {1-x^2} \cos ^{-1}(x)^2 \, dx,x,\frac {1}{x}\right )}{4 x}\\ &=\frac {\left (1-\frac {1}{x^2}\right )^2 \sqrt {x^2} \sec ^{-1}(x)}{8 x}-\frac {3 \sqrt {1-\frac {1}{x^2}} \sec ^{-1}(x)^2}{8 \sqrt {x^2}}-\frac {\left (1-\frac {1}{x^2}\right )^{3/2} \sec ^{-1}(x)^2}{4 \sqrt {x^2}}+\frac {\sqrt {x^2} \text {Subst}\left (\int \left (1-x^2\right )^{3/2} \, dx,x,\frac {1}{x}\right )}{8 x}-\frac {\left (3 \sqrt {x^2}\right ) \text {Subst}\left (\int \frac {\cos ^{-1}(x)^2}{\sqrt {1-x^2}} \, dx,x,\frac {1}{x}\right )}{8 x}-\frac {\left (3 \sqrt {x^2}\right ) \text {Subst}\left (\int x \cos ^{-1}(x) \, dx,x,\frac {1}{x}\right )}{4 x}\\ &=\frac {\left (1-\frac {1}{x^2}\right )^{3/2}}{32 \sqrt {x^2}}-\frac {3 \sqrt {x^2} \sec ^{-1}(x)}{8 x^3}+\frac {\left (1-\frac {1}{x^2}\right )^2 \sqrt {x^2} \sec ^{-1}(x)}{8 x}-\frac {3 \sqrt {1-\frac {1}{x^2}} \sec ^{-1}(x)^2}{8 \sqrt {x^2}}-\frac {\left (1-\frac {1}{x^2}\right )^{3/2} \sec ^{-1}(x)^2}{4 \sqrt {x^2}}+\frac {\sqrt {x^2} \sec ^{-1}(x)^3}{8 x}+\frac {\left (3 \sqrt {x^2}\right ) \text {Subst}\left (\int \sqrt {1-x^2} \, dx,x,\frac {1}{x}\right )}{32 x}-\frac {\left (3 \sqrt {x^2}\right ) \text {Subst}\left (\int \frac {x^2}{\sqrt {1-x^2}} \, dx,x,\frac {1}{x}\right )}{8 x}\\ &=\frac {15 \sqrt {1-\frac {1}{x^2}}}{64 \sqrt {x^2}}+\frac {\left (1-\frac {1}{x^2}\right )^{3/2}}{32 \sqrt {x^2}}-\frac {3 \sqrt {x^2} \sec ^{-1}(x)}{8 x^3}+\frac {\left (1-\frac {1}{x^2}\right )^2 \sqrt {x^2} \sec ^{-1}(x)}{8 x}-\frac {3 \sqrt {1-\frac {1}{x^2}} \sec ^{-1}(x)^2}{8 \sqrt {x^2}}-\frac {\left (1-\frac {1}{x^2}\right )^{3/2} \sec ^{-1}(x)^2}{4 \sqrt {x^2}}+\frac {\sqrt {x^2} \sec ^{-1}(x)^3}{8 x}+\frac {\left (3 \sqrt {x^2}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1-x^2}} \, dx,x,\frac {1}{x}\right )}{64 x}-\frac {\left (3 \sqrt {x^2}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1-x^2}} \, dx,x,\frac {1}{x}\right )}{16 x}\\ &=\frac {15 \sqrt {1-\frac {1}{x^2}}}{64 \sqrt {x^2}}+\frac {\left (1-\frac {1}{x^2}\right )^{3/2}}{32 \sqrt {x^2}}-\frac {9 \sqrt {x^2} \csc ^{-1}(x)}{64 x}-\frac {3 \sqrt {x^2} \sec ^{-1}(x)}{8 x^3}+\frac {\left (1-\frac {1}{x^2}\right )^2 \sqrt {x^2} \sec ^{-1}(x)}{8 x}-\frac {3 \sqrt {1-\frac {1}{x^2}} \sec ^{-1}(x)^2}{8 \sqrt {x^2}}-\frac {\left (1-\frac {1}{x^2}\right )^{3/2} \sec ^{-1}(x)^2}{4 \sqrt {x^2}}+\frac {\sqrt {x^2} \sec ^{-1}(x)^3}{8 x}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.19, size = 84, normalized size = 0.63 \begin {gather*} \frac {\sqrt {-1+x^2} \left (32 \sec ^{-1}(x)^3+4 \sec ^{-1}(x) \left (-16 \cos \left (2 \sec ^{-1}(x)\right )+\cos \left (4 \sec ^{-1}(x)\right )\right )+32 \sin \left (2 \sec ^{-1}(x)\right )-\sin \left (4 \sec ^{-1}(x)\right )+8 \sec ^{-1}(x)^2 \left (-8 \sin \left (2 \sec ^{-1}(x)\right )+\sin \left (4 \sec ^{-1}(x)\right )\right )\right )}{256 \sqrt {1-\frac {1}{x^2}} x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 0.58, size = 386, normalized size = 2.90
method | result | size |
default | \(\frac {\sqrt {\frac {x^{2}-1}{x^{2}}}\, x \mathrm {arcsec}\left (x \right )^{3}}{8 \sqrt {x^{2}-1}}+\frac {\left (-5 i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x^{5}+x^{6}+20 i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x^{3}-13 x^{4}-16 i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x +28 x^{2}-16\right ) \left (4 i \mathrm {arcsec}\left (x \right )+8 \mathrm {arcsec}\left (x \right )^{2}-1\right )}{1024 x^{4} \sqrt {x^{2}-1}}-\frac {\left (-i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x +x^{2}-1\right ) \left (2 \mathrm {arcsec}\left (x \right )^{2}-1+2 i \mathrm {arcsec}\left (x \right )\right )}{32 \sqrt {x^{2}-1}}+\frac {\left (i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x^{3}-2 i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x -2 x^{2}+2\right ) \left (2 \mathrm {arcsec}\left (x \right )^{2}-1-2 i \mathrm {arcsec}\left (x \right )\right )}{16 x^{2} \sqrt {x^{2}-1}}-\frac {\left (-5 x^{2}+4+3 i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x^{3}+x^{4}-4 i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x \right ) \left (-4 i \mathrm {arcsec}\left (x \right )+8 \mathrm {arcsec}\left (x \right )^{2}-1\right )}{1024 \sqrt {x^{2}-1}\, x^{2}}+\frac {\left (i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x +x^{2}-1\right ) \left (7 i \mathrm {arcsec}\left (x \right )+8 \mathrm {arcsec}\left (x \right )^{2}-4\right ) \cos \left (4 \,\mathrm {arcsec}\left (x \right )\right )}{128 \sqrt {x^{2}-1}}+\frac {\left (i x^{2}-\sqrt {\frac {x^{2}-1}{x^{2}}}\, x -i\right ) \left (32 i \mathrm {arcsec}\left (x \right )+24 \mathrm {arcsec}\left (x \right )^{2}-15\right ) \sin \left (4 \,\mathrm {arcsec}\left (x \right )\right )}{512 \sqrt {x^{2}-1}}\) | \(386\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.60, size = 59, normalized size = 0.44 \begin {gather*} \frac {8 \, x^{4} \operatorname {arcsec}\left (x\right )^{3} + {\left (17 \, x^{4} - 40 \, x^{2} + 8\right )} \operatorname {arcsec}\left (x\right ) - {\left (8 \, {\left (5 \, x^{2} - 2\right )} \operatorname {arcsec}\left (x\right )^{2} - 17 \, x^{2} + 2\right )} \sqrt {x^{2} - 1}}{64 \, x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\mathrm {acos}\left (\frac {1}{x}\right )}^2\,{\left (x^2-1\right )}^{3/2}}{x^5} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________