Optimal. Leaf size=21 \[ \frac {1}{2 x^2}+\frac {1}{x}+\log (1-x)-\log (x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 21, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {1607, 46}
\begin {gather*} \frac {1}{2 x^2}+\frac {1}{x}+\log (1-x)-\log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 46
Rule 1607
Rubi steps
\begin {align*} \int \frac {1}{-x^3+x^4} \, dx &=\int \frac {1}{(-1+x) x^3} \, dx\\ &=\int \left (\frac {1}{-1+x}-\frac {1}{x^3}-\frac {1}{x^2}-\frac {1}{x}\right ) \, dx\\ &=\frac {1}{2 x^2}+\frac {1}{x}+\log (1-x)-\log (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 21, normalized size = 1.00 \begin {gather*} \frac {1}{2 x^2}+\frac {1}{x}+\log (1-x)-\log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 18, normalized size = 0.86
method | result | size |
norman | \(\frac {x +\frac {1}{2}}{x^{2}}-\ln \left (x \right )+\ln \left (-1+x \right )\) | \(17\) |
risch | \(\frac {x +\frac {1}{2}}{x^{2}}-\ln \left (x \right )+\ln \left (-1+x \right )\) | \(17\) |
default | \(\frac {1}{2 x^{2}}+\frac {1}{x}-\ln \left (x \right )+\ln \left (-1+x \right )\) | \(18\) |
meijerg | \(\frac {1}{2 x^{2}}+\frac {1}{x}-\ln \left (x \right )-i \pi +\ln \left (1-x \right )\) | \(24\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 2.66, size = 19, normalized size = 0.90 \begin {gather*} \frac {2 \, x + 1}{2 \, x^{2}} + \log \left (x - 1\right ) - \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.44, size = 26, normalized size = 1.24 \begin {gather*} \frac {2 \, x^{2} \log \left (x - 1\right ) - 2 \, x^{2} \log \left (x\right ) + 2 \, x + 1}{2 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.03, size = 17, normalized size = 0.81 \begin {gather*} - \log {\left (x \right )} + \log {\left (x - 1 \right )} + \frac {2 x + 1}{2 x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.53, size = 21, normalized size = 1.00 \begin {gather*} \frac {2 \, x + 1}{2 \, x^{2}} + \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]
________________________________________________________________________________________
Mupad [B]
time = 0.04, size = 16, normalized size = 0.76 \begin {gather*} \frac {x+\frac {1}{2}}{x^2}-2\,\mathrm {atanh}\left (2\,x-1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________