Optimal. Leaf size=29 \[ \frac{x^4}{4}-x^3+\frac{9 x^2}{2}-20 x+47 \log (x+2) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.020162, antiderivative size = 29, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.042, Rules used = {1850} \[ \frac{x^4}{4}-x^3+\frac{9 x^2}{2}-20 x+47 \log (x+2) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1850
Rubi steps
\begin{align*} \int \frac{7-2 x+3 x^2-x^3+x^4}{2+x} \, dx &=\int \left (-20+9 x-3 x^2+x^3+\frac{47}{2+x}\right ) \, dx\\ &=-20 x+\frac{9 x^2}{2}-x^3+\frac{x^4}{4}+47 \log (2+x)\\ \end{align*}
Mathematica [A] time = 0.0078275, size = 30, normalized size = 1.03 \[ \frac{x^4}{4}-x^3+\frac{9 x^2}{2}-20 x+47 \log (x+2)-70 \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.003, size = 26, normalized size = 0.9 \begin{align*} -20\,x+{\frac{9\,{x}^{2}}{2}}-{x}^{3}+{\frac{{x}^{4}}{4}}+47\,\ln \left ( 2+x \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.32159, size = 34, normalized size = 1.17 \begin{align*} \frac{1}{4} \, x^{4} - x^{3} + \frac{9}{2} \, x^{2} - 20 \, x + 47 \, \log \left (x + 2\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.943417, size = 65, normalized size = 2.24 \begin{align*} \frac{1}{4} \, x^{4} - x^{3} + \frac{9}{2} \, x^{2} - 20 \, x + 47 \, \log \left (x + 2\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.074734, size = 24, normalized size = 0.83 \begin{align*} \frac{x^{4}}{4} - x^{3} + \frac{9 x^{2}}{2} - 20 x + 47 \log{\left (x + 2 \right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.09244, size = 35, normalized size = 1.21 \begin{align*} \frac{1}{4} \, x^{4} - x^{3} + \frac{9}{2} \, x^{2} - 20 \, x + 47 \, \log \left ({\left | x + 2 \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]