Optimal. Leaf size=19 \[ 2-x+\log \left (e^{-4+\frac {2}{1+2 x}}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 13, normalized size of antiderivative = 0.68, number of steps used = 3, number of rules used = 2, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {27, 683} \begin {gather*} \frac {2}{2 x+1}-x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 27
Rule 683
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {-5-4 x-4 x^2}{(1+2 x)^2} \, dx\\ &=\int \left (-1-\frac {4}{(1+2 x)^2}\right ) \, dx\\ &=-x+\frac {2}{1+2 x}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 13, normalized size = 0.68 \begin {gather*} -x+\frac {2}{1+2 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.54, size = 17, normalized size = 0.89 \begin {gather*} -\frac {2 \, x^{2} + x - 2}{2 \, x + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.35, size = 13, normalized size = 0.68 \begin {gather*} -x + \frac {2}{2 \, x + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.30, size = 10, normalized size = 0.53
method | result | size |
risch | \(-x +\frac {1}{\frac {1}{2}+x}\) | \(10\) |
default | \(-x +\frac {2}{2 x +1}\) | \(14\) |
gosper | \(-\frac {x \left (5+2 x \right )}{2 x +1}\) | \(16\) |
meijerg | \(-\frac {x \left (6 x +6\right )}{3 \left (2 x +1\right )}-\frac {3 x}{2 x +1}\) | \(27\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.62, size = 13, normalized size = 0.68 \begin {gather*} -x + \frac {2}{2 \, x + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.04, size = 9, normalized size = 0.47 \begin {gather*} \frac {1}{x+\frac {1}{2}}-x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.07, size = 7, normalized size = 0.37 \begin {gather*} - x + \frac {2}{2 x + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________