Optimal. Leaf size=22 \[ -8+5 e^6+\frac {5}{x}-\frac {e^{-5+x}}{x} \]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 16, normalized size of antiderivative = 0.73, number of steps used = 3, number of rules used = 2, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {14, 2197} \begin {gather*} \frac {5}{x}-\frac {e^{x-5}}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2197
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (-\frac {5}{x^2}-\frac {e^{-5+x} (-1+x)}{x^2}\right ) \, dx\\ &=\frac {5}{x}-\int \frac {e^{-5+x} (-1+x)}{x^2} \, dx\\ &=\frac {5}{x}-\frac {e^{-5+x}}{x}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 12, normalized size = 0.55 \begin {gather*} -\frac {-5+e^{-5+x}}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.49, size = 17, normalized size = 0.77 \begin {gather*} -\frac {x e^{\left (x - \log \relax (x) - 5\right )} - 5}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.12, size = 15, normalized size = 0.68 \begin {gather*} \frac {{\left (5 \, e^{5} - e^{x}\right )} e^{\left (-5\right )}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 16, normalized size = 0.73
method | result | size |
default | \(\frac {5}{x}-\frac {{\mathrm e}^{x -5}}{x}\) | \(16\) |
risch | \(\frac {5}{x}-\frac {{\mathrm e}^{x -5}}{x}\) | \(16\) |
norman | \(\frac {5-{\mathrm e}^{-\ln \relax (x )+x -5} x}{x}\) | \(18\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [C] time = 0.38, size = 20, normalized size = 0.91 \begin {gather*} -{\rm Ei}\relax (x) e^{\left (-5\right )} + e^{\left (-5\right )} \Gamma \left (-1, -x\right ) + \frac {5}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.24, size = 11, normalized size = 0.50 \begin {gather*} -\frac {{\mathrm {e}}^{x-5}-5}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.10, size = 8, normalized size = 0.36 \begin {gather*} - \frac {e^{x - 5}}{x} + \frac {5}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________