Optimal. Leaf size=82 \[ \frac {4 x \sqrt {x^2-1} \left (3 x^2-19 x+83\right )}{105 \sqrt {x^2} \sqrt {x-1}}+\frac {4 x \tanh ^{-1}\left (\frac {\sqrt {x^2-1}}{\sqrt {x-1}}\right )}{7 \sqrt {x^2}}+\frac {2}{7} (x-1)^{7/2} \csc ^{-1}(x) \]
________________________________________________________________________________________
Rubi [A] time = 0.08, 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 = {5227, 1574, 892, 88, 63, 207} \[ \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) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 63
Rule 88
Rule 207
Rule 892
Rule 1574
Rule 5227
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 ) \operatorname {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.11, size = 72, normalized size = 0.88 \[ \frac {4 \sqrt {1-\frac {1}{x^2}} x \left (3 x^2-19 x+83\right )}{105 \sqrt {x-1}}+\frac {4}{7} \tanh ^{-1}\left (\frac {\sqrt {1-\frac {1}{x^2}} x}{\sqrt {x-1}}\right )+\frac {2}{7} (x-1)^{7/2} \csc ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int (-1+x)^{5/2} \csc ^{-1}(x) \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 1.16, size = 125, normalized size = 1.52 \[ \frac {2 \, {\left (15 \, {\left (x^{4} - 4 \, x^{3} + 6 \, x^{2} - 4 \, x + 1\right )} \sqrt {x - 1} \operatorname {arccsc}\relax (x) + 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 )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 1.75, size = 228, normalized size = 2.78 \[ \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 )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.33, size = 76, normalized size = 0.93
method | result | size |
derivativedivides | \(\frac {2 \left (-1+x \right )^{\frac {7}{2}} \mathrm {arccsc}\relax (x )}{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}\relax (x )}{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 = 3.44, size = 116, normalized size = 1.41 \[ \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 ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \mathrm {asin}\left (\frac {1}{x}\right )\,{\left (x-1\right )}^{5/2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________