Optimal. Leaf size=32 \[ -x+x \left (1+\frac {5}{x+x^2}\right )+4 \left (4+2 e^{-e^2}+\log (x)\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 12, normalized size of antiderivative = 0.38, number of steps used = 4, number of rules used = 3, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {1594, 27, 893} \begin {gather*} \frac {5}{x+1}+4 \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 27
Rule 893
Rule 1594
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {4+3 x+4 x^2}{x \left (1+2 x+x^2\right )} \, dx\\ &=\int \frac {4+3 x+4 x^2}{x (1+x)^2} \, dx\\ &=\int \left (\frac {4}{x}-\frac {5}{(1+x)^2}\right ) \, dx\\ &=\frac {5}{1+x}+4 \log (x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 12, normalized size = 0.38 \begin {gather*} \frac {5}{1+x}+4 \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.56, size = 15, normalized size = 0.47 \begin {gather*} \frac {4 \, {\left (x + 1\right )} \log \relax (x) + 5}{x + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.15, size = 13, normalized size = 0.41 \begin {gather*} \frac {5}{x + 1} + 4 \, \log \left ({\left | x \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 13, normalized size = 0.41
method | result | size |
default | \(4 \ln \relax (x )+\frac {5}{x +1}\) | \(13\) |
norman | \(4 \ln \relax (x )+\frac {5}{x +1}\) | \(13\) |
risch | \(4 \ln \relax (x )+\frac {5}{x +1}\) | \(13\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.36, size = 12, normalized size = 0.38 \begin {gather*} \frac {5}{x + 1} + 4 \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.15, size = 12, normalized size = 0.38 \begin {gather*} 4\,\ln \relax (x)+\frac {5}{x+1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.08, size = 8, normalized size = 0.25 \begin {gather*} 4 \log {\relax (x )} + \frac {5}{x + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________