Optimal. Leaf size=101 \[ \frac {19451047 \log \left (2 \sqrt {x^2-x-1}-2 x+1\right )}{65536}+128 \tan ^{-1}\left (\sqrt {x^2-x-1}-x+1\right )+\frac {\sqrt {x^2-x-1} \left (1146880 x^8-23296000 x^7+199009280 x^6-910869760 x^5+2304529024 x^4-2700564848 x^3-508033624 x^2+4423205098 x-1245336401\right )}{10321920} \]
________________________________________________________________________________________
Rubi [A] time = 0.37, antiderivative size = 199, normalized size of antiderivative = 1.97, number of steps used = 12, number of rules used = 7, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.304, Rules used = {1653, 814, 843, 621, 206, 724, 204} \begin {gather*} \frac {1}{9} \left (x^2-x-1\right )^{5/2} (1-x)^4+\frac {229}{144} \left (x^2-x-1\right )^{5/2} (1-x)^3+\frac {19927 \left (x^2-x-1\right )^{5/2} (1-x)^2}{2016}+\frac {281233 \left (x^2-x-1\right )^{5/2} (1-x)}{8064}+\frac {6158183 \left (x^2-x-1\right )^{5/2}}{80640}+\frac {(903871-1283454 x) \left (x^2-x-1\right )^{3/2}}{12288}-\frac {(5567931-6941558 x) \sqrt {x^2-x-1}}{32768}-64 \tan ^{-1}\left (\frac {3-x}{2 \sqrt {x^2-x-1}}\right )+\frac {19451047 \tanh ^{-1}\left (\frac {1-2 x}{2 \sqrt {x^2-x-1}}\right )}{65536} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 206
Rule 621
Rule 724
Rule 814
Rule 843
Rule 1653
Rubi steps
\begin {align*} \int \frac {(-3+x)^6 \left (-1-x+x^2\right )^{3/2}}{-1+x} \, dx &=\frac {1}{9} (1-x)^4 \left (-1-x+x^2\right )^{5/2}+\frac {1}{9} \int \frac {\left (-1-x+x^2\right )^{3/2} \left (\frac {13125}{2}-\frac {26233 x}{2}+10889 x^2-4761 x^3+\frac {2233 x^4}{2}-\frac {229 x^5}{2}\right )}{-1+x} \, dx\\ &=\frac {229}{144} (1-x)^3 \left (-1-x+x^2\right )^{5/2}+\frac {1}{9} (1-x)^4 \left (-1-x+x^2\right )^{5/2}+\frac {1}{72} \int \frac {\left (-1-x+x^2\right )^{3/2} \left (\frac {210229}{4}-\frac {207803 x}{2}+82761 x^2-\frac {63581 x^3}{2}+\frac {19927 x^4}{4}\right )}{-1+x} \, dx\\ &=\frac {19927 (1-x)^2 \left (-1-x+x^2\right )^{5/2}}{2016}+\frac {229}{144} (1-x)^3 \left (-1-x+x^2\right )^{5/2}+\frac {1}{9} (1-x)^4 \left (-1-x+x^2\right )^{5/2}+\frac {1}{504} \int \frac {\left (-1-x+x^2\right )^{3/2} \left (\frac {2923279}{8}-\frac {5400017 x}{8}+\frac {3578485 x^2}{8}-\frac {843699 x^3}{8}\right )}{-1+x} \, dx\\ &=\frac {281233 (1-x) \left (-1-x+x^2\right )^{5/2}}{8064}+\frac {19927 (1-x)^2 \left (-1-x+x^2\right )^{5/2}}{2016}+\frac {229}{144} (1-x)^3 \left (-1-x+x^2\right )^{5/2}+\frac {1}{9} (1-x)^4 \left (-1-x+x^2\right )^{5/2}+\frac {\int \frac {\left (-1-x+x^2\right )^{3/2} \left (\frac {32548251}{16}-2995389 x+\frac {18474549 x^2}{16}\right )}{-1+x} \, dx}{3024}\\ &=\frac {6158183 \left (-1-x+x^2\right )^{5/2}}{80640}+\frac {281233 (1-x) \left (-1-x+x^2\right )^{5/2}}{8064}+\frac {19927 (1-x)^2 \left (-1-x+x^2\right )^{5/2}}{2016}+\frac {229}{144} (1-x)^3 \left (-1-x+x^2\right )^{5/2}+\frac {1}{9} (1-x)^4 \left (-1-x+x^2\right )^{5/2}+\frac {\int \frac {\left (\frac {233109765}{32}-\frac {202144005 x}{32}\right ) \left (-1-x+x^2\right )^{3/2}}{-1+x} \, dx}{15120}\\ &=\frac {(903871-1283454 x) \left (-1-x+x^2\right )^{3/2}}{12288}+\frac {6158183 \left (-1-x+x^2\right )^{5/2}}{80640}+\frac {281233 (1-x) \left (-1-x+x^2\right )^{5/2}}{8064}+\frac {19927 (1-x)^2 \left (-1-x+x^2\right )^{5/2}}{2016}+\frac {229}{144} (1-x)^3 \left (-1-x+x^2\right )^{5/2}+\frac {1}{9} (1-x)^4 \left (-1-x+x^2\right )^{5/2}-\frac {\int \frac {\left (\frac {3775338315}{64}-\frac {3279886155 x}{64}\right ) \sqrt {-1-x+x^2}}{-1+x} \, dx}{120960}\\ &=-\frac {(5567931-6941558 x) \sqrt {-1-x+x^2}}{32768}+\frac {(903871-1283454 x) \left (-1-x+x^2\right )^{3/2}}{12288}+\frac {6158183 \left (-1-x+x^2\right )^{5/2}}{80640}+\frac {281233 (1-x) \left (-1-x+x^2\right )^{5/2}}{8064}+\frac {19927 (1-x)^2 \left (-1-x+x^2\right )^{5/2}}{2016}+\frac {229}{144} (1-x)^3 \left (-1-x+x^2\right )^{5/2}+\frac {1}{9} (1-x)^4 \left (-1-x+x^2\right )^{5/2}+\frac {\int \frac {\frac {22344856695}{128}-\frac {18381239415 x}{128}}{(-1+x) \sqrt {-1-x+x^2}} \, dx}{483840}\\ &=-\frac {(5567931-6941558 x) \sqrt {-1-x+x^2}}{32768}+\frac {(903871-1283454 x) \left (-1-x+x^2\right )^{3/2}}{12288}+\frac {6158183 \left (-1-x+x^2\right )^{5/2}}{80640}+\frac {281233 (1-x) \left (-1-x+x^2\right )^{5/2}}{8064}+\frac {19927 (1-x)^2 \left (-1-x+x^2\right )^{5/2}}{2016}+\frac {229}{144} (1-x)^3 \left (-1-x+x^2\right )^{5/2}+\frac {1}{9} (1-x)^4 \left (-1-x+x^2\right )^{5/2}+64 \int \frac {1}{(-1+x) \sqrt {-1-x+x^2}} \, dx-\frac {19451047 \int \frac {1}{\sqrt {-1-x+x^2}} \, dx}{65536}\\ &=-\frac {(5567931-6941558 x) \sqrt {-1-x+x^2}}{32768}+\frac {(903871-1283454 x) \left (-1-x+x^2\right )^{3/2}}{12288}+\frac {6158183 \left (-1-x+x^2\right )^{5/2}}{80640}+\frac {281233 (1-x) \left (-1-x+x^2\right )^{5/2}}{8064}+\frac {19927 (1-x)^2 \left (-1-x+x^2\right )^{5/2}}{2016}+\frac {229}{144} (1-x)^3 \left (-1-x+x^2\right )^{5/2}+\frac {1}{9} (1-x)^4 \left (-1-x+x^2\right )^{5/2}-128 \operatorname {Subst}\left (\int \frac {1}{-4-x^2} \, dx,x,\frac {-3+x}{\sqrt {-1-x+x^2}}\right )-\frac {19451047 \operatorname {Subst}\left (\int \frac {1}{4-x^2} \, dx,x,\frac {-1+2 x}{\sqrt {-1-x+x^2}}\right )}{32768}\\ &=-\frac {(5567931-6941558 x) \sqrt {-1-x+x^2}}{32768}+\frac {(903871-1283454 x) \left (-1-x+x^2\right )^{3/2}}{12288}+\frac {6158183 \left (-1-x+x^2\right )^{5/2}}{80640}+\frac {281233 (1-x) \left (-1-x+x^2\right )^{5/2}}{8064}+\frac {19927 (1-x)^2 \left (-1-x+x^2\right )^{5/2}}{2016}+\frac {229}{144} (1-x)^3 \left (-1-x+x^2\right )^{5/2}+\frac {1}{9} (1-x)^4 \left (-1-x+x^2\right )^{5/2}-64 \tan ^{-1}\left (\frac {3-x}{2 \sqrt {-1-x+x^2}}\right )+\frac {19451047 \tanh ^{-1}\left (\frac {1-2 x}{2 \sqrt {-1-x+x^2}}\right )}{65536}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.21, size = 107, normalized size = 1.06 \begin {gather*} -64 \tan ^{-1}\left (\frac {3-x}{2 \sqrt {x^2-x-1}}\right )+\frac {19451047 \tanh ^{-1}\left (\frac {1-2 x}{2 \sqrt {x^2-x-1}}\right )}{65536}+\frac {\sqrt {x^2-x-1} \left (1146880 x^8-23296000 x^7+199009280 x^6-910869760 x^5+2304529024 x^4-2700564848 x^3-508033624 x^2+4423205098 x-1245336401\right )}{10321920} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.52, size = 101, normalized size = 1.00 \begin {gather*} \frac {\sqrt {-1-x+x^2} \left (-1245336401+4423205098 x-508033624 x^2-2700564848 x^3+2304529024 x^4-910869760 x^5+199009280 x^6-23296000 x^7+1146880 x^8\right )}{10321920}+128 \tan ^{-1}\left (1-x+\sqrt {-1-x+x^2}\right )+\frac {19451047 \log \left (1-2 x+2 \sqrt {-1-x+x^2}\right )}{65536} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.57, size = 91, normalized size = 0.90 \begin {gather*} \frac {1}{10321920} \, {\left (1146880 \, x^{8} - 23296000 \, x^{7} + 199009280 \, x^{6} - 910869760 \, x^{5} + 2304529024 \, x^{4} - 2700564848 \, x^{3} - 508033624 \, x^{2} + 4423205098 \, x - 1245336401\right )} \sqrt {x^{2} - x - 1} + 128 \, \arctan \left (-x + \sqrt {x^{2} - x - 1} + 1\right ) + \frac {19451047}{65536} \, \log \left (-2 \, x + 2 \, \sqrt {x^{2} - x - 1} + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.18, size = 92, normalized size = 0.91 \begin {gather*} \frac {1}{10321920} \, {\left (2 \, {\left (4 \, {\left (2 \, {\left (8 \, {\left (10 \, {\left (4 \, {\left (14 \, {\left (16 \, x - 325\right )} x + 38869\right )} x - 711617\right )} x + 18004133\right )} x - 168785303\right )} x - 63504203\right )} x + 2211602549\right )} x - 1245336401\right )} \sqrt {x^{2} - x - 1} + 128 \, \arctan \left (-x + \sqrt {x^{2} - x - 1} + 1\right ) + \frac {19451047}{65536} \, \log \left ({\left | -2 \, x + 2 \, \sqrt {x^{2} - x - 1} + 1 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.36, size = 88, normalized size = 0.87
method | result | size |
risch | \(\frac {\sqrt {x^{2}-x -1}\, \left (1146880 x^{8}-23296000 x^{7}+199009280 x^{6}-910869760 x^{5}+2304529024 x^{4}-2700564848 x^{3}-508033624 x^{2}+4423205098 x -1245336401\right )}{10321920}-\frac {19451047 \ln \left (x -\frac {1}{2}+\sqrt {x^{2}-x -1}\right )}{65536}+64 \arctan \left (\frac {-3+x}{2 \sqrt {\left (-1+x \right )^{2}-2+x}}\right )\) | \(88\) |
trager | \(\left (\frac {1}{9} x^{8}-\frac {325}{144} x^{7}+\frac {38869}{2016} x^{6}-\frac {711617}{8064} x^{5}+\frac {2572019}{11520} x^{4}-\frac {168785303}{645120} x^{3}-\frac {9072029}{184320} x^{2}+\frac {2211602549}{5160960} x -\frac {1245336401}{10321920}\right ) \sqrt {x^{2}-x -1}+\frac {19451047 \ln \left (1-2 x +2 \sqrt {x^{2}-x -1}\right )}{65536}+64 \RootOf \left (\textit {\_Z}^{2}+1\right ) \ln \left (\frac {\RootOf \left (\textit {\_Z}^{2}+1\right ) x -3 \RootOf \left (\textit {\_Z}^{2}+1\right )-2 \sqrt {x^{2}-x -1}}{-1+x}\right )\) | \(117\) |
default | \(8 \left (-1+2 x \right ) \sqrt {\left (-1+x \right )^{2}-2+x}+\frac {x^{4} \left (x^{2}-x -1\right )^{\frac {5}{2}}}{9}-\frac {293 x^{3} \left (x^{2}-x -1\right )^{\frac {5}{2}}}{144}+\frac {30889 x^{2} \left (x^{2}-x -1\right )^{\frac {5}{2}}}{2016}-\frac {482705 x \left (x^{2}-x -1\right )^{\frac {5}{2}}}{8064}-\frac {213909 \left (-1+2 x \right ) \left (x^{2}-x -1\right )^{\frac {3}{2}}}{4096}+\frac {3208635 \sqrt {x^{2}-x -1}\, \left (-1+2 x \right )}{32768}+64 \arctan \left (\frac {-3+x}{2 \sqrt {\left (-1+x \right )^{2}-2+x}}\right )+\frac {64 \left (\left (-1+x \right )^{2}-2+x \right )^{\frac {3}{2}}}{3}-64 \sqrt {\left (-1+x \right )^{2}-2+x}-52 \ln \left (-\frac {1}{2}+x +\sqrt {\left (-1+x \right )^{2}-2+x}\right )-\frac {16043175 \ln \left (x -\frac {1}{2}+\sqrt {x^{2}-x -1}\right )}{65536}+\frac {9904793 \left (x^{2}-x -1\right )^{\frac {5}{2}}}{80640}\) | \(197\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.42, size = 168, normalized size = 1.66 \begin {gather*} \frac {1}{9} \, {\left (x^{2} - x - 1\right )}^{\frac {5}{2}} x^{4} - \frac {293}{144} \, {\left (x^{2} - x - 1\right )}^{\frac {5}{2}} x^{3} + \frac {30889}{2016} \, {\left (x^{2} - x - 1\right )}^{\frac {5}{2}} x^{2} - \frac {482705}{8064} \, {\left (x^{2} - x - 1\right )}^{\frac {5}{2}} x + \frac {9904793}{80640} \, {\left (x^{2} - x - 1\right )}^{\frac {5}{2}} - \frac {213909}{2048} \, {\left (x^{2} - x - 1\right )}^{\frac {3}{2}} x + \frac {903871}{12288} \, {\left (x^{2} - x - 1\right )}^{\frac {3}{2}} + \frac {3470779}{16384} \, \sqrt {x^{2} - x - 1} x - \frac {5567931}{32768} \, \sqrt {x^{2} - x - 1} + 64 \, \arcsin \left (\frac {\sqrt {5} x}{5 \, {\left | x - 1 \right |}} - \frac {3 \, \sqrt {5}}{5 \, {\left | x - 1 \right |}}\right ) - \frac {19451047}{65536} \, \log \left (2 \, x + 2 \, \sqrt {x^{2} - x - 1} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (x-3\right )}^6\,{\left (x^2-x-1\right )}^{3/2}}{x-1} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (x - 3\right )^{6} \left (x^{2} - x - 1\right )^{\frac {3}{2}}}{x - 1}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________