Optimal. Leaf size=9 \[ \log (1-x)+\tan ^{-1}(x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 9, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {1586, 1593, 1629, 203} \[ \log (1-x)+\tan ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 1586
Rule 1593
Rule 1629
Rubi steps
\begin {align*} \int \frac {-x+x^3}{(-1+x)^2 \left (1+x^2\right )} \, dx &=\int \frac {x+x^2}{(-1+x) \left (1+x^2\right )} \, dx\\ &=\int \frac {x (1+x)}{(-1+x) \left (1+x^2\right )} \, dx\\ &=\int \left (\frac {1}{-1+x}+\frac {1}{1+x^2}\right ) \, dx\\ &=\log (1-x)+\int \frac {1}{1+x^2} \, dx\\ &=\tan ^{-1}(x)+\log (1-x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 9, normalized size = 1.00 \[ \log (1-x)+\tan ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.89, size = 7, normalized size = 0.78 \[ \arctan \relax (x) + \log \left (x - 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.29, size = 28, normalized size = 3.11 \[ \frac {1}{4} \, \pi - \pi \left \lfloor \frac {\pi + 4 \, \arctan \relax (x)}{4 \, \pi } + \frac {1}{2} \right \rfloor + \arctan \relax (x) + \log \left ({\left | x - 1 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 8, normalized size = 0.89 \[ \arctan \relax (x )+\ln \left (x -1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 2.17, size = 7, normalized size = 0.78 \[ \arctan \relax (x) + \log \left (x - 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.10, size = 19, normalized size = 2.11 \[ \ln \left (x-1\right )-\mathrm {atan}\left (\frac {5}{4\,x+2}-\frac {1}{2}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.14, size = 7, normalized size = 0.78 \[ \log {\left (x - 1 \right )} + \operatorname {atan}{\relax (x )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________