Optimal. Leaf size=27 \[ -\frac{e^{\frac{1}{x}}}{x^2}-e^{\frac{1}{x}}+\frac{e^{\frac{1}{x}}}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.105, antiderivative size = 27, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 3, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {6742, 2212, 2209} \[ -\frac{e^{\frac{1}{x}}}{x^2}-e^{\frac{1}{x}}+\frac{e^{\frac{1}{x}}}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6742
Rule 2212
Rule 2209
Rubi steps
\begin{align*} \int \frac{e^{\frac{1}{x}} (1+x)}{x^4} \, dx &=\int \left (\frac{e^{\frac{1}{x}}}{x^4}+\frac{e^{\frac{1}{x}}}{x^3}\right ) \, dx\\ &=\int \frac{e^{\frac{1}{x}}}{x^4} \, dx+\int \frac{e^{\frac{1}{x}}}{x^3} \, dx\\ &=-\frac{e^{\frac{1}{x}}}{x^2}-\frac{e^{\frac{1}{x}}}{x}-2 \int \frac{e^{\frac{1}{x}}}{x^3} \, dx-\int \frac{e^{\frac{1}{x}}}{x^2} \, dx\\ &=e^{\frac{1}{x}}-\frac{e^{\frac{1}{x}}}{x^2}+\frac{e^{\frac{1}{x}}}{x}+2 \int \frac{e^{\frac{1}{x}}}{x^2} \, dx\\ &=-e^{\frac{1}{x}}-\frac{e^{\frac{1}{x}}}{x^2}+\frac{e^{\frac{1}{x}}}{x}\\ \end{align*}
Mathematica [A] time = 0.0115183, size = 17, normalized size = 0.63 \[ \frac{e^{\frac{1}{x}} \left (-x^2+x-1\right )}{x^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.002, size = 18, normalized size = 0.7 \begin{align*} -{\frac{ \left ({x}^{2}-x+1 \right ){{\rm e}^{{x}^{-1}}}}{{x}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] time = 1.02522, size = 23, normalized size = 0.85 \begin{align*} -\Gamma \left (3, -\frac{1}{x}\right ) + \Gamma \left (2, -\frac{1}{x}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.50407, size = 38, normalized size = 1.41 \begin{align*} -\frac{{\left (x^{2} - x + 1\right )} e^{\frac{1}{x}}}{x^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.095526, size = 14, normalized size = 0.52 \begin{align*} \frac{\left (- x^{2} + x - 1\right ) e^{\frac{1}{x}}}{x^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (x + 1\right )} e^{\frac{1}{x}}}{x^{4}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]