Optimal. Leaf size=31 \[ -e^x-x+x^2 \left (1-\log \left (e^x (x+x (4+2 x))\right )\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.45, antiderivative size = 28, normalized size of antiderivative = 0.90, number of steps used = 10, number of rules used = 5, integrand size = 56, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.089, Rules used = {6742, 2194, 1850, 2551, 771} \begin {gather*} x^2+x^2 \left (-\log \left (e^x x (2 x+5)\right )\right )-x-e^x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 771
Rule 1850
Rule 2194
Rule 2551
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (-e^x+\frac {-5+3 x-5 x^2-2 x^3-10 x \log \left (e^x x (5+2 x)\right )-4 x^2 \log \left (e^x x (5+2 x)\right )}{5+2 x}\right ) \, dx\\ &=-\int e^x \, dx+\int \frac {-5+3 x-5 x^2-2 x^3-10 x \log \left (e^x x (5+2 x)\right )-4 x^2 \log \left (e^x x (5+2 x)\right )}{5+2 x} \, dx\\ &=-e^x+\int \left (\frac {-5+3 x-5 x^2-2 x^3}{5+2 x}-2 x \log \left (e^x x (5+2 x)\right )\right ) \, dx\\ &=-e^x-2 \int x \log \left (e^x x (5+2 x)\right ) \, dx+\int \frac {-5+3 x-5 x^2-2 x^3}{5+2 x} \, dx\\ &=-e^x-x^2 \log \left (e^x x (5+2 x)\right )+\int \frac {x \left (5+9 x+2 x^2\right )}{5+2 x} \, dx+\int \left (\frac {3}{2}-x^2-\frac {25}{2 (5+2 x)}\right ) \, dx\\ &=-e^x+\frac {3 x}{2}-\frac {x^3}{3}-\frac {25}{4} \log (5+2 x)-x^2 \log \left (e^x x (5+2 x)\right )+\int \left (-\frac {5}{2}+2 x+x^2+\frac {25}{2 (5+2 x)}\right ) \, dx\\ &=-e^x-x+x^2-x^2 \log \left (e^x x (5+2 x)\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.11, size = 28, normalized size = 0.90 \begin {gather*} -e^x-x+x^2-x^2 \log \left (e^x x (5+2 x)\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.75, size = 29, normalized size = 0.94 \begin {gather*} -x^{2} \log \left ({\left (2 \, x^{2} + 5 \, x\right )} e^{x}\right ) + x^{2} - x - e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.27, size = 31, normalized size = 1.00 \begin {gather*} -x^{3} - x^{2} \log \left (2 \, x^{2} + 5 \, x\right ) + x^{2} - x - e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.15, size = 30, normalized size = 0.97
method | result | size |
default | \(-x^{2} \ln \left (\left (2 x^{2}+5 x \right ) {\mathrm e}^{x}\right )-x +x^{2}-{\mathrm e}^{x}\) | \(30\) |
norman | \(-x^{2} \ln \left (\left (2 x^{2}+5 x \right ) {\mathrm e}^{x}\right )-x +x^{2}-{\mathrm e}^{x}\) | \(30\) |
risch | \(-x^{2} \ln \left ({\mathrm e}^{x}\right )-x^{2} \ln \left (\frac {5}{2}+x \right )-x^{2} \ln \relax (x )-\frac {i \pi \,x^{2} \mathrm {csgn}\left (i \left (\frac {5}{2}+x \right )\right ) \mathrm {csgn}\left (i {\mathrm e}^{x} \left (\frac {5}{2}+x \right )\right )^{2}}{2}+\frac {i \pi \,x^{2} \mathrm {csgn}\left (i x \left (\frac {5}{2}+x \right ) {\mathrm e}^{x}\right )^{3}}{2}-\frac {i \pi \,x^{2} \mathrm {csgn}\left (i {\mathrm e}^{x}\right ) \mathrm {csgn}\left (i {\mathrm e}^{x} \left (\frac {5}{2}+x \right )\right )^{2}}{2}+\frac {i \pi \,x^{2} \mathrm {csgn}\left (i {\mathrm e}^{x} \left (\frac {5}{2}+x \right )\right )^{3}}{2}+\frac {i \pi \,x^{2} \mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i {\mathrm e}^{x} \left (\frac {5}{2}+x \right )\right ) \mathrm {csgn}\left (i x \left (\frac {5}{2}+x \right ) {\mathrm e}^{x}\right )}{2}-\frac {i \pi \,x^{2} \mathrm {csgn}\left (i {\mathrm e}^{x} \left (\frac {5}{2}+x \right )\right ) \mathrm {csgn}\left (i x \left (\frac {5}{2}+x \right ) {\mathrm e}^{x}\right )^{2}}{2}+\frac {i \pi \,x^{2} \mathrm {csgn}\left (i {\mathrm e}^{x}\right ) \mathrm {csgn}\left (i \left (\frac {5}{2}+x \right )\right ) \mathrm {csgn}\left (i {\mathrm e}^{x} \left (\frac {5}{2}+x \right )\right )}{2}-\frac {i \pi \,x^{2} \mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i x \left (\frac {5}{2}+x \right ) {\mathrm e}^{x}\right )^{2}}{2}-x^{2} \ln \relax (2)+x^{2}-x -{\mathrm e}^{x}\) | \(241\) |
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*} -x^{3} - x^{2} \log \relax (x) + x^{2} + \frac {5}{2} \, e^{\left (-\frac {5}{2}\right )} E_{1}\left (-x - \frac {5}{2}\right ) - \frac {1}{4} \, {\left (4 \, x^{2} - 25\right )} \log \left (2 \, x + 5\right ) - x - 2 \, \int \frac {x e^{x}}{2 \, x + 5}\,{d x} - \frac {25}{4} \, \log \left (2 \, x + 5\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.37, size = 29, normalized size = 0.94 \begin {gather*} x^2-{\mathrm {e}}^x-x^2\,\ln \left ({\mathrm {e}}^x\,\left (2\,x^2+5\,x\right )\right )-x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.63, size = 44, normalized size = 1.42 \begin {gather*} x^{2} - \frac {49 x}{24} + \left (\frac {25}{24} - x^{2}\right ) \log {\left (\left (2 x^{2} + 5 x\right ) e^{x} \right )} - e^{x} - \frac {25 \log {\left (2 x^{2} + 5 x \right )}}{24} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________