Optimal. Leaf size=23 \[ \frac {1}{2} \log \left (x^2+4\right )-\frac {3}{2} \tan ^{-1}\left (\frac {x}{2}\right )+\tan ^{-1}(x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 23, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {1673, 1166, 203, 1247, 626, 31} \[ \frac {1}{2} \log \left (x^2+4\right )-\frac {3}{2} \tan ^{-1}\left (\frac {x}{2}\right )+\tan ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 203
Rule 626
Rule 1166
Rule 1247
Rule 1673
Rubi steps
\begin {align*} \int \frac {1+x-2 x^2+x^3}{4+5 x^2+x^4} \, dx &=\int \frac {1-2 x^2}{4+5 x^2+x^4} \, dx+\int \frac {x \left (1+x^2\right )}{4+5 x^2+x^4} \, dx\\ &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {1+x}{4+5 x+x^2} \, dx,x,x^2\right )-3 \int \frac {1}{4+x^2} \, dx+\int \frac {1}{1+x^2} \, dx\\ &=-\frac {3}{2} \tan ^{-1}\left (\frac {x}{2}\right )+\tan ^{-1}(x)+\frac {1}{2} \operatorname {Subst}\left (\int \frac {1}{4+x} \, dx,x,x^2\right )\\ &=-\frac {3}{2} \tan ^{-1}\left (\frac {x}{2}\right )+\tan ^{-1}(x)+\frac {1}{2} \log \left (4+x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 23, normalized size = 1.00 \[ \frac {1}{2} \log \left (x^2+4\right )-\frac {3}{2} \tan ^{-1}\left (\frac {x}{2}\right )+\tan ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.41, size = 17, normalized size = 0.74 \[ -\frac {3}{2} \, \arctan \left (\frac {1}{2} \, x\right ) + \arctan \relax (x) + \frac {1}{2} \, \log \left (x^{2} + 4\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.94, size = 17, normalized size = 0.74 \[ -\frac {3}{2} \, \arctan \left (\frac {1}{2} \, x\right ) + \arctan \relax (x) + \frac {1}{2} \, \log \left (x^{2} + 4\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 18, normalized size = 0.78 \[ \arctan \relax (x )-\frac {3 \arctan \left (\frac {x}{2}\right )}{2}+\frac {\ln \left (x^{2}+4\right )}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.19, size = 17, normalized size = 0.74 \[ -\frac {3}{2} \, \arctan \left (\frac {1}{2} \, x\right ) + \arctan \relax (x) + \frac {1}{2} \, \log \left (x^{2} + 4\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.19, size = 33, normalized size = 1.43 \[ -\mathrm {atan}\left (\frac {1305}{4\,\left (144\,x-162\right )}+\frac {9}{8}\right )+\ln \left (x-2{}\mathrm {i}\right )\,\left (\frac {1}{2}+\frac {3}{4}{}\mathrm {i}\right )+\ln \left (x+2{}\mathrm {i}\right )\,\left (\frac {1}{2}-\frac {3}{4}{}\mathrm {i}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.20, size = 19, normalized size = 0.83 \[ \frac {\log {\left (x^{2} + 4 \right )}}{2} - \frac {3 \operatorname {atan}{\left (\frac {x}{2} \right )}}{2} + \operatorname {atan}{\relax (x )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________