Optimal. Leaf size=16 \[ e^x-\frac{3 e^x}{1-x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0742178, antiderivative size = 16, normalized size of antiderivative = 1., 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 = {2199, 2194, 2177, 2178} \[ e^x-\frac{3 e^x}{1-x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2199
Rule 2194
Rule 2177
Rule 2178
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.0329099, size = 12, normalized size = 0.75 \[ \frac{e^x (x+2)}{x-1} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.019, size = 12, normalized size = 0.8 \begin{align*}{\frac{ \left ( 2+x \right ){{\rm e}^{x}}}{x-1}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{{\left (x^{2} + x\right )} e^{x}}{x^{2} - 2 \, x + 1} + \frac{5 \, e E_{2}\left (-x + 1\right )}{x - 1} + \int \frac{{\left (3 \, x + 1\right )} e^{x}}{x^{3} - 3 \, x^{2} + 3 \, x - 1}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.788438, size = 28, normalized size = 1.75 \begin{align*} \frac{{\left (x + 2\right )} e^{x}}{x - 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.094451, size = 8, normalized size = 0.5 \begin{align*} \frac{\left (x + 2\right ) e^{x}}{x - 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.24843, size = 43, normalized size = 2.69 \begin{align*} \frac{3 \, e^{\left ({\left (x - 1\right )}{\left (\frac{1}{x - 1} + 1\right )}\right )}}{x - 1} + e^{\left ({\left (x - 1\right )}{\left (\frac{1}{x - 1} + 1\right )}\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]