Integrand size = 26, antiderivative size = 33 \[ \int \frac {1-3 x+2 x^2-x^3}{x \left (1+x^2\right )^2} \, dx=-\frac {1+2 x}{2 \left (1+x^2\right )}-2 \arctan (x)+\log (x)-\frac {1}{2} \log \left (1+x^2\right ) \]
[Out]
Time = 0.03 (sec) , antiderivative size = 33, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.192, Rules used = {1819, 815, 649, 209, 266} \[ \int \frac {1-3 x+2 x^2-x^3}{x \left (1+x^2\right )^2} \, dx=-2 \arctan (x)-\frac {2 x+1}{2 \left (x^2+1\right )}-\frac {1}{2} \log \left (x^2+1\right )+\log (x) \]
[In]
[Out]
Rule 209
Rule 266
Rule 649
Rule 815
Rule 1819
Rubi steps \begin{align*} \text {integral}& = -\frac {1+2 x}{2 \left (1+x^2\right )}-\frac {1}{2} \int \frac {-2+4 x}{x \left (1+x^2\right )} \, dx \\ & = -\frac {1+2 x}{2 \left (1+x^2\right )}-\frac {1}{2} \int \left (-\frac {2}{x}+\frac {2 (2+x)}{1+x^2}\right ) \, dx \\ & = -\frac {1+2 x}{2 \left (1+x^2\right )}+\log (x)-\int \frac {2+x}{1+x^2} \, dx \\ & = -\frac {1+2 x}{2 \left (1+x^2\right )}+\log (x)-2 \int \frac {1}{1+x^2} \, dx-\int \frac {x}{1+x^2} \, dx \\ & = -\frac {1+2 x}{2 \left (1+x^2\right )}-2 \arctan (x)+\log (x)-\frac {1}{2} \log \left (1+x^2\right ) \\ \end{align*}
Time = 0.02 (sec) , antiderivative size = 33, normalized size of antiderivative = 1.00 \[ \int \frac {1-3 x+2 x^2-x^3}{x \left (1+x^2\right )^2} \, dx=\frac {-1-2 x}{2 \left (1+x^2\right )}-2 \arctan (x)+\log (x)-\frac {1}{2} \log \left (1+x^2\right ) \]
[In]
[Out]
Time = 0.17 (sec) , antiderivative size = 28, normalized size of antiderivative = 0.85
method | result | size |
default | \(-\frac {x +\frac {1}{2}}{x^{2}+1}-\frac {\ln \left (x^{2}+1\right )}{2}-2 \arctan \left (x \right )+\ln \left (x \right )\) | \(28\) |
risch | \(\frac {-x -\frac {1}{2}}{x^{2}+1}-\frac {\ln \left (x^{2}+1\right )}{2}-2 \arctan \left (x \right )+\ln \left (x \right )\) | \(29\) |
meijerg | \(-\frac {2 x}{2 x^{2}+2}-2 \arctan \left (x \right )+\frac {x^{2}}{x^{2}+1}+\frac {1}{2}+\ln \left (x \right )-\frac {x^{2}}{2 x^{2}+2}-\frac {\ln \left (x^{2}+1\right )}{2}\) | \(64\) |
parallelrisch | \(\frac {2 i \ln \left (x -i\right ) x^{2}-2 i \ln \left (x +i\right ) x^{2}+2 x^{2} \ln \left (x \right )-x^{2} \ln \left (x -i\right )-\ln \left (x +i\right ) x^{2}-1+2 i \ln \left (x -i\right )-2 i \ln \left (x +i\right )+2 \ln \left (x \right )-\ln \left (x -i\right )-\ln \left (x +i\right )-2 x}{2 x^{2}+2}\) | \(98\) |
[In]
[Out]
none
Time = 0.24 (sec) , antiderivative size = 44, normalized size of antiderivative = 1.33 \[ \int \frac {1-3 x+2 x^2-x^3}{x \left (1+x^2\right )^2} \, dx=-\frac {4 \, {\left (x^{2} + 1\right )} \arctan \left (x\right ) + {\left (x^{2} + 1\right )} \log \left (x^{2} + 1\right ) - 2 \, {\left (x^{2} + 1\right )} \log \left (x\right ) + 2 \, x + 1}{2 \, {\left (x^{2} + 1\right )}} \]
[In]
[Out]
Time = 0.06 (sec) , antiderivative size = 27, normalized size of antiderivative = 0.82 \[ \int \frac {1-3 x+2 x^2-x^3}{x \left (1+x^2\right )^2} \, dx=- \frac {2 x + 1}{2 x^{2} + 2} + \log {\left (x \right )} - \frac {\log {\left (x^{2} + 1 \right )}}{2} - 2 \operatorname {atan}{\left (x \right )} \]
[In]
[Out]
none
Time = 0.30 (sec) , antiderivative size = 29, normalized size of antiderivative = 0.88 \[ \int \frac {1-3 x+2 x^2-x^3}{x \left (1+x^2\right )^2} \, dx=-\frac {2 \, x + 1}{2 \, {\left (x^{2} + 1\right )}} - 2 \, \arctan \left (x\right ) - \frac {1}{2} \, \log \left (x^{2} + 1\right ) + \log \left (x\right ) \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 30, normalized size of antiderivative = 0.91 \[ \int \frac {1-3 x+2 x^2-x^3}{x \left (1+x^2\right )^2} \, dx=-\frac {2 \, x + 1}{2 \, {\left (x^{2} + 1\right )}} - 2 \, \arctan \left (x\right ) - \frac {1}{2} \, \log \left (x^{2} + 1\right ) + \log \left ({\left | x \right |}\right ) \]
[In]
[Out]
Time = 0.24 (sec) , antiderivative size = 33, normalized size of antiderivative = 1.00 \[ \int \frac {1-3 x+2 x^2-x^3}{x \left (1+x^2\right )^2} \, dx=\ln \left (x\right )-\frac {x+\frac {1}{2}}{x^2+1}+\ln \left (x-\mathrm {i}\right )\,\left (-\frac {1}{2}+1{}\mathrm {i}\right )+\ln \left (x+1{}\mathrm {i}\right )\,\left (-\frac {1}{2}-\mathrm {i}\right ) \]
[In]
[Out]