Optimal. Leaf size=28 \[ x+x^2 \left (e^x+x+\frac {(-2+i \pi +x)^2}{9 x^2}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 30, normalized size of antiderivative = 1.07, number of steps used = 10, number of rules used = 5, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.156, Rules used = {12, 1593, 2196, 2176, 2194} \begin {gather*} x^3+e^x x^2+\frac {x^2}{9}+\frac {1}{9} (5+2 i \pi ) x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 1593
Rule 2176
Rule 2194
Rule 2196
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\frac {1}{9} \int \left (5+2 i \pi +2 x+27 x^2+e^x \left (18 x+9 x^2\right )\right ) \, dx\\ &=\frac {1}{9} (5+2 i \pi ) x+\frac {x^2}{9}+x^3+\frac {1}{9} \int e^x \left (18 x+9 x^2\right ) \, dx\\ &=\frac {1}{9} (5+2 i \pi ) x+\frac {x^2}{9}+x^3+\frac {1}{9} \int e^x x (18+9 x) \, dx\\ &=\frac {1}{9} (5+2 i \pi ) x+\frac {x^2}{9}+x^3+\frac {1}{9} \int \left (18 e^x x+9 e^x x^2\right ) \, dx\\ &=\frac {1}{9} (5+2 i \pi ) x+\frac {x^2}{9}+x^3+2 \int e^x x \, dx+\int e^x x^2 \, dx\\ &=2 e^x x+\frac {1}{9} (5+2 i \pi ) x+\frac {x^2}{9}+e^x x^2+x^3-2 \int e^x \, dx-2 \int e^x x \, dx\\ &=-2 e^x+\frac {1}{9} (5+2 i \pi ) x+\frac {x^2}{9}+e^x x^2+x^3+2 \int e^x \, dx\\ &=\frac {1}{9} (5+2 i \pi ) x+\frac {x^2}{9}+e^x x^2+x^3\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 24, normalized size = 0.86 \begin {gather*} \frac {1}{9} x \left (5+2 i \pi +x+9 e^x x+9 x^2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.52, size = 23, normalized size = 0.82 \begin {gather*} x^{3} + x^{2} e^{x} + \frac {1}{9} \, {\left (2 i \, \pi + 5\right )} x + \frac {1}{9} \, x^{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.15, size = 22, normalized size = 0.79 \begin {gather*} x^{3} + x^{2} e^{x} + \frac {2}{9} i \, \pi x + \frac {1}{9} \, x^{2} + \frac {5}{9} \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 24, normalized size = 0.86
method | result | size |
default | \(\frac {5 x}{9}+\frac {2 i x \pi }{9}+\frac {x^{2}}{9}+x^{3}+{\mathrm e}^{x} x^{2}\) | \(24\) |
norman | \(x^{3}+\left (\frac {2 i \pi }{9}+\frac {5}{9}\right ) x +{\mathrm e}^{x} x^{2}+\frac {x^{2}}{9}\) | \(24\) |
risch | \(\frac {5 x}{9}+\frac {2 i x \pi }{9}+\frac {x^{2}}{9}+x^{3}+{\mathrm e}^{x} x^{2}\) | \(24\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.42, size = 22, normalized size = 0.79 \begin {gather*} x^{3} + x^{2} e^{x} + \frac {2}{9} i \, \pi x + \frac {1}{9} \, x^{2} + \frac {5}{9} \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.44, size = 23, normalized size = 0.82 \begin {gather*} x^2\,{\mathrm {e}}^x+\frac {x^2}{9}+x^3+x\,\left (\frac {5}{9}+\frac {\Pi \,2{}\mathrm {i}}{9}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.12, size = 26, normalized size = 0.93 \begin {gather*} x^{3} + x^{2} e^{x} + \frac {x^{2}}{9} + x \left (\frac {5}{9} + \frac {2 i \pi }{9}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________