Optimal. Leaf size=29 \[ \sqrt {x}-x-\log \left (1+\sqrt {x}\right )+x \log \left (\sqrt {x}+x\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 29, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.375, Rules used = {2628, 383, 78}
\begin {gather*} -x+\sqrt {x}+x \log \left (x+\sqrt {x}\right )-\log \left (\sqrt {x}+1\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 78
Rule 383
Rule 2628
Rubi steps
\begin {align*} \int \log \left (\sqrt {x}+x\right ) \, dx &=x \log \left (\sqrt {x}+x\right )-\int \frac {1+2 \sqrt {x}}{2+2 \sqrt {x}} \, dx\\ &=x \log \left (\sqrt {x}+x\right )-2 \text {Subst}\left (\int \frac {x (1+2 x)}{2+2 x} \, dx,x,\sqrt {x}\right )\\ &=x \log \left (\sqrt {x}+x\right )-2 \text {Subst}\left (\int \left (-\frac {1}{2}+x+\frac {1}{2 (1+x)}\right ) \, dx,x,\sqrt {x}\right )\\ &=\sqrt {x}-x-\log \left (1+\sqrt {x}\right )+x \log \left (\sqrt {x}+x\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 29, normalized size = 1.00 \begin {gather*} \sqrt {x}-x-\log \left (1+\sqrt {x}\right )+x \log \left (\sqrt {x}+x\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.01, size = 24, normalized size = 0.83
method | result | size |
derivativedivides | \(-x -\ln \left (1+\sqrt {x}\right )+x \ln \left (x +\sqrt {x}\right )+\sqrt {x}\) | \(24\) |
default | \(-x -\ln \left (1+\sqrt {x}\right )+x \ln \left (x +\sqrt {x}\right )+\sqrt {x}\) | \(24\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 23, normalized size = 0.79 \begin {gather*} x \log \left (x + \sqrt {x}\right ) - x + \sqrt {x} - \log \left (\sqrt {x} + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.41, size = 31, normalized size = 1.07 \begin {gather*} {\left (x + 1\right )} \log \left (x + \sqrt {x}\right ) - x + \sqrt {x} - 2 \, \log \left (\sqrt {x} + 1\right ) - \log \left (\sqrt {x}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 6.36, size = 24, normalized size = 0.83 \begin {gather*} \sqrt {x} + x \log {\left (\sqrt {x} + x \right )} - x - \log {\left (\sqrt {x} + 1 \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.72, size = 23, normalized size = 0.79 \begin {gather*} x \log \left (x + \sqrt {x}\right ) - x + \sqrt {x} - \log \left (\sqrt {x} + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.08, size = 23, normalized size = 0.79 \begin {gather*} \sqrt {x}-\ln \left (\sqrt {x}+1\right )-x+x\,\ln \left (x+\sqrt {x}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________