Optimal. Leaf size=9 \[ \log (1-x)+\tan ^{-1}(x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0752009, antiderivative size = 9, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {1586, 1593, 1629, 203} \[ \log (1-x)+\tan ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1586
Rule 1593
Rule 1629
Rule 203
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.0058596, size = 9, normalized size = 1. \[ \log (1-x)+\tan ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.004, size = 8, normalized size = 0.9 \begin{align*} \arctan \left ( x \right ) +\ln \left ( x-1 \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.58857, size = 9, normalized size = 1. \begin{align*} \arctan \left (x\right ) + \log \left (x - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.60499, size = 32, normalized size = 3.56 \begin{align*} \arctan \left (x\right ) + \log \left (x - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.121915, size = 7, normalized size = 0.78 \begin{align*} \log{\left (x - 1 \right )} + \operatorname{atan}{\left (x \right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.22508, size = 38, normalized size = 4.22 \begin{align*} \frac{1}{4} \, \pi - \pi \left \lfloor \frac{\pi + 4 \, \arctan \left (x\right )}{4 \, \pi } + \frac{1}{2} \right \rfloor + \arctan \left (x\right ) + \log \left ({\left | x - 1 \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]