Optimal. Leaf size=70 \[ -\frac {1}{\sqrt {x^2}}+\frac {\sqrt {x^2}}{6 \left (-1+x^2\right )}-\frac {11}{6} \coth ^{-1}\left (\sqrt {x^2}\right )+\frac {\left (3-12 x^2+8 x^4\right ) \csc ^{-1}(x)}{3 x \left (-1+x^2\right )^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 91, normalized size of antiderivative = 1.30, number of steps
used = 5, number of rules used = 8, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.533, Rules used = {277, 198, 197,
5347, 12, 1273, 464, 212} \begin {gather*} -\frac {1}{\sqrt {x^2}}-\frac {\sqrt {x^2}}{6 \left (1-x^2\right )}+\frac {8 x \csc ^{-1}(x)}{3 \sqrt {x^2-1}}-\frac {4 x \csc ^{-1}(x)}{3 \left (x^2-1\right )^{3/2}}+\frac {\csc ^{-1}(x)}{x \left (x^2-1\right )^{3/2}}-\frac {11 x \tanh ^{-1}(x)}{6 \sqrt {x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 197
Rule 198
Rule 212
Rule 277
Rule 464
Rule 1273
Rule 5347
Rubi steps
\begin {align*} \int \frac {\csc ^{-1}(x)}{x^2 \left (-1+x^2\right )^{5/2}} \, dx &=\frac {\csc ^{-1}(x)}{x \left (-1+x^2\right )^{3/2}}-\frac {4 x \csc ^{-1}(x)}{3 \left (-1+x^2\right )^{3/2}}+\frac {8 x \csc ^{-1}(x)}{3 \sqrt {-1+x^2}}+\frac {x \int \frac {3-12 x^2+8 x^4}{3 x^2 \left (1-x^2\right )^2} \, dx}{\sqrt {x^2}}\\ &=\frac {\csc ^{-1}(x)}{x \left (-1+x^2\right )^{3/2}}-\frac {4 x \csc ^{-1}(x)}{3 \left (-1+x^2\right )^{3/2}}+\frac {8 x \csc ^{-1}(x)}{3 \sqrt {-1+x^2}}+\frac {x \int \frac {3-12 x^2+8 x^4}{x^2 \left (1-x^2\right )^2} \, dx}{3 \sqrt {x^2}}\\ &=-\frac {\sqrt {x^2}}{6 \left (1-x^2\right )}+\frac {\csc ^{-1}(x)}{x \left (-1+x^2\right )^{3/2}}-\frac {4 x \csc ^{-1}(x)}{3 \left (-1+x^2\right )^{3/2}}+\frac {8 x \csc ^{-1}(x)}{3 \sqrt {-1+x^2}}-\frac {x \int \frac {-6+17 x^2}{x^2 \left (1-x^2\right )} \, dx}{6 \sqrt {x^2}}\\ &=-\frac {1}{\sqrt {x^2}}-\frac {\sqrt {x^2}}{6 \left (1-x^2\right )}+\frac {\csc ^{-1}(x)}{x \left (-1+x^2\right )^{3/2}}-\frac {4 x \csc ^{-1}(x)}{3 \left (-1+x^2\right )^{3/2}}+\frac {8 x \csc ^{-1}(x)}{3 \sqrt {-1+x^2}}-\frac {(11 x) \int \frac {1}{1-x^2} \, dx}{6 \sqrt {x^2}}\\ &=-\frac {1}{\sqrt {x^2}}-\frac {\sqrt {x^2}}{6 \left (1-x^2\right )}+\frac {\csc ^{-1}(x)}{x \left (-1+x^2\right )^{3/2}}-\frac {4 x \csc ^{-1}(x)}{3 \left (-1+x^2\right )^{3/2}}+\frac {8 x \csc ^{-1}(x)}{3 \sqrt {-1+x^2}}-\frac {11 x \tanh ^{-1}(x)}{6 \sqrt {x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.10, size = 79, normalized size = 1.13 \begin {gather*} \frac {4 \left (3-12 x^2+8 x^4\right ) \csc ^{-1}(x)+\sqrt {1-\frac {1}{x^2}} x \left (12-10 x^2+11 x \left (-1+x^2\right ) \log (1-x)-11 x \left (-1+x^2\right ) \log (1+x)\right )}{12 x \left (-1+x^2\right )^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 0.63, size = 702, normalized size = 10.03
method | result | size |
default | \(-\frac {3 i x^{2}-4 i-4 \sqrt {\frac {x^{2}-1}{x^{2}}}\, x +\sqrt {\frac {x^{2}-1}{x^{2}}}\, x^{3}}{4 \left (i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x -1\right ) x \sqrt {x^{2}-1}}+\frac {\left (x^{2}-2+2 i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x \right ) \mathrm {arccsc}\left (x \right )}{4 x \sqrt {x^{2}-1}}+\frac {x \,\mathrm {arccsc}\left (x \right )}{2 \sqrt {x^{2}-1}}+\frac {\left (x^{2}-2-2 i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x \right ) \mathrm {arccsc}\left (x \right )}{4 \sqrt {x^{2}-1}\, x}+\frac {x^{3}}{4 \sqrt {x^{2}-1}\, \left (i x^{2}-2 \sqrt {\frac {x^{2}-1}{x^{2}}}\, x -2 i\right )}+\frac {2 \sqrt {x^{2}-1}\, x^{3} \mathrm {arccsc}\left (x \right )}{3 \left (x^{4}-2 x^{2}+1\right )}-\frac {x^{5} \left (\sqrt {\frac {x^{2}-1}{x^{2}}}\, x +i\right )}{24 \sqrt {x^{2}-1}\, \left (i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x^{5}-5 i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x^{3}-3 x^{4}+4 i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x +7 x^{2}-4\right )}+\frac {x \sqrt {x^{2}-1}\, \left (x^{2}-2-2 i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x \right ) \mathrm {arccsc}\left (x \right )}{2 x^{4}-4 x^{2}+2}+\frac {x \left (5 i x^{4}-20 i x^{2}-12 \sqrt {\frac {x^{2}-1}{x^{2}}}\, x^{3}+\sqrt {\frac {x^{2}-1}{x^{2}}}\, x^{5}+16 i+16 \sqrt {\frac {x^{2}-1}{x^{2}}}\, x \right )}{24 \sqrt {x^{2}-1}\, \left (i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x^{5}-5 i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x^{3}-3 x^{4}+4 i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x +7 x^{2}-4\right )}+\frac {\sqrt {x^{2}-1}\, x \left (x^{2}-2+2 i \sqrt {\frac {x^{2}-1}{x^{2}}}\, x \right ) \mathrm {arccsc}\left (x \right )}{2 x^{4}-4 x^{2}+2}+\frac {11 \left (\sqrt {\frac {x^{2}-1}{x^{2}}}\, x +i\right ) \ln \left (\frac {i}{x}+\sqrt {1-\frac {1}{x^{2}}}-i\right )}{12 \sqrt {x^{2}-1}}+\frac {11 \left (\sqrt {\frac {x^{2}-1}{x^{2}}}\, x -i\right ) \ln \left (\frac {i}{x}+\sqrt {1-\frac {1}{x^{2}}}-i\right )}{12 \sqrt {x^{2}-1}}-\frac {11 \left (\sqrt {\frac {x^{2}-1}{x^{2}}}\, x +i\right ) \ln \left (\frac {i}{x}+\sqrt {1-\frac {1}{x^{2}}}+i\right )}{12 \sqrt {x^{2}-1}}-\frac {11 \left (\sqrt {\frac {x^{2}-1}{x^{2}}}\, x -i\right ) \ln \left (\frac {i}{x}+\sqrt {1-\frac {1}{x^{2}}}+i\right )}{12 \sqrt {x^{2}-1}}\) | \(702\) |
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. 123 vs.
\(2 (56) = 112\).
time = 4.48, size = 123, normalized size = 1.76 \begin {gather*} \frac {32 \, x^{4} \arctan \left (1, \sqrt {x + 1} \sqrt {x - 1}\right ) - {\left (x^{3} - x\right )} \sqrt {x + 1} \sqrt {x - 1} {\left (\frac {2 \, {\left (5 \, x^{2} - 6\right )}}{x^{3} - x} + 11 \, \log \left (x + 1\right ) - 11 \, \log \left (x - 1\right )\right )} - 48 \, x^{2} \arctan \left (1, \sqrt {x + 1} \sqrt {x - 1}\right ) + 12 \, \arctan \left (1, \sqrt {x + 1} \sqrt {x - 1}\right )}{12 \, {\left (x^{3} - x\right )} \sqrt {x + 1} \sqrt {x - 1}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.66, size = 81, normalized size = 1.16 \begin {gather*} -\frac {10 \, x^{4} - 4 \, {\left (8 \, x^{4} - 12 \, x^{2} + 3\right )} \sqrt {x^{2} - 1} \operatorname {arccsc}\left (x\right ) - 22 \, x^{2} + 11 \, {\left (x^{5} - 2 \, x^{3} + x\right )} \log \left (x + 1\right ) - 11 \, {\left (x^{5} - 2 \, x^{3} + x\right )} \log \left (x - 1\right ) + 12}{12 \, {\left (x^{5} - 2 \, x^{3} + x\right )}} \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 [A]
time = 0.80, size = 105, normalized size = 1.50 \begin {gather*} \frac {1}{3} \, {\left (\frac {{\left (5 \, x^{2} - 6\right )} x}{{\left (x^{2} - 1\right )}^{\frac {3}{2}}} + \frac {6}{{\left (x - \sqrt {x^{2} - 1}\right )}^{2} + 1}\right )} \arcsin \left (\frac {1}{x}\right ) + \frac {2 \, \arctan \left (-x + \sqrt {x^{2} - 1}\right )}{\mathrm {sgn}\left (x\right )} - \frac {11 \, \log \left ({\left | x + 1 \right |}\right )}{12 \, \mathrm {sgn}\left (x\right )} + \frac {11 \, \log \left ({\left | x - 1 \right |}\right )}{12 \, \mathrm {sgn}\left (x\right )} - \frac {5 \, x^{2} - 6}{6 \, {\left (x^{3} - x\right )} \mathrm {sgn}\left (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.01 \begin {gather*} \int \frac {\mathrm {asin}\left (\frac {1}{x}\right )}{x^2\,{\left (x^2-1\right )}^{5/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________