Optimal. Leaf size=23 \[ -1+\left (-\frac {4}{-2-x}+\frac {x}{2}\right ) x^3+\log (4) \]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 23, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.062, Rules used = {27, 1850} \begin {gather*} \frac {x^4}{2}+4 x^2-8 x-\frac {32}{x+2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 27
Rule 1850
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {24 x^2+16 x^3+8 x^4+2 x^5}{(2+x)^2} \, dx\\ &=\int \left (-8+8 x+2 x^3+\frac {32}{(2+x)^2}\right ) \, dx\\ &=-8 x+4 x^2+\frac {x^4}{2}-\frac {32}{2+x}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 27, normalized size = 1.17 \begin {gather*} \frac {-224-112 x+8 x^3+2 x^4+x^5}{2 (2+x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.71, size = 25, normalized size = 1.09 \begin {gather*} \frac {x^{5} + 2 \, x^{4} + 8 \, x^{3} - 32 \, x - 64}{2 \, {\left (x + 2\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.15, size = 21, normalized size = 0.91 \begin {gather*} \frac {1}{2} \, x^{4} + 4 \, x^{2} - 8 \, x - \frac {32}{x + 2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.15, size = 19, normalized size = 0.83
method | result | size |
gosper | \(\frac {x^{3} \left (x^{2}+2 x +8\right )}{2 x +4}\) | \(19\) |
norman | \(\frac {x^{4}+4 x^{3}+\frac {1}{2} x^{5}}{2+x}\) | \(21\) |
default | \(\frac {x^{4}}{2}+4 x^{2}-8 x -\frac {32}{2+x}\) | \(22\) |
risch | \(\frac {x^{4}}{2}+4 x^{2}-8 x -\frac {32}{2+x}\) | \(22\) |
meijerg | \(-\frac {4 x \left (-\frac {3}{16} x^{4}+\frac {5}{8} x^{3}-\frac {5}{2} x^{2}+15 x +60\right )}{3 \left (1+\frac {x}{2}\right )}+\frac {32 x \left (\frac {5}{8} x^{3}-\frac {5}{2} x^{2}+15 x +60\right )}{15 \left (1+\frac {x}{2}\right )}-\frac {8 x \left (-\frac {1}{2} x^{2}+3 x +12\right )}{1+\frac {x}{2}}+\frac {8 x \left (\frac {3 x}{2}+6\right )}{1+\frac {x}{2}}\) | \(92\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.34, size = 21, normalized size = 0.91 \begin {gather*} \frac {1}{2} \, x^{4} + 4 \, x^{2} - 8 \, x - \frac {32}{x + 2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.05, size = 21, normalized size = 0.91 \begin {gather*} 4\,x^2-\frac {32}{x+2}-8\,x+\frac {x^4}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.10, size = 17, normalized size = 0.74 \begin {gather*} \frac {x^{4}}{2} + 4 x^{2} - 8 x - \frac {32}{x + 2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________