Integrand size = 29, antiderivative size = 129 \[ \int \frac {-1+x^4}{\sqrt {-x-x^2+x^3} \left (1+x^4\right )} \, dx=-\sqrt {\frac {1}{3} \left (1+i \sqrt {2}\right )} \arctan \left (\frac {\sqrt {1-i \sqrt {2}} \sqrt {-x-x^2+x^3}}{-1-x+x^2}\right )-\sqrt {\frac {1}{3} \left (1-i \sqrt {2}\right )} \arctan \left (\frac {\sqrt {1+i \sqrt {2}} \sqrt {-x-x^2+x^3}}{-1-x+x^2}\right ) \]
[Out]
Result contains higher order function than in optimal. Order 4 vs. order 3 in optimal.
Time = 1.28 (sec) , antiderivative size = 625, normalized size of antiderivative = 4.84, number of steps used = 27, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.276, Rules used = {2081, 6857, 730, 1112, 948, 174, 552, 551} \[ \int \frac {-1+x^4}{\sqrt {-x-x^2+x^3} \left (1+x^4\right )} \, dx=\frac {\sqrt {x} \sqrt {-\left (\left (1-\sqrt {5}\right ) x\right )-2} \sqrt {\frac {\left (1+\sqrt {5}\right ) x+2}{\left (1-\sqrt {5}\right ) x+2}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {2} \sqrt [4]{5} \sqrt {x}}{\sqrt {-\left (\left (1-\sqrt {5}\right ) x\right )-2}}\right ),\frac {1}{10} \left (5-\sqrt {5}\right )\right )}{\sqrt [4]{5} \sqrt {\frac {1}{\left (1-\sqrt {5}\right ) x+2}} \sqrt {x^3-x^2-x}}-\frac {\sqrt {3+\sqrt {5}} \sqrt {x} \sqrt {2 x+\sqrt {5}-1} \sqrt {1-\frac {2 x}{1+\sqrt {5}}} \operatorname {EllipticPi}\left (-\frac {1}{2} \sqrt [4]{-1} \left (1+\sqrt {5}\right ),\arcsin \left (\sqrt {\frac {2}{1+\sqrt {5}}} \sqrt {x}\right ),\frac {1}{2} \left (-3-\sqrt {5}\right )\right )}{2 \sqrt {x^3-x^2-x}}-\frac {\sqrt {3+\sqrt {5}} \sqrt {x} \sqrt {2 x+\sqrt {5}-1} \sqrt {1-\frac {2 x}{1+\sqrt {5}}} \operatorname {EllipticPi}\left (\frac {1}{2} \sqrt [4]{-1} \left (1+\sqrt {5}\right ),\arcsin \left (\sqrt {\frac {2}{1+\sqrt {5}}} \sqrt {x}\right ),\frac {1}{2} \left (-3-\sqrt {5}\right )\right )}{2 \sqrt {x^3-x^2-x}}-\frac {\sqrt {3+\sqrt {5}} \sqrt {x} \sqrt {2 x+\sqrt {5}-1} \sqrt {1-\frac {2 x}{1+\sqrt {5}}} \operatorname {EllipticPi}\left (-\frac {1}{2} (-1)^{3/4} \left (1+\sqrt {5}\right ),\arcsin \left (\sqrt {\frac {2}{1+\sqrt {5}}} \sqrt {x}\right ),\frac {1}{2} \left (-3-\sqrt {5}\right )\right )}{2 \sqrt {x^3-x^2-x}}-\frac {\sqrt {3+\sqrt {5}} \sqrt {x} \sqrt {2 x+\sqrt {5}-1} \sqrt {1-\frac {2 x}{1+\sqrt {5}}} \operatorname {EllipticPi}\left (\frac {1}{2} (-1)^{3/4} \left (1+\sqrt {5}\right ),\arcsin \left (\sqrt {\frac {2}{1+\sqrt {5}}} \sqrt {x}\right ),\frac {1}{2} \left (-3-\sqrt {5}\right )\right )}{2 \sqrt {x^3-x^2-x}} \]
[In]
[Out]
Rule 174
Rule 551
Rule 552
Rule 730
Rule 948
Rule 1112
Rule 2081
Rule 6857
Rubi steps \begin{align*} \text {integral}& = \frac {\left (\sqrt {x} \sqrt {-1-x+x^2}\right ) \int \frac {-1+x^4}{\sqrt {x} \sqrt {-1-x+x^2} \left (1+x^4\right )} \, dx}{\sqrt {-x-x^2+x^3}} \\ & = \frac {\left (\sqrt {x} \sqrt {-1-x+x^2}\right ) \int \left (\frac {1}{\sqrt {x} \sqrt {-1-x+x^2}}-\frac {2}{\sqrt {x} \sqrt {-1-x+x^2} \left (1+x^4\right )}\right ) \, dx}{\sqrt {-x-x^2+x^3}} \\ & = \frac {\left (\sqrt {x} \sqrt {-1-x+x^2}\right ) \int \frac {1}{\sqrt {x} \sqrt {-1-x+x^2}} \, dx}{\sqrt {-x-x^2+x^3}}-\frac {\left (2 \sqrt {x} \sqrt {-1-x+x^2}\right ) \int \frac {1}{\sqrt {x} \sqrt {-1-x+x^2} \left (1+x^4\right )} \, dx}{\sqrt {-x-x^2+x^3}} \\ & = -\frac {\left (2 \sqrt {x} \sqrt {-1-x+x^2}\right ) \int \left (\frac {i}{2 \sqrt {x} \left (i-x^2\right ) \sqrt {-1-x+x^2}}+\frac {i}{2 \sqrt {x} \left (i+x^2\right ) \sqrt {-1-x+x^2}}\right ) \, dx}{\sqrt {-x-x^2+x^3}}+\frac {\left (2 \sqrt {x} \sqrt {-1-x+x^2}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{\sqrt {-x-x^2+x^3}} \\ & = \frac {\sqrt {x} \sqrt {-2-\left (1-\sqrt {5}\right ) x} \sqrt {\frac {2+\left (1+\sqrt {5}\right ) x}{2+\left (1-\sqrt {5}\right ) x}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {2} \sqrt [4]{5} \sqrt {x}}{\sqrt {-2-\left (1-\sqrt {5}\right ) x}}\right ),\frac {1}{10} \left (5-\sqrt {5}\right )\right )}{\sqrt [4]{5} \sqrt {\frac {1}{2+\left (1-\sqrt {5}\right ) x}} \sqrt {-x-x^2+x^3}}-\frac {\left (i \sqrt {x} \sqrt {-1-x+x^2}\right ) \int \frac {1}{\sqrt {x} \left (i-x^2\right ) \sqrt {-1-x+x^2}} \, dx}{\sqrt {-x-x^2+x^3}}-\frac {\left (i \sqrt {x} \sqrt {-1-x+x^2}\right ) \int \frac {1}{\sqrt {x} \left (i+x^2\right ) \sqrt {-1-x+x^2}} \, dx}{\sqrt {-x-x^2+x^3}} \\ & = \frac {\sqrt {x} \sqrt {-2-\left (1-\sqrt {5}\right ) x} \sqrt {\frac {2+\left (1+\sqrt {5}\right ) x}{2+\left (1-\sqrt {5}\right ) x}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {2} \sqrt [4]{5} \sqrt {x}}{\sqrt {-2-\left (1-\sqrt {5}\right ) x}}\right ),\frac {1}{10} \left (5-\sqrt {5}\right )\right )}{\sqrt [4]{5} \sqrt {\frac {1}{2+\left (1-\sqrt {5}\right ) x}} \sqrt {-x-x^2+x^3}}-\frac {\left (i \sqrt {x} \sqrt {-1-x+x^2}\right ) \int \left (-\frac {(-1)^{3/4}}{2 \left (\sqrt [4]{-1}-x\right ) \sqrt {x} \sqrt {-1-x+x^2}}-\frac {(-1)^{3/4}}{2 \sqrt {x} \left (\sqrt [4]{-1}+x\right ) \sqrt {-1-x+x^2}}\right ) \, dx}{\sqrt {-x-x^2+x^3}}-\frac {\left (i \sqrt {x} \sqrt {-1-x+x^2}\right ) \int \left (-\frac {\sqrt [4]{-1}}{2 \left (-(-1)^{3/4}-x\right ) \sqrt {x} \sqrt {-1-x+x^2}}-\frac {\sqrt [4]{-1}}{2 \sqrt {x} \left (-(-1)^{3/4}+x\right ) \sqrt {-1-x+x^2}}\right ) \, dx}{\sqrt {-x-x^2+x^3}} \\ & = \frac {\sqrt {x} \sqrt {-2-\left (1-\sqrt {5}\right ) x} \sqrt {\frac {2+\left (1+\sqrt {5}\right ) x}{2+\left (1-\sqrt {5}\right ) x}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {2} \sqrt [4]{5} \sqrt {x}}{\sqrt {-2-\left (1-\sqrt {5}\right ) x}}\right ),\frac {1}{10} \left (5-\sqrt {5}\right )\right )}{\sqrt [4]{5} \sqrt {\frac {1}{2+\left (1-\sqrt {5}\right ) x}} \sqrt {-x-x^2+x^3}}-\frac {\left (\sqrt [4]{-1} \sqrt {x} \sqrt {-1-x+x^2}\right ) \int \frac {1}{\left (\sqrt [4]{-1}-x\right ) \sqrt {x} \sqrt {-1-x+x^2}} \, dx}{2 \sqrt {-x-x^2+x^3}}-\frac {\left (\sqrt [4]{-1} \sqrt {x} \sqrt {-1-x+x^2}\right ) \int \frac {1}{\sqrt {x} \left (\sqrt [4]{-1}+x\right ) \sqrt {-1-x+x^2}} \, dx}{2 \sqrt {-x-x^2+x^3}}+\frac {\left ((-1)^{3/4} \sqrt {x} \sqrt {-1-x+x^2}\right ) \int \frac {1}{\left (-(-1)^{3/4}-x\right ) \sqrt {x} \sqrt {-1-x+x^2}} \, dx}{2 \sqrt {-x-x^2+x^3}}+\frac {\left ((-1)^{3/4} \sqrt {x} \sqrt {-1-x+x^2}\right ) \int \frac {1}{\sqrt {x} \left (-(-1)^{3/4}+x\right ) \sqrt {-1-x+x^2}} \, dx}{2 \sqrt {-x-x^2+x^3}} \\ & = \frac {\sqrt {x} \sqrt {-2-\left (1-\sqrt {5}\right ) x} \sqrt {\frac {2+\left (1+\sqrt {5}\right ) x}{2+\left (1-\sqrt {5}\right ) x}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {2} \sqrt [4]{5} \sqrt {x}}{\sqrt {-2-\left (1-\sqrt {5}\right ) x}}\right ),\frac {1}{10} \left (5-\sqrt {5}\right )\right )}{\sqrt [4]{5} \sqrt {\frac {1}{2+\left (1-\sqrt {5}\right ) x}} \sqrt {-x-x^2+x^3}}-\frac {\left (\sqrt [4]{-1} \sqrt {x} \sqrt {-1-\sqrt {5}+2 x} \sqrt {-1+\sqrt {5}+2 x}\right ) \int \frac {1}{\left (\sqrt [4]{-1}-x\right ) \sqrt {x} \sqrt {-1-\sqrt {5}+2 x} \sqrt {-1+\sqrt {5}+2 x}} \, dx}{2 \sqrt {-x-x^2+x^3}}-\frac {\left (\sqrt [4]{-1} \sqrt {x} \sqrt {-1-\sqrt {5}+2 x} \sqrt {-1+\sqrt {5}+2 x}\right ) \int \frac {1}{\sqrt {x} \left (\sqrt [4]{-1}+x\right ) \sqrt {-1-\sqrt {5}+2 x} \sqrt {-1+\sqrt {5}+2 x}} \, dx}{2 \sqrt {-x-x^2+x^3}}+\frac {\left ((-1)^{3/4} \sqrt {x} \sqrt {-1-\sqrt {5}+2 x} \sqrt {-1+\sqrt {5}+2 x}\right ) \int \frac {1}{\left (-(-1)^{3/4}-x\right ) \sqrt {x} \sqrt {-1-\sqrt {5}+2 x} \sqrt {-1+\sqrt {5}+2 x}} \, dx}{2 \sqrt {-x-x^2+x^3}}+\frac {\left ((-1)^{3/4} \sqrt {x} \sqrt {-1-\sqrt {5}+2 x} \sqrt {-1+\sqrt {5}+2 x}\right ) \int \frac {1}{\sqrt {x} \left (-(-1)^{3/4}+x\right ) \sqrt {-1-\sqrt {5}+2 x} \sqrt {-1+\sqrt {5}+2 x}} \, dx}{2 \sqrt {-x-x^2+x^3}} \\ & = \frac {\sqrt {x} \sqrt {-2-\left (1-\sqrt {5}\right ) x} \sqrt {\frac {2+\left (1+\sqrt {5}\right ) x}{2+\left (1-\sqrt {5}\right ) x}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {2} \sqrt [4]{5} \sqrt {x}}{\sqrt {-2-\left (1-\sqrt {5}\right ) x}}\right ),\frac {1}{10} \left (5-\sqrt {5}\right )\right )}{\sqrt [4]{5} \sqrt {\frac {1}{2+\left (1-\sqrt {5}\right ) x}} \sqrt {-x-x^2+x^3}}+\frac {\left (\sqrt [4]{-1} \sqrt {x} \sqrt {-1-\sqrt {5}+2 x} \sqrt {-1+\sqrt {5}+2 x}\right ) \text {Subst}\left (\int \frac {1}{\left (-\sqrt [4]{-1}-x^2\right ) \sqrt {-1-\sqrt {5}+2 x^2} \sqrt {-1+\sqrt {5}+2 x^2}} \, dx,x,\sqrt {x}\right )}{\sqrt {-x-x^2+x^3}}+\frac {\left (\sqrt [4]{-1} \sqrt {x} \sqrt {-1-\sqrt {5}+2 x} \sqrt {-1+\sqrt {5}+2 x}\right ) \text {Subst}\left (\int \frac {1}{\left (-\sqrt [4]{-1}+x^2\right ) \sqrt {-1-\sqrt {5}+2 x^2} \sqrt {-1+\sqrt {5}+2 x^2}} \, dx,x,\sqrt {x}\right )}{\sqrt {-x-x^2+x^3}}-\frac {\left ((-1)^{3/4} \sqrt {x} \sqrt {-1-\sqrt {5}+2 x} \sqrt {-1+\sqrt {5}+2 x}\right ) \text {Subst}\left (\int \frac {1}{\left ((-1)^{3/4}-x^2\right ) \sqrt {-1-\sqrt {5}+2 x^2} \sqrt {-1+\sqrt {5}+2 x^2}} \, dx,x,\sqrt {x}\right )}{\sqrt {-x-x^2+x^3}}-\frac {\left ((-1)^{3/4} \sqrt {x} \sqrt {-1-\sqrt {5}+2 x} \sqrt {-1+\sqrt {5}+2 x}\right ) \text {Subst}\left (\int \frac {1}{\left ((-1)^{3/4}+x^2\right ) \sqrt {-1-\sqrt {5}+2 x^2} \sqrt {-1+\sqrt {5}+2 x^2}} \, dx,x,\sqrt {x}\right )}{\sqrt {-x-x^2+x^3}} \\ & = \frac {\sqrt {x} \sqrt {-2-\left (1-\sqrt {5}\right ) x} \sqrt {\frac {2+\left (1+\sqrt {5}\right ) x}{2+\left (1-\sqrt {5}\right ) x}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {2} \sqrt [4]{5} \sqrt {x}}{\sqrt {-2-\left (1-\sqrt {5}\right ) x}}\right ),\frac {1}{10} \left (5-\sqrt {5}\right )\right )}{\sqrt [4]{5} \sqrt {\frac {1}{2+\left (1-\sqrt {5}\right ) x}} \sqrt {-x-x^2+x^3}}+\frac {\left (\sqrt [4]{-1} \sqrt {x} \sqrt {-1+\sqrt {5}+2 x} \sqrt {1-\frac {2 x}{1+\sqrt {5}}}\right ) \text {Subst}\left (\int \frac {1}{\left (-\sqrt [4]{-1}-x^2\right ) \sqrt {-1+\sqrt {5}+2 x^2} \sqrt {1+\frac {2 x^2}{-1-\sqrt {5}}}} \, dx,x,\sqrt {x}\right )}{\sqrt {-x-x^2+x^3}}+\frac {\left (\sqrt [4]{-1} \sqrt {x} \sqrt {-1+\sqrt {5}+2 x} \sqrt {1-\frac {2 x}{1+\sqrt {5}}}\right ) \text {Subst}\left (\int \frac {1}{\left (-\sqrt [4]{-1}+x^2\right ) \sqrt {-1+\sqrt {5}+2 x^2} \sqrt {1+\frac {2 x^2}{-1-\sqrt {5}}}} \, dx,x,\sqrt {x}\right )}{\sqrt {-x-x^2+x^3}}-\frac {\left ((-1)^{3/4} \sqrt {x} \sqrt {-1+\sqrt {5}+2 x} \sqrt {1-\frac {2 x}{1+\sqrt {5}}}\right ) \text {Subst}\left (\int \frac {1}{\left ((-1)^{3/4}-x^2\right ) \sqrt {-1+\sqrt {5}+2 x^2} \sqrt {1+\frac {2 x^2}{-1-\sqrt {5}}}} \, dx,x,\sqrt {x}\right )}{\sqrt {-x-x^2+x^3}}-\frac {\left ((-1)^{3/4} \sqrt {x} \sqrt {-1+\sqrt {5}+2 x} \sqrt {1-\frac {2 x}{1+\sqrt {5}}}\right ) \text {Subst}\left (\int \frac {1}{\left ((-1)^{3/4}+x^2\right ) \sqrt {-1+\sqrt {5}+2 x^2} \sqrt {1+\frac {2 x^2}{-1-\sqrt {5}}}} \, dx,x,\sqrt {x}\right )}{\sqrt {-x-x^2+x^3}} \\ & = \frac {\sqrt {x} \sqrt {-2-\left (1-\sqrt {5}\right ) x} \sqrt {\frac {2+\left (1+\sqrt {5}\right ) x}{2+\left (1-\sqrt {5}\right ) x}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {2} \sqrt [4]{5} \sqrt {x}}{\sqrt {-2-\left (1-\sqrt {5}\right ) x}}\right ),\frac {1}{10} \left (5-\sqrt {5}\right )\right )}{\sqrt [4]{5} \sqrt {\frac {1}{2+\left (1-\sqrt {5}\right ) x}} \sqrt {-x-x^2+x^3}}-\frac {\sqrt {3+\sqrt {5}} \sqrt {x} \sqrt {-1+\sqrt {5}+2 x} \sqrt {1-\frac {2 x}{1+\sqrt {5}}} \operatorname {EllipticPi}\left (-\frac {1}{2} \sqrt [4]{-1} \left (1+\sqrt {5}\right ),\arcsin \left (\sqrt {\frac {2}{1+\sqrt {5}}} \sqrt {x}\right ),\frac {1}{2} \left (-3-\sqrt {5}\right )\right )}{2 \sqrt {-x-x^2+x^3}}-\frac {\sqrt {3+\sqrt {5}} \sqrt {x} \sqrt {-1+\sqrt {5}+2 x} \sqrt {1-\frac {2 x}{1+\sqrt {5}}} \operatorname {EllipticPi}\left (\frac {1}{2} \sqrt [4]{-1} \left (1+\sqrt {5}\right ),\arcsin \left (\sqrt {\frac {2}{1+\sqrt {5}}} \sqrt {x}\right ),\frac {1}{2} \left (-3-\sqrt {5}\right )\right )}{2 \sqrt {-x-x^2+x^3}}-\frac {\sqrt {3+\sqrt {5}} \sqrt {x} \sqrt {-1+\sqrt {5}+2 x} \sqrt {1-\frac {2 x}{1+\sqrt {5}}} \operatorname {EllipticPi}\left (-\frac {1}{2} (-1)^{3/4} \left (1+\sqrt {5}\right ),\arcsin \left (\sqrt {\frac {2}{1+\sqrt {5}}} \sqrt {x}\right ),\frac {1}{2} \left (-3-\sqrt {5}\right )\right )}{2 \sqrt {-x-x^2+x^3}}-\frac {\sqrt {3+\sqrt {5}} \sqrt {x} \sqrt {-1+\sqrt {5}+2 x} \sqrt {1-\frac {2 x}{1+\sqrt {5}}} \operatorname {EllipticPi}\left (\frac {1}{2} (-1)^{3/4} \left (1+\sqrt {5}\right ),\arcsin \left (\sqrt {\frac {2}{1+\sqrt {5}}} \sqrt {x}\right ),\frac {1}{2} \left (-3-\sqrt {5}\right )\right )}{2 \sqrt {-x-x^2+x^3}} \\ \end{align*}
Time = 0.73 (sec) , antiderivative size = 139, normalized size of antiderivative = 1.08 \[ \int \frac {-1+x^4}{\sqrt {-x-x^2+x^3} \left (1+x^4\right )} \, dx=-\frac {\sqrt {x} \sqrt {-1-x+x^2} \left (\sqrt {1+i \sqrt {2}} \arctan \left (\frac {\sqrt {1-i \sqrt {2}} \sqrt {x}}{\sqrt {-1-x+x^2}}\right )+\sqrt {1-i \sqrt {2}} \arctan \left (\frac {\sqrt {1+i \sqrt {2}} \sqrt {x}}{\sqrt {-1-x+x^2}}\right )\right )}{\sqrt {3} \sqrt {x \left (-1-x+x^2\right )}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(208\) vs. \(2(97)=194\).
Time = 4.13 (sec) , antiderivative size = 209, normalized size of antiderivative = 1.62
method | result | size |
default | \(\frac {\sqrt {3}\, \sqrt {2 \sqrt {3}+2}\, \left (\ln \left (\frac {x \sqrt {3}-\sqrt {x \left (x^{2}-x -1\right )}\, \sqrt {2 \sqrt {3}-2}+x^{2}-x -1}{x}\right )-\ln \left (\frac {x \sqrt {3}+\sqrt {x \left (x^{2}-x -1\right )}\, \sqrt {2 \sqrt {3}-2}+x^{2}-x -1}{x}\right )\right ) \sqrt {2 \sqrt {3}-2}-4 \left (3+\sqrt {3}\right ) \left (-\arctan \left (\frac {\sqrt {2 \sqrt {3}-2}\, x +2 \sqrt {x \left (x^{2}-x -1\right )}}{x \sqrt {2 \sqrt {3}+2}}\right )+\arctan \left (\frac {\sqrt {2 \sqrt {3}-2}\, x -2 \sqrt {x \left (x^{2}-x -1\right )}}{x \sqrt {2 \sqrt {3}+2}}\right )\right )}{12 \sqrt {2 \sqrt {3}+2}}\) | \(209\) |
pseudoelliptic | \(\frac {\sqrt {3}\, \sqrt {2 \sqrt {3}+2}\, \left (\ln \left (\frac {x \sqrt {3}-\sqrt {x \left (x^{2}-x -1\right )}\, \sqrt {2 \sqrt {3}-2}+x^{2}-x -1}{x}\right )-\ln \left (\frac {x \sqrt {3}+\sqrt {x \left (x^{2}-x -1\right )}\, \sqrt {2 \sqrt {3}-2}+x^{2}-x -1}{x}\right )\right ) \sqrt {2 \sqrt {3}-2}-4 \left (3+\sqrt {3}\right ) \left (-\arctan \left (\frac {\sqrt {2 \sqrt {3}-2}\, x +2 \sqrt {x \left (x^{2}-x -1\right )}}{x \sqrt {2 \sqrt {3}+2}}\right )+\arctan \left (\frac {\sqrt {2 \sqrt {3}-2}\, x -2 \sqrt {x \left (x^{2}-x -1\right )}}{x \sqrt {2 \sqrt {3}+2}}\right )\right )}{12 \sqrt {2 \sqrt {3}+2}}\) | \(209\) |
elliptic | \(\frac {2 \left (\frac {\sqrt {5}}{2}-\frac {1}{2}\right ) \sqrt {\frac {x -\frac {1}{2}+\frac {\sqrt {5}}{2}}{\frac {\sqrt {5}}{2}-\frac {1}{2}}}\, \sqrt {-5 \left (x -\frac {1}{2}-\frac {\sqrt {5}}{2}\right ) \sqrt {5}}\, \sqrt {-\frac {x}{\frac {\sqrt {5}}{2}-\frac {1}{2}}}\, \operatorname {EllipticF}\left (\sqrt {\frac {x -\frac {1}{2}+\frac {\sqrt {5}}{2}}{\frac {\sqrt {5}}{2}-\frac {1}{2}}}, \frac {\sqrt {5}\, \sqrt {\left (\frac {\sqrt {5}}{2}-\frac {1}{2}\right ) \sqrt {5}}}{5}\right )}{5 \sqrt {x^{3}-x^{2}-x}}+\frac {5^{\frac {3}{4}} \left (\munderset {\underline {\hspace {1.25 ex}}\alpha =\operatorname {RootOf}\left (\textit {\_Z}^{4}+1\right )}{\sum }\frac {\underline {\hspace {1.25 ex}}\alpha \left (\sqrt {5}-1\right ) \sqrt {\frac {-1+2 x +\sqrt {5}}{\sqrt {5}-1}}\, \sqrt {1-2 x +\sqrt {5}}\, \sqrt {-\frac {x}{\sqrt {5}-1}}\, \left (3 \underline {\hspace {1.25 ex}}\alpha ^{3}-\underline {\hspace {1.25 ex}}\alpha ^{2}+2 \underline {\hspace {1.25 ex}}\alpha +1+\sqrt {5}\, \left (\underline {\hspace {1.25 ex}}\alpha ^{3}-\underline {\hspace {1.25 ex}}\alpha ^{2}-1\right )\right ) \operatorname {EllipticPi}\left (\sqrt {\frac {x -\frac {1}{2}+\frac {\sqrt {5}}{2}}{\frac {\sqrt {5}}{2}-\frac {1}{2}}}, -\frac {\underline {\hspace {1.25 ex}}\alpha ^{3} \sqrt {5}}{6}-\frac {\underline {\hspace {1.25 ex}}\alpha ^{3}}{6}+\frac {\underline {\hspace {1.25 ex}}\alpha ^{2}}{3}+\frac {\underline {\hspace {1.25 ex}}\alpha }{6}-\frac {\sqrt {5}}{6}+\frac {1}{2}-\frac {\underline {\hspace {1.25 ex}}\alpha \sqrt {5}}{6}, \frac {\sqrt {5}\, \sqrt {\left (\frac {\sqrt {5}}{2}-\frac {1}{2}\right ) \sqrt {5}}}{5}\right )}{\sqrt {x \left (x^{2}-x -1\right )}}\right )}{60}\) | \(288\) |
trager | \(\frac {\operatorname {RootOf}\left (\textit {\_Z}^{2}+36 \operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right )^{2}+6\right ) \ln \left (\frac {-496 \operatorname {RootOf}\left (\textit {\_Z}^{2}+36 \operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right )^{2}+6\right ) \operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right )^{4} x^{2}+496 \operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right )^{4} \operatorname {RootOf}\left (\textit {\_Z}^{2}+36 \operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right )^{2}+6\right )-120 \operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right )^{2} \operatorname {RootOf}\left (\textit {\_Z}^{2}+36 \operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right )^{2}+6\right ) x^{2}+248 \operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right )^{2} \operatorname {RootOf}\left (\textit {\_Z}^{2}+36 \operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right )^{2}+6\right ) x +224 \operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right )^{2} \sqrt {x^{3}-x^{2}-x}+120 \operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right )^{2} \operatorname {RootOf}\left (\textit {\_Z}^{2}+36 \operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right )^{2}+6\right )+\operatorname {RootOf}\left (\textit {\_Z}^{2}+36 \operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right )^{2}+6\right ) x^{2}-2 \operatorname {RootOf}\left (\textit {\_Z}^{2}+36 \operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right )^{2}+6\right ) x -68 \sqrt {x^{3}-x^{2}-x}-\operatorname {RootOf}\left (\textit {\_Z}^{2}+36 \operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right )^{2}+6\right )}{12 x^{2} \operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right )^{2}-12 \operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right )^{2}+x^{2}+2 x -1}\right )}{6}+\operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right ) \ln \left (-\frac {4464 \operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right )^{5} x^{2}-4464 \operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right )^{5}+408 \operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right )^{3} x^{2}+2232 \operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right )^{3} x +336 \operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right )^{2} \sqrt {x^{3}-x^{2}-x}-408 \operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right )^{3}-65 \operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right ) x^{2}+390 \operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right ) x +158 \sqrt {x^{3}-x^{2}-x}+65 \operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right )}{12 x^{2} \operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right )^{2}-12 \operatorname {RootOf}\left (48 \textit {\_Z}^{4}+8 \textit {\_Z}^{2}+1\right )^{2}+x^{2}-2 x -1}\right )\) | \(662\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 451 vs. \(2 (93) = 186\).
Time = 0.27 (sec) , antiderivative size = 451, normalized size of antiderivative = 3.50 \[ \int \frac {-1+x^4}{\sqrt {-x-x^2+x^3} \left (1+x^4\right )} \, dx=-\frac {1}{12} \, \sqrt {3} \sqrt {i \, \sqrt {2} - 1} \log \left (\frac {3 \, x^{4} - 6 \, x^{3} - 2 \, \sqrt {3} \sqrt {x^{3} - x^{2} - x} {\left (x^{2} + \sqrt {2} {\left (i \, x^{2} - i \, x - i\right )} + 2 \, x - 1\right )} \sqrt {i \, \sqrt {2} - 1} - 12 \, x^{2} - 6 \, \sqrt {2} {\left (i \, x^{3} - i \, x^{2} - i \, x\right )} + 6 \, x + 3}{x^{4} + 1}\right ) + \frac {1}{12} \, \sqrt {3} \sqrt {i \, \sqrt {2} - 1} \log \left (\frac {3 \, x^{4} - 6 \, x^{3} + 2 \, \sqrt {3} \sqrt {x^{3} - x^{2} - x} {\left (x^{2} - \sqrt {2} {\left (-i \, x^{2} + i \, x + i\right )} + 2 \, x - 1\right )} \sqrt {i \, \sqrt {2} - 1} - 12 \, x^{2} - 6 \, \sqrt {2} {\left (i \, x^{3} - i \, x^{2} - i \, x\right )} + 6 \, x + 3}{x^{4} + 1}\right ) + \frac {1}{12} \, \sqrt {3} \sqrt {-i \, \sqrt {2} - 1} \log \left (\frac {3 \, x^{4} - 6 \, x^{3} + 2 \, \sqrt {3} \sqrt {x^{3} - x^{2} - x} {\left (x^{2} - \sqrt {2} {\left (i \, x^{2} - i \, x - i\right )} + 2 \, x - 1\right )} \sqrt {-i \, \sqrt {2} - 1} - 12 \, x^{2} - 6 \, \sqrt {2} {\left (-i \, x^{3} + i \, x^{2} + i \, x\right )} + 6 \, x + 3}{x^{4} + 1}\right ) - \frac {1}{12} \, \sqrt {3} \sqrt {-i \, \sqrt {2} - 1} \log \left (\frac {3 \, x^{4} - 6 \, x^{3} - 2 \, \sqrt {3} \sqrt {x^{3} - x^{2} - x} {\left (x^{2} + \sqrt {2} {\left (-i \, x^{2} + i \, x + i\right )} + 2 \, x - 1\right )} \sqrt {-i \, \sqrt {2} - 1} - 12 \, x^{2} - 6 \, \sqrt {2} {\left (-i \, x^{3} + i \, x^{2} + i \, x\right )} + 6 \, x + 3}{x^{4} + 1}\right ) \]
[In]
[Out]
\[ \int \frac {-1+x^4}{\sqrt {-x-x^2+x^3} \left (1+x^4\right )} \, dx=\int \frac {\left (x - 1\right ) \left (x + 1\right ) \left (x^{2} + 1\right )}{\sqrt {x \left (x^{2} - x - 1\right )} \left (x^{4} + 1\right )}\, dx \]
[In]
[Out]
\[ \int \frac {-1+x^4}{\sqrt {-x-x^2+x^3} \left (1+x^4\right )} \, dx=\int { \frac {x^{4} - 1}{{\left (x^{4} + 1\right )} \sqrt {x^{3} - x^{2} - x}} \,d x } \]
[In]
[Out]
\[ \int \frac {-1+x^4}{\sqrt {-x-x^2+x^3} \left (1+x^4\right )} \, dx=\int { \frac {x^{4} - 1}{{\left (x^{4} + 1\right )} \sqrt {x^{3} - x^{2} - x}} \,d x } \]
[In]
[Out]
Time = 0.06 (sec) , antiderivative size = 682, normalized size of antiderivative = 5.29 \[ \int \frac {-1+x^4}{\sqrt {-x-x^2+x^3} \left (1+x^4\right )} \, dx=\text {Too large to display} \]
[In]
[Out]