Integrand size = 36, antiderivative size = 89 \[ \int \frac {1-x+x^2}{\left (-1+x^2\right ) \sqrt {1-x+x^2-x^3+x^4}} \, dx=\frac {1}{2} \text {arctanh}\left (\frac {x}{1-2 x+x^2-\sqrt {1-x+x^2-x^3+x^4}}\right )+\frac {3 \text {arctanh}\left (\frac {\sqrt {5} x}{1+2 x+x^2-\sqrt {1-x+x^2-x^3+x^4}}\right )}{2 \sqrt {5}} \]
[Out]
\[ \int \frac {1-x+x^2}{\left (-1+x^2\right ) \sqrt {1-x+x^2-x^3+x^4}} \, dx=\int \frac {1-x+x^2}{\left (-1+x^2\right ) \sqrt {1-x+x^2-x^3+x^4}} \, dx \]
[In]
[Out]
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {1}{\sqrt {1-x+x^2-x^3+x^4}}+\frac {2-x}{\left (-1+x^2\right ) \sqrt {1-x+x^2-x^3+x^4}}\right ) \, dx \\ & = \int \frac {1}{\sqrt {1-x+x^2-x^3+x^4}} \, dx+\int \frac {2-x}{\left (-1+x^2\right ) \sqrt {1-x+x^2-x^3+x^4}} \, dx \\ & = \int \frac {1}{\sqrt {1-x+x^2-x^3+x^4}} \, dx+\int \left (-\frac {1}{2 (1-x) \sqrt {1-x+x^2-x^3+x^4}}-\frac {3}{2 (1+x) \sqrt {1-x+x^2-x^3+x^4}}\right ) \, dx \\ & = -\left (\frac {1}{2} \int \frac {1}{(1-x) \sqrt {1-x+x^2-x^3+x^4}} \, dx\right )-\frac {3}{2} \int \frac {1}{(1+x) \sqrt {1-x+x^2-x^3+x^4}} \, dx+\int \frac {1}{\sqrt {1-x+x^2-x^3+x^4}} \, dx \\ \end{align*}
Time = 0.25 (sec) , antiderivative size = 89, normalized size of antiderivative = 1.00 \[ \int \frac {1-x+x^2}{\left (-1+x^2\right ) \sqrt {1-x+x^2-x^3+x^4}} \, dx=\frac {1}{2} \text {arctanh}\left (\frac {x}{1-2 x+x^2-\sqrt {1-x+x^2-x^3+x^4}}\right )+\frac {3 \text {arctanh}\left (\frac {\sqrt {5} x}{1+2 x+x^2-\sqrt {1-x+x^2-x^3+x^4}}\right )}{2 \sqrt {5}} \]
[In]
[Out]
Time = 5.55 (sec) , antiderivative size = 69, normalized size of antiderivative = 0.78
method | result | size |
default | \(\frac {3 \sqrt {5}\, \operatorname {arctanh}\left (\frac {\left (x^{2}+1\right ) \sqrt {5}}{2 \sqrt {x^{4}-x^{3}+x^{2}-x +1}}\right )}{20}-\frac {\operatorname {arctanh}\left (\frac {3 x^{2}-4 x +3}{2 \sqrt {x^{4}-x^{3}+x^{2}-x +1}}\right )}{4}\) | \(69\) |
pseudoelliptic | \(\frac {3 \sqrt {5}\, \operatorname {arctanh}\left (\frac {\left (x^{2}+1\right ) \sqrt {5}}{2 \sqrt {x^{4}-x^{3}+x^{2}-x +1}}\right )}{20}-\frac {\operatorname {arctanh}\left (\frac {3 x^{2}-4 x +3}{2 \sqrt {x^{4}-x^{3}+x^{2}-x +1}}\right )}{4}\) | \(69\) |
trager | \(\frac {\ln \left (-\frac {-3 x^{2}+2 \sqrt {x^{4}-x^{3}+x^{2}-x +1}+4 x -3}{\left (x -1\right )^{2}}\right )}{4}-\frac {3 \operatorname {RootOf}\left (\textit {\_Z}^{2}-5\right ) \ln \left (-\frac {-\operatorname {RootOf}\left (\textit {\_Z}^{2}-5\right ) x^{2}+2 \sqrt {x^{4}-x^{3}+x^{2}-x +1}-\operatorname {RootOf}\left (\textit {\_Z}^{2}-5\right )}{\left (1+x \right )^{2}}\right )}{20}\) | \(98\) |
elliptic | \(\text {Expression too large to display}\) | \(101423\) |
[In]
[Out]
none
Time = 0.33 (sec) , antiderivative size = 121, normalized size of antiderivative = 1.36 \[ \int \frac {1-x+x^2}{\left (-1+x^2\right ) \sqrt {1-x+x^2-x^3+x^4}} \, dx=\frac {3}{40} \, \sqrt {5} \log \left (-\frac {9 \, x^{4} - 4 \, x^{3} + 4 \, \sqrt {5} \sqrt {x^{4} - x^{3} + x^{2} - x + 1} {\left (x^{2} + 1\right )} + 14 \, x^{2} - 4 \, x + 9}{x^{4} + 4 \, x^{3} + 6 \, x^{2} + 4 \, x + 1}\right ) + \frac {1}{4} \, \log \left (\frac {3 \, x^{2} - 4 \, x - 2 \, \sqrt {x^{4} - x^{3} + x^{2} - x + 1} + 3}{x^{2} - 2 \, x + 1}\right ) \]
[In]
[Out]
\[ \int \frac {1-x+x^2}{\left (-1+x^2\right ) \sqrt {1-x+x^2-x^3+x^4}} \, dx=\int \frac {x^{2} - x + 1}{\left (x - 1\right ) \left (x + 1\right ) \sqrt {x^{4} - x^{3} + x^{2} - x + 1}}\, dx \]
[In]
[Out]
\[ \int \frac {1-x+x^2}{\left (-1+x^2\right ) \sqrt {1-x+x^2-x^3+x^4}} \, dx=\int { \frac {x^{2} - x + 1}{\sqrt {x^{4} - x^{3} + x^{2} - x + 1} {\left (x^{2} - 1\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {1-x+x^2}{\left (-1+x^2\right ) \sqrt {1-x+x^2-x^3+x^4}} \, dx=\int { \frac {x^{2} - x + 1}{\sqrt {x^{4} - x^{3} + x^{2} - x + 1} {\left (x^{2} - 1\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {1-x+x^2}{\left (-1+x^2\right ) \sqrt {1-x+x^2-x^3+x^4}} \, dx=\int \frac {x^2-x+1}{\left (x^2-1\right )\,\sqrt {x^4-x^3+x^2-x+1}} \,d x \]
[In]
[Out]