Integrand size = 24, antiderivative size = 125 \[ \int \frac {\sqrt {-x-x^2+x^3}}{-1+x^4} \, dx=\frac {1}{2} \arctan \left (\frac {\sqrt {-x-x^2+x^3}}{-1-x+x^2}\right )-\frac {1}{4} \sqrt {1-2 i} \arctan \left (\frac {\sqrt {1-2 i} \sqrt {-x-x^2+x^3}}{-1-x+x^2}\right )-\frac {1}{4} \sqrt {1+2 i} \arctan \left (\frac {\sqrt {1+2 i} \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 = 3.34 (sec) , antiderivative size = 1650, normalized size of antiderivative = 13.20, number of steps used = 55, number of rules used = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.792, Rules used = {2081, 6857, 932, 6865, 1730, 1201, 1112, 1198, 1228, 1470, 554, 432, 430, 552, 551, 1726, 1714, 1712, 211} \[ \int \frac {\sqrt {-x-x^2+x^3}}{-1+x^4} \, dx=-\frac {\sqrt {1-2 i} \sqrt {x^3-x^2-x} \arctan \left (\frac {\sqrt {1-2 i} \sqrt {x}}{\sqrt {x^2-x-1}}\right )}{4 \sqrt {x} \sqrt {x^2-x-1}}-\frac {\sqrt {1+2 i} \sqrt {x^3-x^2-x} \arctan \left (\frac {\sqrt {1+2 i} \sqrt {x}}{\sqrt {x^2-x-1}}\right )}{4 \sqrt {x} \sqrt {x^2-x-1}}+\frac {\left (1+\sqrt {5}\right ) \sqrt {2 x+\sqrt {5}-1} \sqrt {1-\frac {2 x}{1+\sqrt {5}}} \sqrt {x^3-x^2-x} \operatorname {EllipticF}\left (\arcsin \left (\sqrt {\frac {2}{1+\sqrt {5}}} \sqrt {x}\right ),\frac {1}{2} \left (-3-\sqrt {5}\right )\right )}{2 \sqrt {2} \left (3+\sqrt {5}\right ) \sqrt {x} \left (-x^2+x+1\right )}+\frac {\left (1+\sqrt {5}\right ) \sqrt {2 x+\sqrt {5}-1} \sqrt {1-\frac {2 x}{1+\sqrt {5}}} \sqrt {x^3-x^2-x} \operatorname {EllipticF}\left (\arcsin \left (\sqrt {\frac {2}{1+\sqrt {5}}} \sqrt {x}\right ),\frac {1}{2} \left (-3-\sqrt {5}\right )\right )}{2 \sqrt {2} \left (1-\sqrt {5}\right ) \sqrt {x} \left (-x^2+x+1\right )}-\frac {\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}} \sqrt {x^3-x^2-x} \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 )}{2 \sqrt [4]{5} \left (3+\sqrt {5}\right ) \sqrt {x} \sqrt {\frac {1}{\left (1-\sqrt {5}\right ) x+2}} \left (-x^2+x+1\right )}+\frac {\left (\frac {1}{8}+\frac {i}{24}\right ) \left ((1+2 i)+\sqrt {5}\right ) \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}} \sqrt {x^3-x^2-x} \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 {x} \sqrt {\frac {1}{\left (1-\sqrt {5}\right ) x+2}} \left (-x^2+x+1\right )}+\frac {\left (\frac {1}{8}-\frac {i}{24}\right ) \left ((1-2 i)+\sqrt {5}\right ) \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}} \sqrt {x^3-x^2-x} \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 {x} \sqrt {\frac {1}{\left (1-\sqrt {5}\right ) x+2}} \left (-x^2+x+1\right )}+\frac {\left (1-\sqrt {5}\right ) \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}} \sqrt {x^3-x^2-x} \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 )}{4 \sqrt [4]{5} \sqrt {x} \sqrt {\frac {1}{\left (1-\sqrt {5}\right ) x+2}} \left (-x^2+x+1\right )}-\frac {\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}} \sqrt {x^3-x^2-x} \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 )}{2 \sqrt [4]{5} \left (1-\sqrt {5}\right ) \sqrt {x} \sqrt {\frac {1}{\left (1-\sqrt {5}\right ) x+2}} \left (-x^2+x+1\right )}-\frac {\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}} \sqrt {x^3-x^2-x} \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 )}{12 \sqrt [4]{5} \sqrt {x} \sqrt {\frac {1}{\left (1-\sqrt {5}\right ) x+2}} \left (-x^2+x+1\right )}-\frac {\left (2+\sqrt {5}\right ) \sqrt {2 x+\sqrt {5}-1} \sqrt {1-\frac {2 x}{1+\sqrt {5}}} \sqrt {x^3-x^2-x} \operatorname {EllipticPi}\left (\frac {1}{2} \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 )}{\sqrt {2} \left (3+\sqrt {5}\right ) \sqrt {x} \left (-x^2+x+1\right )}+\frac {\sqrt {2 x+\sqrt {5}-1} \sqrt {1-\frac {2 x}{1+\sqrt {5}}} \sqrt {x^3-x^2-x} \operatorname {EllipticPi}\left (\frac {1}{2} \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 )}{\sqrt {2} \left (1-\sqrt {5}\right ) \sqrt {x} \left (-x^2+x+1\right )} \]
[In]
[Out]
Rule 211
Rule 430
Rule 432
Rule 551
Rule 552
Rule 554
Rule 932
Rule 1112
Rule 1198
Rule 1201
Rule 1228
Rule 1470
Rule 1712
Rule 1714
Rule 1726
Rule 1730
Rule 2081
Rule 6857
Rule 6865
Rubi steps \begin{align*} \text {integral}& = \frac {\sqrt {-x-x^2+x^3} \int \frac {\sqrt {x} \sqrt {-1-x+x^2}}{-1+x^4} \, dx}{\sqrt {x} \sqrt {-1-x+x^2}} \\ & = \frac {\sqrt {-x-x^2+x^3} \int \left (-\frac {\sqrt {x} \sqrt {-1-x+x^2}}{2 \left (1-x^2\right )}-\frac {\sqrt {x} \sqrt {-1-x+x^2}}{2 \left (1+x^2\right )}\right ) \, dx}{\sqrt {x} \sqrt {-1-x+x^2}} \\ & = -\frac {\sqrt {-x-x^2+x^3} \int \frac {\sqrt {x} \sqrt {-1-x+x^2}}{1-x^2} \, dx}{2 \sqrt {x} \sqrt {-1-x+x^2}}-\frac {\sqrt {-x-x^2+x^3} \int \frac {\sqrt {x} \sqrt {-1-x+x^2}}{1+x^2} \, dx}{2 \sqrt {x} \sqrt {-1-x+x^2}} \\ & = -\frac {\sqrt {-x-x^2+x^3} \int \left (\frac {i \sqrt {x} \sqrt {-1-x+x^2}}{2 (i-x)}+\frac {i \sqrt {x} \sqrt {-1-x+x^2}}{2 (i+x)}\right ) \, dx}{2 \sqrt {x} \sqrt {-1-x+x^2}}-\frac {\sqrt {-x-x^2+x^3} \int \left (\frac {\sqrt {x} \sqrt {-1-x+x^2}}{2 (1-x)}+\frac {\sqrt {x} \sqrt {-1-x+x^2}}{2 (1+x)}\right ) \, dx}{2 \sqrt {x} \sqrt {-1-x+x^2}} \\ & = -\frac {\left (i \sqrt {-x-x^2+x^3}\right ) \int \frac {\sqrt {x} \sqrt {-1-x+x^2}}{i-x} \, dx}{4 \sqrt {x} \sqrt {-1-x+x^2}}-\frac {\left (i \sqrt {-x-x^2+x^3}\right ) \int \frac {\sqrt {x} \sqrt {-1-x+x^2}}{i+x} \, dx}{4 \sqrt {x} \sqrt {-1-x+x^2}}-\frac {\sqrt {-x-x^2+x^3} \int \frac {\sqrt {x} \sqrt {-1-x+x^2}}{1-x} \, dx}{4 \sqrt {x} \sqrt {-1-x+x^2}}-\frac {\sqrt {-x-x^2+x^3} \int \frac {\sqrt {x} \sqrt {-1-x+x^2}}{1+x} \, dx}{4 \sqrt {x} \sqrt {-1-x+x^2}} \\ & = -\frac {\left (i \sqrt {-x-x^2+x^3}\right ) \int \frac {-i-(2+2 i) x-(1-3 i) x^2}{(i-x) \sqrt {x} \sqrt {-1-x+x^2}} \, dx}{12 \sqrt {x} \sqrt {-1-x+x^2}}+\frac {\left (i \sqrt {-x-x^2+x^3}\right ) \int \frac {-i+(2-2 i) x+(1+3 i) x^2}{\sqrt {x} (i+x) \sqrt {-1-x+x^2}} \, dx}{12 \sqrt {x} \sqrt {-1-x+x^2}}-\frac {\sqrt {-x-x^2+x^3} \int \frac {-1-4 x+2 x^2}{(1-x) \sqrt {x} \sqrt {-1-x+x^2}} \, dx}{12 \sqrt {x} \sqrt {-1-x+x^2}}+\frac {\sqrt {-x-x^2+x^3} \int \frac {-1+4 x^2}{\sqrt {x} (1+x) \sqrt {-1-x+x^2}} \, dx}{12 \sqrt {x} \sqrt {-1-x+x^2}} \\ & = -\frac {\left (i \sqrt {-x-x^2+x^3}\right ) \text {Subst}\left (\int \frac {-i-(2+2 i) x^2-(1-3 i) x^4}{\left (i-x^2\right ) \sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{6 \sqrt {x} \sqrt {-1-x+x^2}}+\frac {\left (i \sqrt {-x-x^2+x^3}\right ) \text {Subst}\left (\int \frac {-i+(2-2 i) x^2+(1+3 i) x^4}{\left (i+x^2\right ) \sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{6 \sqrt {x} \sqrt {-1-x+x^2}}-\frac {\sqrt {-x-x^2+x^3} \text {Subst}\left (\int \frac {-1-4 x^2+2 x^4}{\left (1-x^2\right ) \sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{6 \sqrt {x} \sqrt {-1-x+x^2}}+\frac {\sqrt {-x-x^2+x^3} \text {Subst}\left (\int \frac {-1+4 x^4}{\left (1+x^2\right ) \sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{6 \sqrt {x} \sqrt {-1-x+x^2}} \\ & = -\frac {\left (i \sqrt {-x-x^2+x^3}\right ) \text {Subst}\left (\int \frac {(1-4 i)-(2+2 i) x^2}{\left (i-x^2\right ) \sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{6 \sqrt {x} \sqrt {-1-x+x^2}}+\frac {\left (i \sqrt {-x-x^2+x^3}\right ) \text {Subst}\left (\int \frac {(-1-4 i)+(2-2 i) x^2}{\left (i+x^2\right ) \sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{6 \sqrt {x} \sqrt {-1-x+x^2}}-\frac {\sqrt {-x-x^2+x^3} \text {Subst}\left (\int \frac {4-4 x^2}{\sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{6 \sqrt {x} \sqrt {-1-x+x^2}}+\frac {\sqrt {-x-x^2+x^3} \text {Subst}\left (\int \frac {-2+2 x^2}{\sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{6 \sqrt {x} \sqrt {-1-x+x^2}}+\frac {\sqrt {-x-x^2+x^3} \text {Subst}\left (\int \frac {1}{\left (1-x^2\right ) \sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{2 \sqrt {x} \sqrt {-1-x+x^2}}+\frac {\sqrt {-x-x^2+x^3} \text {Subst}\left (\int \frac {1}{\left (1+x^2\right ) \sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{2 \sqrt {x} \sqrt {-1-x+x^2}}+\frac {\left (\left (\frac {1}{2}-\frac {i}{6}\right ) \sqrt {-x-x^2+x^3}\right ) \text {Subst}\left (\int \frac {i-x^2}{\sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{\sqrt {x} \sqrt {-1-x+x^2}}-\frac {\left (\left (\frac {1}{2}+\frac {i}{6}\right ) \sqrt {-x-x^2+x^3}\right ) \text {Subst}\left (\int \frac {i+x^2}{\sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{\sqrt {x} \sqrt {-1-x+x^2}} \\ & = -\frac {\left (\left (\frac {1}{4}-\frac {i}{12}\right ) \sqrt {-x-x^2+x^3}\right ) \text {Subst}\left (\int \frac {-1-\sqrt {5}+2 x^2}{\sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{\sqrt {x} \sqrt {-1-x+x^2}}+-\frac {\left (\left (\frac {1}{4}+\frac {i}{2}\right ) \sqrt {-x-x^2+x^3}\right ) \text {Subst}\left (\int \frac {i-x^2}{\left (i+x^2\right ) \sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{\sqrt {x} \sqrt {-1-x+x^2}}--\frac {\left (\left (\frac {1}{12}+\frac {i}{6}\right ) \sqrt {-x-x^2+x^3}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{\sqrt {x} \sqrt {-1-x+x^2}}+\frac {\left (\left (\frac {1}{12}-\frac {i}{6}\right ) \sqrt {-x-x^2+x^3}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{\sqrt {x} \sqrt {-1-x+x^2}}+\frac {\sqrt {-x-x^2+x^3} \text {Subst}\left (\int \frac {-1-\sqrt {5}+2 x^2}{\sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{6 \sqrt {x} \sqrt {-1-x+x^2}}-\frac {\left (\left (\frac {1}{4}+\frac {i}{12}\right ) \sqrt {-x-x^2+x^3}\right ) \text {Subst}\left (\int \frac {-1-\sqrt {5}+2 x^2}{\sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{\sqrt {x} \sqrt {-1-x+x^2}}-\frac {\left (\left (\frac {1}{4}-\frac {i}{2}\right ) \sqrt {-x-x^2+x^3}\right ) \text {Subst}\left (\int \frac {i+x^2}{\left (i-x^2\right ) \sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{\sqrt {x} \sqrt {-1-x+x^2}}+\frac {\sqrt {-x-x^2+x^3} \text {Subst}\left (\int \frac {-1-\sqrt {5}+2 x^2}{\sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{3 \sqrt {x} \sqrt {-1-x+x^2}}+\frac {\left (\left (\frac {1}{4}-\frac {i}{12}\right ) \left ((-1+2 i)-\sqrt {5}\right ) \sqrt {-x-x^2+x^3}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{\sqrt {x} \sqrt {-1-x+x^2}}+\frac {\sqrt {-x-x^2+x^3} \text {Subst}\left (\int \frac {-1-\sqrt {5}+2 x^2}{\left (1-x^2\right ) \sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{2 \left (1-\sqrt {5}\right ) \sqrt {x} \sqrt {-1-x+x^2}}+\frac {\sqrt {-x-x^2+x^3} \text {Subst}\left (\int \frac {1}{\sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{\left (1-\sqrt {5}\right ) \sqrt {x} \sqrt {-1-x+x^2}}-\frac {\left (\left (1-\sqrt {5}\right ) \sqrt {-x-x^2+x^3}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{6 \sqrt {x} \sqrt {-1-x+x^2}}-\frac {\left (\left (1-\sqrt {5}\right ) \sqrt {-x-x^2+x^3}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{3 \sqrt {x} \sqrt {-1-x+x^2}}-\frac {\left (\left (\frac {1}{4}+\frac {i}{12}\right ) \left ((1+2 i)+\sqrt {5}\right ) \sqrt {-x-x^2+x^3}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{\sqrt {x} \sqrt {-1-x+x^2}}-\frac {\sqrt {-x-x^2+x^3} \text {Subst}\left (\int \frac {-1-\sqrt {5}+2 x^2}{\left (1+x^2\right ) \sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{2 \left (3+\sqrt {5}\right ) \sqrt {x} \sqrt {-1-x+x^2}}+\frac {\sqrt {-x-x^2+x^3} \text {Subst}\left (\int \frac {1}{\sqrt {-1-x^2+x^4}} \, dx,x,\sqrt {x}\right )}{\left (3+\sqrt {5}\right ) \sqrt {x} \sqrt {-1-x+x^2}} \\ & = \text {Too large to display} \\ \end{align*}
Time = 0.39 (sec) , antiderivative size = 127, normalized size of antiderivative = 1.02 \[ \int \frac {\sqrt {-x-x^2+x^3}}{-1+x^4} \, dx=\frac {\sqrt {x} \sqrt {-1-x+x^2} \left (2 \arctan \left (\frac {\sqrt {x}}{\sqrt {-1-x+x^2}}\right )-\sqrt {1-2 i} \arctan \left (\frac {\sqrt {1-2 i} \sqrt {x}}{\sqrt {-1-x+x^2}}\right )-\sqrt {1+2 i} \arctan \left (\frac {\sqrt {1+2 i} \sqrt {x}}{\sqrt {-1-x+x^2}}\right )\right )}{4 \sqrt {x \left (-1-x+x^2\right )}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(217\) vs. \(2(105)=210\).
Time = 3.51 (sec) , antiderivative size = 218, normalized size of antiderivative = 1.74
method | result | size |
default | \(\frac {-\ln \left (\frac {-\sqrt {x \left (x^{2}-x -1\right )}\, \sqrt {-2+2 \sqrt {5}}+x \sqrt {5}+x^{2}-x -1}{x}\right )+\ln \left (\frac {\sqrt {x \left (x^{2}-x -1\right )}\, \sqrt {-2+2 \sqrt {5}}+x \sqrt {5}+x^{2}-x -1}{x}\right )+\left (-\sqrt {5}-1\right ) \arctan \left (\frac {\sqrt {-2+2 \sqrt {5}}\, x -2 \sqrt {x \left (x^{2}-x -1\right )}}{x \sqrt {2+2 \sqrt {5}}}\right )+\left (\sqrt {5}+1\right ) \arctan \left (\frac {\sqrt {-2+2 \sqrt {5}}\, x +2 \sqrt {x \left (x^{2}-x -1\right )}}{x \sqrt {2+2 \sqrt {5}}}\right )-2 \arctan \left (\frac {\sqrt {x \left (x^{2}-x -1\right )}}{x}\right ) \sqrt {2+2 \sqrt {5}}}{4 \sqrt {2+2 \sqrt {5}}}\) | \(218\) |
pseudoelliptic | \(\frac {-\ln \left (\frac {-\sqrt {x \left (x^{2}-x -1\right )}\, \sqrt {-2+2 \sqrt {5}}+x \sqrt {5}+x^{2}-x -1}{x}\right )+\ln \left (\frac {\sqrt {x \left (x^{2}-x -1\right )}\, \sqrt {-2+2 \sqrt {5}}+x \sqrt {5}+x^{2}-x -1}{x}\right )+\left (-\sqrt {5}-1\right ) \arctan \left (\frac {\sqrt {-2+2 \sqrt {5}}\, x -2 \sqrt {x \left (x^{2}-x -1\right )}}{x \sqrt {2+2 \sqrt {5}}}\right )+\left (\sqrt {5}+1\right ) \arctan \left (\frac {\sqrt {-2+2 \sqrt {5}}\, x +2 \sqrt {x \left (x^{2}-x -1\right )}}{x \sqrt {2+2 \sqrt {5}}}\right )-2 \arctan \left (\frac {\sqrt {x \left (x^{2}-x -1\right )}}{x}\right ) \sqrt {2+2 \sqrt {5}}}{4 \sqrt {2+2 \sqrt {5}}}\) | \(218\) |
trager | \(\text {Expression too large to display}\) | \(913\) |
elliptic | \(\text {Expression too large to display}\) | \(1430\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 284 vs. \(2 (97) = 194\).
Time = 0.30 (sec) , antiderivative size = 284, normalized size of antiderivative = 2.27 \[ \int \frac {\sqrt {-x-x^2+x^3}}{-1+x^4} \, dx=\frac {1}{16} \, \sqrt {2 i - 1} \log \left (\frac {x^{4} + \left (4 i - 2\right ) \, x^{3} + 2 \, \sqrt {2 i - 1} \sqrt {x^{3} - x^{2} - x} {\left (x^{2} + 2 i \, x - 1\right )} - \left (4 i + 6\right ) \, x^{2} - \left (4 i - 2\right ) \, x + 1}{x^{4} + 2 \, x^{2} + 1}\right ) - \frac {1}{16} \, \sqrt {2 i - 1} \log \left (\frac {x^{4} + \left (4 i - 2\right ) \, x^{3} - 2 \, \sqrt {2 i - 1} \sqrt {x^{3} - x^{2} - x} {\left (x^{2} + 2 i \, x - 1\right )} - \left (4 i + 6\right ) \, x^{2} - \left (4 i - 2\right ) \, x + 1}{x^{4} + 2 \, x^{2} + 1}\right ) + \frac {1}{16} \, \sqrt {-2 i - 1} \log \left (\frac {x^{4} - \left (4 i + 2\right ) \, x^{3} + 2 \, \sqrt {-2 i - 1} \sqrt {x^{3} - x^{2} - x} {\left (x^{2} - 2 i \, x - 1\right )} + \left (4 i - 6\right ) \, x^{2} + \left (4 i + 2\right ) \, x + 1}{x^{4} + 2 \, x^{2} + 1}\right ) - \frac {1}{16} \, \sqrt {-2 i - 1} \log \left (\frac {x^{4} - \left (4 i + 2\right ) \, x^{3} - 2 \, \sqrt {-2 i - 1} \sqrt {x^{3} - x^{2} - x} {\left (x^{2} - 2 i \, x - 1\right )} + \left (4 i - 6\right ) \, x^{2} + \left (4 i + 2\right ) \, x + 1}{x^{4} + 2 \, x^{2} + 1}\right ) - \frac {1}{4} \, \arctan \left (\frac {x^{2} - 2 \, x - 1}{2 \, \sqrt {x^{3} - x^{2} - x}}\right ) \]
[In]
[Out]
\[ \int \frac {\sqrt {-x-x^2+x^3}}{-1+x^4} \, dx=\int \frac {\sqrt {x \left (x^{2} - x - 1\right )}}{\left (x - 1\right ) \left (x + 1\right ) \left (x^{2} + 1\right )}\, dx \]
[In]
[Out]
\[ \int \frac {\sqrt {-x-x^2+x^3}}{-1+x^4} \, dx=\int { \frac {\sqrt {x^{3} - x^{2} - x}}{x^{4} - 1} \,d x } \]
[In]
[Out]
\[ \int \frac {\sqrt {-x-x^2+x^3}}{-1+x^4} \, dx=\int { \frac {\sqrt {x^{3} - x^{2} - x}}{x^{4} - 1} \,d x } \]
[In]
[Out]
Time = 0.09 (sec) , antiderivative size = 537, normalized size of antiderivative = 4.30 \[ \int \frac {\sqrt {-x-x^2+x^3}}{-1+x^4} \, dx=\frac {\left (\frac {\sqrt {5}}{2}+\frac {1}{2}\right )\,\sqrt {\frac {x}{\frac {\sqrt {5}}{2}+\frac {1}{2}}}\,\sqrt {\frac {x+\frac {\sqrt {5}}{2}-\frac {1}{2}}{\frac {\sqrt {5}}{2}-\frac {1}{2}}}\,\sqrt {\frac {\frac {\sqrt {5}}{2}-x+\frac {1}{2}}{\frac {\sqrt {5}}{2}+\frac {1}{2}}}\,\Pi \left (-\frac {\sqrt {5}}{2}-\frac {1}{2};\mathrm {asin}\left (\sqrt {\frac {x}{\frac {\sqrt {5}}{2}+\frac {1}{2}}}\right )\middle |-\frac {\frac {\sqrt {5}}{2}+\frac {1}{2}}{\frac {\sqrt {5}}{2}-\frac {1}{2}}\right )}{2\,\sqrt {x^3-x^2-\left (\frac {\sqrt {5}}{2}-\frac {1}{2}\right )\,\left (\frac {\sqrt {5}}{2}+\frac {1}{2}\right )\,x}}+\frac {\left (\frac {\sqrt {5}}{2}+\frac {1}{2}\right )\,\sqrt {\frac {x}{\frac {\sqrt {5}}{2}+\frac {1}{2}}}\,\sqrt {\frac {x+\frac {\sqrt {5}}{2}-\frac {1}{2}}{\frac {\sqrt {5}}{2}-\frac {1}{2}}}\,\sqrt {\frac {\frac {\sqrt {5}}{2}-x+\frac {1}{2}}{\frac {\sqrt {5}}{2}+\frac {1}{2}}}\,\Pi \left (\frac {\sqrt {5}}{2}+\frac {1}{2};\mathrm {asin}\left (\sqrt {\frac {x}{\frac {\sqrt {5}}{2}+\frac {1}{2}}}\right )\middle |-\frac {\frac {\sqrt {5}}{2}+\frac {1}{2}}{\frac {\sqrt {5}}{2}-\frac {1}{2}}\right )}{2\,\sqrt {x^3-x^2-\left (\frac {\sqrt {5}}{2}-\frac {1}{2}\right )\,\left (\frac {\sqrt {5}}{2}+\frac {1}{2}\right )\,x}}+\frac {\left (\frac {\sqrt {5}}{2}+\frac {1}{2}\right )\,\sqrt {\frac {x}{\frac {\sqrt {5}}{2}+\frac {1}{2}}}\,\sqrt {\frac {x+\frac {\sqrt {5}}{2}-\frac {1}{2}}{\frac {\sqrt {5}}{2}-\frac {1}{2}}}\,\sqrt {\frac {\frac {\sqrt {5}}{2}-x+\frac {1}{2}}{\frac {\sqrt {5}}{2}+\frac {1}{2}}}\,\Pi \left (-\frac {\sqrt {5}\,1{}\mathrm {i}}{2}-\frac {1}{2}{}\mathrm {i};\mathrm {asin}\left (\sqrt {\frac {x}{\frac {\sqrt {5}}{2}+\frac {1}{2}}}\right )\middle |-\frac {\frac {\sqrt {5}}{2}+\frac {1}{2}}{\frac {\sqrt {5}}{2}-\frac {1}{2}}\right )\,\left (-\frac {1}{2}+1{}\mathrm {i}\right )}{\sqrt {x^3-x^2-\left (\frac {\sqrt {5}}{2}-\frac {1}{2}\right )\,\left (\frac {\sqrt {5}}{2}+\frac {1}{2}\right )\,x}}+\frac {\left (\frac {\sqrt {5}}{2}+\frac {1}{2}\right )\,\sqrt {\frac {x}{\frac {\sqrt {5}}{2}+\frac {1}{2}}}\,\sqrt {\frac {x+\frac {\sqrt {5}}{2}-\frac {1}{2}}{\frac {\sqrt {5}}{2}-\frac {1}{2}}}\,\sqrt {\frac {\frac {\sqrt {5}}{2}-x+\frac {1}{2}}{\frac {\sqrt {5}}{2}+\frac {1}{2}}}\,\Pi \left (\frac {\sqrt {5}\,1{}\mathrm {i}}{2}+\frac {1}{2}{}\mathrm {i};\mathrm {asin}\left (\sqrt {\frac {x}{\frac {\sqrt {5}}{2}+\frac {1}{2}}}\right )\middle |-\frac {\frac {\sqrt {5}}{2}+\frac {1}{2}}{\frac {\sqrt {5}}{2}-\frac {1}{2}}\right )\,\left (-\frac {1}{2}-\mathrm {i}\right )}{\sqrt {x^3-x^2-\left (\frac {\sqrt {5}}{2}-\frac {1}{2}\right )\,\left (\frac {\sqrt {5}}{2}+\frac {1}{2}\right )\,x}} \]
[In]
[Out]