Optimal. Leaf size=31 \[ 1-e^x-e^{-2+3 e^4-\frac {3}{x}+e^x x}-2 x \]
________________________________________________________________________________________
Rubi [A] time = 0.62, antiderivative size = 30, normalized size of antiderivative = 0.97, number of steps used = 5, number of rules used = 4, integrand size = 60, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.067, Rules used = {14, 2194, 6688, 6706} \begin {gather*} -2 x-e^x-e^{e^x x-\frac {3}{x}+3 e^4-2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2194
Rule 6688
Rule 6706
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (-2-e^x+\frac {e^{-2 \left (1-\frac {3 e^4}{2}\right )-\frac {3}{x}+e^x x} \left (-3-e^x x^2-e^x x^3\right )}{x^2}\right ) \, dx\\ &=-2 x-\int e^x \, dx+\int \frac {e^{-2 \left (1-\frac {3 e^4}{2}\right )-\frac {3}{x}+e^x x} \left (-3-e^x x^2-e^x x^3\right )}{x^2} \, dx\\ &=-e^x-2 x+\int \frac {e^{-2 \left (1-\frac {3 e^4}{2}\right )-\frac {3}{x}+e^x x} \left (-3-e^x x^2 (1+x)\right )}{x^2} \, dx\\ &=-e^x-e^{-2+3 e^4-\frac {3}{x}+e^x x}-2 x\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.31, size = 30, normalized size = 0.97 \begin {gather*} -e^x-e^{-2+3 e^4-\frac {3}{x}+e^x x}-2 x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.61, size = 31, normalized size = 1.00 \begin {gather*} -2 \, x - e^{x} - e^{\left (\frac {x^{2} e^{x} + 3 \, x e^{4} - 2 \, x - 3}{x}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.18, size = 26, normalized size = 0.84 \begin {gather*} -2 \, x - e^{\left (x e^{x} - \frac {3}{x} + 3 \, e^{4} - 2\right )} - e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.23, size = 32, normalized size = 1.03
method | result | size |
risch | \(-2 x -{\mathrm e}^{x}-{\mathrm e}^{\frac {{\mathrm e}^{x} x^{2}+3 x \,{\mathrm e}^{4}-2 x -3}{x}}\) | \(32\) |
norman | \(\frac {-2 x^{2}-{\mathrm e}^{x} x -{\mathrm e}^{\frac {{\mathrm e}^{x} x^{2}+3 x \,{\mathrm e}^{4}-2 x -3}{x}} x}{x}\) | \(40\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.56, size = 26, normalized size = 0.84 \begin {gather*} -2 \, x - e^{\left (x e^{x} - \frac {3}{x} + 3 \, e^{4} - 2\right )} - e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.34, size = 28, normalized size = 0.90 \begin {gather*} -2\,x-{\mathrm {e}}^x-{\mathrm {e}}^{x\,{\mathrm {e}}^x}\,{\mathrm {e}}^{3\,{\mathrm {e}}^4}\,{\mathrm {e}}^{-2}\,{\mathrm {e}}^{-\frac {3}{x}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.24, size = 29, normalized size = 0.94 \begin {gather*} - 2 x - e^{x} - e^{\frac {x^{2} e^{x} - 2 x + 3 x e^{4} - 3}{x}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________