Optimal. Leaf size=35 \[ \left (e^{-3+x}-x\right ) \left (\frac {-4+e^{2 x} \left (2+5 e^{e^{-1+x}}\right )}{x}+x\right ) \]
________________________________________________________________________________________
Rubi [F] time = 1.29, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {} \begin {gather*} \int \frac {-2 x^3+e^{-3+x} \left (4-4 x+x^2+x^3\right )+e^{2 x} \left (-4 x^2+e^{-3+x} (-2+6 x)\right )+e^{e^{-1+x}+2 x} \left (-10 x^2+e^{-3+x} (-5+15 x)+e^{-1+x} \left (5 e^{-3+x} x-5 x^2\right )\right )}{x^2} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (-2 e^{2 x} \left (2+5 e^{e^{-1+x}}\right )+\frac {5 e^{-4+e^{-1+x}+4 x}}{x}-2 x-\frac {e^{-3+3 x} \left (2+5 e^{e^{-1+x}}-6 x-15 e^{e^{-1+x}} x+5 e^{2+e^{-1+x}} x^2\right )}{x^2}+\frac {e^{-3+x} \left (4-4 x+x^2+x^3\right )}{x^2}\right ) \, dx\\ &=-x^2-2 \int e^{2 x} \left (2+5 e^{e^{-1+x}}\right ) \, dx+5 \int \frac {e^{-4+e^{-1+x}+4 x}}{x} \, dx-\int \frac {e^{-3+3 x} \left (2+5 e^{e^{-1+x}}-6 x-15 e^{e^{-1+x}} x+5 e^{2+e^{-1+x}} x^2\right )}{x^2} \, dx+\int \frac {e^{-3+x} \left (4-4 x+x^2+x^3\right )}{x^2} \, dx\\ &=-x^2-2 \operatorname {Subst}\left (\int \left (2+5 e^{\frac {x}{e}}\right ) x \, dx,x,e^x\right )+5 \int \frac {e^{-4+e^{-1+x}+4 x}}{x} \, dx+\int \left (e^{-3+x}+\frac {4 e^{-3+x}}{x^2}-\frac {4 e^{-3+x}}{x}+e^{-3+x} x\right ) \, dx-\int \left (-\frac {2 e^{-3+3 x} (-1+3 x)}{x^2}+\frac {5 e^{-3+e^{-1+x}+3 x} \left (1-3 x+e^2 x^2\right )}{x^2}\right ) \, dx\\ &=-x^2+2 \int \frac {e^{-3+3 x} (-1+3 x)}{x^2} \, dx-2 \operatorname {Subst}\left (\int \left (2 x+5 e^{\frac {x}{e}} x\right ) \, dx,x,e^x\right )+4 \int \frac {e^{-3+x}}{x^2} \, dx-4 \int \frac {e^{-3+x}}{x} \, dx+5 \int \frac {e^{-4+e^{-1+x}+4 x}}{x} \, dx-5 \int \frac {e^{-3+e^{-1+x}+3 x} \left (1-3 x+e^2 x^2\right )}{x^2} \, dx+\int e^{-3+x} \, dx+\int e^{-3+x} x \, dx\\ &=e^{-3+x}-2 e^{2 x}-\frac {4 e^{-3+x}}{x}+\frac {2 e^{-3+3 x}}{x}+e^{-3+x} x-x^2-\frac {4 \text {Ei}(x)}{e^3}+4 \int \frac {e^{-3+x}}{x} \, dx-5 \int \left (e^{-1+e^{-1+x}+3 x}+\frac {e^{-3+e^{-1+x}+3 x}}{x^2}-\frac {3 e^{-3+e^{-1+x}+3 x}}{x}\right ) \, dx+5 \int \frac {e^{-4+e^{-1+x}+4 x}}{x} \, dx-10 \operatorname {Subst}\left (\int e^{\frac {x}{e}} x \, dx,x,e^x\right )-\int e^{-3+x} \, dx\\ &=-2 e^{2 x}-10 e^{1+e^{-1+x}+x}-\frac {4 e^{-3+x}}{x}+\frac {2 e^{-3+3 x}}{x}+e^{-3+x} x-x^2-5 \int e^{-1+e^{-1+x}+3 x} \, dx-5 \int \frac {e^{-3+e^{-1+x}+3 x}}{x^2} \, dx+5 \int \frac {e^{-4+e^{-1+x}+4 x}}{x} \, dx+15 \int \frac {e^{-3+e^{-1+x}+3 x}}{x} \, dx+(10 e) \operatorname {Subst}\left (\int e^{\frac {x}{e}} \, dx,x,e^x\right )\\ &=10 e^{2+e^{-1+x}}-2 e^{2 x}-10 e^{1+e^{-1+x}+x}-\frac {4 e^{-3+x}}{x}+\frac {2 e^{-3+3 x}}{x}+e^{-3+x} x-x^2-5 \int \frac {e^{-3+e^{-1+x}+3 x}}{x^2} \, dx+5 \int \frac {e^{-4+e^{-1+x}+4 x}}{x} \, dx-5 \operatorname {Subst}\left (\int e^{-1+\frac {x}{e}} x^2 \, dx,x,e^x\right )+15 \int \frac {e^{-3+e^{-1+x}+3 x}}{x} \, dx\\ &=10 e^{2+e^{-1+x}}-2 e^{2 x}-10 e^{1+e^{-1+x}+x}-5 e^{e^{-1+x}+2 x}-\frac {4 e^{-3+x}}{x}+\frac {2 e^{-3+3 x}}{x}+e^{-3+x} x-x^2-5 \int \frac {e^{-3+e^{-1+x}+3 x}}{x^2} \, dx+5 \int \frac {e^{-4+e^{-1+x}+4 x}}{x} \, dx+15 \int \frac {e^{-3+e^{-1+x}+3 x}}{x} \, dx+(10 e) \operatorname {Subst}\left (\int e^{-1+\frac {x}{e}} x \, dx,x,e^x\right )\\ &=10 e^{2+e^{-1+x}}-2 e^{2 x}-5 e^{e^{-1+x}+2 x}-\frac {4 e^{-3+x}}{x}+\frac {2 e^{-3+3 x}}{x}+e^{-3+x} x-x^2-5 \int \frac {e^{-3+e^{-1+x}+3 x}}{x^2} \, dx+5 \int \frac {e^{-4+e^{-1+x}+4 x}}{x} \, dx+15 \int \frac {e^{-3+e^{-1+x}+3 x}}{x} \, dx-\left (10 e^2\right ) \operatorname {Subst}\left (\int e^{-1+\frac {x}{e}} \, dx,x,e^x\right )\\ &=-2 e^{2 x}-5 e^{e^{-1+x}+2 x}-\frac {4 e^{-3+x}}{x}+\frac {2 e^{-3+3 x}}{x}+e^{-3+x} x-x^2-5 \int \frac {e^{-3+e^{-1+x}+3 x}}{x^2} \, dx+5 \int \frac {e^{-4+e^{-1+x}+4 x}}{x} \, dx+15 \int \frac {e^{-3+e^{-1+x}+3 x}}{x} \, dx\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [B] time = 0.17, size = 71, normalized size = 2.03 \begin {gather*} -2 e^{2 x}+e^{e^{-1+x}} \left (-5 e^{2 x}+\frac {5 e^{-3+3 x}}{x}\right )+\frac {2 e^{-3+3 x}}{x}-x^2+e^x \left (-\frac {4}{e^3 x}+\frac {x}{e^3}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.54, size = 64, normalized size = 1.83 \begin {gather*} -\frac {{\left (x^{3} e^{2} + 5 \, {\left (x e^{2} - e^{\left (x - 1\right )}\right )} e^{\left (2 \, x + e^{\left (x - 1\right )}\right )} + 2 \, x e^{\left (2 \, x + 2\right )} - {\left (x^{2} - 4\right )} e^{\left (x - 1\right )} - 2 \, e^{\left (3 \, x - 1\right )}\right )} e^{\left (-2\right )}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int -\frac {2 \, x^{3} + 2 \, {\left (2 \, x^{2} - {\left (3 \, x - 1\right )} e^{\left (x - 3\right )}\right )} e^{\left (2 \, x\right )} + 5 \, {\left (2 \, x^{2} + {\left (x^{2} - x e^{\left (x - 3\right )}\right )} e^{\left (x - 1\right )} - {\left (3 \, x - 1\right )} e^{\left (x - 3\right )}\right )} e^{\left (2 \, x + e^{\left (x - 1\right )}\right )} - {\left (x^{3} + x^{2} - 4 \, x + 4\right )} e^{\left (x - 3\right )}}{x^{2}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.09, size = 59, normalized size = 1.69
method | result | size |
risch | \(-x^{2}+\frac {2 \,{\mathrm e}^{3 x -3}}{x}-2 \,{\mathrm e}^{2 x}+\frac {\left (x^{2}-4\right ) {\mathrm e}^{x -3}}{x}+\frac {5 \left ({\mathrm e}^{x -3}-x \right ) {\mathrm e}^{{\mathrm e}^{x -1}+2 x}}{x}\) | \(59\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [C] time = 0.64, size = 111, normalized size = 3.17 \begin {gather*} -x^{2} + 6 \, {\rm Ei}\left (3 \, x\right ) e^{\left (-3\right )} - 4 \, {\rm Ei}\relax (x) e^{\left (-3\right )} + {\left (x - 1\right )} e^{\left (x - 3\right )} + 10 \, {\left (e^{2} - e^{\left (x + 1\right )}\right )} e^{\left (e^{\left (x - 1\right )}\right )} + 4 \, e^{\left (-3\right )} \Gamma \left (-1, -x\right ) - 6 \, e^{\left (-3\right )} \Gamma \left (-1, -3 \, x\right ) - \frac {5 \, {\left (2 \, x e^{5} + x e^{\left (2 \, x + 3\right )} - 2 \, x e^{\left (x + 4\right )} - e^{\left (3 \, x\right )}\right )} e^{\left (e^{\left (x - 1\right )} - 3\right )}}{x} - 2 \, e^{\left (2 \, x\right )} + e^{\left (x - 3\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.16, size = 67, normalized size = 1.91 \begin {gather*} x\,{\mathrm {e}}^{x-3}-{\mathrm {e}}^{-3}\,\left (5\,{\mathrm {e}}^{2\,x+{\mathrm {e}}^{-1}\,{\mathrm {e}}^x+3}+2\,{\mathrm {e}}^{2\,x+3}\right )-x^2+\frac {{\mathrm {e}}^{-3}\,\left (2\,{\mathrm {e}}^{3\,x}+5\,{\mathrm {e}}^{3\,x+{\mathrm {e}}^{-1}\,{\mathrm {e}}^x}-4\,{\mathrm {e}}^x\right )}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.32, size = 100, normalized size = 2.86 \begin {gather*} - x^{2} + \frac {\left (- 5 x e^{3} e^{2 x} + 5 \left (e^{2 x}\right )^{\frac {3}{2}}\right ) e^{\frac {\sqrt {e^{2 x}}}{e}}}{x e^{3}} + \frac {- 2 x^{2} e^{6} e^{2 x} + 2 x e^{3} \left (e^{2 x}\right )^{\frac {3}{2}} + \left (x^{3} e^{3} - 4 x e^{3}\right ) \sqrt {e^{2 x}}}{x^{2} e^{6}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________