Optimal. Leaf size=29 \[ \left (-5-e^2-x+e^3 x-x^2\right ) (5+x (-9+\log (x))) \]
________________________________________________________________________________________
Rubi [B] time = 0.10, antiderivative size = 85, normalized size of antiderivative = 2.93, number of steps used = 8, number of rules used = 5, integrand size = 62, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.081, Rules used = {6, 14, 2356, 2295, 2304} \begin {gather*} 9 x^3+x^3 (-\log (x))+\frac {1}{2} \left (1-e^3\right ) x^2+\frac {1}{2} \left (7-17 e^3\right ) x^2-\left (1-e^3\right ) x^2 \log (x)+\left (35+e^2 (8+5 e)\right ) x+\left (5+e^2\right ) x-\left (5+e^2\right ) x \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 6
Rule 14
Rule 2295
Rule 2304
Rule 2356
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {\left (35+8 e^2\right ) x+7 x^2+26 x^3+\left (-5 x-e^2 x-2 x^2-3 x^3\right ) \log (x)+e^3 x (5-17 x+2 x \log (x))}{x} \, dx\\ &=\int \left (35 \left (1+\frac {1}{35} e^2 (8+5 e)\right )+7 \left (1-\frac {17 e^3}{7}\right ) x+26 x^2+\left (-5-e^2-2 \left (1-e^3\right ) x-3 x^2\right ) \log (x)\right ) \, dx\\ &=\left (35+e^2 (8+5 e)\right ) x+\frac {1}{2} \left (7-17 e^3\right ) x^2+\frac {26 x^3}{3}+\int \left (-5-e^2-2 \left (1-e^3\right ) x-3 x^2\right ) \log (x) \, dx\\ &=\left (35+e^2 (8+5 e)\right ) x+\frac {1}{2} \left (7-17 e^3\right ) x^2+\frac {26 x^3}{3}+\int \left (-5 \left (1+\frac {e^2}{5}\right ) \log (x)+2 (-1+e) \left (1+e+e^2\right ) x \log (x)-3 x^2 \log (x)\right ) \, dx\\ &=\left (35+e^2 (8+5 e)\right ) x+\frac {1}{2} \left (7-17 e^3\right ) x^2+\frac {26 x^3}{3}-3 \int x^2 \log (x) \, dx-\left (5+e^2\right ) \int \log (x) \, dx+\left (2 (-1+e) \left (1+e+e^2\right )\right ) \int x \log (x) \, dx\\ &=\left (5+e^2\right ) x+\left (35+e^2 (8+5 e)\right ) x+\frac {1}{2} (1-e) \left (1+e+e^2\right ) x^2+\frac {1}{2} \left (7-17 e^3\right ) x^2+9 x^3-\left (5+e^2\right ) x \log (x)-(1-e) \left (1+e+e^2\right ) x^2 \log (x)-x^3 \log (x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [B] time = 0.01, size = 70, normalized size = 2.41 \begin {gather*} 40 x+9 e^2 x+5 e^3 x+4 x^2-9 e^3 x^2+9 x^3-5 x \log (x)-e^2 x \log (x)-x^2 \log (x)+e^3 x^2 \log (x)-x^3 \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.85, size = 57, normalized size = 1.97 \begin {gather*} 9 \, x^{3} + 4 \, x^{2} - {\left (9 \, x^{2} - 5 \, x\right )} e^{3} + 9 \, x e^{2} - {\left (x^{3} - x^{2} e^{3} + x^{2} + x e^{2} + 5 \, x\right )} \log \relax (x) + 40 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.13, size = 65, normalized size = 2.24 \begin {gather*} -x^{3} \log \relax (x) + x^{2} e^{3} \log \relax (x) + 9 \, x^{3} - 9 \, x^{2} e^{3} - x^{2} \log \relax (x) - x e^{2} \log \relax (x) + 4 \, x^{2} + 5 \, x e^{3} + 9 \, x e^{2} - 5 \, x \log \relax (x) + 40 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 56, normalized size = 1.93
method | result | size |
norman | \(\left (4-9 \,{\mathrm e}^{3}\right ) x^{2}+\left (40+9 \,{\mathrm e}^{2}+5 \,{\mathrm e}^{3}\right ) x +\left (-{\mathrm e}^{2}-5\right ) x \ln \relax (x )+\left ({\mathrm e}^{3}-1\right ) x^{2} \ln \relax (x )+9 x^{3}-x^{3} \ln \relax (x )\) | \(56\) |
risch | \(\left (x^{2} {\mathrm e}^{3}-{\mathrm e}^{2} x -x^{3}-x^{2}-5 x \right ) \ln \relax (x )-9 x^{2} {\mathrm e}^{3}+5 x \,{\mathrm e}^{3}+9 \,{\mathrm e}^{2} x +9 x^{3}+4 x^{2}+40 x\) | \(60\) |
default | \(40 x +{\mathrm e}^{3} \ln \relax (x ) x^{2}-9 x^{2} {\mathrm e}^{3}+5 x \,{\mathrm e}^{3}-x^{3} \ln \relax (x )+9 x^{3}-x \,{\mathrm e}^{2} \ln \relax (x )+9 \,{\mathrm e}^{2} x -x^{2} \ln \relax (x )+4 x^{2}-5 x \ln \relax (x )\) | \(66\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.36, size = 79, normalized size = 2.72 \begin {gather*} -x^{3} \log \relax (x) + 9 \, x^{3} - \frac {17}{2} \, x^{2} e^{3} - x^{2} \log \relax (x) + 4 \, x^{2} + \frac {1}{2} \, {\left (2 \, x^{2} \log \relax (x) - x^{2}\right )} e^{3} + 5 \, x e^{3} - {\left (x \log \relax (x) - x\right )} e^{2} + 8 \, x e^{2} - 5 \, x \log \relax (x) + 40 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 8.54, size = 47, normalized size = 1.62 \begin {gather*} x^2\,\left (\ln \relax (x)\,\left ({\mathrm {e}}^3-1\right )-9\,{\mathrm {e}}^3+4\right )-x^3\,\left (\ln \relax (x)-9\right )+x\,\left (9\,{\mathrm {e}}^2+5\,{\mathrm {e}}^3-\ln \relax (x)\,\left ({\mathrm {e}}^2+5\right )+40\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.15, size = 53, normalized size = 1.83 \begin {gather*} 9 x^{3} + x^{2} \left (4 - 9 e^{3}\right ) + x \left (40 + 9 e^{2} + 5 e^{3}\right ) + \left (- x^{3} - x^{2} + x^{2} e^{3} - x e^{2} - 5 x\right ) \log {\relax (x )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________