Optimal. Leaf size=85 \[ -\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{\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.0773511, antiderivative size = 85, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 6, integrand size = 7, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.857 \[ -\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{\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^4)^(-1),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 5.89908, size = 73, normalized size = 0.86 \[ - \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{\sqrt{2} \operatorname{atan}{\left (\sqrt{2} x - 1 \right )}}{4} + \frac{\sqrt{2} \operatorname{atan}{\left (\sqrt{2} x + 1 \right )}}{4} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(1/(x**4+1),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0573826, size = 64, normalized size = 0.75 \[ \frac{-\log \left (x^2-\sqrt{2} x+1\right )+\log \left (x^2+\sqrt{2} x+1\right )-2 \tan ^{-1}\left (1-\sqrt{2} x\right )+2 \tan ^{-1}\left (\sqrt{2} x+1\right )}{4 \sqrt{2}} \]
Antiderivative was successfully verified.
[In] Integrate[(1 + x^4)^(-1),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.004, size = 58, normalized size = 0.7 \[{\frac{\arctan \left ( 1+x\sqrt{2} \right ) \sqrt{2}}{4}}+{\frac{\arctan \left ( x\sqrt{2}-1 \right ) \sqrt{2}}{4}}+{\frac{\sqrt{2}}{8}\ln \left ({\frac{1+{x}^{2}+x\sqrt{2}}{1+{x}^{2}-x\sqrt{2}}} \right ) } \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(1/(x^4+1),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.55178, size = 97, normalized size = 1.14 \[ \frac{1}{4} \, \sqrt{2} \arctan \left (\frac{1}{2} \, \sqrt{2}{\left (2 \, x + \sqrt{2}\right )}\right ) + \frac{1}{4} \, \sqrt{2} \arctan \left (\frac{1}{2} \, \sqrt{2}{\left (2 \, x - \sqrt{2}\right )}\right ) + \frac{1}{8} \, \sqrt{2} \log \left (x^{2} + \sqrt{2} x + 1\right ) - \frac{1}{8} \, \sqrt{2} \log \left (x^{2} - \sqrt{2} x + 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/(x^4 + 1),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.222759, size = 131, normalized size = 1.54 \[ -\frac{1}{2} \, \sqrt{2} \arctan \left (\frac{1}{\sqrt{2} x + \sqrt{2} \sqrt{x^{2} + \sqrt{2} x + 1} + 1}\right ) - \frac{1}{2} \, \sqrt{2} \arctan \left (\frac{1}{\sqrt{2} x + \sqrt{2} \sqrt{x^{2} - \sqrt{2} x + 1} - 1}\right ) + \frac{1}{8} \, \sqrt{2} \log \left (x^{2} + \sqrt{2} x + 1\right ) - \frac{1}{8} \, \sqrt{2} \log \left (x^{2} - \sqrt{2} x + 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/(x^4 + 1),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 0.192601, size = 73, normalized size = 0.86 \[ - \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{\sqrt{2} \operatorname{atan}{\left (\sqrt{2} x - 1 \right )}}{4} + \frac{\sqrt{2} \operatorname{atan}{\left (\sqrt{2} x + 1 \right )}}{4} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/(x**4+1),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.21022, size = 97, normalized size = 1.14 \[ \frac{1}{4} \, \sqrt{2} \arctan \left (\frac{1}{2} \, \sqrt{2}{\left (2 \, x + \sqrt{2}\right )}\right ) + \frac{1}{4} \, \sqrt{2} \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 ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/(x^4 + 1),x, algorithm="giac")
[Out]