Integrand size = 34, antiderivative size = 32 \[ \int \frac {-1+2 x+2 x^2}{\left (1-x+3 x^2\right ) \sqrt {-x+x^4}} \, dx=\sqrt {2} \arctan \left (\frac {\sqrt {2} \sqrt {-x+x^4}}{1+x+x^2}\right ) \]
[Out]
\[ \int \frac {-1+2 x+2 x^2}{\left (1-x+3 x^2\right ) \sqrt {-x+x^4}} \, dx=\int \frac {-1+2 x+2 x^2}{\left (1-x+3 x^2\right ) \sqrt {-x+x^4}} \, dx \]
[In]
[Out]
Rubi steps \begin{align*} \text {integral}& = \frac {\left (\sqrt {x} \sqrt {-1+x^3}\right ) \int \frac {-1+2 x+2 x^2}{\sqrt {x} \left (1-x+3 x^2\right ) \sqrt {-1+x^3}} \, dx}{\sqrt {-x+x^4}} \\ & = \frac {\left (\sqrt {x} \sqrt {-1+x^3}\right ) \int \left (\frac {2}{3 \sqrt {x} \sqrt {-1+x^3}}-\frac {5-8 x}{3 \sqrt {x} \left (1-x+3 x^2\right ) \sqrt {-1+x^3}}\right ) \, dx}{\sqrt {-x+x^4}} \\ & = -\frac {\left (\sqrt {x} \sqrt {-1+x^3}\right ) \int \frac {5-8 x}{\sqrt {x} \left (1-x+3 x^2\right ) \sqrt {-1+x^3}} \, dx}{3 \sqrt {-x+x^4}}+\frac {\left (2 \sqrt {x} \sqrt {-1+x^3}\right ) \int \frac {1}{\sqrt {x} \sqrt {-1+x^3}} \, dx}{3 \sqrt {-x+x^4}} \\ & = -\frac {\left (\sqrt {x} \sqrt {-1+x^3}\right ) \int \left (\frac {-8-2 i \sqrt {11}}{\sqrt {x} \left (-1-i \sqrt {11}+6 x\right ) \sqrt {-1+x^3}}+\frac {-8+2 i \sqrt {11}}{\sqrt {x} \left (-1+i \sqrt {11}+6 x\right ) \sqrt {-1+x^3}}\right ) \, dx}{3 \sqrt {-x+x^4}}+\frac {\left (4 \sqrt {x} \sqrt {-1+x^3}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {-1+x^6}} \, dx,x,\sqrt {x}\right )}{3 \sqrt {-x+x^4}} \\ & = \frac {2 (1-x) x \sqrt {\frac {1+x+x^2}{\left (1-\left (1+\sqrt {3}\right ) x\right )^2}} \operatorname {EllipticF}\left (\arccos \left (\frac {1-\left (1-\sqrt {3}\right ) x}{1-\left (1+\sqrt {3}\right ) x}\right ),\frac {1}{4} \left (2+\sqrt {3}\right )\right )}{3 \sqrt [4]{3} \sqrt {-\frac {(1-x) x}{\left (1-\left (1+\sqrt {3}\right ) x\right )^2}} \sqrt {-x+x^4}}+\frac {\left (2 \left (4-i \sqrt {11}\right ) \sqrt {x} \sqrt {-1+x^3}\right ) \int \frac {1}{\sqrt {x} \left (-1+i \sqrt {11}+6 x\right ) \sqrt {-1+x^3}} \, dx}{3 \sqrt {-x+x^4}}+\frac {\left (2 \left (4+i \sqrt {11}\right ) \sqrt {x} \sqrt {-1+x^3}\right ) \int \frac {1}{\sqrt {x} \left (-1-i \sqrt {11}+6 x\right ) \sqrt {-1+x^3}} \, dx}{3 \sqrt {-x+x^4}} \\ & = \frac {2 (1-x) x \sqrt {\frac {1+x+x^2}{\left (1-\left (1+\sqrt {3}\right ) x\right )^2}} \operatorname {EllipticF}\left (\arccos \left (\frac {1-\left (1-\sqrt {3}\right ) x}{1-\left (1+\sqrt {3}\right ) x}\right ),\frac {1}{4} \left (2+\sqrt {3}\right )\right )}{3 \sqrt [4]{3} \sqrt {-\frac {(1-x) x}{\left (1-\left (1+\sqrt {3}\right ) x\right )^2}} \sqrt {-x+x^4}}+\frac {\left (4 \left (4-i \sqrt {11}\right ) \sqrt {x} \sqrt {-1+x^3}\right ) \text {Subst}\left (\int \frac {1}{\left (-1+i \sqrt {11}+6 x^2\right ) \sqrt {-1+x^6}} \, dx,x,\sqrt {x}\right )}{3 \sqrt {-x+x^4}}+\frac {\left (4 \left (4+i \sqrt {11}\right ) \sqrt {x} \sqrt {-1+x^3}\right ) \text {Subst}\left (\int \frac {1}{\left (-1-i \sqrt {11}+6 x^2\right ) \sqrt {-1+x^6}} \, dx,x,\sqrt {x}\right )}{3 \sqrt {-x+x^4}} \\ & = \frac {2 (1-x) x \sqrt {\frac {1+x+x^2}{\left (1-\left (1+\sqrt {3}\right ) x\right )^2}} \operatorname {EllipticF}\left (\arccos \left (\frac {1-\left (1-\sqrt {3}\right ) x}{1-\left (1+\sqrt {3}\right ) x}\right ),\frac {1}{4} \left (2+\sqrt {3}\right )\right )}{3 \sqrt [4]{3} \sqrt {-\frac {(1-x) x}{\left (1-\left (1+\sqrt {3}\right ) x\right )^2}} \sqrt {-x+x^4}}+\frac {\left (4 \left (4-i \sqrt {11}\right ) \sqrt {x} \sqrt {-1+x^3}\right ) \text {Subst}\left (\int \left (\frac {\sqrt {1-i \sqrt {11}}}{2 \left (-1+i \sqrt {11}\right ) \left (\sqrt {1-i \sqrt {11}}-\sqrt {6} x\right ) \sqrt {-1+x^6}}+\frac {\sqrt {1-i \sqrt {11}}}{2 \left (-1+i \sqrt {11}\right ) \left (\sqrt {1-i \sqrt {11}}+\sqrt {6} x\right ) \sqrt {-1+x^6}}\right ) \, dx,x,\sqrt {x}\right )}{3 \sqrt {-x+x^4}}+\frac {\left (4 \left (4+i \sqrt {11}\right ) \sqrt {x} \sqrt {-1+x^3}\right ) \text {Subst}\left (\int \left (\frac {\sqrt {1+i \sqrt {11}}}{2 \left (-1-i \sqrt {11}\right ) \left (\sqrt {1+i \sqrt {11}}-\sqrt {6} x\right ) \sqrt {-1+x^6}}+\frac {\sqrt {1+i \sqrt {11}}}{2 \left (-1-i \sqrt {11}\right ) \left (\sqrt {1+i \sqrt {11}}+\sqrt {6} x\right ) \sqrt {-1+x^6}}\right ) \, dx,x,\sqrt {x}\right )}{3 \sqrt {-x+x^4}} \\ & = \frac {2 (1-x) x \sqrt {\frac {1+x+x^2}{\left (1-\left (1+\sqrt {3}\right ) x\right )^2}} \operatorname {EllipticF}\left (\arccos \left (\frac {1-\left (1-\sqrt {3}\right ) x}{1-\left (1+\sqrt {3}\right ) x}\right ),\frac {1}{4} \left (2+\sqrt {3}\right )\right )}{3 \sqrt [4]{3} \sqrt {-\frac {(1-x) x}{\left (1-\left (1+\sqrt {3}\right ) x\right )^2}} \sqrt {-x+x^4}}-\frac {\left (2 \left (4-i \sqrt {11}\right ) \sqrt {x} \sqrt {-1+x^3}\right ) \text {Subst}\left (\int \frac {1}{\left (\sqrt {1-i \sqrt {11}}-\sqrt {6} x\right ) \sqrt {-1+x^6}} \, dx,x,\sqrt {x}\right )}{3 \sqrt {1-i \sqrt {11}} \sqrt {-x+x^4}}-\frac {\left (2 \left (4-i \sqrt {11}\right ) \sqrt {x} \sqrt {-1+x^3}\right ) \text {Subst}\left (\int \frac {1}{\left (\sqrt {1-i \sqrt {11}}+\sqrt {6} x\right ) \sqrt {-1+x^6}} \, dx,x,\sqrt {x}\right )}{3 \sqrt {1-i \sqrt {11}} \sqrt {-x+x^4}}-\frac {\left (2 \left (4+i \sqrt {11}\right ) \sqrt {x} \sqrt {-1+x^3}\right ) \text {Subst}\left (\int \frac {1}{\left (\sqrt {1+i \sqrt {11}}-\sqrt {6} x\right ) \sqrt {-1+x^6}} \, dx,x,\sqrt {x}\right )}{3 \sqrt {1+i \sqrt {11}} \sqrt {-x+x^4}}-\frac {\left (2 \left (4+i \sqrt {11}\right ) \sqrt {x} \sqrt {-1+x^3}\right ) \text {Subst}\left (\int \frac {1}{\left (\sqrt {1+i \sqrt {11}}+\sqrt {6} x\right ) \sqrt {-1+x^6}} \, dx,x,\sqrt {x}\right )}{3 \sqrt {1+i \sqrt {11}} \sqrt {-x+x^4}} \\ \end{align*}
Time = 24.43 (sec) , antiderivative size = 56, normalized size of antiderivative = 1.75 \[ \int \frac {-1+2 x+2 x^2}{\left (1-x+3 x^2\right ) \sqrt {-x+x^4}} \, dx=-\frac {\sqrt {2} \sqrt {-1+\frac {1}{x^3}} x^2 \text {arctanh}\left (\frac {\sqrt {2} \sqrt {-1+\frac {1}{x^3}}}{1+\frac {1}{x^2}+\frac {1}{x}}\right )}{\sqrt {x \left (-1+x^3\right )}} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 3.
Time = 5.26 (sec) , antiderivative size = 63, normalized size of antiderivative = 1.97
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^{2}-3 \operatorname {RootOf}\left (\textit {\_Z}^{2}+2\right ) x -\operatorname {RootOf}\left (\textit {\_Z}^{2}+2\right )-4 \sqrt {x^{4}-x}}{3 x^{2}-x +1}\right )}{2}\) | \(63\) |
default | \(\text {Expression too large to display}\) | \(828\) |
elliptic | \(\text {Expression too large to display}\) | \(828\) |
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 28, normalized size of antiderivative = 0.88 \[ \int \frac {-1+2 x+2 x^2}{\left (1-x+3 x^2\right ) \sqrt {-x+x^4}} \, dx=\frac {1}{2} \, \sqrt {2} \arctan \left (\frac {\sqrt {2} {\left (x^{2} - 3 \, x - 1\right )}}{4 \, \sqrt {x^{4} - x}}\right ) \]
[In]
[Out]
\[ \int \frac {-1+2 x+2 x^2}{\left (1-x+3 x^2\right ) \sqrt {-x+x^4}} \, dx=\int \frac {2 x^{2} + 2 x - 1}{\sqrt {x \left (x - 1\right ) \left (x^{2} + x + 1\right )} \left (3 x^{2} - x + 1\right )}\, dx \]
[In]
[Out]
\[ \int \frac {-1+2 x+2 x^2}{\left (1-x+3 x^2\right ) \sqrt {-x+x^4}} \, dx=\int { \frac {2 \, x^{2} + 2 \, x - 1}{\sqrt {x^{4} - x} {\left (3 \, x^{2} - x + 1\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {-1+2 x+2 x^2}{\left (1-x+3 x^2\right ) \sqrt {-x+x^4}} \, dx=\int { \frac {2 \, x^{2} + 2 \, x - 1}{\sqrt {x^{4} - x} {\left (3 \, x^{2} - x + 1\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {-1+2 x+2 x^2}{\left (1-x+3 x^2\right ) \sqrt {-x+x^4}} \, dx=\int \frac {2\,x^2+2\,x-1}{\sqrt {x^4-x}\,\left (3\,x^2-x+1\right )} \,d x \]
[In]
[Out]