Integrand size = 29, antiderivative size = 46 \[ \int \frac {15-5 x+x^2+x^3}{\left (5+x^2\right ) \left (3+2 x+x^2\right )} \, dx=-\sqrt {5} \arctan \left (\frac {x}{\sqrt {5}}\right )+\frac {5 \arctan \left (\frac {1+x}{\sqrt {2}}\right )}{\sqrt {2}}+\frac {1}{2} \log \left (3+2 x+x^2\right ) \]
[Out]
Time = 0.09 (sec) , antiderivative size = 46, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.207, Rules used = {6857, 209, 648, 632, 210, 642} \[ \int \frac {15-5 x+x^2+x^3}{\left (5+x^2\right ) \left (3+2 x+x^2\right )} \, dx=-\sqrt {5} \arctan \left (\frac {x}{\sqrt {5}}\right )+\frac {5 \arctan \left (\frac {x+1}{\sqrt {2}}\right )}{\sqrt {2}}+\frac {1}{2} \log \left (x^2+2 x+3\right ) \]
[In]
[Out]
Rule 209
Rule 210
Rule 632
Rule 642
Rule 648
Rule 6857
Rubi steps \begin{align*} \text {integral}& = \int \left (-\frac {5}{5+x^2}+\frac {6+x}{3+2 x+x^2}\right ) \, dx \\ & = -\left (5 \int \frac {1}{5+x^2} \, dx\right )+\int \frac {6+x}{3+2 x+x^2} \, dx \\ & = -\sqrt {5} \tan ^{-1}\left (\frac {x}{\sqrt {5}}\right )+\frac {1}{2} \int \frac {2+2 x}{3+2 x+x^2} \, dx+5 \int \frac {1}{3+2 x+x^2} \, dx \\ & = -\sqrt {5} \tan ^{-1}\left (\frac {x}{\sqrt {5}}\right )+\frac {1}{2} \log \left (3+2 x+x^2\right )-10 \text {Subst}\left (\int \frac {1}{-8-x^2} \, dx,x,2+2 x\right ) \\ & = -\sqrt {5} \tan ^{-1}\left (\frac {x}{\sqrt {5}}\right )+\frac {5 \tan ^{-1}\left (\frac {1+x}{\sqrt {2}}\right )}{\sqrt {2}}+\frac {1}{2} \log \left (3+2 x+x^2\right ) \\ \end{align*}
Time = 0.01 (sec) , antiderivative size = 46, normalized size of antiderivative = 1.00 \[ \int \frac {15-5 x+x^2+x^3}{\left (5+x^2\right ) \left (3+2 x+x^2\right )} \, dx=-\sqrt {5} \arctan \left (\frac {x}{\sqrt {5}}\right )+\frac {5 \arctan \left (\frac {1+x}{\sqrt {2}}\right )}{\sqrt {2}}+\frac {1}{2} \log \left (3+2 x+x^2\right ) \]
[In]
[Out]
Time = 0.98 (sec) , antiderivative size = 39, normalized size of antiderivative = 0.85
method | result | size |
risch | \(\frac {\ln \left (x^{2}+2 x +3\right )}{2}+\frac {5 \arctan \left (\frac {\left (x +1\right ) \sqrt {2}}{2}\right ) \sqrt {2}}{2}-\arctan \left (\frac {x \sqrt {5}}{5}\right ) \sqrt {5}\) | \(39\) |
default | \(-\arctan \left (\frac {x \sqrt {5}}{5}\right ) \sqrt {5}+\frac {\ln \left (x^{2}+2 x +3\right )}{2}+\frac {5 \sqrt {2}\, \arctan \left (\frac {\left (2 x +2\right ) \sqrt {2}}{4}\right )}{2}\) | \(41\) |
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 38, normalized size of antiderivative = 0.83 \[ \int \frac {15-5 x+x^2+x^3}{\left (5+x^2\right ) \left (3+2 x+x^2\right )} \, dx=\frac {5}{2} \, \sqrt {2} \arctan \left (\frac {1}{2} \, \sqrt {2} {\left (x + 1\right )}\right ) - \sqrt {5} \arctan \left (\frac {1}{5} \, \sqrt {5} x\right ) + \frac {1}{2} \, \log \left (x^{2} + 2 \, x + 3\right ) \]
[In]
[Out]
Time = 0.10 (sec) , antiderivative size = 51, normalized size of antiderivative = 1.11 \[ \int \frac {15-5 x+x^2+x^3}{\left (5+x^2\right ) \left (3+2 x+x^2\right )} \, dx=\frac {\log {\left (x^{2} + 2 x + 3 \right )}}{2} - \sqrt {5} \operatorname {atan}{\left (\frac {\sqrt {5} x}{5} \right )} + \frac {5 \sqrt {2} \operatorname {atan}{\left (\frac {\sqrt {2} x}{2} + \frac {\sqrt {2}}{2} \right )}}{2} \]
[In]
[Out]
none
Time = 0.30 (sec) , antiderivative size = 38, normalized size of antiderivative = 0.83 \[ \int \frac {15-5 x+x^2+x^3}{\left (5+x^2\right ) \left (3+2 x+x^2\right )} \, dx=\frac {5}{2} \, \sqrt {2} \arctan \left (\frac {1}{2} \, \sqrt {2} {\left (x + 1\right )}\right ) - \sqrt {5} \arctan \left (\frac {1}{5} \, \sqrt {5} x\right ) + \frac {1}{2} \, \log \left (x^{2} + 2 \, x + 3\right ) \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 38, normalized size of antiderivative = 0.83 \[ \int \frac {15-5 x+x^2+x^3}{\left (5+x^2\right ) \left (3+2 x+x^2\right )} \, dx=\frac {5}{2} \, \sqrt {2} \arctan \left (\frac {1}{2} \, \sqrt {2} {\left (x + 1\right )}\right ) - \sqrt {5} \arctan \left (\frac {1}{5} \, \sqrt {5} x\right ) + \frac {1}{2} \, \log \left (x^{2} + 2 \, x + 3\right ) \]
[In]
[Out]
Time = 0.00 (sec) , antiderivative size = 88, normalized size of antiderivative = 1.91 \[ \int \frac {15-5 x+x^2+x^3}{\left (5+x^2\right ) \left (3+2 x+x^2\right )} \, dx=\frac {\ln \left (x+1-\sqrt {2}\,1{}\mathrm {i}\right )}{2}+\frac {\ln \left (x+1+\sqrt {2}\,1{}\mathrm {i}\right )}{2}+\sqrt {5}\,\mathrm {atan}\left (\frac {2000\,\sqrt {5}}{2000\,x+1120}-\frac {224\,\sqrt {5}\,x}{2000\,x+1120}\right )-\frac {\sqrt {2}\,\ln \left (x+1-\sqrt {2}\,1{}\mathrm {i}\right )\,5{}\mathrm {i}}{4}+\frac {\sqrt {2}\,\ln \left (x+1+\sqrt {2}\,1{}\mathrm {i}\right )\,5{}\mathrm {i}}{4} \]
[In]
[Out]