Optimal. Leaf size=74 \[ \frac{24 \sqrt{x^2-1}}{x}+\frac{\sqrt{x^2-1} \csc ^{-1}(x)^4}{x}-\frac{4 \csc ^{-1}(x)^3}{\sqrt{x^2}}-\frac{12 \sqrt{x^2-1} \csc ^{-1}(x)^2}{x}+\frac{24 \csc ^{-1}(x)}{\sqrt{x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.178698, antiderivative size = 101, normalized size of antiderivative = 1.36, number of steps used = 6, number of rules used = 4, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.235, Rules used = {5243, 4677, 4619, 261} \[ \frac{24 \sqrt{1-\frac{1}{x^2}} \sqrt{x^2}}{x}+\frac{\sqrt{1-\frac{1}{x^2}} \sqrt{x^2} \csc ^{-1}(x)^4}{x}-\frac{4 \csc ^{-1}(x)^3}{\sqrt{x^2}}-\frac{12 \sqrt{1-\frac{1}{x^2}} \sqrt{x^2} \csc ^{-1}(x)^2}{x}+\frac{24 \csc ^{-1}(x)}{\sqrt{x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5243
Rule 4677
Rule 4619
Rule 261
Rubi steps
\begin{align*} \int \frac{\csc ^{-1}(x)^4}{x^2 \sqrt{-1+x^2}} \, dx &=-\frac{\sqrt{x^2} \operatorname{Subst}\left (\int \frac{x \sin ^{-1}(x)^4}{\sqrt{1-x^2}} \, dx,x,\frac{1}{x}\right )}{x}\\ &=\frac{\sqrt{1-\frac{1}{x^2}} \sqrt{x^2} \csc ^{-1}(x)^4}{x}-\frac{\left (4 \sqrt{x^2}\right ) \operatorname{Subst}\left (\int \sin ^{-1}(x)^3 \, dx,x,\frac{1}{x}\right )}{x}\\ &=-\frac{4 \csc ^{-1}(x)^3}{\sqrt{x^2}}+\frac{\sqrt{1-\frac{1}{x^2}} \sqrt{x^2} \csc ^{-1}(x)^4}{x}+\frac{\left (12 \sqrt{x^2}\right ) \operatorname{Subst}\left (\int \frac{x \sin ^{-1}(x)^2}{\sqrt{1-x^2}} \, dx,x,\frac{1}{x}\right )}{x}\\ &=-\frac{12 \sqrt{1-\frac{1}{x^2}} \sqrt{x^2} \csc ^{-1}(x)^2}{x}-\frac{4 \csc ^{-1}(x)^3}{\sqrt{x^2}}+\frac{\sqrt{1-\frac{1}{x^2}} \sqrt{x^2} \csc ^{-1}(x)^4}{x}+\frac{\left (24 \sqrt{x^2}\right ) \operatorname{Subst}\left (\int \sin ^{-1}(x) \, dx,x,\frac{1}{x}\right )}{x}\\ &=\frac{24 \csc ^{-1}(x)}{\sqrt{x^2}}-\frac{12 \sqrt{1-\frac{1}{x^2}} \sqrt{x^2} \csc ^{-1}(x)^2}{x}-\frac{4 \csc ^{-1}(x)^3}{\sqrt{x^2}}+\frac{\sqrt{1-\frac{1}{x^2}} \sqrt{x^2} \csc ^{-1}(x)^4}{x}-\frac{\left (24 \sqrt{x^2}\right ) \operatorname{Subst}\left (\int \frac{x}{\sqrt{1-x^2}} \, dx,x,\frac{1}{x}\right )}{x}\\ &=\frac{24 \sqrt{1-\frac{1}{x^2}} \sqrt{x^2}}{x}+\frac{24 \csc ^{-1}(x)}{\sqrt{x^2}}-\frac{12 \sqrt{1-\frac{1}{x^2}} \sqrt{x^2} \csc ^{-1}(x)^2}{x}-\frac{4 \csc ^{-1}(x)^3}{\sqrt{x^2}}+\frac{\sqrt{1-\frac{1}{x^2}} \sqrt{x^2} \csc ^{-1}(x)^4}{x}\\ \end{align*}
Mathematica [A] time = 0.0588532, size = 76, normalized size = 1.03 \[ \frac{24 \left (x^2-1\right )+\left (x^2-1\right ) \csc ^{-1}(x)^4-4 \sqrt{1-\frac{1}{x^2}} x \csc ^{-1}(x)^3-12 \left (x^2-1\right ) \csc ^{-1}(x)^2+24 \sqrt{1-\frac{1}{x^2}} x \csc ^{-1}(x)}{x \sqrt{x^2-1}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.405, size = 443, normalized size = 6. \begin{align*}{\frac{ \left ({\rm arccsc} \left (x\right ) \right ) ^{3}}{x} \left ( i{x}^{2}-2\,\sqrt{{\frac{{x}^{2}-1}{{x}^{2}}}}x-2\,i \right ){\frac{1}{\sqrt{{x}^{2}-1}}}}+{\frac{ \left ({\rm arccsc} \left (x\right ) \right ) ^{4}}{4\,x} \left ({x}^{2}-2+2\,i\sqrt{{\frac{{x}^{2}-1}{{x}^{2}}}}x \right ){\frac{1}{\sqrt{{x}^{2}-1}}}}+{\frac{x \left ({\rm arccsc} \left (x\right ) \right ) ^{4}}{2}{\frac{1}{\sqrt{{x}^{2}-1}}}}-6\,{\frac{{\rm arccsc} \left (x\right )}{\sqrt{{x}^{2}-1}x} \left ( i{x}^{2}-2\,\sqrt{{\frac{{x}^{2}-1}{{x}^{2}}}}x-2\,i \right ) }-3\,{\frac{ \left ({\rm arccsc} \left (x\right ) \right ) ^{2}}{\sqrt{{x}^{2}-1}x} \left ({x}^{2}-2+2\,i\sqrt{{\frac{{x}^{2}-1}{{x}^{2}}}}x \right ) }-6\,{\frac{x \left ({\rm arccsc} \left (x\right ) \right ) ^{2}}{\sqrt{{x}^{2}-1}}}+6\,{\frac{1}{\sqrt{{x}^{2}-1}x} \left ( i\sqrt{{\frac{{x}^{2}-1}{{x}^{2}}}}{x}^{3}-4\,i\sqrt{{\frac{{x}^{2}-1}{{x}^{2}}}}x-3\,{x}^{2}+4 \right ) \left ( i\sqrt{{\frac{{x}^{2}-1}{{x}^{2}}}}x-1 \right ) ^{-1}}+12\,{\frac{x}{\sqrt{{x}^{2}-1}}}-{\frac{ \left ({\rm arccsc} \left (x\right ) \right ) ^{3}}{x} \left ( i{x}^{2}+2\,\sqrt{{\frac{{x}^{2}-1}{{x}^{2}}}}x-2\,i \right ){\frac{1}{\sqrt{{x}^{2}-1}}}}+{\frac{ \left ({\rm arccsc} \left (x\right ) \right ) ^{4}}{4\,x} \left ({x}^{2}-2-2\,i\sqrt{{\frac{{x}^{2}-1}{{x}^{2}}}}x \right ){\frac{1}{\sqrt{{x}^{2}-1}}}}+6\,{\frac{{\rm arccsc} \left (x\right )}{\sqrt{{x}^{2}-1}x} \left ( i{x}^{2}+2\,\sqrt{{\frac{{x}^{2}-1}{{x}^{2}}}}x-2\,i \right ) }-3\,{\frac{ \left ({\rm arccsc} \left (x\right ) \right ) ^{2}}{\sqrt{{x}^{2}-1}x} \left ({x}^{2}-2-2\,i\sqrt{{\frac{{x}^{2}-1}{{x}^{2}}}}x \right ) }+{6\,i{x}^{3}{\frac{1}{\sqrt{{x}^{2}-1}}} \left ( i{x}^{2}-2\,\sqrt{{\frac{{x}^{2}-1}{{x}^{2}}}}x-2\,i \right ) ^{-1}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.5069, size = 78, normalized size = 1.05 \begin{align*} \frac{\sqrt{x^{2} - 1} \operatorname{arccsc}\left (x\right )^{4}}{x} - 12 \, \sqrt{-\frac{1}{x^{2}} + 1} \operatorname{arccsc}\left (x\right )^{2} - \frac{4 \, \operatorname{arccsc}\left (x\right )^{3}}{x} + 24 \, \sqrt{-\frac{1}{x^{2}} + 1} + \frac{24 \, \operatorname{arccsc}\left (x\right )}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.58062, size = 117, normalized size = 1.58 \begin{align*} -\frac{4 \, \operatorname{arccsc}\left (x\right )^{3} -{\left (\operatorname{arccsc}\left (x\right )^{4} - 12 \, \operatorname{arccsc}\left (x\right )^{2} + 24\right )} \sqrt{x^{2} - 1} - 24 \, \operatorname{arccsc}\left (x\right )}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\operatorname{arccsc}\left (x\right )^{4}}{\sqrt{x^{2} - 1} x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]