Optimal. Leaf size=24 \[ \left (-1+e^{2 x^2}-e^{2 x (3+x)}-3 x\right ) x \]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 47, normalized size of antiderivative = 1.96, number of steps used = 7, number of rules used = 4, integrand size = 42, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {2288, 2226, 2204, 2212} \begin {gather*} -3 x^2+e^{2 x^2} x-\frac {e^{2 x^2+6 x} \left (2 x^2+3 x\right )}{2 x+3}-x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2204
Rule 2212
Rule 2226
Rule 2288
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=-x-3 x^2+\int e^{6 x+2 x^2} \left (-1-6 x-4 x^2\right ) \, dx+\int e^{2 x^2} \left (1+4 x^2\right ) \, dx\\ &=-x-3 x^2-\frac {e^{6 x+2 x^2} \left (3 x+2 x^2\right )}{3+2 x}+\int \left (e^{2 x^2}+4 e^{2 x^2} x^2\right ) \, dx\\ &=-x-3 x^2-\frac {e^{6 x+2 x^2} \left (3 x+2 x^2\right )}{3+2 x}+4 \int e^{2 x^2} x^2 \, dx+\int e^{2 x^2} \, dx\\ &=-x+e^{2 x^2} x-3 x^2-\frac {e^{6 x+2 x^2} \left (3 x+2 x^2\right )}{3+2 x}+\frac {1}{2} \sqrt {\frac {\pi }{2}} \text {erfi}\left (\sqrt {2} x\right )-\int e^{2 x^2} \, dx\\ &=-x+e^{2 x^2} x-3 x^2-\frac {e^{6 x+2 x^2} \left (3 x+2 x^2\right )}{3+2 x}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 25, normalized size = 1.04 \begin {gather*} -x \left (1-e^{2 x^2}+e^{2 x (3+x)}+3 x\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.48, size = 30, normalized size = 1.25 \begin {gather*} -3 \, x^{2} + x e^{\left (2 \, x^{2}\right )} - x e^{\left (2 \, x^{2} + 6 \, x\right )} - x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.26, size = 30, normalized size = 1.25 \begin {gather*} -3 \, x^{2} + x e^{\left (2 \, x^{2}\right )} - x e^{\left (2 \, x^{2} + 6 \, x\right )} - x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 28, normalized size = 1.17
method | result | size |
risch | \(x \,{\mathrm e}^{2 x^{2}}-x -3 x^{2}-{\mathrm e}^{2 \left (3+x \right ) x} x\) | \(28\) |
default | \(x \,{\mathrm e}^{2 x^{2}}-x -3 x^{2}-{\mathrm e}^{2 x^{2}+6 x} x\) | \(31\) |
norman | \(x \,{\mathrm e}^{2 x^{2}}-x -3 x^{2}-{\mathrm e}^{2 x^{2}+6 x} x\) | \(31\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.36, size = 30, normalized size = 1.25 \begin {gather*} -3 \, x^{2} + x e^{\left (2 \, x^{2}\right )} - x e^{\left (2 \, x^{2} + 6 \, x\right )} - x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.11, size = 30, normalized size = 1.25 \begin {gather*} x\,{\mathrm {e}}^{2\,x^2}-x-3\,x^2-x\,{\mathrm {e}}^{6\,x}\,{\mathrm {e}}^{2\,x^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.29, size = 26, normalized size = 1.08 \begin {gather*} - 3 x^{2} + x e^{2 x^{2}} - x e^{2 x^{2} + 6 x} - x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________