Integrand size = 59, antiderivative size = 57 \[ \int \frac {\sqrt {-1+x^2-2 x^3+x^4} \left (1-x^3+x^4\right )}{\left (-1-2 x^3+x^4\right ) \left (-2-x^2-4 x^3+2 x^4\right )} \, dx=\text {arctanh}\left (\frac {x}{\sqrt {-1+x^2-2 x^3+x^4}}\right )-\sqrt {\frac {3}{2}} \text {arctanh}\left (\frac {\sqrt {\frac {3}{2}} x}{\sqrt {-1+x^2-2 x^3+x^4}}\right ) \]
arctanh(x/(x^4-2*x^3+x^2-1)^(1/2))-1/2*6^(1/2)*arctanh(1/2*6^(1/2)*x/(x^4- 2*x^3+x^2-1)^(1/2))
Time = 0.83 (sec) , antiderivative size = 57, normalized size of antiderivative = 1.00 \[ \int \frac {\sqrt {-1+x^2-2 x^3+x^4} \left (1-x^3+x^4\right )}{\left (-1-2 x^3+x^4\right ) \left (-2-x^2-4 x^3+2 x^4\right )} \, dx=\text {arctanh}\left (\frac {x}{\sqrt {-1+x^2-2 x^3+x^4}}\right )-\sqrt {\frac {3}{2}} \text {arctanh}\left (\frac {\sqrt {\frac {3}{2}} x}{\sqrt {-1+x^2-2 x^3+x^4}}\right ) \]
Integrate[(Sqrt[-1 + x^2 - 2*x^3 + x^4]*(1 - x^3 + x^4))/((-1 - 2*x^3 + x^ 4)*(-2 - x^2 - 4*x^3 + 2*x^4)),x]
ArcTanh[x/Sqrt[-1 + x^2 - 2*x^3 + x^4]] - Sqrt[3/2]*ArcTanh[(Sqrt[3/2]*x)/ Sqrt[-1 + x^2 - 2*x^3 + x^4]]
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\sqrt {x^4-2 x^3+x^2-1} \left (x^4-x^3+1\right )}{\left (x^4-2 x^3-1\right ) \left (2 x^4-4 x^3-x^2-2\right )} \, dx\) |
\(\Big \downarrow \) 7293 |
\(\displaystyle \int \left (\frac {\left (4 x^2-6 x-1\right ) \sqrt {x^4-2 x^3+x^2-1}}{2 x^4-4 x^3-x^2-2}-\frac {x (2 x-3) \sqrt {x^4-2 x^3+x^2-1}}{x^4-2 x^3-1}\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \int \frac {\sqrt {x^4-2 x^3+x^2-1}}{-2 x^4+4 x^3+x^2+2}dx+3 \int \frac {x \sqrt {x^4-2 x^3+x^2-1}}{x^4-2 x^3-1}dx-2 \int \frac {x^2 \sqrt {x^4-2 x^3+x^2-1}}{x^4-2 x^3-1}dx-6 \int \frac {x \sqrt {x^4-2 x^3+x^2-1}}{2 x^4-4 x^3-x^2-2}dx+4 \int \frac {x^2 \sqrt {x^4-2 x^3+x^2-1}}{2 x^4-4 x^3-x^2-2}dx\) |
Int[(Sqrt[-1 + x^2 - 2*x^3 + x^4]*(1 - x^3 + x^4))/((-1 - 2*x^3 + x^4)*(-2 - x^2 - 4*x^3 + 2*x^4)),x]
3.8.39.3.1 Defintions of rubi rules used
Time = 6.58 (sec) , antiderivative size = 81, normalized size of antiderivative = 1.42
method | result | size |
default | \(-\frac {\ln \left (\frac {\sqrt {x^{4}-2 x^{3}+x^{2}-1}-x}{x}\right )}{2}-\frac {\sqrt {6}\, \operatorname {arctanh}\left (\frac {\sqrt {x^{4}-2 x^{3}+x^{2}-1}\, \sqrt {6}}{3 x}\right )}{2}+\frac {\ln \left (\frac {\sqrt {x^{4}-2 x^{3}+x^{2}-1}+x}{x}\right )}{2}\) | \(81\) |
pseudoelliptic | \(-\frac {\ln \left (\frac {\sqrt {x^{4}-2 x^{3}+x^{2}-1}-x}{x}\right )}{2}-\frac {\sqrt {6}\, \operatorname {arctanh}\left (\frac {\sqrt {x^{4}-2 x^{3}+x^{2}-1}\, \sqrt {6}}{3 x}\right )}{2}+\frac {\ln \left (\frac {\sqrt {x^{4}-2 x^{3}+x^{2}-1}+x}{x}\right )}{2}\) | \(81\) |
trager | \(\frac {\ln \left (-\frac {x^{4}-2 x^{3}+2 \sqrt {x^{4}-2 x^{3}+x^{2}-1}\, x +2 x^{2}-1}{x^{4}-2 x^{3}-1}\right )}{2}-\frac {\operatorname {RootOf}\left (\textit {\_Z}^{2}-6\right ) \ln \left (-\frac {2 \operatorname {RootOf}\left (\textit {\_Z}^{2}-6\right ) x^{4}-4 \operatorname {RootOf}\left (\textit {\_Z}^{2}-6\right ) x^{3}+5 \operatorname {RootOf}\left (\textit {\_Z}^{2}-6\right ) x^{2}+12 \sqrt {x^{4}-2 x^{3}+x^{2}-1}\, x -2 \operatorname {RootOf}\left (\textit {\_Z}^{2}-6\right )}{2 x^{4}-4 x^{3}-x^{2}-2}\right )}{4}\) | \(142\) |
elliptic | \(\text {Expression too large to display}\) | \(15410\) |
int((x^4-2*x^3+x^2-1)^(1/2)*(x^4-x^3+1)/(x^4-2*x^3-1)/(2*x^4-4*x^3-x^2-2), x,method=_RETURNVERBOSE)
-1/2*ln(((x^4-2*x^3+x^2-1)^(1/2)-x)/x)-1/2*6^(1/2)*arctanh(1/3*(x^4-2*x^3+ x^2-1)^(1/2)/x*6^(1/2))+1/2*ln(((x^4-2*x^3+x^2-1)^(1/2)+x)/x)
Leaf count of result is larger than twice the leaf count of optimal. 180 vs. \(2 (46) = 92\).
Time = 0.35 (sec) , antiderivative size = 180, normalized size of antiderivative = 3.16 \[ \int \frac {\sqrt {-1+x^2-2 x^3+x^4} \left (1-x^3+x^4\right )}{\left (-1-2 x^3+x^4\right ) \left (-2-x^2-4 x^3+2 x^4\right )} \, dx=\frac {1}{8} \, \sqrt {3} \sqrt {2} \log \left (-\frac {4 \, x^{8} - 16 \, x^{7} + 60 \, x^{6} - 88 \, x^{5} + 41 \, x^{4} + 16 \, x^{3} - 4 \, \sqrt {3} \sqrt {2} {\left (2 \, x^{5} - 4 \, x^{4} + 5 \, x^{3} - 2 \, x\right )} \sqrt {x^{4} - 2 \, x^{3} + x^{2} - 1} - 44 \, x^{2} + 4}{4 \, x^{8} - 16 \, x^{7} + 12 \, x^{6} + 8 \, x^{5} - 7 \, x^{4} + 16 \, x^{3} + 4 \, x^{2} + 4}\right ) + \frac {1}{2} \, \log \left (-\frac {x^{4} - 2 \, x^{3} + 2 \, x^{2} + 2 \, \sqrt {x^{4} - 2 \, x^{3} + x^{2} - 1} x - 1}{x^{4} - 2 \, x^{3} - 1}\right ) \]
integrate((x^4-2*x^3+x^2-1)^(1/2)*(x^4-x^3+1)/(x^4-2*x^3-1)/(2*x^4-4*x^3-x ^2-2),x, algorithm="fricas")
1/8*sqrt(3)*sqrt(2)*log(-(4*x^8 - 16*x^7 + 60*x^6 - 88*x^5 + 41*x^4 + 16*x ^3 - 4*sqrt(3)*sqrt(2)*(2*x^5 - 4*x^4 + 5*x^3 - 2*x)*sqrt(x^4 - 2*x^3 + x^ 2 - 1) - 44*x^2 + 4)/(4*x^8 - 16*x^7 + 12*x^6 + 8*x^5 - 7*x^4 + 16*x^3 + 4 *x^2 + 4)) + 1/2*log(-(x^4 - 2*x^3 + 2*x^2 + 2*sqrt(x^4 - 2*x^3 + x^2 - 1) *x - 1)/(x^4 - 2*x^3 - 1))
Timed out. \[ \int \frac {\sqrt {-1+x^2-2 x^3+x^4} \left (1-x^3+x^4\right )}{\left (-1-2 x^3+x^4\right ) \left (-2-x^2-4 x^3+2 x^4\right )} \, dx=\text {Timed out} \]
integrate((x**4-2*x**3+x**2-1)**(1/2)*(x**4-x**3+1)/(x**4-2*x**3-1)/(2*x** 4-4*x**3-x**2-2),x)
\[ \int \frac {\sqrt {-1+x^2-2 x^3+x^4} \left (1-x^3+x^4\right )}{\left (-1-2 x^3+x^4\right ) \left (-2-x^2-4 x^3+2 x^4\right )} \, dx=\int { \frac {{\left (x^{4} - x^{3} + 1\right )} \sqrt {x^{4} - 2 \, x^{3} + x^{2} - 1}}{{\left (2 \, x^{4} - 4 \, x^{3} - x^{2} - 2\right )} {\left (x^{4} - 2 \, x^{3} - 1\right )}} \,d x } \]
integrate((x^4-2*x^3+x^2-1)^(1/2)*(x^4-x^3+1)/(x^4-2*x^3-1)/(2*x^4-4*x^3-x ^2-2),x, algorithm="maxima")
integrate((x^4 - x^3 + 1)*sqrt(x^4 - 2*x^3 + x^2 - 1)/((2*x^4 - 4*x^3 - x^ 2 - 2)*(x^4 - 2*x^3 - 1)), x)
\[ \int \frac {\sqrt {-1+x^2-2 x^3+x^4} \left (1-x^3+x^4\right )}{\left (-1-2 x^3+x^4\right ) \left (-2-x^2-4 x^3+2 x^4\right )} \, dx=\int { \frac {{\left (x^{4} - x^{3} + 1\right )} \sqrt {x^{4} - 2 \, x^{3} + x^{2} - 1}}{{\left (2 \, x^{4} - 4 \, x^{3} - x^{2} - 2\right )} {\left (x^{4} - 2 \, x^{3} - 1\right )}} \,d x } \]
integrate((x^4-2*x^3+x^2-1)^(1/2)*(x^4-x^3+1)/(x^4-2*x^3-1)/(2*x^4-4*x^3-x ^2-2),x, algorithm="giac")
integrate((x^4 - x^3 + 1)*sqrt(x^4 - 2*x^3 + x^2 - 1)/((2*x^4 - 4*x^3 - x^ 2 - 2)*(x^4 - 2*x^3 - 1)), x)
Timed out. \[ \int \frac {\sqrt {-1+x^2-2 x^3+x^4} \left (1-x^3+x^4\right )}{\left (-1-2 x^3+x^4\right ) \left (-2-x^2-4 x^3+2 x^4\right )} \, dx=\int \frac {\left (x^4-x^3+1\right )\,\sqrt {x^4-2\,x^3+x^2-1}}{\left (-x^4+2\,x^3+1\right )\,\left (-2\,x^4+4\,x^3+x^2+2\right )} \,d x \]
int(((x^4 - x^3 + 1)*(x^2 - 2*x^3 + x^4 - 1)^(1/2))/((2*x^3 - x^4 + 1)*(x^ 2 + 4*x^3 - 2*x^4 + 2)),x)