Optimal. Leaf size=20 \[ \frac {1}{3} \left (8+x \left (3+e^{x^2}+3 x\right )+\log (5)\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 15, normalized size of antiderivative = 0.75, number of steps used = 7, number of rules used = 4, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {12, 2226, 2204, 2212} \begin {gather*} x^2+\frac {e^{x^2} x}{3}+x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 2204
Rule 2212
Rule 2226
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\frac {1}{3} \int \left (3+6 x+e^{x^2} \left (1+2 x^2\right )\right ) \, dx\\ &=x+x^2+\frac {1}{3} \int e^{x^2} \left (1+2 x^2\right ) \, dx\\ &=x+x^2+\frac {1}{3} \int \left (e^{x^2}+2 e^{x^2} x^2\right ) \, dx\\ &=x+x^2+\frac {1}{3} \int e^{x^2} \, dx+\frac {2}{3} \int e^{x^2} x^2 \, dx\\ &=x+\frac {e^{x^2} x}{3}+x^2+\frac {1}{6} \sqrt {\pi } \text {erfi}(x)-\frac {1}{3} \int e^{x^2} \, dx\\ &=x+\frac {e^{x^2} x}{3}+x^2\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 15, normalized size = 0.75 \begin {gather*} x+\frac {e^{x^2} x}{3}+x^2 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.47, size = 12, normalized size = 0.60 \begin {gather*} x^{2} + \frac {1}{3} \, x e^{\left (x^{2}\right )} + x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.25, size = 12, normalized size = 0.60 \begin {gather*} x^{2} + \frac {1}{3} \, x e^{\left (x^{2}\right )} + x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 13, normalized size = 0.65
method | result | size |
default | \(x^{2}+x +\frac {{\mathrm e}^{x^{2}} x}{3}\) | \(13\) |
norman | \(x^{2}+x +\frac {{\mathrm e}^{x^{2}} x}{3}\) | \(13\) |
risch | \(x^{2}+x +\frac {{\mathrm e}^{x^{2}} x}{3}\) | \(13\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.37, size = 12, normalized size = 0.60 \begin {gather*} x^{2} + \frac {1}{3} \, x e^{\left (x^{2}\right )} + x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.06, size = 12, normalized size = 0.60 \begin {gather*} \frac {x\,\left (3\,x+{\mathrm {e}}^{x^2}+3\right )}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.09, size = 12, normalized size = 0.60 \begin {gather*} x^{2} + \frac {x e^{x^{2}}}{3} + x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________