Optimal. Leaf size=16 \[ \log \left (\frac {2 e^{-x} (1-x)}{x}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 14, normalized size of antiderivative = 0.88, number of steps used = 3, number of rules used = 2, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {1593, 893} \begin {gather*} -x+\log (1-x)-\log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 893
Rule 1593
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {1+x-x^2}{(-1+x) x} \, dx\\ &=\int \left (-1+\frac {1}{-1+x}-\frac {1}{x}\right ) \, dx\\ &=-x+\log (1-x)-\log (x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.00, size = 14, normalized size = 0.88 \begin {gather*} -x+\log (1-x)-\log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.81, size = 12, normalized size = 0.75 \begin {gather*} -x + \log \left (x - 1\right ) - \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.18, size = 14, normalized size = 0.88 \begin {gather*} -x + \log \left ({\left | x - 1 \right |}\right ) - \log \left ({\left | x \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.53, size = 13, normalized size = 0.81
method | result | size |
default | \(-x -\ln \relax (x )+\ln \left (x -1\right )\) | \(13\) |
norman | \(-x -\ln \relax (x )+\ln \left (x -1\right )\) | \(13\) |
risch | \(-x -\ln \relax (x )+\ln \left (x -1\right )\) | \(13\) |
meijerg | \(-\ln \relax (x )-i \pi -x +\ln \left (1-x \right )\) | \(19\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.41, size = 12, normalized size = 0.75 \begin {gather*} -x + \log \left (x - 1\right ) - \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 7.79, size = 12, normalized size = 0.75 \begin {gather*} -x-2\,\mathrm {atanh}\left (2\,x-1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.09, size = 8, normalized size = 0.50 \begin {gather*} - x - \log {\relax (x )} + \log {\left (x - 1 \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________