Optimal. Leaf size=16 \[ e^x-\frac {3 e^x}{1-x} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 16, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 4, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.267, Rules used = {2230, 2225,
2208, 2209} \begin {gather*} e^x-\frac {3 e^x}{1-x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2208
Rule 2209
Rule 2225
Rule 2230
Rubi steps
\begin {align*} \int \frac {e^x \left (-5+x+x^2\right )}{(-1+x)^2} \, dx &=\int \left (e^x-\frac {3 e^x}{(-1+x)^2}+\frac {3 e^x}{-1+x}\right ) \, dx\\ &=-\left (3 \int \frac {e^x}{(-1+x)^2} \, dx\right )+3 \int \frac {e^x}{-1+x} \, dx+\int e^x \, dx\\ &=e^x-\frac {3 e^x}{1-x}+3 e \text {Ei}(-1+x)-3 \int \frac {e^x}{-1+x} \, dx\\ &=e^x-\frac {3 e^x}{1-x}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 13, normalized size = 0.81 \begin {gather*} e^x \left (1+\frac {3}{-1+x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 13, normalized size = 0.81
method | result | size |
gosper | \(\frac {\left (x +2\right ) {\mathrm e}^{x}}{-1+x}\) | \(12\) |
risch | \(\frac {\left (x +2\right ) {\mathrm e}^{x}}{-1+x}\) | \(12\) |
default | \(\frac {3 \,{\mathrm e}^{x}}{-1+x}+{\mathrm e}^{x}\) | \(13\) |
norman | \(\frac {{\mathrm e}^{x} x +2 \,{\mathrm e}^{x}}{-1+x}\) | \(16\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.40, size = 11, normalized size = 0.69 \begin {gather*} \frac {{\left (x + 2\right )} e^{x}}{x - 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.03, size = 8, normalized size = 0.50 \begin {gather*} \frac {\left (x + 2\right ) e^{x}}{x - 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 54 vs.
\(2 (12) = 24\).
time = 5.56, size = 54, normalized size = 3.38 \begin {gather*} \frac {{\left (x - 1\right )} {\left (\frac {1}{x - 1} + 1\right )} e^{\left ({\left (x - 1\right )} {\left (\frac {1}{x - 1} + 1\right )}\right )} + 2 \, e^{\left ({\left (x - 1\right )} {\left (\frac {1}{x - 1} + 1\right )}\right )}}{{\left (x - 1\right )} {\left (\frac {1}{x - 1} + 1\right )} - 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.08, size = 11, normalized size = 0.69 \begin {gather*} \frac {{\mathrm {e}}^x\,\left (x+2\right )}{x-1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________