Optimal. Leaf size=20 \[ x+\frac {4}{5} \log (2-x)-\frac {9}{5} \log (x+3) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 20, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {703, 632, 31} \[ x+\frac {4}{5} \log (2-x)-\frac {9}{5} \log (x+3) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 632
Rule 703
Rubi steps
\begin {align*} \int \frac {x^2}{-6+x+x^2} \, dx &=x+\int \frac {6-x}{-6+x+x^2} \, dx\\ &=x+\frac {4}{5} \int \frac {1}{-2+x} \, dx-\frac {9}{5} \int \frac {1}{3+x} \, dx\\ &=x+\frac {4}{5} \log (2-x)-\frac {9}{5} \log (3+x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.00, size = 20, normalized size = 1.00 \[ x+\frac {4}{5} \log (2-x)-\frac {9}{5} \log (x+3) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.38, size = 14, normalized size = 0.70 \[ x - \frac {9}{5} \, \log \left (x + 3\right ) + \frac {4}{5} \, \log \left (x - 2\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.01, size = 16, normalized size = 0.80 \[ x - \frac {9}{5} \, \log \left ({\left | x + 3 \right |}\right ) + \frac {4}{5} \, \log \left ({\left | x - 2 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 15, normalized size = 0.75 \[ x +\frac {4 \ln \left (x -2\right )}{5}-\frac {9 \ln \left (x +3\right )}{5} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.51, size = 14, normalized size = 0.70 \[ x - \frac {9}{5} \, \log \left (x + 3\right ) + \frac {4}{5} \, \log \left (x - 2\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.04, size = 14, normalized size = 0.70 \[ x+\frac {4\,\ln \left (x-2\right )}{5}-\frac {9\,\ln \left (x+3\right )}{5} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.11, size = 17, normalized size = 0.85 \[ x + \frac {4 \log {\left (x - 2 \right )}}{5} - \frac {9 \log {\left (x + 3 \right )}}{5} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________