Optimal. Leaf size=21 \[ 4 \sqrt {x}+x+4 \log \left (1-\sqrt {x}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 21, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {383, 78}
\begin {gather*} x+4 \sqrt {x}+4 \log \left (1-\sqrt {x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 78
Rule 383
Rubi steps
\begin {align*} \int \frac {1+\sqrt {x}}{-1+\sqrt {x}} \, dx &=2 \text {Subst}\left (\int \frac {x (1+x)}{-1+x} \, dx,x,\sqrt {x}\right )\\ &=2 \text {Subst}\left (\int \left (2+\frac {2}{-1+x}+x\right ) \, dx,x,\sqrt {x}\right )\\ &=4 \sqrt {x}+x+4 \log \left (1-\sqrt {x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 19, normalized size = 0.90 \begin {gather*} 4 \sqrt {x}+x+4 \log \left (-1+\sqrt {x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.33, size = 16, normalized size = 0.76
method | result | size |
derivativedivides | \(x +4 \sqrt {x}+4 \ln \left (-1+\sqrt {x}\right )\) | \(16\) |
default | \(x +4 \sqrt {x}+4 \ln \left (-1+\sqrt {x}\right )\) | \(16\) |
trager | \(x -2+4 \sqrt {x}+2 \ln \left (-1-x +2 \sqrt {x}\right )\) | \(22\) |
meijerg | \(2 \sqrt {x}+4 \ln \left (1-\sqrt {x}\right )+\frac {\sqrt {x}\, \left (3 \sqrt {x}+6\right )}{3}\) | \(29\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 15, normalized size = 0.71 \begin {gather*} x + 4 \, \sqrt {x} + 4 \, \log \left (\sqrt {x} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.33, size = 15, normalized size = 0.71 \begin {gather*} x + 4 \, \sqrt {x} + 4 \, \log \left (\sqrt {x} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.05, size = 17, normalized size = 0.81 \begin {gather*} 4 \sqrt {x} + x + 4 \log {\left (\sqrt {x} - 1 \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.35, size = 16, normalized size = 0.76 \begin {gather*} x + 4 \, \sqrt {x} + 4 \, \log \left ({\left | \sqrt {x} - 1 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.01, size = 15, normalized size = 0.71 \begin {gather*} x+4\,\ln \left (\sqrt {x}-1\right )+4\,\sqrt {x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________