Optimal. Leaf size=21 \[ 40 (3-x) x^2 \left (-1+\left (2+e^{-4+x}\right ) x\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.18, antiderivative size = 36, normalized size of antiderivative = 1.71, number of steps used = 16, number of rules used = 4, integrand size = 36, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {1594, 2196, 2176, 2194} \begin {gather*} -40 e^{x-4} x^4-80 x^4+120 e^{x-4} x^3+280 x^3-120 x^2 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 1594
Rule 2176
Rule 2194
Rule 2196
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=-120 x^2+280 x^3-80 x^4+\int e^{-4+x} \left (360 x^2-40 x^3-40 x^4\right ) \, dx\\ &=-120 x^2+280 x^3-80 x^4+\int e^{-4+x} x^2 \left (360-40 x-40 x^2\right ) \, dx\\ &=-120 x^2+280 x^3-80 x^4+\int \left (360 e^{-4+x} x^2-40 e^{-4+x} x^3-40 e^{-4+x} x^4\right ) \, dx\\ &=-120 x^2+280 x^3-80 x^4-40 \int e^{-4+x} x^3 \, dx-40 \int e^{-4+x} x^4 \, dx+360 \int e^{-4+x} x^2 \, dx\\ &=-120 x^2+360 e^{-4+x} x^2+280 x^3-40 e^{-4+x} x^3-80 x^4-40 e^{-4+x} x^4+120 \int e^{-4+x} x^2 \, dx+160 \int e^{-4+x} x^3 \, dx-720 \int e^{-4+x} x \, dx\\ &=-720 e^{-4+x} x-120 x^2+480 e^{-4+x} x^2+280 x^3+120 e^{-4+x} x^3-80 x^4-40 e^{-4+x} x^4-240 \int e^{-4+x} x \, dx-480 \int e^{-4+x} x^2 \, dx+720 \int e^{-4+x} \, dx\\ &=720 e^{-4+x}-960 e^{-4+x} x-120 x^2+280 x^3+120 e^{-4+x} x^3-80 x^4-40 e^{-4+x} x^4+240 \int e^{-4+x} \, dx+960 \int e^{-4+x} x \, dx\\ &=960 e^{-4+x}-120 x^2+280 x^3+120 e^{-4+x} x^3-80 x^4-40 e^{-4+x} x^4-960 \int e^{-4+x} \, dx\\ &=-120 x^2+280 x^3+120 e^{-4+x} x^3-80 x^4-40 e^{-4+x} x^4\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 26, normalized size = 1.24 \begin {gather*} -\frac {40 (-3+x) x^2 \left (e^x x+e^4 (-1+2 x)\right )}{e^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.79, size = 31, normalized size = 1.48 \begin {gather*} -80 \, x^{4} + 280 \, x^{3} - 120 \, x^{2} - 40 \, {\left (x^{4} - 3 \, x^{3}\right )} e^{\left (x - 4\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.17, size = 31, normalized size = 1.48 \begin {gather*} -80 \, x^{4} + 280 \, x^{3} - 120 \, x^{2} - 40 \, {\left (x^{4} - 3 \, x^{3}\right )} e^{\left (x - 4\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.07, size = 33, normalized size = 1.57
method | result | size |
risch | \(\left (-40 x^{4}+120 x^{3}\right ) {\mathrm e}^{x -4}-80 x^{4}+280 x^{3}-120 x^{2}\) | \(33\) |
norman | \(-120 x^{2}+280 x^{3}-80 x^{4}-40 x^{4} {\mathrm e}^{x -4}+120 \,{\mathrm e}^{x -4} x^{3}\) | \(35\) |
default | \(-4480 \,{\mathrm e}^{x -4} \left (x -4\right )-2560 \,{\mathrm e}^{x -4}-2400 \,{\mathrm e}^{x -4} \left (x -4\right )^{2}-520 \,{\mathrm e}^{x -4} \left (x -4\right )^{3}-40 \,{\mathrm e}^{x -4} \left (x -4\right )^{4}-120 x^{2}+280 x^{3}-80 x^{4}\) | \(65\) |
derivativedivides | \(-960 x +3840-4480 \,{\mathrm e}^{x -4} \left (x -4\right )-2560 \,{\mathrm e}^{x -4}-2400 \,{\mathrm e}^{x -4} \left (x -4\right )^{2}-520 \,{\mathrm e}^{x -4} \left (x -4\right )^{3}-40 \,{\mathrm e}^{x -4} \left (x -4\right )^{4}-120 \left (x -4\right )^{2}+280 x^{3}-80 x^{4}\) | \(71\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.49, size = 31, normalized size = 1.48 \begin {gather*} -80 \, x^{4} + 280 \, x^{3} - 120 \, x^{2} - 40 \, {\left (x^{4} - 3 \, x^{3}\right )} e^{\left (x - 4\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.33, size = 19, normalized size = 0.90 \begin {gather*} -40\,x^2\,\left (x-3\right )\,\left (2\,x+x\,{\mathrm {e}}^{x-4}-1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.10, size = 29, normalized size = 1.38 \begin {gather*} - 80 x^{4} + 280 x^{3} - 120 x^{2} + \left (- 40 x^{4} + 120 x^{3}\right ) e^{x - 4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________