Optimal. Leaf size=30 \[ 2 \sqrt {-1+x}+\frac {4}{3} (-1+x)^{3/2}-\frac {4 x^{3/2}}{3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 30, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 2, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {6821, 45}
\begin {gather*} -\frac {4 x^{3/2}}{3}+\frac {4}{3} (x-1)^{3/2}+2 \sqrt {x-1} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 6821
Rubi steps
\begin {align*} \int \frac {1}{\left (\sqrt {-1+x}+\sqrt {x}\right )^2 \sqrt {-1+x}} \, dx &=\int \left (-\frac {1}{\sqrt {-1+x}}-2 \sqrt {x}+\frac {2 x}{\sqrt {-1+x}}\right ) \, dx\\ &=-2 \sqrt {-1+x}-\frac {4 x^{3/2}}{3}+2 \int \frac {x}{\sqrt {-1+x}} \, dx\\ &=-2 \sqrt {-1+x}-\frac {4 x^{3/2}}{3}+2 \int \left (\frac {1}{\sqrt {-1+x}}+\sqrt {-1+x}\right ) \, dx\\ &=2 \sqrt {-1+x}+\frac {4}{3} (-1+x)^{3/2}-\frac {4 x^{3/2}}{3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.18, size = 26, normalized size = 0.87 \begin {gather*} -\frac {4 x^{3/2}}{3}+\frac {2}{3} \sqrt {-1+x} (1+2 x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [A]
time = 2.09, size = 32, normalized size = 1.07 \begin {gather*} \frac {2 \left (-2 \sqrt {x}-\sqrt {-1+x}\right )}{-3+6 \sqrt {x} \sqrt {-1+x}+6 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 21, normalized size = 0.70
method | result | size |
default | \(\frac {4 \left (-1+x \right )^{\frac {3}{2}}}{3}-\frac {4 x^{\frac {3}{2}}}{3}+2 \sqrt {-1+x}\) | \(21\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.31, size = 18, normalized size = 0.60 \begin {gather*} \frac {2}{3} \, {\left (2 \, x + 1\right )} \sqrt {x - 1} - \frac {4}{3} \, x^{\frac {3}{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 53 vs.
\(2 (26) = 52\)
time = 0.31, size = 53, normalized size = 1.77 \begin {gather*} - \frac {4 \sqrt {x}}{6 \sqrt {x} \sqrt {x - 1} + 6 x - 3} - \frac {2 \sqrt {x - 1}}{6 \sqrt {x} \sqrt {x - 1} + 6 x - 3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.00, size = 53, normalized size = 1.77 \begin {gather*} 2 \left (\frac {2}{3} \sqrt {x-1} \left (x-1\right )+\sqrt {x-1}+2 \left (-\frac 1{3}-\frac {1}{3} \sqrt {x-1} \sqrt {x-1}\right ) \sqrt {x}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.38, size = 21, normalized size = 0.70 \begin {gather*} \frac {4\,x\,\sqrt {x-1}}{3}+\frac {2\,\sqrt {x-1}}{3}-\frac {4\,x^{3/2}}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________