Optimal. Leaf size=20 \[ \frac {4 \left (-x-\frac {x^2}{2}\right ) (x+\log (x))}{x} \]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 18, normalized size of antiderivative = 0.90, number of steps used = 5, number of rules used = 2, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {14, 2295} \begin {gather*} -2 x^2-4 x-2 x \log (x)-4 \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2295
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (-\frac {2 \left (2+3 x+2 x^2\right )}{x}-2 \log (x)\right ) \, dx\\ &=-\left (2 \int \frac {2+3 x+2 x^2}{x} \, dx\right )-2 \int \log (x) \, dx\\ &=2 x-2 x \log (x)-2 \int \left (3+\frac {2}{x}+2 x\right ) \, dx\\ &=-4 x-2 x^2-4 \log (x)-2 x \log (x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.00, size = 18, normalized size = 0.90 \begin {gather*} -4 x-2 x^2-4 \log (x)-2 x \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.86, size = 16, normalized size = 0.80 \begin {gather*} -2 \, x^{2} - 2 \, {\left (x + 2\right )} \log \relax (x) - 4 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.13, size = 18, normalized size = 0.90 \begin {gather*} -2 \, x^{2} - 2 \, x \log \relax (x) - 4 \, x - 4 \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 19, normalized size = 0.95
method | result | size |
default | \(-4 x -2 x \ln \relax (x )-2 x^{2}-4 \ln \relax (x )\) | \(19\) |
norman | \(-4 x -2 x \ln \relax (x )-2 x^{2}-4 \ln \relax (x )\) | \(19\) |
risch | \(-4 x -2 x \ln \relax (x )-2 x^{2}-4 \ln \relax (x )\) | \(19\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.37, size = 18, normalized size = 0.90 \begin {gather*} -2 \, x^{2} - 2 \, x \log \relax (x) - 4 \, x - 4 \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.13, size = 9, normalized size = 0.45 \begin {gather*} -2\,\left (x+\ln \relax (x)\right )\,\left (x+2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.10, size = 20, normalized size = 1.00 \begin {gather*} - 2 x^{2} - 2 x \log {\relax (x )} - 4 x - 4 \log {\relax (x )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________