Optimal. Leaf size=16 \[ \left (1+\frac {1}{6} e^{-1/x} x\right )^2 \]
________________________________________________________________________________________
Rubi [A] time = 0.34, antiderivative size = 27, normalized size of antiderivative = 1.69, number of steps used = 10, number of rules used = 7, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.233, Rules used = {12, 6741, 6742, 2206, 2210, 2214, 2288} \begin {gather*} \frac {1}{36} e^{-2/x} x^2+\frac {1}{3} e^{-1/x} x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 2206
Rule 2210
Rule 2214
Rule 2288
Rule 6741
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\frac {1}{18} \int \frac {e^{-2/x} \left (x+x^2+e^{\frac {1}{x}} (6+6 x)\right )}{x} \, dx\\ &=\frac {1}{18} \int \frac {e^{-2/x} (1+x) \left (6 e^{\frac {1}{x}}+x\right )}{x} \, dx\\ &=\frac {1}{18} \int \left (e^{-2/x}+e^{-2/x} x+\frac {6 e^{-1/x} (1+x)}{x}\right ) \, dx\\ &=\frac {1}{18} \int e^{-2/x} \, dx+\frac {1}{18} \int e^{-2/x} x \, dx+\frac {1}{3} \int \frac {e^{-1/x} (1+x)}{x} \, dx\\ &=\frac {1}{18} e^{-2/x} x+\frac {1}{3} e^{-1/x} x+\frac {1}{36} e^{-2/x} x^2-\frac {1}{18} \int e^{-2/x} \, dx-\frac {1}{9} \int \frac {e^{-2/x}}{x} \, dx\\ &=\frac {1}{3} e^{-1/x} x+\frac {1}{36} e^{-2/x} x^2+\frac {\text {Ei}\left (-\frac {2}{x}\right )}{9}+\frac {1}{9} \int \frac {e^{-2/x}}{x} \, dx\\ &=\frac {1}{3} e^{-1/x} x+\frac {1}{36} e^{-2/x} x^2\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 21, normalized size = 1.31 \begin {gather*} \frac {1}{36} e^{-2/x} x \left (12 e^{\frac {1}{x}}+x\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.10, size = 19, normalized size = 1.19 \begin {gather*} \frac {1}{36} \, {\left (x^{2} + 12 \, x e^{\frac {1}{x}}\right )} e^{\left (-\frac {2}{x}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.18, size = 23, normalized size = 1.44 \begin {gather*} \frac {1}{36} \, x^{2} {\left (\frac {12 \, e^{\left (-\frac {1}{x}\right )}}{x} + e^{\left (-\frac {2}{x}\right )}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.10, size = 21, normalized size = 1.31
method | result | size |
norman | \(\left (\frac {x^{2}}{36}+\frac {x \,{\mathrm e}^{\frac {1}{x}}}{3}\right ) {\mathrm e}^{-\frac {2}{x}}\) | \(21\) |
derivativedivides | \(\frac {x^{2} {\mathrm e}^{-\frac {2}{x}}}{36}+\frac {x \,{\mathrm e}^{-\frac {1}{x}}}{3}\) | \(22\) |
default | \(\frac {x^{2} {\mathrm e}^{-\frac {2}{x}}}{36}+\frac {x \,{\mathrm e}^{-\frac {1}{x}}}{3}\) | \(22\) |
risch | \(\frac {x^{2} {\mathrm e}^{-\frac {2}{x}}}{36}+\frac {x \,{\mathrm e}^{-\frac {1}{x}}}{3}\) | \(22\) |
meijerg | \(\frac {5 x}{18}-\frac {5}{18}+\frac {x^{2}}{36}+\frac {x \,{\mathrm e}^{-\frac {2}{x}}}{18}-\frac {x \left (2-\frac {4}{x}\right )}{36}-\frac {x^{2} \left (\frac {36}{x^{2}}-\frac {24}{x}+6\right )}{216}+\frac {x \,{\mathrm e}^{-\frac {1}{x}}}{3}-\frac {x \left (2-\frac {2}{x}\right )}{6}+\frac {x^{2} \left (3-\frac {6}{x}\right ) {\mathrm e}^{-\frac {2}{x}}}{108}\) | \(84\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [C] time = 0.39, size = 34, normalized size = 2.12 \begin {gather*} -\frac {1}{3} \, {\rm Ei}\left (-\frac {1}{x}\right ) + \frac {1}{9} \, \Gamma \left (-1, \frac {2}{x}\right ) + \frac {1}{3} \, \Gamma \left (-1, \frac {1}{x}\right ) + \frac {2}{9} \, \Gamma \left (-2, \frac {2}{x}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 6.17, size = 21, normalized size = 1.31 \begin {gather*} \frac {x\,{\mathrm {e}}^{-\frac {1}{x}}}{3}+\frac {x^2\,{\mathrm {e}}^{-\frac {2}{x}}}{36} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.15, size = 17, normalized size = 1.06 \begin {gather*} \frac {x^{2} e^{- \frac {2}{x}}}{36} + \frac {x e^{- \frac {1}{x}}}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________