Optimal. Leaf size=69 \[ \frac {1}{4} (x-1)^{3/2} \sqrt {x+1} x^2+\frac {1}{24} (7-2 x) (x-1)^{3/2} \sqrt {x+1}-\frac {3}{8} \sqrt {x-1} \sqrt {x+1}+\frac {3}{8} \cosh ^{-1}(x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 69, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.294, Rules used = {1958, 100, 147, 50, 52} \[ \frac {1}{4} (x-1)^{3/2} \sqrt {x+1} x^2+\frac {1}{24} (7-2 x) (x-1)^{3/2} \sqrt {x+1}-\frac {3}{8} \sqrt {x-1} \sqrt {x+1}+\frac {3}{8} \cosh ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 50
Rule 52
Rule 100
Rule 147
Rule 1958
Rubi steps
\begin {align*} \int x^3 \sqrt {\frac {-1+x}{1+x}} \, dx &=\int \frac {\sqrt {-1+x} x^3}{\sqrt {1+x}} \, dx\\ &=\frac {1}{4} (-1+x)^{3/2} x^2 \sqrt {1+x}+\frac {1}{4} \int \frac {(2-x) \sqrt {-1+x} x}{\sqrt {1+x}} \, dx\\ &=\frac {1}{24} (7-2 x) (-1+x)^{3/2} \sqrt {1+x}+\frac {1}{4} (-1+x)^{3/2} x^2 \sqrt {1+x}-\frac {3}{8} \int \frac {\sqrt {-1+x}}{\sqrt {1+x}} \, dx\\ &=-\frac {3}{8} \sqrt {-1+x} \sqrt {1+x}+\frac {1}{24} (7-2 x) (-1+x)^{3/2} \sqrt {1+x}+\frac {1}{4} (-1+x)^{3/2} x^2 \sqrt {1+x}+\frac {3}{8} \int \frac {1}{\sqrt {-1+x} \sqrt {1+x}} \, dx\\ &=-\frac {3}{8} \sqrt {-1+x} \sqrt {1+x}+\frac {1}{24} (7-2 x) (-1+x)^{3/2} \sqrt {1+x}+\frac {1}{4} (-1+x)^{3/2} x^2 \sqrt {1+x}+\frac {3}{8} \cosh ^{-1}(x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 76, normalized size = 1.10 \[ \frac {\sqrt {\frac {x-1}{x+1}} \left (6 x^5-8 x^4+3 x^3-8 x^2-18 \sqrt {1-x^2} \sin ^{-1}\left (\frac {\sqrt {1-x}}{\sqrt {2}}\right )-9 x+16\right )}{24 (x-1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.43, size = 64, normalized size = 0.93 \[ \frac {1}{24} \, {\left (6 \, x^{4} - 2 \, x^{3} + x^{2} - 7 \, x - 16\right )} \sqrt {\frac {x - 1}{x + 1}} + \frac {3}{8} \, \log \left (\sqrt {\frac {x - 1}{x + 1}} + 1\right ) - \frac {3}{8} \, \log \left (\sqrt {\frac {x - 1}{x + 1}} - 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.34, size = 62, normalized size = 0.90 \[ -\frac {3}{8} \, \log \left ({\left | -x + \sqrt {x^{2} - 1} \right |}\right ) \mathrm {sgn}\left (x + 1\right ) + \frac {1}{24} \, {\left ({\left (2 \, {\left (3 \, x \mathrm {sgn}\left (x + 1\right ) - 4 \, \mathrm {sgn}\left (x + 1\right )\right )} x + 9 \, \mathrm {sgn}\left (x + 1\right )\right )} x - 16 \, \mathrm {sgn}\left (x + 1\right )\right )} \sqrt {x^{2} - 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 79, normalized size = 1.14 \[ \frac {\sqrt {\frac {x -1}{x +1}}\, \left (x +1\right ) \left (6 \left (x^{2}-1\right )^{\frac {3}{2}} x +15 \sqrt {x^{2}-1}\, x +9 \ln \left (x +\sqrt {x^{2}-1}\right )-8 \left (\left (x -1\right ) \left (x +1\right )\right )^{\frac {3}{2}}-24 \sqrt {x^{2}-1}\right )}{24 \sqrt {\left (x -1\right ) \left (x +1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.85, size = 138, normalized size = 2.00 \[ -\frac {39 \, \left (\frac {x - 1}{x + 1}\right )^{\frac {7}{2}} - 31 \, \left (\frac {x - 1}{x + 1}\right )^{\frac {5}{2}} + 49 \, \left (\frac {x - 1}{x + 1}\right )^{\frac {3}{2}} - 9 \, \sqrt {\frac {x - 1}{x + 1}}}{12 \, {\left (\frac {4 \, {\left (x - 1\right )}}{x + 1} - \frac {6 \, {\left (x - 1\right )}^{2}}{{\left (x + 1\right )}^{2}} + \frac {4 \, {\left (x - 1\right )}^{3}}{{\left (x + 1\right )}^{3}} - \frac {{\left (x - 1\right )}^{4}}{{\left (x + 1\right )}^{4}} - 1\right )}} + \frac {3}{8} \, \log \left (\sqrt {\frac {x - 1}{x + 1}} + 1\right ) - \frac {3}{8} \, \log \left (\sqrt {\frac {x - 1}{x + 1}} - 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.05, size = 119, normalized size = 1.72 \[ \frac {3\,\mathrm {atanh}\left (\sqrt {\frac {x-1}{x+1}}\right )}{4}-\frac {\frac {3\,\sqrt {\frac {x-1}{x+1}}}{4}-\frac {49\,{\left (\frac {x-1}{x+1}\right )}^{3/2}}{12}+\frac {31\,{\left (\frac {x-1}{x+1}\right )}^{5/2}}{12}-\frac {13\,{\left (\frac {x-1}{x+1}\right )}^{7/2}}{4}}{\frac {6\,{\left (x-1\right )}^2}{{\left (x+1\right )}^2}-\frac {4\,\left (x-1\right )}{x+1}-\frac {4\,{\left (x-1\right )}^3}{{\left (x+1\right )}^3}+\frac {{\left (x-1\right )}^4}{{\left (x+1\right )}^4}+1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int x^{3} \sqrt {\frac {x - 1}{x + 1}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________