Optimal. Leaf size=23 \[ 2 \log (1-x)+\frac {\log (x)}{2}-\frac {1}{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 = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {1608, 1642}
\begin {gather*} 2 \log (1-x)+\frac {\log (x)}{2}-\frac {1}{2} \log (x+2) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 1608
Rule 1642
Rubi steps
\begin {align*} \int \frac {-1+5 x+2 x^2}{-2 x+x^2+x^3} \, dx &=\int \frac {-1+5 x+2 x^2}{x \left (-2+x+x^2\right )} \, dx\\ &=\int \left (\frac {2}{-1+x}+\frac {1}{2 x}-\frac {1}{2 (2+x)}\right ) \, dx\\ &=2 \log (1-x)+\frac {\log (x)}{2}-\frac {1}{2} \log (2+x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 23, normalized size = 1.00 \begin {gather*} 2 \log (1-x)+\frac {\log (x)}{2}-\frac {1}{2} \log (2+x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [A]
time = 1.70, size = 17, normalized size = 0.74 \begin {gather*} -\frac {\text {Log}\left [2+x\right ]}{2}+\frac {\text {Log}\left [x\right ]}{2}+2 \text {Log}\left [-1+x\right ] \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 18, normalized size = 0.78
method | result | size |
default | \(\frac {\ln \left (x \right )}{2}+2 \ln \left (-1+x \right )-\frac {\ln \left (2+x \right )}{2}\) | \(18\) |
norman | \(\frac {\ln \left (x \right )}{2}+2 \ln \left (-1+x \right )-\frac {\ln \left (2+x \right )}{2}\) | \(18\) |
risch | \(\frac {\ln \left (x \right )}{2}+2 \ln \left (-1+x \right )-\frac {\ln \left (2+x \right )}{2}\) | \(18\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 17, normalized size = 0.74 \begin {gather*} -\frac {1}{2} \, \log \left (x + 2\right ) + 2 \, \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.34, size = 17, normalized size = 0.74 \begin {gather*} -\frac {1}{2} \, \log \left (x + 2\right ) + 2 \, \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.08, size = 17, normalized size = 0.74 \begin {gather*} \frac {\log {\left (x \right )}}{2} + 2 \log {\left (x - 1 \right )} - \frac {\log {\left (x + 2 \right )}}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.00, size = 23, normalized size = 1.00 \begin {gather*} \frac {\ln \left |x\right |}{2}+2 \ln \left |x-1\right |-\frac {\ln \left |x+2\right |}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.19, size = 19, normalized size = 0.83 \begin {gather*} 2\,\ln \left (x-1\right )+\mathrm {atanh}\left (\frac {135}{11\,\left (11\,x-5\right )}+\frac {16}{11}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________