Optimal. Leaf size=46 \[ \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 ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.14, 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 = {6857, 649, 209,
266} \begin {gather*} \frac {\text {ArcTan}(x)}{50}-\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) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 266
Rule 649
Rule 6857
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 \begin {gather*} \frac {1}{100} \left (\frac {40}{1+2 x}+2 \tan ^{-1}(x)-50 \log (1+x)+64 \log (1+2 x)-7 \log \left (1+x^2\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 37, normalized size = 0.80
method | result | size |
risch | \(\frac {1}{5 x +\frac {5}{2}}+\frac {16 \ln \left (1+2 x \right )}{25}-\frac {7 \ln \left (x^{2}+1\right )}{100}+\frac {\arctan \left (x \right )}{50}-\frac {\ln \left (1+x \right )}{2}\) | \(35\) |
default | \(\frac {2}{5 \left (1+2 x \right )}+\frac {\arctan \left (x \right )}{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 = 2.22, size = 36, normalized size = 0.78 \begin {gather*} \frac {2}{5 \, {\left (2 \, x + 1\right )}} + \frac {1}{50} \, \arctan \left (x\right ) - \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 ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.52, size = 57, normalized size = 1.24 \begin {gather*} \frac {2 \, {\left (2 \, x + 1\right )} \arctan \left (x\right ) - 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 )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.09, size = 37, normalized size = 0.80 \begin {gather*} \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}{\left (x \right )}}{50} + \frac {2}{10 x + 5} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.78, size = 62, normalized size = 1.35 \begin {gather*} \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 ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.19, size = 38, normalized size = 0.83 \begin {gather*} \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 ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________