Optimal. Leaf size=22 \[ -4+x+\frac {1}{16} \left (e^x-x^2\right )^2 (x+\log (x)) \]
[Out]
________________________________________________________________________________________
Rubi [B] Leaf count is larger than twice the leaf count of optimal. \(54\) vs. \(2(22)=44\).
time = 0.09, antiderivative size = 54, normalized size of antiderivative = 2.45, number of steps
used = 6, number of rules used = 4, integrand size = 85, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.047, Rules used = {12, 14, 2341,
2326} \begin {gather*} \frac {x^5}{16}+\frac {1}{16} x^4 \log (x)-\frac {1}{8} e^x x \left (x^2+x \log (x)\right )+\frac {e^{2 x} \left (x^2+x \log (x)\right )}{16 x}+x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 14
Rule 2326
Rule 2341
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\frac {1}{16} \int \frac {16 x+x^4+5 x^5+e^{2 x} \left (1+x+2 x^2\right )+e^x \left (-2 x^2-6 x^3-2 x^4\right )+\left (2 e^{2 x} x+4 x^4+e^x \left (-4 x^2-2 x^3\right )\right ) \log (x)}{x} \, dx\\ &=\frac {1}{16} \int \left (16+x^3+5 x^4+4 x^3 \log (x)-2 e^x x \left (1+3 x+x^2+2 \log (x)+x \log (x)\right )+\frac {e^{2 x} \left (1+x+2 x^2+2 x \log (x)\right )}{x}\right ) \, dx\\ &=x+\frac {x^4}{64}+\frac {x^5}{16}+\frac {1}{16} \int \frac {e^{2 x} \left (1+x+2 x^2+2 x \log (x)\right )}{x} \, dx-\frac {1}{8} \int e^x x \left (1+3 x+x^2+2 \log (x)+x \log (x)\right ) \, dx+\frac {1}{4} \int x^3 \log (x) \, dx\\ &=x+\frac {x^5}{16}+\frac {1}{16} x^4 \log (x)+\frac {e^{2 x} \left (x^2+x \log (x)\right )}{16 x}-\frac {1}{8} e^x x \left (x^2+x \log (x)\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 39, normalized size = 1.77 \begin {gather*} \frac {1}{16} \left (x \left (16+e^{2 x}-2 e^x x^2+x^4\right )+\left (e^x-x^2\right )^2 \log (x)\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.12, size = 46, normalized size = 2.09
method | result | size |
risch | \(\frac {\left ({\mathrm e}^{2 x}-2 \,{\mathrm e}^{x} x^{2}+x^{4}\right ) \ln \left (x \right )}{16}+\frac {x^{5}}{16}-\frac {{\mathrm e}^{x} x^{3}}{8}+\frac {x \,{\mathrm e}^{2 x}}{16}+x\) | \(41\) |
default | \(x -\frac {{\mathrm e}^{x} x^{3}}{8}-\frac {x^{2} {\mathrm e}^{x} \ln \left (x \right )}{8}+\frac {x \,{\mathrm e}^{2 x}}{16}+\frac {{\mathrm e}^{2 x} \ln \left (x \right )}{16}+\frac {x^{5}}{16}+\frac {x^{4} \ln \left (x \right )}{16}\) | \(46\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 40 vs.
\(2 (19) = 38\).
time = 0.32, size = 40, normalized size = 1.82 \begin {gather*} \frac {1}{16} \, x^{5} - \frac {1}{8} \, x^{3} e^{x} + \frac {1}{16} \, x e^{\left (2 \, x\right )} + \frac {1}{16} \, {\left (x^{4} - 2 \, x^{2} e^{x} + e^{\left (2 \, x\right )}\right )} \log \left (x\right ) + x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 49 vs.
\(2 (19) = 38\).
time = 0.18, size = 49, normalized size = 2.23 \begin {gather*} \frac {x^{5}}{16} + \frac {x^{4} \log {\left (x \right )}}{16} + x + \frac {\left (8 x + 8 \log {\left (x \right )}\right ) e^{2 x}}{128} + \frac {\left (- 16 x^{3} - 16 x^{2} \log {\left (x \right )}\right ) e^{x}}{128} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 45 vs.
\(2 (19) = 38\).
time = 0.42, size = 45, normalized size = 2.05 \begin {gather*} \frac {1}{16} \, x^{5} + \frac {1}{16} \, x^{4} \log \left (x\right ) - \frac {1}{8} \, x^{3} e^{x} - \frac {1}{8} \, x^{2} e^{x} \log \left (x\right ) + \frac {1}{16} \, x e^{\left (2 \, x\right )} + \frac {1}{16} \, e^{\left (2 \, x\right )} \log \left (x\right ) + x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.46, size = 45, normalized size = 2.05 \begin {gather*} x+\frac {x\,{\mathrm {e}}^{2\,x}}{16}-\frac {x^3\,{\mathrm {e}}^x}{8}+\frac {x^4\,\ln \left (x\right )}{16}+\frac {{\mathrm {e}}^{2\,x}\,\ln \left (x\right )}{16}+\frac {x^5}{16}-\frac {x^2\,{\mathrm {e}}^x\,\ln \left (x\right )}{8} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________