Optimal. Leaf size=10 \[ -\frac {e^x}{x}+x \]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 10, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {14, 2197} \begin {gather*} x-\frac {e^x}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2197
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (1-\frac {e^x (-1+x)}{x^2}\right ) \, dx\\ &=x-\int \frac {e^x (-1+x)}{x^2} \, dx\\ &=-\frac {e^x}{x}+x\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 10, normalized size = 1.00 \begin {gather*} -\frac {e^x}{x}+x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.47, size = 12, normalized size = 1.20 \begin {gather*} \frac {x^{2} - e^{x}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.15, size = 12, normalized size = 1.20 \begin {gather*} \frac {x^{2} - e^{x}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.08, size = 10, normalized size = 1.00
method | result | size |
default | \(x -\frac {{\mathrm e}^{x}}{x}\) | \(10\) |
risch | \(x -\frac {{\mathrm e}^{x}}{x}\) | \(10\) |
norman | \(\frac {-{\mathrm e}^{x}+x^{2}}{x}\) | \(13\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [C] time = 0.38, size = 11, normalized size = 1.10 \begin {gather*} 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 = 5.60, size = 9, normalized size = 0.90 \begin {gather*} x-\frac {{\mathrm {e}}^x}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.08, size = 5, normalized size = 0.50 \begin {gather*} x - \frac {e^{x}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________