Optimal. Leaf size=28 \[ 1-(3-x) \left (1-\left (-3-e^{x^2}-x\right ) x^3\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.13, antiderivative size = 29, normalized size of antiderivative = 1.04, number of steps used = 13, number of rules used = 4, integrand size = 39, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.103, Rules used = {2226, 2212, 2204, 2209} \begin {gather*} x^5-9 x^3+e^{x^2} x^4-3 e^{x^2} x^3+x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2204
Rule 2209
Rule 2212
Rule 2226
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=x-9 x^3+x^5+\int e^{x^2} \left (-9 x^2+4 x^3-6 x^4+2 x^5\right ) \, dx\\ &=x-9 x^3+x^5+\int \left (-9 e^{x^2} x^2+4 e^{x^2} x^3-6 e^{x^2} x^4+2 e^{x^2} x^5\right ) \, dx\\ &=x-9 x^3+x^5+2 \int e^{x^2} x^5 \, dx+4 \int e^{x^2} x^3 \, dx-6 \int e^{x^2} x^4 \, dx-9 \int e^{x^2} x^2 \, dx\\ &=x-\frac {9 e^{x^2} x}{2}+2 e^{x^2} x^2-9 x^3-3 e^{x^2} x^3+e^{x^2} x^4+x^5-4 \int e^{x^2} x \, dx-4 \int e^{x^2} x^3 \, dx+\frac {9}{2} \int e^{x^2} \, dx+9 \int e^{x^2} x^2 \, dx\\ &=-2 e^{x^2}+x-9 x^3-3 e^{x^2} x^3+e^{x^2} x^4+x^5+\frac {9}{4} \sqrt {\pi } \text {erfi}(x)+4 \int e^{x^2} x \, dx-\frac {9}{2} \int e^{x^2} \, dx\\ &=x-9 x^3-3 e^{x^2} x^3+e^{x^2} x^4+x^5\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 29, normalized size = 1.04 \begin {gather*} x-9 x^3-3 e^{x^2} x^3+e^{x^2} x^4+x^5 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.76, size = 24, normalized size = 0.86 \begin {gather*} x^{5} - 9 \, x^{3} + {\left (x^{4} - 3 \, x^{3}\right )} e^{\left (x^{2}\right )} + x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.23, size = 24, normalized size = 0.86 \begin {gather*} x^{5} - 9 \, x^{3} + {\left (x^{4} - 3 \, x^{3}\right )} e^{\left (x^{2}\right )} + x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 25, normalized size = 0.89
method | result | size |
risch | \(\left (x^{4}-3 x^{3}\right ) {\mathrm e}^{x^{2}}+x^{5}-9 x^{3}+x\) | \(25\) |
default | \(x +x^{4} {\mathrm e}^{x^{2}}-3 x^{3} {\mathrm e}^{x^{2}}-9 x^{3}+x^{5}\) | \(28\) |
norman | \(x +x^{4} {\mathrm e}^{x^{2}}-3 x^{3} {\mathrm e}^{x^{2}}-9 x^{3}+x^{5}\) | \(28\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.53, size = 24, normalized size = 0.86 \begin {gather*} x^{5} - 9 \, x^{3} + {\left (x^{4} - 3 \, x^{3}\right )} e^{\left (x^{2}\right )} + x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.52, size = 27, normalized size = 0.96 \begin {gather*} x-3\,x^3\,{\mathrm {e}}^{x^2}+x^4\,{\mathrm {e}}^{x^2}-9\,x^3+x^5 \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.10, size = 22, normalized size = 0.79 \begin {gather*} x^{5} - 9 x^{3} + x + \left (x^{4} - 3 x^{3}\right ) e^{x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________