Optimal. Leaf size=25 \[ \frac {1}{2} \log (2-x)+\frac {\log (x)}{6}+\frac {1}{3} \log (3+x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 25, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {1608, 1642}
\begin {gather*} \frac {1}{2} \log (2-x)+\frac {\log (x)}{6}+\frac {1}{3} \log (x+3) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 1608
Rule 1642
Rubi steps
\begin {align*} \int \frac {-1+x+x^2}{-6 x+x^2+x^3} \, dx &=\int \frac {-1+x+x^2}{x \left (-6+x+x^2\right )} \, dx\\ &=\int \left (\frac {1}{2 (-2+x)}+\frac {1}{6 x}+\frac {1}{3 (3+x)}\right ) \, dx\\ &=\frac {1}{2} \log (2-x)+\frac {\log (x)}{6}+\frac {1}{3} \log (3+x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 25, normalized size = 1.00 \begin {gather*} \frac {1}{2} \log (2-x)+\frac {\log (x)}{6}+\frac {1}{3} \log (3+x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 18, normalized size = 0.72
method | result | size |
default | \(\frac {\ln \left (x \right )}{6}+\frac {\ln \left (-2+x \right )}{2}+\frac {\ln \left (3+x \right )}{3}\) | \(18\) |
norman | \(\frac {\ln \left (x \right )}{6}+\frac {\ln \left (-2+x \right )}{2}+\frac {\ln \left (3+x \right )}{3}\) | \(18\) |
risch | \(\frac {\ln \left (x \right )}{6}+\frac {\ln \left (-2+x \right )}{2}+\frac {\ln \left (3+x \right )}{3}\) | \(18\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 1.62, size = 17, normalized size = 0.68 \begin {gather*} \frac {1}{3} \, \log \left (x + 3\right ) + \frac {1}{2} \, \log \left (x - 2\right ) + \frac {1}{6} \, \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 17, normalized size = 0.68 \begin {gather*} \frac {1}{3} \, \log \left (x + 3\right ) + \frac {1}{2} \, \log \left (x - 2\right ) + \frac {1}{6} \, \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.68 \begin {gather*} \frac {\log {\left (x \right )}}{6} + \frac {\log {\left (x - 2 \right )}}{2} + \frac {\log {\left (x + 3 \right )}}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.78, size = 20, normalized size = 0.80 \begin {gather*} \frac {1}{3} \, \log \left ({\left | x + 3 \right |}\right ) + \frac {1}{2} \, \log \left ({\left | x - 2 \right |}\right ) + \frac {1}{6} \, \log \left ({\left | x \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.23, size = 17, normalized size = 0.68 \begin {gather*} \frac {\ln \left (x-2\right )}{2}+\frac {\ln \left (x+3\right )}{3}+\frac {\ln \left (x\right )}{6} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________