Optimal. Leaf size=11 \[ \frac{x^2}{2}-2 x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0037104, antiderivative size = 11, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 11, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.091, Rules used = {627} \[ \frac{x^2}{2}-2 x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 627
Rubi steps
\begin{align*} \int \frac{-4+x^2}{2+x} \, dx &=\int (-2+x) \, dx\\ &=-2 x+\frac{x^2}{2}\\ \end{align*}
Mathematica [A] time = 0.0003356, size = 11, normalized size = 1. \[ \frac{x^2}{2}-2 x \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0., size = 10, normalized size = 0.9 \begin{align*} -2\,x+{\frac{{x}^{2}}{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.05379, size = 12, normalized size = 1.09 \begin{align*} \frac{1}{2} \, x^{2} - 2 \, x \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.13777, size = 20, normalized size = 1.82 \begin{align*} \frac{1}{2} \, x^{2} - 2 \, x \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.053813, size = 7, normalized size = 0.64 \begin{align*} \frac{x^{2}}{2} - 2 x \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.10592, size = 12, normalized size = 1.09 \begin{align*} \frac{1}{2} \, x^{2} - 2 \, x \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]