Optimal. Leaf size=46 \[ -\frac {7}{100} \log \left (x^2+1\right )+\frac {2}{5 (2 x+1)}-\frac {1}{2} \log (x+1)+\frac {16}{25} \log (2 x+1)+\frac {1}{50} \tan ^{-1}(x) \]
________________________________________________________________________________________
Rubi [A] time = 0.20, antiderivative size = 46, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {6725, 635, 203, 260} \[ -\frac {7}{100} \log \left (x^2+1\right )+\frac {2}{5 (2 x+1)}-\frac {1}{2} \log (x+1)+\frac {16}{25} \log (2 x+1)+\frac {1}{50} \tan ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 260
Rule 635
Rule 6725
Rubi steps
\begin {align*} \int \frac {x}{(1+x) (1+2 x)^2 \left (1+x^2\right )} \, dx &=\int \left (-\frac {1}{2 (1+x)}-\frac {4}{5 (1+2 x)^2}+\frac {32}{25 (1+2 x)}+\frac {1-7 x}{50 \left (1+x^2\right )}\right ) \, dx\\ &=\frac {2}{5 (1+2 x)}-\frac {1}{2} \log (1+x)+\frac {16}{25} \log (1+2 x)+\frac {1}{50} \int \frac {1-7 x}{1+x^2} \, dx\\ &=\frac {2}{5 (1+2 x)}-\frac {1}{2} \log (1+x)+\frac {16}{25} \log (1+2 x)+\frac {1}{50} \int \frac {1}{1+x^2} \, dx-\frac {7}{50} \int \frac {x}{1+x^2} \, dx\\ &=\frac {2}{5 (1+2 x)}+\frac {1}{50} \tan ^{-1}(x)-\frac {1}{2} \log (1+x)+\frac {16}{25} \log (1+2 x)-\frac {7}{100} \log \left (1+x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 40, normalized size = 0.87 \[ \frac {1}{100} \left (-7 \log \left (x^2+1\right )+\frac {40}{2 x+1}-50 \log (x+1)+64 \log (2 x+1)+2 \tan ^{-1}(x)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.03, size = 46, normalized size = 1.00 \[ -\frac {7}{100} \log \left (x^2+1\right )+\frac {2}{5 (2 x+1)}-\frac {1}{2} \log (x+1)+\frac {16}{25} \log (2 x+1)+\frac {1}{50} \tan ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.85, size = 57, normalized size = 1.24 \[ \frac {2 \, {\left (2 \, x + 1\right )} \arctan \relax (x) - 7 \, {\left (2 \, x + 1\right )} \log \left (x^{2} + 1\right ) + 64 \, {\left (2 \, x + 1\right )} \log \left (2 \, x + 1\right ) - 50 \, {\left (2 \, x + 1\right )} \log \left (x + 1\right ) + 40}{100 \, {\left (2 \, x + 1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.04, size = 62, normalized size = 1.35 \[ \frac {2}{5 \, {\left (2 \, x + 1\right )}} + \frac {1}{50} \, \arctan \left (-\frac {5}{2 \, {\left (2 \, x + 1\right )}} + \frac {1}{2}\right ) - \frac {7}{100} \, \log \left (-\frac {2}{2 \, x + 1} + \frac {5}{{\left (2 \, x + 1\right )}^{2}} + 1\right ) - \frac {1}{2} \, \log \left ({\left | -\frac {1}{2 \, x + 1} - 1 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.32, size = 35, normalized size = 0.76
method | result | size |
risch | \(\frac {1}{\frac {5}{2}+5 x}-\frac {\ln \left (1+x \right )}{2}+\frac {16 \ln \left (1+2 x \right )}{25}-\frac {7 \ln \left (x^{2}+1\right )}{100}+\frac {\arctan \relax (x )}{50}\) | \(35\) |
default | \(\frac {2}{5 \left (1+2 x \right )}+\frac {\arctan \relax (x )}{50}-\frac {\ln \left (1+x \right )}{2}+\frac {16 \ln \left (1+2 x \right )}{25}-\frac {7 \ln \left (x^{2}+1\right )}{100}\) | \(37\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.98, size = 36, normalized size = 0.78 \[ \frac {2}{5 \, {\left (2 \, x + 1\right )}} + \frac {1}{50} \, \arctan \relax (x) - \frac {7}{100} \, \log \left (x^{2} + 1\right ) + \frac {16}{25} \, \log \left (2 \, x + 1\right ) - \frac {1}{2} \, \log \left (x + 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.19, size = 38, normalized size = 0.83 \[ \frac {16\,\ln \left (x+\frac {1}{2}\right )}{25}-\frac {\ln \left (x+1\right )}{2}+\frac {1}{5\,\left (x+\frac {1}{2}\right )}+\ln \left (x-\mathrm {i}\right )\,\left (-\frac {7}{100}-\frac {1}{100}{}\mathrm {i}\right )+\ln \left (x+1{}\mathrm {i}\right )\,\left (-\frac {7}{100}+\frac {1}{100}{}\mathrm {i}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.22, size = 37, normalized size = 0.80 \[ \frac {16 \log {\left (x + \frac {1}{2} \right )}}{25} - \frac {\log {\left (x + 1 \right )}}{2} - \frac {7 \log {\left (x^{2} + 1 \right )}}{100} + \frac {\operatorname {atan}{\relax (x )}}{50} + \frac {2}{10 x + 5} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________