Optimal. Leaf size=33 \[ \frac {(-3+x) \left (-1+5 e^{-\frac {e^2}{x}}+x^2+\frac {-2+2 x}{x}\right )}{x} \]
________________________________________________________________________________________
Rubi [A] time = 0.41, antiderivative size = 65, normalized size of antiderivative = 1.97, number of steps used = 9, number of rules used = 4, integrand size = 52, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {6742, 2212, 2209, 14} \begin {gather*} x^2+\frac {6}{x^2}-3 x-15 e^{-\frac {e^2}{x}-2}+5 \left (3+e^2\right ) e^{-\frac {e^2}{x}-2}-\frac {15 e^{-\frac {e^2}{x}}}{x}-\frac {5}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2209
Rule 2212
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (\frac {5 e^{-\frac {e^2}{x}} \left (-3 e^2+\left (3+e^2\right ) x\right )}{x^3}+\frac {-12+5 x-3 x^3+2 x^4}{x^3}\right ) \, dx\\ &=5 \int \frac {e^{-\frac {e^2}{x}} \left (-3 e^2+\left (3+e^2\right ) x\right )}{x^3} \, dx+\int \frac {-12+5 x-3 x^3+2 x^4}{x^3} \, dx\\ &=5 \int \left (-\frac {3 e^{2-\frac {e^2}{x}}}{x^3}+\frac {e^{-\frac {e^2}{x}} \left (3+e^2\right )}{x^2}\right ) \, dx+\int \left (-3-\frac {12}{x^3}+\frac {5}{x^2}+2 x\right ) \, dx\\ &=\frac {6}{x^2}-\frac {5}{x}-3 x+x^2-15 \int \frac {e^{2-\frac {e^2}{x}}}{x^3} \, dx+\left (5 \left (3+e^2\right )\right ) \int \frac {e^{-\frac {e^2}{x}}}{x^2} \, dx\\ &=5 e^{-2-\frac {e^2}{x}} \left (3+e^2\right )+\frac {6}{x^2}-\frac {5}{x}-\frac {15 e^{-\frac {e^2}{x}}}{x}-3 x+x^2-\frac {15 \int \frac {e^{2-\frac {e^2}{x}}}{x^2} \, dx}{e^2}\\ &=-15 e^{-2-\frac {e^2}{x}}+5 e^{-2-\frac {e^2}{x}} \left (3+e^2\right )+\frac {6}{x^2}-\frac {5}{x}-\frac {15 e^{-\frac {e^2}{x}}}{x}-3 x+x^2\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.13, size = 33, normalized size = 1.00 \begin {gather*} \frac {6-5 x+5 e^{-\frac {e^2}{x}} (-3+x) x-3 x^3+x^4}{x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.49, size = 42, normalized size = 1.27 \begin {gather*} \frac {{\left (5 \, x^{2} + {\left (x^{4} - 3 \, x^{3} - 5 \, x + 6\right )} e^{\left (\frac {e^{2}}{x}\right )} - 15 \, x\right )} e^{\left (-\frac {e^{2}}{x}\right )}}{x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.14, size = 63, normalized size = 1.91 \begin {gather*} -x^{2} {\left (\frac {3 \, e^{8}}{x} - \frac {5 \, e^{\left (-\frac {e^{2}}{x} + 8\right )}}{x^{2}} + \frac {5 \, e^{8}}{x^{3}} + \frac {15 \, e^{\left (-\frac {e^{2}}{x} + 8\right )}}{x^{3}} - \frac {6 \, e^{8}}{x^{4}} - e^{8}\right )} e^{\left (-8\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.16, size = 33, normalized size = 1.00
method | result | size |
risch | \(x^{2}-3 x +\frac {-5 x +6}{x^{2}}+\frac {5 \left (x -3\right ) {\mathrm e}^{-\frac {{\mathrm e}^{2}}{x}}}{x}\) | \(33\) |
norman | \(\frac {\left (x^{4} {\mathrm e}^{\frac {{\mathrm e}^{2}}{x}}-15 x +5 x^{2}-5 \,{\mathrm e}^{\frac {{\mathrm e}^{2}}{x}} x -3 \,{\mathrm e}^{\frac {{\mathrm e}^{2}}{x}} x^{3}+6 \,{\mathrm e}^{\frac {{\mathrm e}^{2}}{x}}\right ) {\mathrm e}^{-\frac {{\mathrm e}^{2}}{x}}}{x^{2}}\) | \(65\) |
derivativedivides | \(-{\mathrm e}^{-4} \left (-\frac {6 \,{\mathrm e}^{4}}{x^{2}}-x^{2} {\mathrm e}^{4}+3 x \,{\mathrm e}^{4}-15 \,{\mathrm e}^{-\frac {{\mathrm e}^{2}}{x}} {\mathrm e}^{2}-5 \,{\mathrm e}^{-\frac {{\mathrm e}^{2}}{x}} {\mathrm e}^{4}-15 \,{\mathrm e}^{2} \left (-\frac {{\mathrm e}^{2} {\mathrm e}^{-\frac {{\mathrm e}^{2}}{x}}}{x}-{\mathrm e}^{-\frac {{\mathrm e}^{2}}{x}}\right )+\frac {5 \,{\mathrm e}^{4}}{x}\right )\) | \(102\) |
default | \(-{\mathrm e}^{-4} \left (-\frac {6 \,{\mathrm e}^{4}}{x^{2}}-x^{2} {\mathrm e}^{4}+3 x \,{\mathrm e}^{4}-15 \,{\mathrm e}^{-\frac {{\mathrm e}^{2}}{x}} {\mathrm e}^{2}-5 \,{\mathrm e}^{-\frac {{\mathrm e}^{2}}{x}} {\mathrm e}^{4}-15 \,{\mathrm e}^{2} \left (-\frac {{\mathrm e}^{2} {\mathrm e}^{-\frac {{\mathrm e}^{2}}{x}}}{x}-{\mathrm e}^{-\frac {{\mathrm e}^{2}}{x}}\right )+\frac {5 \,{\mathrm e}^{4}}{x}\right )\) | \(102\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [C] time = 0.37, size = 51, normalized size = 1.55 \begin {gather*} x^{2} - 15 \, e^{\left (-2\right )} \Gamma \left (2, \frac {e^{2}}{x}\right ) - 3 \, x - \frac {5}{x} + \frac {6}{x^{2}} + 15 \, e^{\left (-\frac {e^{2}}{x} - 2\right )} + 5 \, e^{\left (-\frac {e^{2}}{x}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.38, size = 38, normalized size = 1.15 \begin {gather*} 5\,{\mathrm {e}}^{-\frac {{\mathrm {e}}^2}{x}}-3\,x-\frac {x\,\left (15\,{\mathrm {e}}^{-\frac {{\mathrm {e}}^2}{x}}+5\right )-6}{x^2}+x^2 \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.15, size = 27, normalized size = 0.82 \begin {gather*} x^{2} - 3 x + \frac {\left (5 x - 15\right ) e^{- \frac {e^{2}}{x}}}{x} + \frac {6 - 5 x}{x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________