Optimal. Leaf size=54 \[ -\frac {\sqrt {-1+x}}{8 x^2}-\frac {3 \sqrt {-1+x}}{16 x}-\frac {\csc ^{-1}\left (\sqrt {x}\right )}{2 x^2}-\frac {3}{16} \text {ArcTan}\left (\sqrt {-1+x}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {5379, 12, 44,
65, 209} \begin {gather*} -\frac {3}{16} \text {ArcTan}\left (\sqrt {x-1}\right )-\frac {\sqrt {x-1}}{8 x^2}-\frac {\csc ^{-1}\left (\sqrt {x}\right )}{2 x^2}-\frac {3 \sqrt {x-1}}{16 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 44
Rule 65
Rule 209
Rule 5379
Rubi steps
\begin {align*} \int \frac {\csc ^{-1}\left (\sqrt {x}\right )}{x^3} \, dx &=-\frac {\csc ^{-1}\left (\sqrt {x}\right )}{2 x^2}-\frac {1}{2} \int \frac {1}{2 \sqrt {-1+x} x^3} \, dx\\ &=-\frac {\csc ^{-1}\left (\sqrt {x}\right )}{2 x^2}-\frac {1}{4} \int \frac {1}{\sqrt {-1+x} x^3} \, dx\\ &=-\frac {\sqrt {-1+x}}{8 x^2}-\frac {\csc ^{-1}\left (\sqrt {x}\right )}{2 x^2}-\frac {3}{16} \int \frac {1}{\sqrt {-1+x} x^2} \, dx\\ &=-\frac {\sqrt {-1+x}}{8 x^2}-\frac {3 \sqrt {-1+x}}{16 x}-\frac {\csc ^{-1}\left (\sqrt {x}\right )}{2 x^2}-\frac {3}{32} \int \frac {1}{\sqrt {-1+x} x} \, dx\\ &=-\frac {\sqrt {-1+x}}{8 x^2}-\frac {3 \sqrt {-1+x}}{16 x}-\frac {\csc ^{-1}\left (\sqrt {x}\right )}{2 x^2}-\frac {3}{16} \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sqrt {-1+x}\right )\\ &=-\frac {\sqrt {-1+x}}{8 x^2}-\frac {3 \sqrt {-1+x}}{16 x}-\frac {\csc ^{-1}\left (\sqrt {x}\right )}{2 x^2}-\frac {3}{16} \tan ^{-1}\left (\sqrt {-1+x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 55, normalized size = 1.02 \begin {gather*} \left (-\frac {1}{8 x^{3/2}}-\frac {3}{16 \sqrt {x}}\right ) \sqrt {\frac {-1+x}{x}}-\frac {\csc ^{-1}\left (\sqrt {x}\right )}{2 x^2}+\frac {3}{16} \text {ArcSin}\left (\frac {1}{\sqrt {x}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.20, size = 57, normalized size = 1.06
method | result | size |
derivativedivides | \(-\frac {\mathrm {arccsc}\left (\sqrt {x}\right )}{2 x^{2}}+\frac {\sqrt {x -1}\, \left (3 \arctan \left (\frac {1}{\sqrt {x -1}}\right ) x^{2}-3 \sqrt {x -1}\, x -2 \sqrt {x -1}\right )}{16 \sqrt {\frac {x -1}{x}}\, x^{\frac {5}{2}}}\) | \(57\) |
default | \(-\frac {\mathrm {arccsc}\left (\sqrt {x}\right )}{2 x^{2}}+\frac {\sqrt {x -1}\, \left (3 \arctan \left (\frac {1}{\sqrt {x -1}}\right ) x^{2}-3 \sqrt {x -1}\, x -2 \sqrt {x -1}\right )}{16 \sqrt {\frac {x -1}{x}}\, x^{\frac {5}{2}}}\) | \(57\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 80 vs.
\(2 (38) = 76\).
time = 0.49, size = 80, normalized size = 1.48 \begin {gather*} -\frac {3 \, x^{\frac {3}{2}} {\left (-\frac {1}{x} + 1\right )}^{\frac {3}{2}} + 5 \, \sqrt {x} \sqrt {-\frac {1}{x} + 1}}{16 \, {\left (x^{2} {\left (\frac {1}{x} - 1\right )}^{2} - 2 \, x {\left (\frac {1}{x} - 1\right )} + 1\right )}} - \frac {\operatorname {arccsc}\left (\sqrt {x}\right )}{2 \, x^{2}} - \frac {3}{16} \, \arctan \left (\sqrt {x} \sqrt {-\frac {1}{x} + 1}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 30, normalized size = 0.56 \begin {gather*} \frac {{\left (3 \, x^{2} - 8\right )} \operatorname {arccsc}\left (\sqrt {x}\right ) - {\left (3 \, x + 2\right )} \sqrt {x - 1}}{16 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 45.17, size = 146, normalized size = 2.70 \begin {gather*} - \frac {\begin {cases} \frac {3 i \operatorname {acosh}{\left (\frac {1}{\sqrt {x}} \right )}}{4} - \frac {3 i}{4 \sqrt {x} \sqrt {-1 + \frac {1}{x}}} + \frac {i}{4 x^{\frac {3}{2}} \sqrt {-1 + \frac {1}{x}}} + \frac {i}{2 x^{\frac {5}{2}} \sqrt {-1 + \frac {1}{x}}} & \text {for}\: \frac {1}{\left |{x}\right |} > 1 \\- \frac {3 \operatorname {asin}{\left (\frac {1}{\sqrt {x}} \right )}}{4} + \frac {3}{4 \sqrt {x} \sqrt {1 - \frac {1}{x}}} - \frac {1}{4 x^{\frac {3}{2}} \sqrt {1 - \frac {1}{x}}} - \frac {1}{2 x^{\frac {5}{2}} \sqrt {1 - \frac {1}{x}}} & \text {otherwise} \end {cases}}{4} - \frac {\operatorname {acsc}{\left (\sqrt {x} \right )}}{2 x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.44, size = 59, normalized size = 1.09 \begin {gather*} -\frac {1}{2} \, {\left (\frac {1}{x} - 1\right )}^{2} \arcsin \left (\frac {1}{\sqrt {x}}\right ) - {\left (\frac {1}{x} - 1\right )} \arcsin \left (\frac {1}{\sqrt {x}}\right ) + \frac {{\left (-\frac {1}{x} + 1\right )}^{\frac {3}{2}}}{8 \, \sqrt {x}} - \frac {5 \, \sqrt {-\frac {1}{x} + 1}}{16 \, \sqrt {x}} - \frac {5}{16} \, \arcsin \left (\frac {1}{\sqrt {x}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {\mathrm {asin}\left (\frac {1}{\sqrt {x}}\right )}{x^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________