Optimal. Leaf size=82 \[ \frac {4 x \sqrt {-1+x^2} \left (83-19 x+3 x^2\right )}{105 \sqrt {-1+x} \sqrt {x^2}}+\frac {2}{7} (-1+x)^{7/2} \csc ^{-1}(x)+\frac {4 x \tanh ^{-1}\left (\frac {\sqrt {-1+x^2}}{\sqrt {-1+x}}\right )}{7 \sqrt {x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 140, normalized size of antiderivative = 1.71, number of steps
used = 7, number of rules used = 6, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.600, Rules used = {5335, 1588,
906, 90, 65, 213} \begin {gather*} \frac {4 (x+1)^3 \sqrt {x-1}}{35 \sqrt {1-\frac {1}{x^2}} x}-\frac {20 (x+1)^2 \sqrt {x-1}}{21 \sqrt {1-\frac {1}{x^2}} x}+\frac {4 (x+1) \sqrt {x-1}}{\sqrt {1-\frac {1}{x^2}} x}+\frac {4 \sqrt {x+1} \sqrt {x-1} \tanh ^{-1}\left (\sqrt {x+1}\right )}{7 \sqrt {1-\frac {1}{x^2}} x}+\frac {2}{7} (x-1)^{7/2} \csc ^{-1}(x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 90
Rule 213
Rule 906
Rule 1588
Rule 5335
Rubi steps
\begin {align*} \int (-1+x)^{5/2} \csc ^{-1}(x) \, dx &=\frac {2}{7} (-1+x)^{7/2} \csc ^{-1}(x)+\frac {2}{7} \int \frac {(-1+x)^{7/2}}{\sqrt {1-\frac {1}{x^2}} x^2} \, dx\\ &=\frac {2}{7} (-1+x)^{7/2} \csc ^{-1}(x)+\frac {\left (2 \sqrt {-1+x^2}\right ) \int \frac {(-1+x)^{7/2}}{x \sqrt {-1+x^2}} \, dx}{7 \sqrt {1-\frac {1}{x^2}} x}\\ &=\frac {2}{7} (-1+x)^{7/2} \csc ^{-1}(x)+\frac {\left (2 \sqrt {-1+x} \sqrt {1+x}\right ) \int \frac {(-1+x)^3}{x \sqrt {1+x}} \, dx}{7 \sqrt {1-\frac {1}{x^2}} x}\\ &=\frac {2}{7} (-1+x)^{7/2} \csc ^{-1}(x)+\frac {\left (2 \sqrt {-1+x} \sqrt {1+x}\right ) \int \left (\frac {7}{\sqrt {1+x}}-\frac {1}{x \sqrt {1+x}}-5 \sqrt {1+x}+(1+x)^{3/2}\right ) \, dx}{7 \sqrt {1-\frac {1}{x^2}} x}\\ &=\frac {4 \sqrt {-1+x} (1+x)}{\sqrt {1-\frac {1}{x^2}} x}-\frac {20 \sqrt {-1+x} (1+x)^2}{21 \sqrt {1-\frac {1}{x^2}} x}+\frac {4 \sqrt {-1+x} (1+x)^3}{35 \sqrt {1-\frac {1}{x^2}} x}+\frac {2}{7} (-1+x)^{7/2} \csc ^{-1}(x)-\frac {\left (2 \sqrt {-1+x} \sqrt {1+x}\right ) \int \frac {1}{x \sqrt {1+x}} \, dx}{7 \sqrt {1-\frac {1}{x^2}} x}\\ &=\frac {4 \sqrt {-1+x} (1+x)}{\sqrt {1-\frac {1}{x^2}} x}-\frac {20 \sqrt {-1+x} (1+x)^2}{21 \sqrt {1-\frac {1}{x^2}} x}+\frac {4 \sqrt {-1+x} (1+x)^3}{35 \sqrt {1-\frac {1}{x^2}} x}+\frac {2}{7} (-1+x)^{7/2} \csc ^{-1}(x)-\frac {\left (4 \sqrt {-1+x} \sqrt {1+x}\right ) \text {Subst}\left (\int \frac {1}{-1+x^2} \, dx,x,\sqrt {1+x}\right )}{7 \sqrt {1-\frac {1}{x^2}} x}\\ &=\frac {4 \sqrt {-1+x} (1+x)}{\sqrt {1-\frac {1}{x^2}} x}-\frac {20 \sqrt {-1+x} (1+x)^2}{21 \sqrt {1-\frac {1}{x^2}} x}+\frac {4 \sqrt {-1+x} (1+x)^3}{35 \sqrt {1-\frac {1}{x^2}} x}+\frac {2}{7} (-1+x)^{7/2} \csc ^{-1}(x)+\frac {4 \sqrt {-1+x} \sqrt {1+x} \tanh ^{-1}\left (\sqrt {1+x}\right )}{7 \sqrt {1-\frac {1}{x^2}} x}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 72, normalized size = 0.88 \begin {gather*} \frac {4 \sqrt {1-\frac {1}{x^2}} x \left (83-19 x+3 x^2\right )}{105 \sqrt {-1+x}}+\frac {2}{7} (-1+x)^{7/2} \csc ^{-1}(x)+\frac {4}{7} \tanh ^{-1}\left (\frac {\sqrt {1-\frac {1}{x^2}} x}{\sqrt {-1+x}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 76, normalized size = 0.93
method | result | size |
derivativedivides | \(\frac {2 \left (-1+x \right )^{\frac {7}{2}} \mathrm {arccsc}\left (x \right )}{7}+\frac {4 \sqrt {-1+x}\, \sqrt {1+x}\, \left (3 \left (-1+x \right )^{2} \sqrt {1+x}-13 \left (-1+x \right ) \sqrt {1+x}+15 \arctanh \left (\sqrt {1+x}\right )+67 \sqrt {1+x}\right )}{105 \sqrt {\frac {\left (-1+x \right ) \left (1+x \right )}{x^{2}}}\, x}\) | \(76\) |
default | \(\frac {2 \left (-1+x \right )^{\frac {7}{2}} \mathrm {arccsc}\left (x \right )}{7}+\frac {4 \sqrt {-1+x}\, \sqrt {1+x}\, \left (3 \left (-1+x \right )^{2} \sqrt {1+x}-13 \left (-1+x \right ) \sqrt {1+x}+15 \arctanh \left (\sqrt {1+x}\right )+67 \sqrt {1+x}\right )}{105 \sqrt {\frac {\left (-1+x \right ) \left (1+x \right )}{x^{2}}}\, x}\) | \(76\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 2.81, size = 116, normalized size = 1.41 \begin {gather*} \frac {4}{35} \, {\left (x + 1\right )}^{\frac {5}{2}} - \frac {20}{21} \, {\left (x + 1\right )}^{\frac {3}{2}} + \frac {2}{7} \, {\left (x^{3} \arctan \left (1, \sqrt {x + 1} \sqrt {x - 1}\right ) - 3 \, x^{2} \arctan \left (1, \sqrt {x + 1} \sqrt {x - 1}\right ) + 3 \, x \arctan \left (1, \sqrt {x + 1} \sqrt {x - 1}\right ) - \arctan \left (1, \sqrt {x + 1} \sqrt {x - 1}\right )\right )} \sqrt {x - 1} + 4 \, \sqrt {x + 1} + \frac {2}{7} \, \log \left (\sqrt {x + 1} + 1\right ) - \frac {2}{7} \, \log \left (\sqrt {x + 1} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 125 vs.
\(2 (62) = 124\).
time = 0.78, size = 125, normalized size = 1.52 \begin {gather*} \frac {2 \, {\left (15 \, {\left (x^{4} - 4 \, x^{3} + 6 \, x^{2} - 4 \, x + 1\right )} \sqrt {x - 1} \operatorname {arccsc}\left (x\right ) + 2 \, {\left (3 \, x^{2} - 19 \, x + 83\right )} \sqrt {x^{2} - 1} \sqrt {x - 1} + 15 \, {\left (x - 1\right )} \log \left (\frac {x^{2} + \sqrt {x^{2} - 1} \sqrt {x - 1} - 1}{x^{2} - 1}\right ) - 15 \, {\left (x - 1\right )} \log \left (-\frac {x^{2} - \sqrt {x^{2} - 1} \sqrt {x - 1} - 1}{x^{2} - 1}\right )\right )}}{105 \, {\left (x - 1\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 [B] Leaf count of result is larger than twice the leaf count of optimal. 228 vs.
\(2 (62) = 124\).
time = 0.97, size = 228, normalized size = 2.78 \begin {gather*} \frac {2}{35} \, {\left (5 \, {\left (x - 1\right )}^{\frac {7}{2}} + 21 \, {\left (x - 1\right )}^{\frac {5}{2}} + 35 \, {\left (x - 1\right )}^{\frac {3}{2}} + 35 \, \sqrt {x - 1}\right )} \arcsin \left (\frac {1}{x}\right ) - \frac {2}{5} \, {\left (3 \, {\left (x - 1\right )}^{\frac {5}{2}} + 10 \, {\left (x - 1\right )}^{\frac {3}{2}} + 15 \, \sqrt {x - 1}\right )} \arcsin \left (\frac {1}{x}\right ) + 2 \, {\left ({\left (x - 1\right )}^{\frac {3}{2}} + 3 \, \sqrt {x - 1}\right )} \arcsin \left (\frac {1}{x}\right ) - 2 \, \sqrt {x - 1} \arcsin \left (\frac {1}{x}\right ) + \frac {4 \, {\left (3 \, {\left (x + 1\right )}^{\frac {5}{2}} - 4 \, {\left (x + 1\right )}^{\frac {3}{2}} + 21 \, \sqrt {x + 1}\right )}}{105 \, \mathrm {sgn}\left ({\left (x - 1\right )}^{\frac {3}{2}} + \sqrt {x - 1}\right )} - \frac {4 \, {\left ({\left (x + 1\right )}^{\frac {3}{2}} + \sqrt {x + 1}\right )}}{5 \, \mathrm {sgn}\left ({\left (x - 1\right )}^{\frac {3}{2}} + \sqrt {x - 1}\right )} + \frac {2 \, \log \left (\sqrt {x + 1} + 1\right )}{7 \, \mathrm {sgn}\left ({\left (x - 1\right )}^{\frac {3}{2}} + \sqrt {x - 1}\right )} - \frac {2 \, \log \left (\sqrt {x + 1} - 1\right )}{7 \, \mathrm {sgn}\left ({\left (x - 1\right )}^{\frac {3}{2}} + \sqrt {x - 1}\right )} + \frac {4 \, \sqrt {x + 1}}{\mathrm {sgn}\left ({\left (x - 1\right )}^{\frac {3}{2}} + \sqrt {x - 1}\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 \mathrm {asin}\left (\frac {1}{x}\right )\,{\left (x-1\right )}^{5/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________