Optimal. Leaf size=63 \[ \frac {x^2}{12}+\frac {1}{3} \sqrt {1-\frac {1}{x^2}} x \csc ^{-1}(x)+\frac {1}{6} \sqrt {1-\frac {1}{x^2}} x^3 \csc ^{-1}(x)+\frac {1}{4} x^4 \csc ^{-1}(x)^2+\frac {\log (x)}{3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 63, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.625, Rules used = {5331, 3843,
4270, 4269, 3556} \begin {gather*} \frac {1}{4} x^4 \csc ^{-1}(x)^2+\frac {x^2}{12}+\frac {1}{3} \sqrt {1-\frac {1}{x^2}} x \csc ^{-1}(x)+\frac {1}{6} \sqrt {1-\frac {1}{x^2}} x^3 \csc ^{-1}(x)+\frac {\log (x)}{3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3556
Rule 3843
Rule 4269
Rule 4270
Rule 5331
Rubi steps
\begin {align*} \int x^3 \csc ^{-1}(x)^2 \, dx &=-\text {Subst}\left (\int x^2 \cot (x) \csc ^4(x) \, dx,x,\csc ^{-1}(x)\right )\\ &=\frac {1}{4} x^4 \csc ^{-1}(x)^2-\frac {1}{2} \text {Subst}\left (\int x \csc ^4(x) \, dx,x,\csc ^{-1}(x)\right )\\ &=\frac {x^2}{12}+\frac {1}{6} \sqrt {1-\frac {1}{x^2}} x^3 \csc ^{-1}(x)+\frac {1}{4} x^4 \csc ^{-1}(x)^2-\frac {1}{3} \text {Subst}\left (\int x \csc ^2(x) \, dx,x,\csc ^{-1}(x)\right )\\ &=\frac {x^2}{12}+\frac {1}{3} \sqrt {1-\frac {1}{x^2}} x \csc ^{-1}(x)+\frac {1}{6} \sqrt {1-\frac {1}{x^2}} x^3 \csc ^{-1}(x)+\frac {1}{4} x^4 \csc ^{-1}(x)^2-\frac {1}{3} \text {Subst}\left (\int \cot (x) \, dx,x,\csc ^{-1}(x)\right )\\ &=\frac {x^2}{12}+\frac {1}{3} \sqrt {1-\frac {1}{x^2}} x \csc ^{-1}(x)+\frac {1}{6} \sqrt {1-\frac {1}{x^2}} x^3 \csc ^{-1}(x)+\frac {1}{4} x^4 \csc ^{-1}(x)^2+\frac {\log (x)}{3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 42, normalized size = 0.67 \begin {gather*} \frac {1}{12} \left (x^2+2 \sqrt {1-\frac {1}{x^2}} x \left (2+x^2\right ) \csc ^{-1}(x)+3 x^4 \csc ^{-1}(x)^2+4 \log (x)\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.05, size = 56, normalized size = 0.89
method | result | size |
default | \(\frac {x^{4} \mathrm {arccsc}\left (x \right )^{2}}{4}+\frac {x^{3} \mathrm {arccsc}\left (x \right ) \sqrt {\frac {x^{2}-1}{x^{2}}}}{6}+\frac {x^{2}}{12}+\frac {\mathrm {arccsc}\left (x \right ) \sqrt {\frac {x^{2}-1}{x^{2}}}\, x}{3}-\frac {\ln \left (\frac {1}{x}\right )}{3}\) | \(56\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 2.07, size = 95, normalized size = 1.51 \begin {gather*} \frac {1}{4} \, x^{4} \operatorname {arccsc}\left (x\right )^{2} + \frac {2 \, x^{4} \arctan \left (1, \sqrt {x + 1} \sqrt {x - 1}\right ) + 2 \, x^{2} \arctan \left (1, \sqrt {x + 1} \sqrt {x - 1}\right ) + {\left (x^{2} + 2 \, \log \left (x^{2}\right )\right )} \sqrt {x + 1} \sqrt {x - 1} - 4 \, \arctan \left (1, \sqrt {x + 1} \sqrt {x - 1}\right )}{12 \, \sqrt {x + 1} \sqrt {x - 1}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.55, size = 35, normalized size = 0.56 \begin {gather*} \frac {1}{4} \, x^{4} \operatorname {arccsc}\left (x\right )^{2} + \frac {1}{6} \, {\left (x^{2} + 2\right )} \sqrt {x^{2} - 1} \operatorname {arccsc}\left (x\right ) + \frac {1}{12} \, x^{2} + \frac {1}{3} \, \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int x^{3} \operatorname {acsc}^{2}{\left (x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 106 vs.
\(2 (49) = 98\).
time = 1.17, size = 106, normalized size = 1.68 \begin {gather*} \frac {1}{4} \, x^{4} \arcsin \left (\frac {1}{x}\right )^{2} + \frac {1}{12} \, x^{2} {\left (\frac {2}{x^{2}} + 1\right )} + \frac {1}{48} \, {\left (x^{3} {\left (\sqrt {-\frac {1}{x^{2}} + 1} - 1\right )}^{3} + 9 \, x {\left (\sqrt {-\frac {1}{x^{2}} + 1} - 1\right )} - \frac {9 \, x^{2} {\left (\sqrt {-\frac {1}{x^{2}} + 1} - 1\right )}^{2} + 1}{x^{3} {\left (\sqrt {-\frac {1}{x^{2}} + 1} - 1\right )}^{3}}\right )} \arcsin \left (\frac {1}{x}\right ) - \frac {1}{6} \, \log \left (\frac {1}{x^{2}}\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 x^3\,{\mathrm {asin}\left (\frac {1}{x}\right )}^2 \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________