Optimal. Leaf size=46 \[ \frac{1}{2} \log \left (x^2+2 x+3\right )-\sqrt{5} \tan ^{-1}\left (\frac{x}{\sqrt{5}}\right )+\frac{5 \tan ^{-1}\left (\frac{x+1}{\sqrt{2}}\right )}{\sqrt{2}} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.256851, antiderivative size = 46, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.207 \[ \frac{1}{2} \log \left (x^2+2 x+3\right )-\sqrt{5} \tan ^{-1}\left (\frac{x}{\sqrt{5}}\right )+\frac{5 \tan ^{-1}\left (\frac{x+1}{\sqrt{2}}\right )}{\sqrt{2}} \]
Antiderivative was successfully verified.
[In] Int[(15 - 5*x + x^2 + x^3)/((5 + x^2)*(3 + 2*x + x^2)),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 47.2279, size = 48, normalized size = 1.04 \[ \frac{\log{\left (x^{2} + 2 x + 3 \right )}}{2} + \frac{5 \sqrt{2} \operatorname{atan}{\left (\sqrt{2} \left (\frac{x}{2} + \frac{1}{2}\right ) \right )}}{2} - \sqrt{5} \operatorname{atan}{\left (\frac{\sqrt{5} x}{5} \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((x**3+x**2-5*x+15)/(x**2+5)/(x**2+2*x+3),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0350858, size = 46, normalized size = 1. \[ \frac{1}{2} \log \left (x^2+2 x+3\right )-\sqrt{5} \tan ^{-1}\left (\frac{x}{\sqrt{5}}\right )+\frac{5 \tan ^{-1}\left (\frac{x+1}{\sqrt{2}}\right )}{\sqrt{2}} \]
Antiderivative was successfully verified.
[In] Integrate[(15 - 5*x + x^2 + x^3)/((5 + x^2)*(3 + 2*x + x^2)),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.009, size = 41, normalized size = 0.9 \[{\frac{\ln \left ({x}^{2}+2\,x+3 \right ) }{2}}+{\frac{5\,\sqrt{2}}{2}\arctan \left ({\frac{ \left ( 2+2\,x \right ) \sqrt{2}}{4}} \right ) }-\arctan \left ({\frac{x\sqrt{5}}{5}} \right ) \sqrt{5} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((x^3+x^2-5*x+15)/(x^2+5)/(x^2+2*x+3),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 0.875632, size = 51, normalized size = 1.11 \[ \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 ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x^3 + x^2 - 5*x + 15)/((x^2 + 2*x + 3)*(x^2 + 5)),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.261166, size = 62, normalized size = 1.35 \[ -\frac{1}{4} \, \sqrt{2}{\left (2 \, \sqrt{5} \sqrt{2} \arctan \left (\frac{1}{5} \, \sqrt{5} x\right ) - \sqrt{2} \log \left (x^{2} + 2 \, x + 3\right ) - 10 \, \arctan \left (\frac{1}{2} \, \sqrt{2}{\left (x + 1\right )}\right )\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x^3 + x^2 - 5*x + 15)/((x^2 + 2*x + 3)*(x^2 + 5)),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 0.588429, size = 51, normalized size = 1.11 \[ \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} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x**3+x**2-5*x+15)/(x**2+5)/(x**2+2*x+3),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.260872, size = 51, normalized size = 1.11 \[ \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} \,{\rm ln}\left (x^{2} + 2 \, x + 3\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x^3 + x^2 - 5*x + 15)/((x^2 + 2*x + 3)*(x^2 + 5)),x, algorithm="giac")
[Out]