Optimal. Leaf size=21 \[ 1-x (4+x)+\frac {3 e^x (12+x)}{20 x^2} \]
________________________________________________________________________________________
Rubi [A] time = 0.12, antiderivative size = 28, normalized size of antiderivative = 1.33, number of steps used = 11, number of rules used = 5, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.156, Rules used = {12, 14, 2199, 2177, 2178} \begin {gather*} \frac {9 e^x}{5 x^2}-(x+2)^2+\frac {3 e^x}{20 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 14
Rule 2177
Rule 2178
Rule 2199
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\frac {1}{20} \int \frac {-80 x^3-40 x^4+e^x \left (-72+33 x+3 x^2\right )}{x^3} \, dx\\ &=\frac {1}{20} \int \left (-40 (2+x)+\frac {3 e^x \left (-24+11 x+x^2\right )}{x^3}\right ) \, dx\\ &=-(2+x)^2+\frac {3}{20} \int \frac {e^x \left (-24+11 x+x^2\right )}{x^3} \, dx\\ &=-(2+x)^2+\frac {3}{20} \int \left (-\frac {24 e^x}{x^3}+\frac {11 e^x}{x^2}+\frac {e^x}{x}\right ) \, dx\\ &=-(2+x)^2+\frac {3}{20} \int \frac {e^x}{x} \, dx+\frac {33}{20} \int \frac {e^x}{x^2} \, dx-\frac {18}{5} \int \frac {e^x}{x^3} \, dx\\ &=\frac {9 e^x}{5 x^2}-\frac {33 e^x}{20 x}-(2+x)^2+\frac {3 \text {Ei}(x)}{20}+\frac {33}{20} \int \frac {e^x}{x} \, dx-\frac {9}{5} \int \frac {e^x}{x^2} \, dx\\ &=\frac {9 e^x}{5 x^2}+\frac {3 e^x}{20 x}-(2+x)^2+\frac {9 \text {Ei}(x)}{5}-\frac {9}{5} \int \frac {e^x}{x} \, dx\\ &=\frac {9 e^x}{5 x^2}+\frac {3 e^x}{20 x}-(2+x)^2\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.05, size = 29, normalized size = 1.38 \begin {gather*} \frac {9 e^x}{5 x^2}+\frac {3 e^x}{20 x}-4 x-x^2 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.05, size = 23, normalized size = 1.10 \begin {gather*} -\frac {20 \, x^{4} + 80 \, x^{3} - 3 \, {\left (x + 12\right )} e^{x}}{20 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.21, size = 25, normalized size = 1.19 \begin {gather*} -\frac {20 \, x^{4} + 80 \, x^{3} - 3 \, x e^{x} - 36 \, e^{x}}{20 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.06, size = 20, normalized size = 0.95
method | result | size |
risch | \(-x^{2}-4 x +\frac {3 \left (x +12\right ) {\mathrm e}^{x}}{20 x^{2}}\) | \(20\) |
default | \(-x^{2}-4 x +\frac {9 \,{\mathrm e}^{x}}{5 x^{2}}+\frac {3 \,{\mathrm e}^{x}}{20 x}\) | \(24\) |
norman | \(\frac {-4 x^{3}-x^{4}+\frac {3 \,{\mathrm e}^{x} x}{20}+\frac {9 \,{\mathrm e}^{x}}{5}}{x^{2}}\) | \(25\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [C] time = 0.38, size = 27, normalized size = 1.29 \begin {gather*} -x^{2} - 4 \, x + \frac {3}{20} \, {\rm Ei}\relax (x) + \frac {33}{20} \, \Gamma \left (-1, -x\right ) + \frac {18}{5} \, \Gamma \left (-2, -x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.56, size = 23, normalized size = 1.10 \begin {gather*} \frac {\frac {9\,{\mathrm {e}}^x}{5}+\frac {3\,x\,{\mathrm {e}}^x}{20}}{x^2}-4\,x-x^2 \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.10, size = 19, normalized size = 0.90 \begin {gather*} - x^{2} - 4 x + \frac {\left (3 x + 36\right ) e^{x}}{20 x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________