Optimal. Leaf size=19 \[ \frac {3-e^2+e^x-\frac {2 x}{3}}{x} \]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 19, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {14, 2197} \begin {gather*} \frac {e^x}{x}+\frac {3-e^2}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2197
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (\frac {-3+e^2}{x^2}+\frac {e^x (-1+x)}{x^2}\right ) \, dx\\ &=\frac {3-e^2}{x}+\int \frac {e^x (-1+x)}{x^2} \, dx\\ &=\frac {e^x}{x}+\frac {3-e^2}{x}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 14, normalized size = 0.74 \begin {gather*} \frac {3-e^2+e^x}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.59, size = 13, normalized size = 0.68 \begin {gather*} -\frac {e^{2} - e^{x} - 3}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.17, size = 13, normalized size = 0.68 \begin {gather*} -\frac {e^{2} - e^{x} - 3}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 13, normalized size = 0.68
method | result | size |
norman | \(\frac {-{\mathrm e}^{2}+3+{\mathrm e}^{x}}{x}\) | \(13\) |
default | \(-\frac {{\mathrm e}^{2}}{x}+\frac {3}{x}+\frac {{\mathrm e}^{x}}{x}\) | \(20\) |
risch | \(-\frac {{\mathrm e}^{2}}{x}+\frac {3}{x}+\frac {{\mathrm e}^{x}}{x}\) | \(20\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [C] time = 0.37, size = 22, normalized size = 1.16 \begin {gather*} -\frac {e^{2}}{x} + \frac {3}{x} + {\rm Ei}\relax (x) - \Gamma \left (-1, -x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.06, size = 12, normalized size = 0.63 \begin {gather*} \frac {{\mathrm {e}}^x-{\mathrm {e}}^2+3}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.09, size = 10, normalized size = 0.53 \begin {gather*} \frac {e^{x}}{x} - \frac {-3 + e^{2}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________