Integrand size = 29, antiderivative size = 26 \[ \int \frac {1+x^2}{\left (-1+x^2\right ) \left (2+x^2\right ) \sqrt {-3+x^4}} \, dx=\frac {\arctan \left (\frac {x \sqrt {-3+x^4}}{\sqrt {2}}\right )}{3 \sqrt {2}} \]
[Out]
Result contains higher order function than in optimal. Order 4 vs. order 3 in optimal.
Time = 0.49 (sec) , antiderivative size = 131, normalized size of antiderivative = 5.04, number of steps used = 18, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.276, Rules used = {6857, 1229, 229, 1471, 554, 259, 552, 551} \[ \int \frac {1+x^2}{\left (-1+x^2\right ) \left (2+x^2\right ) \sqrt {-3+x^4}} \, dx=\frac {\sqrt {\sqrt {3}-x^2} \sqrt {\sqrt {3} x^2+3} \operatorname {EllipticPi}\left (-\frac {\sqrt {3}}{2},\arcsin \left (\frac {x}{\sqrt [4]{3}}\right ),-1\right )}{6 \sqrt {3} \sqrt {x^4-3}}-\frac {2 \sqrt {\sqrt {3}-x^2} \sqrt {\sqrt {3} x^2+3} \operatorname {EllipticPi}\left (\sqrt {3},\arcsin \left (\frac {x}{\sqrt [4]{3}}\right ),-1\right )}{3 \sqrt {3} \sqrt {x^4-3}} \]
[In]
[Out]
Rule 229
Rule 259
Rule 551
Rule 552
Rule 554
Rule 1229
Rule 1471
Rule 6857
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {2}{3 \left (-1+x^2\right ) \sqrt {-3+x^4}}+\frac {1}{3 \left (2+x^2\right ) \sqrt {-3+x^4}}\right ) \, dx \\ & = \frac {1}{3} \int \frac {1}{\left (2+x^2\right ) \sqrt {-3+x^4}} \, dx+\frac {2}{3} \int \frac {1}{\left (-1+x^2\right ) \sqrt {-3+x^4}} \, dx \\ & = \frac {2 \int \frac {1}{\sqrt {-3+x^4}} \, dx}{3 \left (-1+\sqrt {3}\right )}+\frac {2 \int \frac {\sqrt {3}-x^2}{\left (-1+x^2\right ) \sqrt {-3+x^4}} \, dx}{3 \left (-1+\sqrt {3}\right )}+\frac {\int \frac {1}{\sqrt {-3+x^4}} \, dx}{3 \left (2+\sqrt {3}\right )}+\frac {\int \frac {\sqrt {3}-x^2}{\left (2+x^2\right ) \sqrt {-3+x^4}} \, dx}{3 \left (2+\sqrt {3}\right )} \\ & = -\frac {\sqrt {2} \sqrt {\frac {\sqrt {3}+x^2}{\sqrt {3}-x^2}} \sqrt {-3+\sqrt {3} x^2} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {2} \sqrt [4]{3} x}{\sqrt {-3+\sqrt {3} x^2}}\right ),\frac {1}{2}\right )}{3\ 3^{3/4} \left (1-\sqrt {3}\right ) \sqrt {\frac {1}{3-\sqrt {3} x^2}} \sqrt {-3+x^4}}+\frac {\sqrt {\frac {\sqrt {3}+x^2}{\sqrt {3}-x^2}} \sqrt {-3+\sqrt {3} x^2} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {2} \sqrt [4]{3} x}{\sqrt {-3+\sqrt {3} x^2}}\right ),\frac {1}{2}\right )}{3 \sqrt {2} 3^{3/4} \left (2+\sqrt {3}\right ) \sqrt {\frac {1}{3-\sqrt {3} x^2}} \sqrt {-3+x^4}}+\frac {\left (2 \sqrt {-\sqrt {3}-x^2} \sqrt {\sqrt {3}-x^2}\right ) \int \frac {\sqrt {\sqrt {3}-x^2}}{\sqrt {-\sqrt {3}-x^2} \left (-1+x^2\right )} \, dx}{3 \left (-1+\sqrt {3}\right ) \sqrt {-3+x^4}}+\frac {\left (\sqrt {-\sqrt {3}-x^2} \sqrt {\sqrt {3}-x^2}\right ) \int \frac {\sqrt {\sqrt {3}-x^2}}{\sqrt {-\sqrt {3}-x^2} \left (2+x^2\right )} \, dx}{3 \left (2+\sqrt {3}\right ) \sqrt {-3+x^4}} \\ & = -\frac {\sqrt {2} \sqrt {\frac {\sqrt {3}+x^2}{\sqrt {3}-x^2}} \sqrt {-3+\sqrt {3} x^2} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {2} \sqrt [4]{3} x}{\sqrt {-3+\sqrt {3} x^2}}\right ),\frac {1}{2}\right )}{3\ 3^{3/4} \left (1-\sqrt {3}\right ) \sqrt {\frac {1}{3-\sqrt {3} x^2}} \sqrt {-3+x^4}}+\frac {\sqrt {\frac {\sqrt {3}+x^2}{\sqrt {3}-x^2}} \sqrt {-3+\sqrt {3} x^2} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {2} \sqrt [4]{3} x}{\sqrt {-3+\sqrt {3} x^2}}\right ),\frac {1}{2}\right )}{3 \sqrt {2} 3^{3/4} \left (2+\sqrt {3}\right ) \sqrt {\frac {1}{3-\sqrt {3} x^2}} \sqrt {-3+x^4}}+\frac {\left (\sqrt {-\sqrt {3}-x^2} \sqrt {\sqrt {3}-x^2}\right ) \int \frac {1}{\sqrt {-\sqrt {3}-x^2} \sqrt {\sqrt {3}-x^2} \left (2+x^2\right )} \, dx}{3 \sqrt {-3+x^4}}+\frac {\left (2 \sqrt {-\sqrt {3}-x^2} \sqrt {\sqrt {3}-x^2}\right ) \int \frac {1}{\sqrt {-\sqrt {3}-x^2} \sqrt {\sqrt {3}-x^2} \left (-1+x^2\right )} \, dx}{3 \sqrt {-3+x^4}}-\frac {\left (2 \sqrt {-\sqrt {3}-x^2} \sqrt {\sqrt {3}-x^2}\right ) \int \frac {1}{\sqrt {-\sqrt {3}-x^2} \sqrt {\sqrt {3}-x^2}} \, dx}{3 \left (-1+\sqrt {3}\right ) \sqrt {-3+x^4}}-\frac {\left (\sqrt {-\sqrt {3}-x^2} \sqrt {\sqrt {3}-x^2}\right ) \int \frac {1}{\sqrt {-\sqrt {3}-x^2} \sqrt {\sqrt {3}-x^2}} \, dx}{3 \left (2+\sqrt {3}\right ) \sqrt {-3+x^4}} \\ & = -\frac {\sqrt {2} \sqrt {\frac {\sqrt {3}+x^2}{\sqrt {3}-x^2}} \sqrt {-3+\sqrt {3} x^2} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {2} \sqrt [4]{3} x}{\sqrt {-3+\sqrt {3} x^2}}\right ),\frac {1}{2}\right )}{3\ 3^{3/4} \left (1-\sqrt {3}\right ) \sqrt {\frac {1}{3-\sqrt {3} x^2}} \sqrt {-3+x^4}}+\frac {\sqrt {\frac {\sqrt {3}+x^2}{\sqrt {3}-x^2}} \sqrt {-3+\sqrt {3} x^2} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {2} \sqrt [4]{3} x}{\sqrt {-3+\sqrt {3} x^2}}\right ),\frac {1}{2}\right )}{3 \sqrt {2} 3^{3/4} \left (2+\sqrt {3}\right ) \sqrt {\frac {1}{3-\sqrt {3} x^2}} \sqrt {-3+x^4}}-\frac {2 \int \frac {1}{\sqrt {-3+x^4}} \, dx}{3 \left (-1+\sqrt {3}\right )}-\frac {\int \frac {1}{\sqrt {-3+x^4}} \, dx}{3 \left (2+\sqrt {3}\right )}+\frac {\left (\sqrt {\sqrt {3}-x^2} \sqrt {1+\frac {x^2}{\sqrt {3}}}\right ) \int \frac {1}{\sqrt {\sqrt {3}-x^2} \left (2+x^2\right ) \sqrt {1+\frac {x^2}{\sqrt {3}}}} \, dx}{3 \sqrt {-3+x^4}}+\frac {\left (2 \sqrt {\sqrt {3}-x^2} \sqrt {1+\frac {x^2}{\sqrt {3}}}\right ) \int \frac {1}{\sqrt {\sqrt {3}-x^2} \left (-1+x^2\right ) \sqrt {1+\frac {x^2}{\sqrt {3}}}} \, dx}{3 \sqrt {-3+x^4}} \\ & = \frac {\sqrt {\sqrt {3}-x^2} \sqrt {3+\sqrt {3} x^2} \operatorname {EllipticPi}\left (-\frac {\sqrt {3}}{2},\arcsin \left (\frac {x}{\sqrt [4]{3}}\right ),-1\right )}{6 \sqrt {3} \sqrt {-3+x^4}}-\frac {2 \sqrt {\sqrt {3}-x^2} \sqrt {3+\sqrt {3} x^2} \operatorname {EllipticPi}\left (\sqrt {3},\arcsin \left (\frac {x}{\sqrt [4]{3}}\right ),-1\right )}{3 \sqrt {3} \sqrt {-3+x^4}} \\ \end{align*}
Time = 8.66 (sec) , antiderivative size = 26, normalized size of antiderivative = 1.00 \[ \int \frac {1+x^2}{\left (-1+x^2\right ) \left (2+x^2\right ) \sqrt {-3+x^4}} \, dx=\frac {\arctan \left (\frac {x \sqrt {-3+x^4}}{\sqrt {2}}\right )}{3 \sqrt {2}} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 3.
Time = 5.07 (sec) , antiderivative size = 68, normalized size of antiderivative = 2.62
method | result | size |
trager | \(-\frac {\operatorname {RootOf}\left (\textit {\_Z}^{2}+2\right ) \ln \left (\frac {\operatorname {RootOf}\left (\textit {\_Z}^{2}+2\right ) x^{6}-3 \operatorname {RootOf}\left (\textit {\_Z}^{2}+2\right ) x^{2}+4 \sqrt {x^{4}-3}\, x -2 \operatorname {RootOf}\left (\textit {\_Z}^{2}+2\right )}{\left (x^{2}+2\right ) \left (x -1\right )^{2} \left (1+x \right )^{2}}\right )}{12}\) | \(68\) |
elliptic | \(-\frac {2 \sqrt {1+\frac {\sqrt {3}\, x^{2}}{3}}\, \sqrt {1-\frac {\sqrt {3}\, x^{2}}{3}}\, \operatorname {EllipticPi}\left (\sqrt {-\frac {\sqrt {3}}{3}}\, x , -\sqrt {3}, \frac {3^{\frac {3}{4}}}{3 \sqrt {-\frac {\sqrt {3}}{3}}}\right )}{3 \sqrt {-\frac {\sqrt {3}}{3}}\, \sqrt {x^{4}-3}}-\frac {\operatorname {EllipticPi}\left (\sqrt {-\frac {\sqrt {3}}{3}}\, x , \frac {\sqrt {3}}{2}, i\right ) \sqrt {3+\sqrt {3}\, x^{2}}\, \sqrt {3-\sqrt {3}\, x^{2}}}{18 \sqrt {-\frac {\sqrt {3}}{3}}\, \sqrt {x^{4}-3}}\) | \(125\) |
default | \(-\frac {2 \sqrt {1+\frac {\sqrt {3}\, x^{2}}{3}}\, \sqrt {1-\frac {\sqrt {3}\, x^{2}}{3}}\, \operatorname {EllipticPi}\left (\sqrt {-\frac {\sqrt {3}}{3}}\, x , -\sqrt {3}, \frac {3^{\frac {3}{4}}}{3 \sqrt {-\frac {\sqrt {3}}{3}}}\right )}{3 \sqrt {-\frac {\sqrt {3}}{3}}\, \sqrt {x^{4}-3}}+\frac {\sqrt {1+\frac {\sqrt {3}\, x^{2}}{3}}\, \sqrt {1-\frac {\sqrt {3}\, x^{2}}{3}}\, \operatorname {EllipticPi}\left (\sqrt {-\frac {\sqrt {3}}{3}}\, x , \frac {\sqrt {3}}{2}, \frac {3^{\frac {3}{4}}}{3 \sqrt {-\frac {\sqrt {3}}{3}}}\right )}{6 \sqrt {-\frac {\sqrt {3}}{3}}\, \sqrt {x^{4}-3}}\) | \(136\) |
[In]
[Out]
Exception generated. \[ \int \frac {1+x^2}{\left (-1+x^2\right ) \left (2+x^2\right ) \sqrt {-3+x^4}} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
\[ \int \frac {1+x^2}{\left (-1+x^2\right ) \left (2+x^2\right ) \sqrt {-3+x^4}} \, dx=\int \frac {x^{2} + 1}{\left (x - 1\right ) \left (x + 1\right ) \left (x^{2} + 2\right ) \sqrt {x^{4} - 3}}\, dx \]
[In]
[Out]
\[ \int \frac {1+x^2}{\left (-1+x^2\right ) \left (2+x^2\right ) \sqrt {-3+x^4}} \, dx=\int { \frac {x^{2} + 1}{\sqrt {x^{4} - 3} {\left (x^{2} + 2\right )} {\left (x^{2} - 1\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {1+x^2}{\left (-1+x^2\right ) \left (2+x^2\right ) \sqrt {-3+x^4}} \, dx=\int { \frac {x^{2} + 1}{\sqrt {x^{4} - 3} {\left (x^{2} + 2\right )} {\left (x^{2} - 1\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {1+x^2}{\left (-1+x^2\right ) \left (2+x^2\right ) \sqrt {-3+x^4}} \, dx=\int \frac {x^2+1}{\left (x^2-1\right )\,\left (x^2+2\right )\,\sqrt {x^4-3}} \,d x \]
[In]
[Out]