Optimal. Leaf size=20 \[ 1+\left (-e^x+x \left (10+e^x+2 x\right )\right )^2 \]
________________________________________________________________________________________
Rubi [B] time = 0.13, antiderivative size = 60, normalized size of antiderivative = 3.00, number of steps used = 21, number of rules used = 4, integrand size = 48, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {1593, 2196, 2176, 2194} \begin {gather*} 4 x^4+4 e^x x^3+40 x^3+16 e^x x^2+e^{2 x} x^2+100 x^2-20 e^x x-2 e^{2 x} x+e^{2 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 1593
Rule 2176
Rule 2194
Rule 2196
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=100 x^2+40 x^3+4 x^4+\int e^{2 x} \left (-2 x+2 x^2\right ) \, dx+\int e^x \left (-20+12 x+28 x^2+4 x^3\right ) \, dx\\ &=100 x^2+40 x^3+4 x^4+\int e^{2 x} x (-2+2 x) \, dx+\int \left (-20 e^x+12 e^x x+28 e^x x^2+4 e^x x^3\right ) \, dx\\ &=100 x^2+40 x^3+4 x^4+4 \int e^x x^3 \, dx+12 \int e^x x \, dx-20 \int e^x \, dx+28 \int e^x x^2 \, dx+\int \left (-2 e^{2 x} x+2 e^{2 x} x^2\right ) \, dx\\ &=-20 e^x+12 e^x x+100 x^2+28 e^x x^2+40 x^3+4 e^x x^3+4 x^4-2 \int e^{2 x} x \, dx+2 \int e^{2 x} x^2 \, dx-12 \int e^x \, dx-12 \int e^x x^2 \, dx-56 \int e^x x \, dx\\ &=-32 e^x-44 e^x x-e^{2 x} x+100 x^2+16 e^x x^2+e^{2 x} x^2+40 x^3+4 e^x x^3+4 x^4-2 \int e^{2 x} x \, dx+24 \int e^x x \, dx+56 \int e^x \, dx+\int e^{2 x} \, dx\\ &=24 e^x+\frac {e^{2 x}}{2}-20 e^x x-2 e^{2 x} x+100 x^2+16 e^x x^2+e^{2 x} x^2+40 x^3+4 e^x x^3+4 x^4-24 \int e^x \, dx+\int e^{2 x} \, dx\\ &=e^{2 x}-20 e^x x-2 e^{2 x} x+100 x^2+16 e^x x^2+e^{2 x} x^2+40 x^3+4 e^x x^3+4 x^4\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.07, size = 16, normalized size = 0.80 \begin {gather*} \left (e^x (-1+x)+2 x (5+x)\right )^2 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.85, size = 45, normalized size = 2.25 \begin {gather*} 4 \, x^{4} + 40 \, x^{3} + 100 \, x^{2} + {\left (x^{2} - 2 \, x + 1\right )} e^{\left (2 \, x\right )} + 4 \, {\left (x^{3} + 4 \, x^{2} - 5 \, x\right )} e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.14, size = 45, normalized size = 2.25 \begin {gather*} 4 \, x^{4} + 40 \, x^{3} + 100 \, x^{2} + {\left (x^{2} - 2 \, x + 1\right )} e^{\left (2 \, x\right )} + 4 \, {\left (x^{3} + 4 \, x^{2} - 5 \, x\right )} e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.04, size = 47, normalized size = 2.35
method | result | size |
risch | \(\left (x^{2}-2 x +1\right ) {\mathrm e}^{2 x}+\left (4 x^{3}+16 x^{2}-20 x \right ) {\mathrm e}^{x}+4 x^{4}+40 x^{3}+100 x^{2}\) | \(47\) |
default | \({\mathrm e}^{2 x} x^{2}-2 x \,{\mathrm e}^{2 x}+{\mathrm e}^{2 x}+4 \,{\mathrm e}^{x} x^{3}+16 \,{\mathrm e}^{x} x^{2}-20 \,{\mathrm e}^{x} x +100 x^{2}+40 x^{3}+4 x^{4}\) | \(55\) |
norman | \({\mathrm e}^{2 x} x^{2}-2 x \,{\mathrm e}^{2 x}+{\mathrm e}^{2 x}+4 \,{\mathrm e}^{x} x^{3}+16 \,{\mathrm e}^{x} x^{2}-20 \,{\mathrm e}^{x} x +100 x^{2}+40 x^{3}+4 x^{4}\) | \(55\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.36, size = 45, normalized size = 2.25 \begin {gather*} 4 \, x^{4} + 40 \, x^{3} + 100 \, x^{2} + {\left (x^{2} - 2 \, x + 1\right )} e^{\left (2 \, x\right )} + 4 \, {\left (x^{3} + 4 \, x^{2} - 5 \, x\right )} e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.11, size = 19, normalized size = 0.95 \begin {gather*} {\left (10\,x-{\mathrm {e}}^x+x\,{\mathrm {e}}^x+2\,x^2\right )}^2 \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.12, size = 44, normalized size = 2.20 \begin {gather*} 4 x^{4} + 40 x^{3} + 100 x^{2} + \left (x^{2} - 2 x + 1\right ) e^{2 x} + \left (4 x^{3} + 16 x^{2} - 20 x\right ) e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________