Optimal. Leaf size=31 \[ -e^{-x} \left (-e^{4 x}+x\right )+\frac {4}{9} \left (x-\frac {x}{e^3}\right )^8 \]
________________________________________________________________________________________
Rubi [A] time = 0.19, antiderivative size = 43, normalized size of antiderivative = 1.39, number of steps used = 6, number of rules used = 4, integrand size = 104, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.038, Rules used = {12, 6742, 2194, 2176} \begin {gather*} \frac {4 \left (1-e^3\right )^8 x^8}{9 e^{24}}-e^{-x}+e^{3 x}+e^{-x} (1-x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 2176
Rule 2194
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\frac {1}{9} \int e^{-24-x} \left (27 e^{24+4 x}+e^{24} (-9+9 x)+e^x \left (32 x^7-256 e^3 x^7+896 e^6 x^7-1792 e^9 x^7+2240 e^{12} x^7-1792 e^{15} x^7+896 e^{18} x^7-256 e^{21} x^7+32 e^{24} x^7\right )\right ) \, dx\\ &=\frac {1}{9} \int \left (27 e^{3 x}+9 e^{-x} (-1+x)+\frac {32 \left (-1+e^3\right )^8 x^7}{e^{24}}\right ) \, dx\\ &=\frac {4 \left (1-e^3\right )^8 x^8}{9 e^{24}}+3 \int e^{3 x} \, dx+\int e^{-x} (-1+x) \, dx\\ &=e^{3 x}+e^{-x} (1-x)+\frac {4 \left (1-e^3\right )^8 x^8}{9 e^{24}}+\int e^{-x} \, dx\\ &=-e^{-x}+e^{3 x}+e^{-x} (1-x)+\frac {4 \left (1-e^3\right )^8 x^8}{9 e^{24}}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 31, normalized size = 1.00 \begin {gather*} e^{3 x}-e^{-x} x+\frac {4 \left (-1+e^3\right )^8 x^8}{9 e^{24}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 1.37, size = 85, normalized size = 2.74 \begin {gather*} -\frac {1}{9} \, {\left (9 \, x e^{24} - 4 \, {\left (x^{8} e^{24} - 8 \, x^{8} e^{21} + 28 \, x^{8} e^{18} - 56 \, x^{8} e^{15} + 70 \, x^{8} e^{12} - 56 \, x^{8} e^{9} + 28 \, x^{8} e^{6} - 8 \, x^{8} e^{3} + x^{8}\right )} e^{x} - 9 \, e^{\left (4 \, x + 24\right )}\right )} e^{\left (-x - 24\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.16, size = 85, normalized size = 2.74 \begin {gather*} \frac {1}{9} \, {\left (4 \, x^{8} e^{108} - 32 \, x^{8} e^{105} + 112 \, x^{8} e^{102} - 224 \, x^{8} e^{99} + 280 \, x^{8} e^{96} - 224 \, x^{8} e^{93} + 112 \, x^{8} e^{90} - 32 \, x^{8} e^{87} + 4 \, x^{8} e^{84} - 9 \, x e^{\left (-x + 108\right )} + 9 \, e^{\left (3 \, x + 108\right )}\right )} e^{\left (-108\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.03, size = 92, normalized size = 2.97
method | result | size |
risch | \(-\frac {32 \,{\mathrm e}^{-24} x^{8} {\mathrm e}^{3}}{9}+\frac {4 \,{\mathrm e}^{-24} x^{8} {\mathrm e}^{24}}{9}-\frac {32 \,{\mathrm e}^{-24} x^{8} {\mathrm e}^{21}}{9}+\frac {112 \,{\mathrm e}^{-24} x^{8} {\mathrm e}^{18}}{9}-\frac {224 \,{\mathrm e}^{-24} x^{8} {\mathrm e}^{15}}{9}+\frac {280 \,{\mathrm e}^{-24} x^{8} {\mathrm e}^{12}}{9}-\frac {224 \,{\mathrm e}^{-24} x^{8} {\mathrm e}^{9}}{9}+\frac {112 \,{\mathrm e}^{-24} x^{8} {\mathrm e}^{6}}{9}+\frac {4 \,{\mathrm e}^{-24} x^{8}}{9}+{\mathrm e}^{3 x}-x \,{\mathrm e}^{-x}\) | \(92\) |
default | \(\frac {{\mathrm e}^{-24} \left (4 x^{8}-32 x^{8} {\mathrm e}^{3}+112 x^{8} {\mathrm e}^{6}-224 x^{8} {\mathrm e}^{9}+280 x^{8} {\mathrm e}^{12}-224 x^{8} {\mathrm e}^{15}+112 x^{8} {\mathrm e}^{18}-32 x^{8} {\mathrm e}^{21}+4 x^{8} {\mathrm e}^{24}+9 \,{\mathrm e}^{-x} {\mathrm e}^{24}+9 \,{\mathrm e}^{3 x} {\mathrm e}^{24}+9 \,{\mathrm e}^{24} \left (-x \,{\mathrm e}^{-x}-{\mathrm e}^{-x}\right )\right )}{9}\) | \(123\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.36, size = 79, normalized size = 2.55 \begin {gather*} -\frac {32}{9} \, x^{8} e^{\left (-3\right )} + \frac {112}{9} \, x^{8} e^{\left (-6\right )} - \frac {224}{9} \, x^{8} e^{\left (-9\right )} + \frac {280}{9} \, x^{8} e^{\left (-12\right )} - \frac {224}{9} \, x^{8} e^{\left (-15\right )} + \frac {112}{9} \, x^{8} e^{\left (-18\right )} - \frac {32}{9} \, x^{8} e^{\left (-21\right )} + \frac {4}{9} \, x^{8} e^{\left (-24\right )} + \frac {4}{9} \, x^{8} - {\left (x + 1\right )} e^{\left (-x\right )} + e^{\left (3 \, x\right )} + e^{\left (-x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.15, size = 50, normalized size = 1.61 \begin {gather*} {\mathrm {e}}^{3\,x}-x\,{\mathrm {e}}^{-x}+x^8\,\left (\frac {112\,{\mathrm {e}}^{-6}}{9}-\frac {32\,{\mathrm {e}}^{-3}}{9}-\frac {224\,{\mathrm {e}}^{-9}}{9}+\frac {280\,{\mathrm {e}}^{-12}}{9}-\frac {224\,{\mathrm {e}}^{-15}}{9}+\frac {112\,{\mathrm {e}}^{-18}}{9}-\frac {32\,{\mathrm {e}}^{-21}}{9}+\frac {4\,{\mathrm {e}}^{-24}}{9}+\frac {4}{9}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.23, size = 60, normalized size = 1.94 \begin {gather*} \frac {x^{8} \left (- 32 e^{21} - 224 e^{15} - 224 e^{9} - 32 e^{3} + 4 + 112 e^{6} + 280 e^{12} + 112 e^{18} + 4 e^{24}\right )}{9 e^{24}} - x e^{- x} + e^{3 x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________