Optimal. Leaf size=20 \[ x \left (-3-e^x+x^2\right ) (5+\log (x)) \log (2 x) \]
________________________________________________________________________________________
Rubi [B] time = 1.17, antiderivative size = 87, normalized size of antiderivative = 4.35, number of steps used = 46, number of rules used = 16, integrand size = 65, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.246, Rules used = {2194, 2554, 2178, 2176, 6742, 2288, 2199, 2557, 6483, 6475, 14, 2295, 2304, 2361, 2366, 12} \begin {gather*} -\frac {x^3}{9}+\frac {1}{9} x^3 (1-3 \log (x))+\frac {1}{3} x^3 \log (x)+x^3 \log (x) \log (2 x)+5 x^3 \log (2 x)-5 e^x x \log (2 x)-e^x x \log (x) \log (2 x)-3 x \log (x) \log (2 x)-15 x \log (2 x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 14
Rule 2176
Rule 2178
Rule 2194
Rule 2199
Rule 2288
Rule 2295
Rule 2304
Rule 2361
Rule 2366
Rule 2554
Rule 2557
Rule 6475
Rule 6483
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=-15 x+\frac {5 x^3}{3}-5 \int e^x \, dx+\int \left (-3-e^x+x^2\right ) \log (x) \, dx+\int \left (-18+e^x (-6-5 x)+16 x^2+\left (-3+e^x (-1-x)+3 x^2\right ) \log (x)\right ) \log (2 x) \, dx\\ &=-5 e^x-15 x+\frac {5 x^3}{3}-e^x \log (x)-3 x \log (x)+\frac {1}{3} x^3 \log (x)-\int \left (-3-\frac {e^x}{x}+\frac {x^2}{3}\right ) \, dx+\int \left (-e^x (6+5 x+\log (x)+x \log (x)) \log (2 x)+\left (-18+16 x^2-3 \log (x)+3 x^2 \log (x)\right ) \log (2 x)\right ) \, dx\\ &=-5 e^x-12 x+\frac {14 x^3}{9}-e^x \log (x)-3 x \log (x)+\frac {1}{3} x^3 \log (x)+\int \frac {e^x}{x} \, dx-\int e^x (6+5 x+\log (x)+x \log (x)) \log (2 x) \, dx+\int \left (-18+16 x^2-3 \log (x)+3 x^2 \log (x)\right ) \log (2 x) \, dx\\ &=-5 e^x-12 x+\frac {14 x^3}{9}+\text {Ei}(x)-e^x \log (x)-3 x \log (x)+\frac {1}{3} x^3 \log (x)-\int \left (6 e^x \log (2 x)+5 e^x x \log (2 x)+e^x \log (x) \log (2 x)+e^x x \log (x) \log (2 x)\right ) \, dx+\int \left (-18 \log (2 x)+16 x^2 \log (2 x)-3 \log (x) \log (2 x)+3 x^2 \log (x) \log (2 x)\right ) \, dx\\ &=-5 e^x-12 x+\frac {14 x^3}{9}+\text {Ei}(x)-e^x \log (x)-3 x \log (x)+\frac {1}{3} x^3 \log (x)-3 \int \log (x) \log (2 x) \, dx+3 \int x^2 \log (x) \log (2 x) \, dx-5 \int e^x x \log (2 x) \, dx-6 \int e^x \log (2 x) \, dx+16 \int x^2 \log (2 x) \, dx-18 \int \log (2 x) \, dx-\int e^x \log (x) \log (2 x) \, dx-\int e^x x \log (x) \log (2 x) \, dx\\ &=-5 e^x+6 x-\frac {2 x^3}{9}+\text {Ei}(x)-e^x \log (x)-3 x \log (x)+\frac {1}{3} x^3 \log (x)-e^x \log (2 x)-15 x \log (2 x)-5 e^x x \log (2 x)+5 x^3 \log (2 x)-3 x \log (x) \log (2 x)-e^x x \log (x) \log (2 x)+x^3 \log (x) \log (2 x)+3 \int (-1+\log (x)) \, dx-3 \int \frac {1}{9} x^2 (-1+3 \log (x)) \, dx+5 \int \frac {e^x (-1+x)}{x} \, dx+6 \int \frac {e^x}{x} \, dx+\int \frac {e^x \log (x)}{x} \, dx+\int \frac {e^x (-1+x) \log (x)}{x} \, dx+\int \frac {e^x \log (2 x)}{x} \, dx+\int \frac {e^x (-1+x) \log (2 x)}{x} \, dx\\ &=-5 e^x+3 x-\frac {2 x^3}{9}+7 \text {Ei}(x)-3 x \log (x)+\frac {1}{3} x^3 \log (x)-15 x \log (2 x)-5 e^x x \log (2 x)+5 x^3 \log (2 x)-3 x \log (x) \log (2 x)-e^x x \log (x) \log (2 x)+x^3 \log (x) \log (2 x)-\frac {1}{3} \int x^2 (-1+3 \log (x)) \, dx+3 \int \log (x) \, dx+5 \int \left (e^x-\frac {e^x}{x}\right ) \, dx-2 \int \frac {e^x-\text {Ei}(x)}{x} \, dx-2 \int \frac {\text {Ei}(x)}{x} \, dx\\ &=-5 e^x-\frac {x^3}{9}+7 \text {Ei}(x)+\frac {1}{9} x^3 (1-3 \log (x))+\frac {1}{3} x^3 \log (x)-15 x \log (2 x)-5 e^x x \log (2 x)+5 x^3 \log (2 x)-3 x \log (x) \log (2 x)-e^x x \log (x) \log (2 x)+x^3 \log (x) \log (2 x)+5 \int e^x \, dx-5 \int \frac {e^x}{x} \, dx-2 \left ((E_1(-x)+\text {Ei}(x)) \log (x)-\int \frac {E_1(-x)}{x} \, dx\right )-2 \int \left (\frac {e^x}{x}-\frac {\text {Ei}(x)}{x}\right ) \, dx\\ &=-\frac {x^3}{9}+2 \text {Ei}(x)+\frac {1}{9} x^3 (1-3 \log (x))+\frac {1}{3} x^3 \log (x)-2 \left (x \, _3F_3(1,1,1;2,2,2;x)+\frac {1}{2} \log ^2(-x)+\gamma \log (x)+(E_1(-x)+\text {Ei}(x)) \log (x)\right )-15 x \log (2 x)-5 e^x x \log (2 x)+5 x^3 \log (2 x)-3 x \log (x) \log (2 x)-e^x x \log (x) \log (2 x)+x^3 \log (x) \log (2 x)-2 \left (\int \frac {e^x}{x} \, dx-\int \frac {\text {Ei}(x)}{x} \, dx\right )\\ &=-\frac {x^3}{9}+2 \text {Ei}(x)+\frac {1}{9} x^3 (1-3 \log (x))+\frac {1}{3} x^3 \log (x)-2 \left (x \, _3F_3(1,1,1;2,2,2;x)+\frac {1}{2} \log ^2(-x)+\gamma \log (x)+(E_1(-x)+\text {Ei}(x)) \log (x)\right )-15 x \log (2 x)-5 e^x x \log (2 x)+5 x^3 \log (2 x)-3 x \log (x) \log (2 x)-e^x x \log (x) \log (2 x)+x^3 \log (x) \log (2 x)-2 \left (\text {Ei}(x)-(E_1(-x)+\text {Ei}(x)) \log (x)+\int \frac {E_1(-x)}{x} \, dx\right )\\ &=-\frac {x^3}{9}+2 \text {Ei}(x)+\frac {1}{9} x^3 (1-3 \log (x))+\frac {1}{3} x^3 \log (x)-2 \left (\text {Ei}(x)-x \, _3F_3(1,1,1;2,2,2;x)-\frac {1}{2} \log ^2(-x)-\gamma \log (x)-(E_1(-x)+\text {Ei}(x)) \log (x)\right )-2 \left (x \, _3F_3(1,1,1;2,2,2;x)+\frac {1}{2} \log ^2(-x)+\gamma \log (x)+(E_1(-x)+\text {Ei}(x)) \log (x)\right )-15 x \log (2 x)-5 e^x x \log (2 x)+5 x^3 \log (2 x)-3 x \log (x) \log (2 x)-e^x x \log (x) \log (2 x)+x^3 \log (x) \log (2 x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.26, size = 20, normalized size = 1.00 \begin {gather*} x \left (-3-e^x+x^2\right ) (5+\log (x)) \log (2 x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 1.15, size = 70, normalized size = 3.50 \begin {gather*} -5 \, x e^{x} \log \relax (2) + {\left (x^{3} - x e^{x} - 3 \, x\right )} \log \relax (x)^{2} + 5 \, {\left (x^{3} - 3 \, x\right )} \log \relax (2) + {\left (5 \, x^{3} - {\left (x \log \relax (2) + 5 \, x\right )} e^{x} + {\left (x^{3} - 3 \, x\right )} \log \relax (2) - 15 \, x\right )} \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.25, size = 107, normalized size = 5.35 \begin {gather*} x^{3} \log \relax (2) \log \relax (x) + x^{3} \log \relax (x)^{2} + 5 \, x^{3} \log \relax (2) + \frac {14}{3} \, x^{3} \log \relax (x) - x e^{x} \log \relax (2) \log \relax (x) - x e^{x} \log \relax (x)^{2} - 5 \, x e^{x} \log \relax (2) - 5 \, x e^{x} \log \relax (x) - 3 \, x \log \relax (2) \log \relax (x) - 3 \, x \log \relax (x)^{2} - 15 \, x \log \relax (2) + \frac {1}{3} \, {\left (x^{3} - 9 \, x - 3 \, e^{x}\right )} \log \relax (x) - 12 \, x \log \relax (x) + e^{x} \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.09, size = 88, normalized size = 4.40
method | result | size |
risch | \(x^{3} \ln \relax (x )^{2}+\ln \relax (x ) \ln \relax (2) x^{3}-x \,{\mathrm e}^{x} \ln \relax (x )^{2}-x \ln \relax (2) {\mathrm e}^{x} \ln \relax (x )+5 x^{3} \ln \relax (x )+5 x^{3} \ln \relax (2)-3 x \ln \relax (x )^{2}-5 x \,{\mathrm e}^{x} \ln \relax (x )-3 x \ln \relax (2) \ln \relax (x )-5 x \ln \relax (2) {\mathrm e}^{x}-15 x \ln \relax (x )-15 x \ln \relax (2)\) | \(88\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.53, size = 87, normalized size = 4.35 \begin {gather*} \frac {5}{3} \, x^{3} {\left (3 \, \log \relax (2) - 1\right )} + \frac {5}{3} \, x^{3} + {\left (x^{3} - 3 \, x\right )} \log \relax (x)^{2} - 15 \, x {\left (\log \relax (2) - 1\right )} - {\left (x {\left (\log \relax (2) + 5\right )} \log \relax (x) + x \log \relax (x)^{2} + 5 \, x \log \relax (2) - 5\right )} e^{x} + {\left (x^{3} {\left (\log \relax (2) + 5\right )} - 3 \, x {\left (\log \relax (2) + 5\right )}\right )} \log \relax (x) - 15 \, x - 5 \, e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.55, size = 21, normalized size = 1.05 \begin {gather*} -x\,\left (\ln \relax (x)+5\right )\,\left (\ln \relax (2)+\ln \relax (x)\right )\,\left ({\mathrm {e}}^x-x^2+3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.47, size = 85, normalized size = 4.25 \begin {gather*} 5 x^{3} \log {\relax (2 )} - 15 x \log {\relax (2 )} + \left (x^{3} - 3 x\right ) \log {\relax (x )}^{2} + \left (- x \log {\relax (x )}^{2} - 5 x \log {\relax (x )} - x \log {\relax (2 )} \log {\relax (x )} - 5 x \log {\relax (2 )}\right ) e^{x} + \left (x^{3} \log {\relax (2 )} + 5 x^{3} - 15 x - 3 x \log {\relax (2 )}\right ) \log {\relax (x )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________