Integrand size = 22, antiderivative size = 48 \[ \int \frac {\left (-1+x^2\right ) \sqrt {1+x^4}}{\left (1+x^2\right )^3} \, dx=-\frac {x \sqrt {1+x^4}}{2 \left (1+x^2\right )^2}-\frac {\arctan \left (\frac {\sqrt {2} x}{\sqrt {1+x^4}}\right )}{2 \sqrt {2}} \]
[Out]
Time = 0.25 (sec) , antiderivative size = 72, normalized size of antiderivative = 1.50, number of steps used = 20, number of rules used = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.455, Rules used = {1735, 226, 1238, 1711, 1727, 1210, 1715, 1713, 209, 1225} \[ \int \frac {\left (-1+x^2\right ) \sqrt {1+x^4}}{\left (1+x^2\right )^3} \, dx=-\sqrt {2} \arctan \left (\frac {\sqrt {2} x}{\sqrt {x^4+1}}\right )+\frac {3 \arctan \left (\frac {\sqrt {2} x}{\sqrt {x^4+1}}\right )}{2 \sqrt {2}}-\frac {\sqrt {x^4+1} x}{2 \left (x^2+1\right )^2} \]
[In]
[Out]
Rule 209
Rule 226
Rule 1210
Rule 1225
Rule 1238
Rule 1711
Rule 1713
Rule 1715
Rule 1727
Rule 1735
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {1}{\sqrt {1+x^4}}-\frac {4}{\left (1+x^2\right )^3 \sqrt {1+x^4}}+\frac {6}{\left (1+x^2\right )^2 \sqrt {1+x^4}}-\frac {4}{\left (1+x^2\right ) \sqrt {1+x^4}}\right ) \, dx \\ & = -\left (4 \int \frac {1}{\left (1+x^2\right )^3 \sqrt {1+x^4}} \, dx\right )-4 \int \frac {1}{\left (1+x^2\right ) \sqrt {1+x^4}} \, dx+6 \int \frac {1}{\left (1+x^2\right )^2 \sqrt {1+x^4}} \, dx+\int \frac {1}{\sqrt {1+x^4}} \, dx \\ & = -\frac {x \sqrt {1+x^4}}{2 \left (1+x^2\right )^2}+\frac {3 x \sqrt {1+x^4}}{2 \left (1+x^2\right )}+\frac {\left (1+x^2\right ) \sqrt {\frac {1+x^4}{\left (1+x^2\right )^2}} \operatorname {EllipticF}\left (2 \arctan (x),\frac {1}{2}\right )}{2 \sqrt {1+x^4}}+\frac {1}{2} \int \frac {-7+4 x^2-x^4}{\left (1+x^2\right )^2 \sqrt {1+x^4}} \, dx-\frac {3}{2} \int \frac {-3+2 x^2+x^4}{\left (1+x^2\right ) \sqrt {1+x^4}} \, dx-2 \int \frac {1}{\sqrt {1+x^4}} \, dx-2 \int \frac {1-x^2}{\left (1+x^2\right ) \sqrt {1+x^4}} \, dx \\ & = -\frac {x \sqrt {1+x^4}}{2 \left (1+x^2\right )^2}-\frac {\left (1+x^2\right ) \sqrt {\frac {1+x^4}{\left (1+x^2\right )^2}} \operatorname {EllipticF}\left (2 \arctan (x),\frac {1}{2}\right )}{2 \sqrt {1+x^4}}-\frac {1}{8} \int \frac {16-20 x^2-12 x^4}{\left (1+x^2\right ) \sqrt {1+x^4}} \, dx+\frac {3}{2} \int \frac {1-x^2}{\sqrt {1+x^4}} \, dx-\frac {3}{2} \int \frac {-2+2 x^2}{\left (1+x^2\right ) \sqrt {1+x^4}} \, dx-2 \text {Subst}\left (\int \frac {1}{1+2 x^2} \, dx,x,\frac {x}{\sqrt {1+x^4}}\right ) \\ & = -\frac {x \sqrt {1+x^4}}{2 \left (1+x^2\right )^2}-\frac {3 x \sqrt {1+x^4}}{2 \left (1+x^2\right )}-\sqrt {2} \arctan \left (\frac {\sqrt {2} x}{\sqrt {1+x^4}}\right )+\frac {3 \left (1+x^2\right ) \sqrt {\frac {1+x^4}{\left (1+x^2\right )^2}} E\left (2 \arctan (x)\left |\frac {1}{2}\right .\right )}{2 \sqrt {1+x^4}}-\frac {\left (1+x^2\right ) \sqrt {\frac {1+x^4}{\left (1+x^2\right )^2}} \operatorname {EllipticF}\left (2 \arctan (x),\frac {1}{2}\right )}{2 \sqrt {1+x^4}}-\frac {1}{8} \int \frac {4-20 x^2}{\left (1+x^2\right ) \sqrt {1+x^4}} \, dx-\frac {3}{2} \int \frac {1-x^2}{\sqrt {1+x^4}} \, dx+3 \text {Subst}\left (\int \frac {1}{1+2 x^2} \, dx,x,\frac {x}{\sqrt {1+x^4}}\right ) \\ & = -\frac {x \sqrt {1+x^4}}{2 \left (1+x^2\right )^2}+\frac {3 \arctan \left (\frac {\sqrt {2} x}{\sqrt {1+x^4}}\right )}{\sqrt {2}}-\sqrt {2} \arctan \left (\frac {\sqrt {2} x}{\sqrt {1+x^4}}\right )-\frac {\left (1+x^2\right ) \sqrt {\frac {1+x^4}{\left (1+x^2\right )^2}} \operatorname {EllipticF}\left (2 \arctan (x),\frac {1}{2}\right )}{2 \sqrt {1+x^4}}-\frac {3}{2} \int \frac {1-x^2}{\left (1+x^2\right ) \sqrt {1+x^4}} \, dx+\int \frac {1}{\sqrt {1+x^4}} \, dx \\ & = -\frac {x \sqrt {1+x^4}}{2 \left (1+x^2\right )^2}+\frac {3 \arctan \left (\frac {\sqrt {2} x}{\sqrt {1+x^4}}\right )}{\sqrt {2}}-\sqrt {2} \arctan \left (\frac {\sqrt {2} x}{\sqrt {1+x^4}}\right )-\frac {3}{2} \text {Subst}\left (\int \frac {1}{1+2 x^2} \, dx,x,\frac {x}{\sqrt {1+x^4}}\right ) \\ & = -\frac {x \sqrt {1+x^4}}{2 \left (1+x^2\right )^2}+\frac {3 \arctan \left (\frac {\sqrt {2} x}{\sqrt {1+x^4}}\right )}{2 \sqrt {2}}-\sqrt {2} \arctan \left (\frac {\sqrt {2} x}{\sqrt {1+x^4}}\right ) \\ \end{align*}
Time = 0.41 (sec) , antiderivative size = 48, normalized size of antiderivative = 1.00 \[ \int \frac {\left (-1+x^2\right ) \sqrt {1+x^4}}{\left (1+x^2\right )^3} \, dx=-\frac {x \sqrt {1+x^4}}{2 \left (1+x^2\right )^2}-\frac {\arctan \left (\frac {\sqrt {2} x}{\sqrt {1+x^4}}\right )}{2 \sqrt {2}} \]
[In]
[Out]
Time = 1.83 (sec) , antiderivative size = 37, normalized size of antiderivative = 0.77
method | result | size |
risch | \(-\frac {x \sqrt {x^{4}+1}}{2 \left (x^{2}+1\right )^{2}}-\frac {\arctan \left (\frac {\sqrt {2}\, x}{\sqrt {x^{4}+1}}\right ) \sqrt {2}}{4}\) | \(37\) |
default | \(\frac {-\sqrt {2}\, \left (x^{2}+1\right )^{2} \arctan \left (\frac {\sqrt {2}\, x}{\sqrt {x^{4}+1}}\right )-2 \sqrt {x^{4}+1}\, x}{4 \left (x^{2}+1\right )^{2}}\) | \(46\) |
pseudoelliptic | \(\frac {-\sqrt {2}\, \left (x^{2}+1\right )^{2} \arctan \left (\frac {\sqrt {2}\, x}{\sqrt {x^{4}+1}}\right )-2 \sqrt {x^{4}+1}\, x}{4 \left (x^{2}+1\right )^{2}}\) | \(46\) |
trager | \(-\frac {x \sqrt {x^{4}+1}}{2 \left (x^{2}+1\right )^{2}}+\frac {\operatorname {RootOf}\left (\textit {\_Z}^{2}+2\right ) \ln \left (\frac {\operatorname {RootOf}\left (\textit {\_Z}^{2}+2\right ) x +\sqrt {x^{4}+1}}{x^{2}+1}\right )}{4}\) | \(52\) |
elliptic | \(\frac {\left (-\frac {\sqrt {2}\, \sqrt {x^{4}+1}}{4 \left (\frac {x^{4}+1}{2 x^{2}}+1\right ) x}+\frac {\arctan \left (\frac {\sqrt {2}\, \sqrt {x^{4}+1}}{2 x}\right )}{2}\right ) \sqrt {2}}{2}\) | \(54\) |
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 52, normalized size of antiderivative = 1.08 \[ \int \frac {\left (-1+x^2\right ) \sqrt {1+x^4}}{\left (1+x^2\right )^3} \, dx=-\frac {\sqrt {2} {\left (x^{4} + 2 \, x^{2} + 1\right )} \arctan \left (\frac {\sqrt {2} x}{\sqrt {x^{4} + 1}}\right ) + 2 \, \sqrt {x^{4} + 1} x}{4 \, {\left (x^{4} + 2 \, x^{2} + 1\right )}} \]
[In]
[Out]
\[ \int \frac {\left (-1+x^2\right ) \sqrt {1+x^4}}{\left (1+x^2\right )^3} \, dx=\int \frac {\left (x - 1\right ) \left (x + 1\right ) \sqrt {x^{4} + 1}}{\left (x^{2} + 1\right )^{3}}\, dx \]
[In]
[Out]
\[ \int \frac {\left (-1+x^2\right ) \sqrt {1+x^4}}{\left (1+x^2\right )^3} \, dx=\int { \frac {\sqrt {x^{4} + 1} {\left (x^{2} - 1\right )}}{{\left (x^{2} + 1\right )}^{3}} \,d x } \]
[In]
[Out]
\[ \int \frac {\left (-1+x^2\right ) \sqrt {1+x^4}}{\left (1+x^2\right )^3} \, dx=\int { \frac {\sqrt {x^{4} + 1} {\left (x^{2} - 1\right )}}{{\left (x^{2} + 1\right )}^{3}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\left (-1+x^2\right ) \sqrt {1+x^4}}{\left (1+x^2\right )^3} \, dx=\int \frac {\left (x^2-1\right )\,\sqrt {x^4+1}}{{\left (x^2+1\right )}^3} \,d x \]
[In]
[Out]