Optimal. Leaf size=112 \[ -\frac{1}{4} \log \left (x^4+1\right )+\frac{x^2}{2}+\frac{\log \left (x^2-\sqrt{2} x+1\right )}{4 \sqrt{2}}-\frac{\log \left (x^2+\sqrt{2} x+1\right )}{4 \sqrt{2}}-\frac{1}{2} \tan ^{-1}\left (x^2\right )+\log (x)-\frac{\tan ^{-1}\left (1-\sqrt{2} x\right )}{2 \sqrt{2}}+\frac{\tan ^{-1}\left (\sqrt{2} x+1\right )}{2 \sqrt{2}} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.232911, antiderivative size = 112, normalized size of antiderivative = 1., number of steps used = 18, number of rules used = 12, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.75 \[ -\frac{1}{4} \log \left (x^4+1\right )+\frac{x^2}{2}+\frac{\log \left (x^2-\sqrt{2} x+1\right )}{4 \sqrt{2}}-\frac{\log \left (x^2+\sqrt{2} x+1\right )}{4 \sqrt{2}}-\frac{1}{2} \tan ^{-1}\left (x^2\right )+\log (x)-\frac{\tan ^{-1}\left (1-\sqrt{2} x\right )}{2 \sqrt{2}}+\frac{\tan ^{-1}\left (\sqrt{2} x+1\right )}{2 \sqrt{2}} \]
Antiderivative was successfully verified.
[In] Int[(1 + x^3 + x^6)/(x + x^5),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F] time = 0., size = 0, normalized size = 0. \[ \log{\left (x \right )} - \frac{\log{\left (x^{4} + 1 \right )}}{4} + \frac{\sqrt{2} \log{\left (x^{2} - \sqrt{2} x + 1 \right )}}{8} - \frac{\sqrt{2} \log{\left (x^{2} + \sqrt{2} x + 1 \right )}}{8} - \frac{\operatorname{atan}{\left (x^{2} \right )}}{2} + \frac{\sqrt{2} \operatorname{atan}{\left (\sqrt{2} x - 1 \right )}}{4} + \frac{\sqrt{2} \operatorname{atan}{\left (\sqrt{2} x + 1 \right )}}{4} + \int x\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((x**6+x**3+1)/(x**5+x),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0780835, size = 101, normalized size = 0.9 \[ \frac{1}{8} \left (-2 \log \left (x^4+1\right )+4 x^2+\sqrt{2} \log \left (x^2-\sqrt{2} x+1\right )-\sqrt{2} \log \left (x^2+\sqrt{2} x+1\right )+8 \log (x)-2 \left (\sqrt{2}-2\right ) \tan ^{-1}\left (1-\sqrt{2} x\right )+2 \left (2+\sqrt{2}\right ) \tan ^{-1}\left (\sqrt{2} x+1\right )\right ) \]
Antiderivative was successfully verified.
[In] Integrate[(1 + x^3 + x^6)/(x + x^5),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.01, size = 79, normalized size = 0.7 \[{\frac{{x}^{2}}{2}}-{\frac{\arctan \left ({x}^{2} \right ) }{2}}+{\frac{\arctan \left ( \sqrt{2}x-1 \right ) \sqrt{2}}{4}}+{\frac{\sqrt{2}}{8}\ln \left ({\frac{1+{x}^{2}-\sqrt{2}x}{1+{x}^{2}+\sqrt{2}x}} \right ) }+{\frac{\arctan \left ( 1+\sqrt{2}x \right ) \sqrt{2}}{4}}-{\frac{\ln \left ({x}^{4}+1 \right ) }{4}}+\ln \left ( x \right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((x^6+x^3+1)/(x^5+x),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 0.877967, size = 134, normalized size = 1.2 \[ \frac{1}{4} \, \sqrt{2}{\left (\sqrt{2} + 1\right )} \arctan \left (\frac{1}{2} \, \sqrt{2}{\left (2 \, x + \sqrt{2}\right )}\right ) - \frac{1}{4} \, \sqrt{2}{\left (\sqrt{2} - 1\right )} \arctan \left (\frac{1}{2} \, \sqrt{2}{\left (2 \, x - \sqrt{2}\right )}\right ) - \frac{1}{8} \, \sqrt{2}{\left (\sqrt{2} + 1\right )} \log \left (x^{2} + \sqrt{2} x + 1\right ) - \frac{1}{8} \, \sqrt{2}{\left (\sqrt{2} - 1\right )} \log \left (x^{2} - \sqrt{2} x + 1\right ) + \frac{1}{2} \, x^{2} + \log \left (x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x^6 + x^3 + 1)/(x^5 + x),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [F(-2)] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x^6 + x^3 + 1)/(x^5 + x),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 3.12875, size = 61, normalized size = 0.54 \[ \frac{x^{2}}{2} + \log{\left (x \right )} + \operatorname{RootSum}{\left (256 t^{4} + 256 t^{3} + 128 t^{2} + 16 t + 1, \left ( t \mapsto t \log{\left (\frac{1792 t^{4}}{73} + \frac{704 t^{3}}{219} - \frac{3152 t^{2}}{219} - \frac{2584 t}{219} + x - \frac{344}{219} \right )} \right )\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x**6+x**3+1)/(x**5+x),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.261579, size = 124, normalized size = 1.11 \[ \frac{1}{2} \, x^{2} + \frac{1}{4} \,{\left (\sqrt{2} + 2\right )} \arctan \left (\frac{1}{2} \, \sqrt{2}{\left (2 \, x + \sqrt{2}\right )}\right ) + \frac{1}{4} \,{\left (\sqrt{2} - 2\right )} \arctan \left (\frac{1}{2} \, \sqrt{2}{\left (2 \, x - \sqrt{2}\right )}\right ) - \frac{1}{8} \, \sqrt{2}{\rm ln}\left (x^{2} + \sqrt{2} x + 1\right ) + \frac{1}{8} \, \sqrt{2}{\rm ln}\left (x^{2} - \sqrt{2} x + 1\right ) - \frac{1}{4} \,{\rm ln}\left (x^{4} + 1\right ) +{\rm ln}\left ({\left | x \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x^6 + x^3 + 1)/(x^5 + x),x, algorithm="giac")
[Out]