Integrand size = 29, antiderivative size = 104 \[ \int \frac {\sqrt {1-x^4} \left (1+x^4\right )}{1-x^4+x^8} \, dx=\frac {\arctan \left (\frac {-\frac {1}{\sqrt {2}}+\frac {x^2}{\sqrt {2}}+\frac {x^4}{\sqrt {2}}}{x \sqrt {1-x^4}}\right )}{2 \sqrt {2}}-\frac {\text {arctanh}\left (\frac {-\frac {1}{\sqrt {2}}-\frac {x^2}{\sqrt {2}}+\frac {x^4}{\sqrt {2}}}{x \sqrt {1-x^4}}\right )}{2 \sqrt {2}} \]
[Out]
Result contains higher order function than in optimal. Order 4 vs. order 3 in optimal.
Time = 0.27 (sec) , antiderivative size = 139, normalized size of antiderivative = 1.34, number of steps used = 16, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.207, Rules used = {6860, 415, 227, 418, 1227, 551} \[ \int \frac {\sqrt {1-x^4} \left (1+x^4\right )}{1-x^4+x^8} \, dx=-\frac {1}{2} \left (1+i \sqrt {3}\right ) \operatorname {EllipticF}(\arcsin (x),-1)-\frac {1}{2} \left (1-i \sqrt {3}\right ) \operatorname {EllipticF}(\arcsin (x),-1)+\frac {1}{2} \operatorname {EllipticPi}\left (\frac {1}{2} \left (-i-\sqrt {3}\right ),\arcsin (x),-1\right )+\frac {1}{2} \operatorname {EllipticPi}\left (\frac {1}{2} \left (i-\sqrt {3}\right ),\arcsin (x),-1\right )+\frac {1}{2} \operatorname {EllipticPi}\left (\frac {1}{\sqrt {\frac {1}{2} \left (1-i \sqrt {3}\right )}},\arcsin (x),-1\right )+\frac {1}{2} \operatorname {EllipticPi}\left (\frac {1}{\sqrt {\frac {1}{2} \left (1+i \sqrt {3}\right )}},\arcsin (x),-1\right ) \]
[In]
[Out]
Rule 227
Rule 415
Rule 418
Rule 551
Rule 1227
Rule 6860
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {\left (1-i \sqrt {3}\right ) \sqrt {1-x^4}}{-1-i \sqrt {3}+2 x^4}+\frac {\left (1+i \sqrt {3}\right ) \sqrt {1-x^4}}{-1+i \sqrt {3}+2 x^4}\right ) \, dx \\ & = \left (1-i \sqrt {3}\right ) \int \frac {\sqrt {1-x^4}}{-1-i \sqrt {3}+2 x^4} \, dx+\left (1+i \sqrt {3}\right ) \int \frac {\sqrt {1-x^4}}{-1+i \sqrt {3}+2 x^4} \, dx \\ & = \frac {1}{2} \left (-1-i \sqrt {3}\right ) \int \frac {1}{\sqrt {1-x^4}} \, dx+\left (-1-i \sqrt {3}\right ) \int \frac {1}{\sqrt {1-x^4} \left (-1-i \sqrt {3}+2 x^4\right )} \, dx+\frac {1}{2} \left (-1+i \sqrt {3}\right ) \int \frac {1}{\sqrt {1-x^4}} \, dx+\left (-1+i \sqrt {3}\right ) \int \frac {1}{\sqrt {1-x^4} \left (-1+i \sqrt {3}+2 x^4\right )} \, dx \\ & = -\frac {1}{2} \left (1-i \sqrt {3}\right ) \operatorname {EllipticF}(\arcsin (x),-1)-\frac {1}{2} \left (1+i \sqrt {3}\right ) \operatorname {EllipticF}(\arcsin (x),-1)+\frac {1}{2} \int \frac {1}{\left (1-\frac {x^2}{\sqrt {\frac {1}{2} \left (1-i \sqrt {3}\right )}}\right ) \sqrt {1-x^4}} \, dx+\frac {1}{2} \int \frac {1}{\left (1+\frac {x^2}{\sqrt {\frac {1}{2} \left (1-i \sqrt {3}\right )}}\right ) \sqrt {1-x^4}} \, dx+\frac {1}{2} \int \frac {1}{\left (1-\frac {x^2}{\sqrt {\frac {1}{2} \left (1+i \sqrt {3}\right )}}\right ) \sqrt {1-x^4}} \, dx+\frac {1}{2} \int \frac {1}{\left (1+\frac {x^2}{\sqrt {\frac {1}{2} \left (1+i \sqrt {3}\right )}}\right ) \sqrt {1-x^4}} \, dx \\ & = -\frac {1}{2} \left (1-i \sqrt {3}\right ) \operatorname {EllipticF}(\arcsin (x),-1)-\frac {1}{2} \left (1+i \sqrt {3}\right ) \operatorname {EllipticF}(\arcsin (x),-1)+\frac {1}{2} \int \frac {1}{\sqrt {1-x^2} \sqrt {1+x^2} \left (1-\frac {x^2}{\sqrt {\frac {1}{2} \left (1-i \sqrt {3}\right )}}\right )} \, dx+\frac {1}{2} \int \frac {1}{\sqrt {1-x^2} \sqrt {1+x^2} \left (1+\frac {x^2}{\sqrt {\frac {1}{2} \left (1-i \sqrt {3}\right )}}\right )} \, dx+\frac {1}{2} \int \frac {1}{\sqrt {1-x^2} \sqrt {1+x^2} \left (1-\frac {x^2}{\sqrt {\frac {1}{2} \left (1+i \sqrt {3}\right )}}\right )} \, dx+\frac {1}{2} \int \frac {1}{\sqrt {1-x^2} \sqrt {1+x^2} \left (1+\frac {x^2}{\sqrt {\frac {1}{2} \left (1+i \sqrt {3}\right )}}\right )} \, dx \\ & = -\frac {1}{2} \left (1-i \sqrt {3}\right ) \operatorname {EllipticF}(\arcsin (x),-1)-\frac {1}{2} \left (1+i \sqrt {3}\right ) \operatorname {EllipticF}(\arcsin (x),-1)+\frac {1}{2} \operatorname {EllipticPi}\left (\frac {1}{2} \left (-i-\sqrt {3}\right ),\arcsin (x),-1\right )+\frac {1}{2} \operatorname {EllipticPi}\left (\frac {1}{2} \left (i-\sqrt {3}\right ),\arcsin (x),-1\right )+\frac {1}{2} \operatorname {EllipticPi}\left (\frac {1}{\sqrt {\frac {1}{2} \left (1-i \sqrt {3}\right )}},\arcsin (x),-1\right )+\frac {1}{2} \operatorname {EllipticPi}\left (\frac {1}{\sqrt {\frac {1}{2} \left (1+i \sqrt {3}\right )}},\arcsin (x),-1\right ) \\ \end{align*}
Result contains complex when optimal does not.
Time = 0.33 (sec) , antiderivative size = 46, normalized size of antiderivative = 0.44 \[ \int \frac {\sqrt {1-x^4} \left (1+x^4\right )}{1-x^4+x^8} \, dx=-\frac {1}{2} (-1)^{3/4} \left (\arctan \left (\frac {(1+i) x}{\sqrt {2-2 x^4}}\right )+\text {arctanh}\left (\frac {\sqrt [4]{-1} x}{\sqrt {1-x^4}}\right )\right ) \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 1.11 (sec) , antiderivative size = 55, normalized size of antiderivative = 0.53
method | result | size |
pseudoelliptic | \(\frac {\sqrt {2}\, \left (\left (-1+i\right ) \arctan \left (\frac {\left (\frac {1}{2}-\frac {i}{2}\right ) \sqrt {-x^{4}+1}\, \sqrt {2}}{x}\right )+\left (-1-i\right ) \arctan \left (\frac {\left (\frac {1}{2}+\frac {i}{2}\right ) \sqrt {-x^{4}+1}\, \sqrt {2}}{x}\right )\right )}{4}\) | \(55\) |
default | \(\frac {\left (\frac {\ln \left (\frac {-x^{4}+1}{x^{2}}+\frac {\sqrt {-x^{4}+1}\, \sqrt {2}}{x}+1\right )}{4}-\frac {\arctan \left (1+\frac {\sqrt {-x^{4}+1}\, \sqrt {2}}{x}\right )}{2}-\frac {\ln \left (\frac {-x^{4}+1}{x^{2}}-\frac {\sqrt {-x^{4}+1}\, \sqrt {2}}{x}+1\right )}{4}-\frac {\arctan \left (-1+\frac {\sqrt {-x^{4}+1}\, \sqrt {2}}{x}\right )}{2}\right ) \sqrt {2}}{2}\) | \(114\) |
elliptic | \(\frac {\left (\frac {\ln \left (\frac {-x^{4}+1}{x^{2}}+\frac {\sqrt {-x^{4}+1}\, \sqrt {2}}{x}+1\right )}{4}-\frac {\arctan \left (1+\frac {\sqrt {-x^{4}+1}\, \sqrt {2}}{x}\right )}{2}-\frac {\ln \left (\frac {-x^{4}+1}{x^{2}}-\frac {\sqrt {-x^{4}+1}\, \sqrt {2}}{x}+1\right )}{4}-\frac {\arctan \left (-1+\frac {\sqrt {-x^{4}+1}\, \sqrt {2}}{x}\right )}{2}\right ) \sqrt {2}}{2}\) | \(114\) |
trager | \(\frac {\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right )^{3} \ln \left (-\frac {\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right )^{5} x^{2}-\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right )^{3} x^{4}+\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right )^{3}+2 \sqrt {-x^{4}+1}\, x}{\left (\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right )^{3} x +\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right )^{2} x^{2}-1\right ) \left (\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right )^{3} x -\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right )^{2} x^{2}+1\right )}\right )}{4}-\frac {\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right ) \ln \left (-\frac {\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right )^{3} x^{2}+\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right ) x^{4}+2 \sqrt {-x^{4}+1}\, x -\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right )}{\left (\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right )^{2} x^{2}-\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right ) x +1\right ) \left (\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right )^{2} x^{2}+\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right ) x +1\right )}\right )}{4}\) | \(217\) |
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.32 (sec) , antiderivative size = 277, normalized size of antiderivative = 2.66 \[ \int \frac {\sqrt {1-x^4} \left (1+x^4\right )}{1-x^4+x^8} \, dx=\left (\frac {1}{16} i + \frac {1}{16}\right ) \, \sqrt {2} \log \left (\frac {\sqrt {2} {\left (\left (i + 1\right ) \, x^{8} + \left (2 i - 2\right ) \, x^{6} - \left (3 i + 3\right ) \, x^{4} - \left (2 i - 2\right ) \, x^{2} + i + 1\right )} - 4 \, {\left (x^{5} + i \, x^{3} - x\right )} \sqrt {-x^{4} + 1}}{x^{8} - x^{4} + 1}\right ) - \left (\frac {1}{16} i - \frac {1}{16}\right ) \, \sqrt {2} \log \left (\frac {\sqrt {2} {\left (-\left (i - 1\right ) \, x^{8} - \left (2 i + 2\right ) \, x^{6} + \left (3 i - 3\right ) \, x^{4} + \left (2 i + 2\right ) \, x^{2} - i + 1\right )} - 4 \, {\left (x^{5} - i \, x^{3} - x\right )} \sqrt {-x^{4} + 1}}{x^{8} - x^{4} + 1}\right ) + \left (\frac {1}{16} i - \frac {1}{16}\right ) \, \sqrt {2} \log \left (\frac {\sqrt {2} {\left (\left (i - 1\right ) \, x^{8} + \left (2 i + 2\right ) \, x^{6} - \left (3 i - 3\right ) \, x^{4} - \left (2 i + 2\right ) \, x^{2} + i - 1\right )} - 4 \, {\left (x^{5} - i \, x^{3} - x\right )} \sqrt {-x^{4} + 1}}{x^{8} - x^{4} + 1}\right ) - \left (\frac {1}{16} i + \frac {1}{16}\right ) \, \sqrt {2} \log \left (\frac {\sqrt {2} {\left (-\left (i + 1\right ) \, x^{8} - \left (2 i - 2\right ) \, x^{6} + \left (3 i + 3\right ) \, x^{4} + \left (2 i - 2\right ) \, x^{2} - i - 1\right )} - 4 \, {\left (x^{5} + i \, x^{3} - x\right )} \sqrt {-x^{4} + 1}}{x^{8} - x^{4} + 1}\right ) \]
[In]
[Out]
\[ \int \frac {\sqrt {1-x^4} \left (1+x^4\right )}{1-x^4+x^8} \, dx=\int \frac {\sqrt {- \left (x - 1\right ) \left (x + 1\right ) \left (x^{2} + 1\right )} \left (x^{4} + 1\right )}{x^{8} - x^{4} + 1}\, dx \]
[In]
[Out]
\[ \int \frac {\sqrt {1-x^4} \left (1+x^4\right )}{1-x^4+x^8} \, dx=\int { \frac {{\left (x^{4} + 1\right )} \sqrt {-x^{4} + 1}}{x^{8} - x^{4} + 1} \,d x } \]
[In]
[Out]
\[ \int \frac {\sqrt {1-x^4} \left (1+x^4\right )}{1-x^4+x^8} \, dx=\int { \frac {{\left (x^{4} + 1\right )} \sqrt {-x^{4} + 1}}{x^{8} - x^{4} + 1} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {1-x^4} \left (1+x^4\right )}{1-x^4+x^8} \, dx=\int \frac {\sqrt {1-x^4}\,\left (x^4+1\right )}{x^8-x^4+1} \,d x \]
[In]
[Out]