Optimal. Leaf size=22 \[ \frac {x^2}{2}-\frac {2}{7} \tanh ^{-1}\left (\frac {1}{7} (2 x+1)\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 26, normalized size of antiderivative = 1.18, number of steps used = 5, number of rules used = 3, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {1657, 616, 31} \begin {gather*} \frac {x^2}{2}+\frac {1}{7} \log (3-x)-\frac {1}{7} \log (x+4) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 616
Rule 1657
Rubi steps
\begin {align*} \int \frac {1-12 x+x^2+x^3}{-12+x+x^2} \, dx &=\int \left (x+\frac {1}{-12+x+x^2}\right ) \, dx\\ &=\frac {x^2}{2}+\int \frac {1}{-12+x+x^2} \, dx\\ &=\frac {x^2}{2}+\frac {1}{7} \int \frac {1}{-3+x} \, dx-\frac {1}{7} \int \frac {1}{4+x} \, dx\\ &=\frac {x^2}{2}+\frac {1}{7} \log (3-x)-\frac {1}{7} \log (4+x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 26, normalized size = 1.18 \begin {gather*} \frac {x^2}{2}+\frac {1}{7} \log (3-x)-\frac {1}{7} \log (x+4) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1-12 x+x^2+x^3}{-12+x+x^2} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.61, size = 18, normalized size = 0.82 \begin {gather*} \frac {1}{2} \, x^{2} - \frac {1}{7} \, \log \left (x + 4\right ) + \frac {1}{7} \, \log \left (x - 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.28, size = 20, normalized size = 0.91 \begin {gather*} \frac {1}{2} \, x^{2} - \frac {1}{7} \, \log \left ({\left | x + 4 \right |}\right ) + \frac {1}{7} \, \log \left ({\left | x - 3 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 19, normalized size = 0.86 \begin {gather*} \frac {x^{2}}{2}+\frac {\ln \left (x -3\right )}{7}-\frac {\ln \left (x +4\right )}{7} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.97, size = 18, normalized size = 0.82 \begin {gather*} \frac {1}{2} \, x^{2} - \frac {1}{7} \, \log \left (x + 4\right ) + \frac {1}{7} \, \log \left (x - 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.04, size = 14, normalized size = 0.64 \begin {gather*} \frac {x^2}{2}-\frac {2\,\mathrm {atanh}\left (\frac {2\,x}{7}+\frac {1}{7}\right )}{7} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.10, size = 17, normalized size = 0.77 \begin {gather*} \frac {x^{2}}{2} + \frac {\log {\left (x - 3 \right )}}{7} - \frac {\log {\left (x + 4 \right )}}{7} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________