Integrand size = 34, antiderivative size = 311 \[ \int \frac {\sqrt {1+x^4} \sqrt {x^2+\sqrt {1+x^4}}}{-1+x^4} \, dx=\sqrt {\frac {1}{2} \left (-1+\sqrt {2}\right )} \arctan \left (\frac {\sqrt {2 \left (-1+\sqrt {2}\right )} x \sqrt {x^2+\sqrt {1+x^4}}}{1+x^2+\sqrt {1+x^4}}\right )-\sqrt {\frac {1}{2} \left (-1+\sqrt {2}\right )} \arctan \left (\frac {\sqrt {2 \left (1+\sqrt {2}\right )} x \sqrt {x^2+\sqrt {1+x^4}}}{1+x^2+\sqrt {1+x^4}}\right )+\sqrt {2} \text {arctanh}\left (\frac {\sqrt {2} x \sqrt {x^2+\sqrt {1+x^4}}}{1+x^2+\sqrt {1+x^4}}\right )-\sqrt {\frac {1}{2} \left (1+\sqrt {2}\right )} \text {arctanh}\left (\frac {\sqrt {2 \left (-1+\sqrt {2}\right )} x \sqrt {x^2+\sqrt {1+x^4}}}{1+x^2+\sqrt {1+x^4}}\right )-\sqrt {\frac {1}{2} \left (1+\sqrt {2}\right )} \text {arctanh}\left (\frac {\sqrt {2 \left (1+\sqrt {2}\right )} x \sqrt {x^2+\sqrt {1+x^4}}}{1+x^2+\sqrt {1+x^4}}\right ) \]
[Out]
\[ \int \frac {\sqrt {1+x^4} \sqrt {x^2+\sqrt {1+x^4}}}{-1+x^4} \, dx=\int \frac {\sqrt {1+x^4} \sqrt {x^2+\sqrt {1+x^4}}}{-1+x^4} \, dx \]
[In]
[Out]
Rubi steps \begin{align*} \text {integral}& = \int \left (-\frac {\sqrt {1+x^4} \sqrt {x^2+\sqrt {1+x^4}}}{2 \left (1-x^2\right )}-\frac {\sqrt {1+x^4} \sqrt {x^2+\sqrt {1+x^4}}}{2 \left (1+x^2\right )}\right ) \, dx \\ & = -\left (\frac {1}{2} \int \frac {\sqrt {1+x^4} \sqrt {x^2+\sqrt {1+x^4}}}{1-x^2} \, dx\right )-\frac {1}{2} \int \frac {\sqrt {1+x^4} \sqrt {x^2+\sqrt {1+x^4}}}{1+x^2} \, dx \\ & = -\left (\frac {1}{2} \int \left (\frac {i \sqrt {1+x^4} \sqrt {x^2+\sqrt {1+x^4}}}{2 (i-x)}+\frac {i \sqrt {1+x^4} \sqrt {x^2+\sqrt {1+x^4}}}{2 (i+x)}\right ) \, dx\right )-\frac {1}{2} \int \left (\frac {\sqrt {1+x^4} \sqrt {x^2+\sqrt {1+x^4}}}{2 (1-x)}+\frac {\sqrt {1+x^4} \sqrt {x^2+\sqrt {1+x^4}}}{2 (1+x)}\right ) \, dx \\ & = -\left (\frac {1}{4} i \int \frac {\sqrt {1+x^4} \sqrt {x^2+\sqrt {1+x^4}}}{i-x} \, dx\right )-\frac {1}{4} i \int \frac {\sqrt {1+x^4} \sqrt {x^2+\sqrt {1+x^4}}}{i+x} \, dx-\frac {1}{4} \int \frac {\sqrt {1+x^4} \sqrt {x^2+\sqrt {1+x^4}}}{1-x} \, dx-\frac {1}{4} \int \frac {\sqrt {1+x^4} \sqrt {x^2+\sqrt {1+x^4}}}{1+x} \, dx \\ \end{align*}
Time = 1.18 (sec) , antiderivative size = 296, normalized size of antiderivative = 0.95 \[ \int \frac {\sqrt {1+x^4} \sqrt {x^2+\sqrt {1+x^4}}}{-1+x^4} \, dx=-\frac {\sqrt {-1+\sqrt {2}} \arctan \left (\frac {\sqrt {\frac {1}{2}+\frac {1}{\sqrt {2}}} \left (-1+x^2+\sqrt {1+x^4}\right )}{x \sqrt {x^2+\sqrt {1+x^4}}}\right )-\sqrt {-1+\sqrt {2}} \arctan \left (\frac {-1+x^2+\sqrt {1+x^4}}{\sqrt {2 \left (1+\sqrt {2}\right )} x \sqrt {x^2+\sqrt {1+x^4}}}\right )-2 \text {arctanh}\left (\frac {-1+x^2+\sqrt {1+x^4}}{\sqrt {2} x \sqrt {x^2+\sqrt {1+x^4}}}\right )+\sqrt {1+\sqrt {2}} \text {arctanh}\left (\frac {\sqrt {\frac {1}{2}+\frac {1}{\sqrt {2}}} \left (-1+x^2+\sqrt {1+x^4}\right )}{x \sqrt {x^2+\sqrt {1+x^4}}}\right )+\sqrt {1+\sqrt {2}} \text {arctanh}\left (\frac {-1+x^2+\sqrt {1+x^4}}{\sqrt {2 \left (1+\sqrt {2}\right )} x \sqrt {x^2+\sqrt {1+x^4}}}\right )}{\sqrt {2}} \]
[In]
[Out]
\[\int \frac {\sqrt {x^{4}+1}\, \sqrt {x^{2}+\sqrt {x^{4}+1}}}{x^{4}-1}d x\]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 529 vs. \(2 (238) = 476\).
Time = 3.20 (sec) , antiderivative size = 529, normalized size of antiderivative = 1.70 \[ \int \frac {\sqrt {1+x^4} \sqrt {x^2+\sqrt {1+x^4}}}{-1+x^4} \, dx=\frac {1}{8} \, \sqrt {2} \sqrt {-\sqrt {2} + 1} \log \left (-\frac {2 \, \sqrt {x^{4} + 1} {\left (\sqrt {2} x^{2} - x^{2}\right )} \sqrt {-\sqrt {2} + 1} + 2 \, {\left (\sqrt {2} x^{3} - 2 \, x^{3} + \sqrt {x^{4} + 1} {\left (\sqrt {2} x - x\right )}\right )} \sqrt {x^{2} + \sqrt {x^{4} + 1}} + {\left (2 \, \sqrt {2} x^{4} - 3 \, x^{4} - 1\right )} \sqrt {-\sqrt {2} + 1}}{x^{4} - 1}\right ) - \frac {1}{8} \, \sqrt {2} \sqrt {-\sqrt {2} + 1} \log \left (\frac {2 \, \sqrt {x^{4} + 1} {\left (\sqrt {2} x^{2} - x^{2}\right )} \sqrt {-\sqrt {2} + 1} - 2 \, {\left (\sqrt {2} x^{3} - 2 \, x^{3} + \sqrt {x^{4} + 1} {\left (\sqrt {2} x - x\right )}\right )} \sqrt {x^{2} + \sqrt {x^{4} + 1}} + {\left (2 \, \sqrt {2} x^{4} - 3 \, x^{4} - 1\right )} \sqrt {-\sqrt {2} + 1}}{x^{4} - 1}\right ) - \frac {1}{8} \, \sqrt {2} \sqrt {\sqrt {2} + 1} \log \left (\frac {2 \, {\left (\sqrt {2} x^{3} + 2 \, x^{3} + \sqrt {x^{4} + 1} {\left (\sqrt {2} x + x\right )}\right )} \sqrt {x^{2} + \sqrt {x^{4} + 1}} + {\left (2 \, \sqrt {2} x^{4} + 3 \, x^{4} + 2 \, \sqrt {x^{4} + 1} {\left (\sqrt {2} x^{2} + x^{2}\right )} + 1\right )} \sqrt {\sqrt {2} + 1}}{x^{4} - 1}\right ) + \frac {1}{8} \, \sqrt {2} \sqrt {\sqrt {2} + 1} \log \left (\frac {2 \, {\left (\sqrt {2} x^{3} + 2 \, x^{3} + \sqrt {x^{4} + 1} {\left (\sqrt {2} x + x\right )}\right )} \sqrt {x^{2} + \sqrt {x^{4} + 1}} - {\left (2 \, \sqrt {2} x^{4} + 3 \, x^{4} + 2 \, \sqrt {x^{4} + 1} {\left (\sqrt {2} x^{2} + x^{2}\right )} + 1\right )} \sqrt {\sqrt {2} + 1}}{x^{4} - 1}\right ) + \frac {1}{4} \, \sqrt {2} \log \left (4 \, x^{4} + 4 \, \sqrt {x^{4} + 1} x^{2} + 2 \, {\left (\sqrt {2} x^{3} + \sqrt {2} \sqrt {x^{4} + 1} x\right )} \sqrt {x^{2} + \sqrt {x^{4} + 1}} + 1\right ) \]
[In]
[Out]
\[ \int \frac {\sqrt {1+x^4} \sqrt {x^2+\sqrt {1+x^4}}}{-1+x^4} \, dx=\int \frac {\sqrt {x^{2} + \sqrt {x^{4} + 1}} \sqrt {x^{4} + 1}}{\left (x - 1\right ) \left (x + 1\right ) \left (x^{2} + 1\right )}\, dx \]
[In]
[Out]
\[ \int \frac {\sqrt {1+x^4} \sqrt {x^2+\sqrt {1+x^4}}}{-1+x^4} \, dx=\int { \frac {\sqrt {x^{4} + 1} \sqrt {x^{2} + \sqrt {x^{4} + 1}}}{x^{4} - 1} \,d x } \]
[In]
[Out]
\[ \int \frac {\sqrt {1+x^4} \sqrt {x^2+\sqrt {1+x^4}}}{-1+x^4} \, dx=\int { \frac {\sqrt {x^{4} + 1} \sqrt {x^{2} + \sqrt {x^{4} + 1}}}{x^{4} - 1} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {1+x^4} \sqrt {x^2+\sqrt {1+x^4}}}{-1+x^4} \, dx=\int \frac {\sqrt {x^4+1}\,\sqrt {\sqrt {x^4+1}+x^2}}{x^4-1} \,d x \]
[In]
[Out]