Optimal. Leaf size=24 \[ 2+4 \left (5-e^{2 x} \left (-2+e+e^{x^2}\right )^2+x\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 47, normalized size of antiderivative = 1.96, number of steps used = 5, number of rules used = 3, integrand size = 57, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.053, Rules used = {2194, 2236, 2244} \begin {gather*} 8 (2-e) e^{x^2+2 x}-4 e^{2 x^2+2 x}+4 x-4 (2-e)^2 e^{2 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2194
Rule 2236
Rule 2244
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=4 x-\left (8 (2-e)^2\right ) \int e^{2 x} \, dx+\int e^{2 x+2 x^2} (-8-16 x) \, dx+\int e^{2 x+x^2} (32+e (-16-16 x)+32 x) \, dx\\ &=-4 (2-e)^2 e^{2 x}-4 e^{2 x+2 x^2}+4 x+\int e^{2 x+x^2} (16 (2-e)+16 (2-e) x) \, dx\\ &=-4 (2-e)^2 e^{2 x}+8 (2-e) e^{2 x+x^2}-4 e^{2 x+2 x^2}+4 x\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.07, size = 43, normalized size = 1.79 \begin {gather*} -4 (-2+e)^2 e^{2 x}-8 (-2+e) e^{2 x+x^2}-4 e^{2 x+2 x^2}+4 x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.86, size = 71, normalized size = 2.96 \begin {gather*} -4 \, {\left ({\left (e^{2} - 4 \, e + 4\right )} e^{\left (2 \, x^{2} + 4 \, x\right )} + {\left (2 \, {\left (e - 2\right )} e^{\left (x^{2} + 2 \, x\right )} - x\right )} e^{\left (2 \, x^{2} + 2 \, x\right )} + e^{\left (4 \, x^{2} + 4 \, x\right )}\right )} e^{\left (-2 \, x^{2} - 2 \, x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.19, size = 44, normalized size = 1.83 \begin {gather*} -8 \, {\left (e - 2\right )} e^{\left (x^{2} + 2 \, x\right )} - 4 \, {\left (e^{2} - 4 \, e + 4\right )} e^{\left (2 \, x\right )} + 4 \, x - 4 \, e^{\left (2 \, x^{2} + 2 \, x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.08, size = 49, normalized size = 2.04
method | result | size |
norman | \(\left (-4 \,{\mathrm e}^{2}+16 \,{\mathrm e}-16\right ) {\mathrm e}^{2 x}+\left (-8 \,{\mathrm e}+16\right ) {\mathrm e}^{2 x} {\mathrm e}^{x^{2}}+4 x -4 \,{\mathrm e}^{2 x} {\mathrm e}^{2 x^{2}}\) | \(49\) |
risch | \(-4 \,{\mathrm e}^{2 \left (x +1\right ) x}-8 \,{\mathrm e}^{x \left (2+x \right )} {\mathrm e}+16 \,{\mathrm e}^{x \left (2+x \right )}-4 \,{\mathrm e}^{2 x} {\mathrm e}^{2}+16 \,{\mathrm e}^{2 x} {\mathrm e}-16 \,{\mathrm e}^{2 x}+4 x\) | \(54\) |
default | \(4 x +\frac {\left (-8 \,{\mathrm e}^{2}+32 \,{\mathrm e}-32\right ) {\mathrm e}^{2 x}}{2}-4 \,{\mathrm e}^{2 x^{2}+2 x}+16 \,{\mathrm e}^{x^{2}+2 x}-8 \,{\mathrm e}^{x^{2}+2 x +1}\) | \(56\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.35, size = 44, normalized size = 1.83 \begin {gather*} -8 \, {\left (e - 2\right )} e^{\left (x^{2} + 2 \, x\right )} - 4 \, {\left (e^{2} - 4 \, e + 4\right )} e^{\left (2 \, x\right )} + 4 \, x - 4 \, e^{\left (2 \, x^{2} + 2 \, x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.47, size = 59, normalized size = 2.46 \begin {gather*} 4\,x-16\,{\mathrm {e}}^{2\,x}+16\,{\mathrm {e}}^{x^2+2\,x}-8\,{\mathrm {e}}^{x^2+2\,x+1}+16\,{\mathrm {e}}^{2\,x+1}-4\,{\mathrm {e}}^{2\,x+2}-4\,{\mathrm {e}}^{2\,x^2+2\,x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.26, size = 54, normalized size = 2.25 \begin {gather*} 4 x + \left (- 8 e e^{2 x} + 16 e^{2 x}\right ) e^{x^{2}} - 4 e^{2 x} e^{2 x^{2}} + \left (- 4 e^{2} - 16 + 16 e\right ) e^{2 x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________