Optimal. Leaf size=23 \[ -\log (1-x)+\frac {\log (x)}{2}+\frac {3}{2} \log (2+x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 23, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {1608, 1642}
\begin {gather*} -\log (1-x)+\frac {\log (x)}{2}+\frac {3}{2} \log (x+2) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 1608
Rule 1642
Rubi steps
\begin {align*} \int \frac {-1-3 x+x^2}{-2 x+x^2+x^3} \, dx &=\int \frac {-1-3 x+x^2}{x \left (-2+x+x^2\right )} \, dx\\ &=\int \left (\frac {1}{1-x}+\frac {1}{2 x}+\frac {3}{2 (2+x)}\right ) \, dx\\ &=-\log (1-x)+\frac {\log (x)}{2}+\frac {3}{2} \log (2+x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 23, normalized size = 1.00 \begin {gather*} -\log (1-x)+\frac {\log (x)}{2}+\frac {3}{2} \log (2+x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 18, normalized size = 0.78
method | result | size |
default | \(\frac {3 \ln \left (x +2\right )}{2}-\ln \left (-1+x \right )+\frac {\ln \left (x \right )}{2}\) | \(18\) |
norman | \(\frac {3 \ln \left (x +2\right )}{2}-\ln \left (-1+x \right )+\frac {\ln \left (x \right )}{2}\) | \(18\) |
risch | \(\frac {3 \ln \left (x +2\right )}{2}-\ln \left (-1+x \right )+\frac {\ln \left (x \right )}{2}\) | \(18\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 17, normalized size = 0.74 \begin {gather*} \frac {3}{2} \, \log \left (x + 2\right ) - \log \left (x - 1\right ) + \frac {1}{2} \, \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.40, size = 17, normalized size = 0.74 \begin {gather*} \frac {3}{2} \, \log \left (x + 2\right ) - \log \left (x - 1\right ) + \frac {1}{2} \, \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.05, size = 17, normalized size = 0.74 \begin {gather*} \frac {\log {\left (x \right )}}{2} - \log {\left (x - 1 \right )} + \frac {3 \log {\left (x + 2 \right )}}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.71, size = 20, normalized size = 0.87 \begin {gather*} \frac {3}{2} \, \log \left ({\left | x + 2 \right |}\right ) - \log \left ({\left | x - 1 \right |}\right ) + \frac {1}{2} \, \log \left ({\left | x \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.19, size = 17, normalized size = 0.74 \begin {gather*} \frac {3\,\ln \left (x+2\right )}{2}-\ln \left (x-1\right )+\frac {\ln \left (x\right )}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________