Optimal. Leaf size=14 \[ (-18+4 x-(-4+x) x) \log (x) \]
________________________________________________________________________________________
Rubi [B] time = 0.03, antiderivative size = 38, normalized size of antiderivative = 2.71, number of steps used = 6, number of rules used = 3, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.115, Rules used = {14, 2313, 9} \begin {gather*} -\frac {x^2}{2}+\left (8 x-x^2\right ) \log (x)+\frac {1}{2} (8-x)^2+8 x-18 \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 9
Rule 14
Rule 2313
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (\frac {-18+8 x-x^2}{x}-2 (-4+x) \log (x)\right ) \, dx\\ &=-(2 \int (-4+x) \log (x) \, dx)+\int \frac {-18+8 x-x^2}{x} \, dx\\ &=\left (8 x-x^2\right ) \log (x)+2 \int \frac {1}{2} (-8+x) \, dx+\int \left (8-\frac {18}{x}-x\right ) \, dx\\ &=\frac {1}{2} (8-x)^2+8 x-\frac {x^2}{2}-18 \log (x)+\left (8 x-x^2\right ) \log (x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.00, size = 17, normalized size = 1.21 \begin {gather*} -18 \log (x)+8 x \log (x)-x^2 \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.70, size = 12, normalized size = 0.86 \begin {gather*} -{\left (x^{2} - 8 \, x + 18\right )} \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.38, size = 16, normalized size = 1.14 \begin {gather*} -{\left (x^{2} - 8 \, x\right )} \log \relax (x) - 18 \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 18, normalized size = 1.29
method | result | size |
default | \(-x^{2} \ln \relax (x )+8 x \ln \relax (x )-18 \ln \relax (x )\) | \(18\) |
norman | \(-x^{2} \ln \relax (x )+8 x \ln \relax (x )-18 \ln \relax (x )\) | \(18\) |
risch | \(\left (-x^{2}+8 x \right ) \ln \relax (x )-18 \ln \relax (x )\) | \(18\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.66, size = 17, normalized size = 1.21 \begin {gather*} -x^{2} \log \relax (x) + 8 \, x \log \relax (x) - 18 \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.13, size = 12, normalized size = 0.86 \begin {gather*} -\ln \relax (x)\,\left (x^2-8\,x+18\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.10, size = 14, normalized size = 1.00 \begin {gather*} \left (- x^{2} + 8 x\right ) \log {\relax (x )} - 18 \log {\relax (x )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________