Integrand size = 21, antiderivative size = 24 \[ \int \frac {-1+x}{(1+x) \sqrt {x+x^2+x^3}} \, dx=-2 \arctan \left (\frac {\sqrt {x+x^2+x^3}}{1+x+x^2}\right ) \]
[Out]
Time = 0.26 (sec) , antiderivative size = 46, normalized size of antiderivative = 1.92, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {2081, 6865, 1712, 209} \[ \int \frac {-1+x}{(1+x) \sqrt {x+x^2+x^3}} \, dx=-\frac {2 \sqrt {x} \sqrt {x^2+x+1} \arctan \left (\frac {\sqrt {x}}{\sqrt {x^2+x+1}}\right )}{\sqrt {x^3+x^2+x}} \]
[In]
[Out]
Rule 209
Rule 1712
Rule 2081
Rule 6865
Rubi steps \begin{align*} \text {integral}& = \frac {\left (\sqrt {x} \sqrt {1+x+x^2}\right ) \int \frac {-1+x}{\sqrt {x} (1+x) \sqrt {1+x+x^2}} \, dx}{\sqrt {x+x^2+x^3}} \\ & = \frac {\left (2 \sqrt {x} \sqrt {1+x+x^2}\right ) \text {Subst}\left (\int \frac {-1+x^2}{\left (1+x^2\right ) \sqrt {1+x^2+x^4}} \, dx,x,\sqrt {x}\right )}{\sqrt {x+x^2+x^3}} \\ & = -\frac {\left (2 \sqrt {x} \sqrt {1+x+x^2}\right ) \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\frac {\sqrt {x}}{\sqrt {1+x+x^2}}\right )}{\sqrt {x+x^2+x^3}} \\ & = -\frac {2 \sqrt {x} \sqrt {1+x+x^2} \arctan \left (\frac {\sqrt {x}}{\sqrt {1+x+x^2}}\right )}{\sqrt {x+x^2+x^3}} \\ \end{align*}
Time = 0.18 (sec) , antiderivative size = 46, normalized size of antiderivative = 1.92 \[ \int \frac {-1+x}{(1+x) \sqrt {x+x^2+x^3}} \, dx=-\frac {2 \sqrt {x} \sqrt {1+x+x^2} \arctan \left (\frac {\sqrt {x}}{\sqrt {1+x+x^2}}\right )}{\sqrt {x \left (1+x+x^2\right )}} \]
[In]
[Out]
Time = 3.53 (sec) , antiderivative size = 18, normalized size of antiderivative = 0.75
method | result | size |
default | \(2 \arctan \left (\frac {\sqrt {x \left (x^{2}+x +1\right )}}{x}\right )\) | \(18\) |
pseudoelliptic | \(2 \arctan \left (\frac {\sqrt {x \left (x^{2}+x +1\right )}}{x}\right )\) | \(18\) |
trager | \(\operatorname {RootOf}\left (\textit {\_Z}^{2}+1\right ) \ln \left (-\frac {\operatorname {RootOf}\left (\textit {\_Z}^{2}+1\right ) x^{2}+\operatorname {RootOf}\left (\textit {\_Z}^{2}+1\right )-2 \sqrt {x^{3}+x^{2}+x}}{\left (1+x \right )^{2}}\right )\) | \(45\) |
elliptic | \(\frac {2 \left (\frac {1}{2}+\frac {i \sqrt {3}}{2}\right ) \sqrt {\frac {x +\frac {1}{2}+\frac {i \sqrt {3}}{2}}{\frac {1}{2}+\frac {i \sqrt {3}}{2}}}\, \sqrt {3}\, \sqrt {i \left (x +\frac {1}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {3}}\, \sqrt {\frac {x}{-\frac {1}{2}-\frac {i \sqrt {3}}{2}}}\, \operatorname {EllipticF}\left (\sqrt {\frac {x +\frac {1}{2}+\frac {i \sqrt {3}}{2}}{\frac {1}{2}+\frac {i \sqrt {3}}{2}}}, \frac {\sqrt {3}\, \sqrt {i \left (-\frac {1}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {3}}}{3}\right )}{3 \sqrt {x^{3}+x^{2}+x}}-\frac {4 \left (\frac {1}{2}+\frac {i \sqrt {3}}{2}\right ) \sqrt {\frac {x +\frac {1}{2}+\frac {i \sqrt {3}}{2}}{\frac {1}{2}+\frac {i \sqrt {3}}{2}}}\, \sqrt {3}\, \sqrt {i \left (x +\frac {1}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {3}}\, \sqrt {\frac {x}{-\frac {1}{2}-\frac {i \sqrt {3}}{2}}}\, \operatorname {EllipticPi}\left (\sqrt {\frac {x +\frac {1}{2}+\frac {i \sqrt {3}}{2}}{\frac {1}{2}+\frac {i \sqrt {3}}{2}}}, \frac {-\frac {1}{2}-\frac {i \sqrt {3}}{2}}{\frac {1}{2}-\frac {i \sqrt {3}}{2}}, \frac {\sqrt {3}\, \sqrt {i \left (-\frac {1}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {3}}}{3}\right )}{3 \sqrt {x^{3}+x^{2}+x}\, \left (\frac {1}{2}-\frac {i \sqrt {3}}{2}\right )}\) | \(271\) |
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 18, normalized size of antiderivative = 0.75 \[ \int \frac {-1+x}{(1+x) \sqrt {x+x^2+x^3}} \, dx=\arctan \left (\frac {x^{2} + 1}{2 \, \sqrt {x^{3} + x^{2} + x}}\right ) \]
[In]
[Out]
\[ \int \frac {-1+x}{(1+x) \sqrt {x+x^2+x^3}} \, dx=\int \frac {x - 1}{\sqrt {x \left (x^{2} + x + 1\right )} \left (x + 1\right )}\, dx \]
[In]
[Out]
\[ \int \frac {-1+x}{(1+x) \sqrt {x+x^2+x^3}} \, dx=\int { \frac {x - 1}{\sqrt {x^{3} + x^{2} + x} {\left (x + 1\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {-1+x}{(1+x) \sqrt {x+x^2+x^3}} \, dx=\int { \frac {x - 1}{\sqrt {x^{3} + x^{2} + x} {\left (x + 1\right )}} \,d x } \]
[In]
[Out]
Time = 0.23 (sec) , antiderivative size = 179, normalized size of antiderivative = 7.46 \[ \int \frac {-1+x}{(1+x) \sqrt {x+x^2+x^3}} \, dx=\frac {\sqrt {\frac {x}{-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\,\sqrt {-\frac {x+\frac {1}{2}-\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\,\sqrt {\frac {x+\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\,\left (\sqrt {3}+1{}\mathrm {i}\right )\,\left (\mathrm {F}\left (\mathrm {asin}\left (\sqrt {\frac {x}{-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\right )\middle |-\frac {-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}\right )-2\,\Pi \left (\frac {1}{2}-\frac {\sqrt {3}\,1{}\mathrm {i}}{2};\mathrm {asin}\left (\sqrt {\frac {x}{-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\right )\middle |-\frac {-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}\right )\right )\,1{}\mathrm {i}}{\sqrt {x^3+x^2-\left (-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,x}} \]
[In]
[Out]