Optimal. Leaf size=148 \[ \frac{x^2}{2}-\frac{\log \left (x^2-\sqrt{2} \sqrt [4]{7} x+\sqrt{7}\right )}{4 \sqrt{2} 7^{3/4}}+\frac{\log \left (x^2+\sqrt{2} \sqrt [4]{7} x+\sqrt{7}\right )}{4 \sqrt{2} 7^{3/4}}-\frac{1}{2} \tanh ^{-1}\left (x^2\right )-\frac{\tan ^{-1}\left (1-\frac{\sqrt{2} x}{\sqrt [4]{7}}\right )}{2 \sqrt{2} 7^{3/4}}+\frac{\tan ^{-1}\left (\frac{\sqrt{2} x}{\sqrt [4]{7}}+1\right )}{2 \sqrt{2} 7^{3/4}} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.271577, antiderivative size = 148, normalized size of antiderivative = 1., number of steps used = 17, number of rules used = 12, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.462 \[ \frac{x^2}{2}-\frac{\log \left (x^2-\sqrt{2} \sqrt [4]{7} x+\sqrt{7}\right )}{4 \sqrt{2} 7^{3/4}}+\frac{\log \left (x^2+\sqrt{2} \sqrt [4]{7} x+\sqrt{7}\right )}{4 \sqrt{2} 7^{3/4}}-\frac{1}{2} \tanh ^{-1}\left (x^2\right )-\frac{\tan ^{-1}\left (1-\frac{\sqrt{2} x}{\sqrt [4]{7}}\right )}{2 \sqrt{2} 7^{3/4}}+\frac{\tan ^{-1}\left (\frac{\sqrt{2} x}{\sqrt [4]{7}}+1\right )}{2 \sqrt{2} 7^{3/4}} \]
Antiderivative was successfully verified.
[In] Int[(-1 + x^4 + 7*x^5 + x^9)/(-7 + 6*x^4 + x^8),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 40.9431, size = 136, normalized size = 0.92 \[ \frac{x^{2}}{2} - \frac{\sqrt{2} \sqrt [4]{7} \log{\left (x^{2} - \sqrt{2} \sqrt [4]{7} x + \sqrt{7} \right )}}{56} + \frac{\sqrt{2} \sqrt [4]{7} \log{\left (x^{2} + \sqrt{2} \sqrt [4]{7} x + \sqrt{7} \right )}}{56} + \frac{\sqrt{2} \sqrt [4]{7} \operatorname{atan}{\left (\frac{\sqrt{2} \cdot 7^{\frac{3}{4}} x}{7} - 1 \right )}}{28} + \frac{\sqrt{2} \sqrt [4]{7} \operatorname{atan}{\left (\frac{\sqrt{2} \cdot 7^{\frac{3}{4}} x}{7} + 1 \right )}}{28} - \frac{\operatorname{atanh}{\left (x^{2} \right )}}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((x**9+7*x**5+x**4-1)/(x**8+6*x**4-7),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.10222, size = 159, normalized size = 1.07 \[ \frac{1}{56} \left (28 x^2-14 \log \left (x^2+1\right )-\sqrt{2} \sqrt [4]{7} \log \left (\sqrt{7} x^2-\sqrt{2} 7^{3/4} x+7\right )+\sqrt{2} \sqrt [4]{7} \log \left (\sqrt{7} x^2+\sqrt{2} 7^{3/4} x+7\right )+14 \log (1-x)+14 \log (x+1)-2 \sqrt{2} \sqrt [4]{7} \tan ^{-1}\left (1-\frac{\sqrt{2} x}{\sqrt [4]{7}}\right )+2 \sqrt{2} \sqrt [4]{7} \tan ^{-1}\left (\frac{\sqrt{2} x}{\sqrt [4]{7}}+1\right )\right ) \]
Antiderivative was successfully verified.
[In] Integrate[(-1 + x^4 + 7*x^5 + x^9)/(-7 + 6*x^4 + x^8),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.017, size = 110, normalized size = 0.7 \[{\frac{{x}^{2}}{2}}+{\frac{\ln \left ( -1+x \right ) }{4}}+{\frac{\sqrt [4]{7}\sqrt{2}}{28}\arctan \left ( -1+{\frac{x\sqrt{2}{7}^{{\frac{3}{4}}}}{7}} \right ) }+{\frac{\sqrt [4]{7}\sqrt{2}}{56}\ln \left ({\frac{{x}^{2}+\sqrt [4]{7}x\sqrt{2}+\sqrt{7}}{{x}^{2}-\sqrt [4]{7}x\sqrt{2}+\sqrt{7}}} \right ) }+{\frac{\sqrt [4]{7}\sqrt{2}}{28}\arctan \left ( 1+{\frac{x\sqrt{2}{7}^{{\frac{3}{4}}}}{7}} \right ) }+{\frac{\ln \left ( 1+x \right ) }{4}}-{\frac{\ln \left ({x}^{2}+1 \right ) }{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((x^9+7*x^5+x^4-1)/(x^8+6*x^4-7),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 0.87486, size = 178, normalized size = 1.2 \[ \frac{1}{2} \, x^{2} + \frac{1}{28} \cdot 7^{\frac{1}{4}} \sqrt{2} \arctan \left (\frac{1}{14} \cdot 7^{\frac{3}{4}} \sqrt{2}{\left (2 \, x + 7^{\frac{1}{4}} \sqrt{2}\right )}\right ) + \frac{1}{28} \cdot 7^{\frac{1}{4}} \sqrt{2} \arctan \left (\frac{1}{14} \cdot 7^{\frac{3}{4}} \sqrt{2}{\left (2 \, x - 7^{\frac{1}{4}} \sqrt{2}\right )}\right ) + \frac{1}{56} \cdot 7^{\frac{1}{4}} \sqrt{2} \log \left (x^{2} + 7^{\frac{1}{4}} \sqrt{2} x + \sqrt{7}\right ) - \frac{1}{56} \cdot 7^{\frac{1}{4}} \sqrt{2} \log \left (x^{2} - 7^{\frac{1}{4}} \sqrt{2} x + \sqrt{7}\right ) - \frac{1}{4} \, \log \left (x^{2} + 1\right ) + \frac{1}{4} \, \log \left (x + 1\right ) + \frac{1}{4} \, \log \left (x - 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x^9 + 7*x^5 + x^4 - 1)/(x^8 + 6*x^4 - 7),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.295521, size = 257, normalized size = 1.74 \[ \frac{1}{2744} \cdot 343^{\frac{3}{4}} \sqrt{2}{\left (2 \cdot 343^{\frac{1}{4}} \sqrt{2} x^{2} - 343^{\frac{1}{4}} \sqrt{2} \log \left (x^{2} + 1\right ) + 343^{\frac{1}{4}} \sqrt{2} \log \left (x^{2} - 1\right ) - 4 \, \arctan \left (\frac{7}{343^{\frac{1}{4}} \sqrt{2} \sqrt{\frac{1}{7}} \sqrt{\sqrt{7}{\left (\sqrt{7} x^{2} + 343^{\frac{1}{4}} \sqrt{2} x + 7\right )}} + 343^{\frac{1}{4}} \sqrt{2} x + 7}\right ) - 4 \, \arctan \left (\frac{7}{343^{\frac{1}{4}} \sqrt{2} \sqrt{\frac{1}{7}} \sqrt{\sqrt{7}{\left (\sqrt{7} x^{2} - 343^{\frac{1}{4}} \sqrt{2} x + 7\right )}} + 343^{\frac{1}{4}} \sqrt{2} x - 7}\right ) + \log \left (7 \, \sqrt{7} x^{2} + 7 \cdot 343^{\frac{1}{4}} \sqrt{2} x + 49\right ) - \log \left (7 \, \sqrt{7} x^{2} - 7 \cdot 343^{\frac{1}{4}} \sqrt{2} x + 49\right )\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x^9 + 7*x^5 + x^4 - 1)/(x^8 + 6*x^4 - 7),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 1.7953, size = 146, normalized size = 0.99 \[ \frac{x^{2}}{2} + \frac{\log{\left (x^{2} - 1 \right )}}{4} - \frac{\log{\left (x^{2} + 1 \right )}}{4} - \frac{\sqrt{2} \sqrt [4]{7} \log{\left (x^{2} - \sqrt{2} \sqrt [4]{7} x + \sqrt{7} \right )}}{56} + \frac{\sqrt{2} \sqrt [4]{7} \log{\left (x^{2} + \sqrt{2} \sqrt [4]{7} x + \sqrt{7} \right )}}{56} + \frac{\sqrt{2} \sqrt [4]{7} \operatorname{atan}{\left (\frac{\sqrt{2} \cdot 7^{\frac{3}{4}} x}{7} - 1 \right )}}{28} + \frac{\sqrt{2} \sqrt [4]{7} \operatorname{atan}{\left (\frac{\sqrt{2} \cdot 7^{\frac{3}{4}} x}{7} + 1 \right )}}{28} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x**9+7*x**5+x**4-1)/(x**8+6*x**4-7),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.273128, size = 165, normalized size = 1.11 \[ \frac{1}{2} \, x^{2} + \frac{1}{28} \cdot 28^{\frac{1}{4}} \arctan \left (\frac{1}{14} \cdot 7^{\frac{3}{4}} \sqrt{2}{\left (2 \, x + 7^{\frac{1}{4}} \sqrt{2}\right )}\right ) + \frac{1}{28} \cdot 28^{\frac{1}{4}} \arctan \left (\frac{1}{14} \cdot 7^{\frac{3}{4}} \sqrt{2}{\left (2 \, x - 7^{\frac{1}{4}} \sqrt{2}\right )}\right ) + \frac{1}{56} \cdot 28^{\frac{1}{4}}{\rm ln}\left (x^{2} + 7^{\frac{1}{4}} \sqrt{2} x + \sqrt{7}\right ) - \frac{1}{56} \cdot 28^{\frac{1}{4}}{\rm ln}\left (x^{2} - 7^{\frac{1}{4}} \sqrt{2} x + \sqrt{7}\right ) - \frac{1}{4} \,{\rm ln}\left (x^{2} + 1\right ) + \frac{1}{4} \,{\rm ln}\left ({\left | x + 1 \right |}\right ) + \frac{1}{4} \,{\rm ln}\left ({\left | x - 1 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x^9 + 7*x^5 + x^4 - 1)/(x^8 + 6*x^4 - 7),x, algorithm="giac")
[Out]