Integrand size = 38, antiderivative size = 175 \[ \int \frac {\sqrt {-81+27 x+135 x^2-150 x^3+65 x^4-13 x^5+x^6}}{-1+x} \, dx=\frac {\left (115-62 x+8 x^2\right ) \sqrt {-81+27 x+135 x^2-150 x^3+65 x^4-13 x^5+x^6}}{24 (-3+x)^2}-8 \arctan \left (\frac {9-6 x+x^2}{-9+15 x-7 x^2+x^3-\sqrt {-81+27 x+135 x^2-150 x^3+65 x^4-13 x^5+x^6}}\right )+\frac {77}{8} \log (-3+x)-\frac {77}{16} \log \left (9-24 x+13 x^2-2 x^3+2 \sqrt {-81+27 x+135 x^2-150 x^3+65 x^4-13 x^5+x^6}\right ) \]
[Out]
Time = 0.19 (sec) , antiderivative size = 208, normalized size of antiderivative = 1.19, number of steps used = 9, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.237, Rules used = {6820, 6851, 1667, 828, 857, 635, 212, 738, 210} \[ \int \frac {\sqrt {-81+27 x+135 x^2-150 x^3+65 x^4-13 x^5+x^6}}{-1+x} \, dx=\frac {4 \sqrt {-(3-x)^4 \left (-x^2+x+1\right )} \arctan \left (\frac {3-x}{2 \sqrt {x^2-x-1}}\right )}{(3-x)^2 \sqrt {x^2-x-1}}-\frac {77 \sqrt {-(3-x)^4 \left (-x^2+x+1\right )} \text {arctanh}\left (\frac {1-2 x}{2 \sqrt {x^2-x-1}}\right )}{16 (3-x)^2 \sqrt {x^2-x-1}}+\frac {\sqrt {-(3-x)^4 \left (-x^2+x+1\right )} (41-18 x)}{8 (3-x)^2}-\frac {\left (-x^2+x+1\right ) \sqrt {-(3-x)^4 \left (-x^2+x+1\right )}}{3 (3-x)^2} \]
[In]
[Out]
Rule 210
Rule 212
Rule 635
Rule 738
Rule 828
Rule 857
Rule 1667
Rule 6820
Rule 6851
Rubi steps \begin{align*} \text {integral}& = \int \frac {\sqrt {(-3+x)^4 \left (-1-x+x^2\right )}}{-1+x} \, dx \\ & = \frac {\sqrt {(-3+x)^4 \left (-1-x+x^2\right )} \int \frac {(-3+x)^2 \sqrt {-1-x+x^2}}{-1+x} \, dx}{(-3+x)^2 \sqrt {-1-x+x^2}} \\ & = -\frac {\left (1+x-x^2\right ) \sqrt {-(3-x)^4 \left (1+x-x^2\right )}}{3 (3-x)^2}+\frac {\sqrt {(-3+x)^4 \left (-1-x+x^2\right )} \int \frac {\left (\frac {51}{2}-\frac {27 x}{2}\right ) \sqrt {-1-x+x^2}}{-1+x} \, dx}{3 (-3+x)^2 \sqrt {-1-x+x^2}} \\ & = \frac {(41-18 x) \sqrt {-(3-x)^4 \left (1+x-x^2\right )}}{8 (3-x)^2}-\frac {\left (1+x-x^2\right ) \sqrt {-(3-x)^4 \left (1+x-x^2\right )}}{3 (3-x)^2}-\frac {\sqrt {(-3+x)^4 \left (-1-x+x^2\right )} \int \frac {\frac {423}{4}-\frac {231 x}{4}}{(-1+x) \sqrt {-1-x+x^2}} \, dx}{12 (-3+x)^2 \sqrt {-1-x+x^2}} \\ & = \frac {(41-18 x) \sqrt {-(3-x)^4 \left (1+x-x^2\right )}}{8 (3-x)^2}-\frac {\left (1+x-x^2\right ) \sqrt {-(3-x)^4 \left (1+x-x^2\right )}}{3 (3-x)^2}-\frac {\left (4 \sqrt {(-3+x)^4 \left (-1-x+x^2\right )}\right ) \int \frac {1}{(-1+x) \sqrt {-1-x+x^2}} \, dx}{(-3+x)^2 \sqrt {-1-x+x^2}}+\frac {\left (77 \sqrt {(-3+x)^4 \left (-1-x+x^2\right )}\right ) \int \frac {1}{\sqrt {-1-x+x^2}} \, dx}{16 (-3+x)^2 \sqrt {-1-x+x^2}} \\ & = \frac {(41-18 x) \sqrt {-(3-x)^4 \left (1+x-x^2\right )}}{8 (3-x)^2}-\frac {\left (1+x-x^2\right ) \sqrt {-(3-x)^4 \left (1+x-x^2\right )}}{3 (3-x)^2}+\frac {\left (8 \sqrt {(-3+x)^4 \left (-1-x+x^2\right )}\right ) \text {Subst}\left (\int \frac {1}{-4-x^2} \, dx,x,\frac {-3+x}{\sqrt {-1-x+x^2}}\right )}{(-3+x)^2 \sqrt {-1-x+x^2}}+\frac {\left (77 \sqrt {(-3+x)^4 \left (-1-x+x^2\right )}\right ) \text {Subst}\left (\int \frac {1}{4-x^2} \, dx,x,\frac {-1+2 x}{\sqrt {-1-x+x^2}}\right )}{8 (-3+x)^2 \sqrt {-1-x+x^2}} \\ & = \frac {(41-18 x) \sqrt {-(3-x)^4 \left (1+x-x^2\right )}}{8 (3-x)^2}-\frac {\left (1+x-x^2\right ) \sqrt {-(3-x)^4 \left (1+x-x^2\right )}}{3 (3-x)^2}+\frac {4 \sqrt {-(3-x)^4 \left (1+x-x^2\right )} \arctan \left (\frac {3-x}{2 \sqrt {-1-x+x^2}}\right )}{(3-x)^2 \sqrt {-1-x+x^2}}-\frac {77 \sqrt {-(3-x)^4 \left (1+x-x^2\right )} \text {arctanh}\left (\frac {1-2 x}{2 \sqrt {-1-x+x^2}}\right )}{16 (3-x)^2 \sqrt {-1-x+x^2}} \\ \end{align*}
Time = 0.17 (sec) , antiderivative size = 106, normalized size of antiderivative = 0.61 \[ \int \frac {\sqrt {-81+27 x+135 x^2-150 x^3+65 x^4-13 x^5+x^6}}{-1+x} \, dx=\frac {(-3+x)^2 \sqrt {-1-x+x^2} \left (2 \sqrt {-1-x+x^2} \left (115-62 x+8 x^2\right )-384 \arctan \left (1-x+\sqrt {-1-x+x^2}\right )-231 \log \left (1-2 x+2 \sqrt {-1-x+x^2}\right )\right )}{48 \sqrt {(-3+x)^4 \left (-1-x+x^2\right )}} \]
[In]
[Out]
Time = 3.20 (sec) , antiderivative size = 102, normalized size of antiderivative = 0.58
method | result | size |
risch | \(\frac {\left (8 x^{2}-62 x +115\right ) \sqrt {\left (x^{2}-x -1\right ) \left (-3+x \right )^{4}}}{24 \left (-3+x \right )^{2}}+\frac {\left (\frac {77 \ln \left (-\frac {1}{2}+x +\sqrt {x^{2}-x -1}\right )}{16}-4 \arctan \left (\frac {-3+x}{2 \sqrt {\left (-1+x \right )^{2}-2+x}}\right )\right ) \sqrt {\left (x^{2}-x -1\right ) \left (-3+x \right )^{4}}}{\left (-3+x \right )^{2} \sqrt {x^{2}-x -1}}\) | \(102\) |
default | \(\frac {\sqrt {x^{6}-13 x^{5}+65 x^{4}-150 x^{3}+135 x^{2}+27 x -81}\, \left (16 \left (x^{2}-x -1\right )^{\frac {3}{2}}-108 x \sqrt {x^{2}-x -1}+246 \sqrt {x^{2}-x -1}+231 \ln \left (-\frac {1}{2}+x +\sqrt {x^{2}-x -1}\right )-192 \arctan \left (\frac {-3+x}{2 \sqrt {x^{2}-x -1}}\right )\right )}{48 \left (-3+x \right )^{2} \sqrt {x^{2}-x -1}}\) | \(120\) |
trager | \(\frac {\left (8 x^{2}-62 x +115\right ) \sqrt {x^{6}-13 x^{5}+65 x^{4}-150 x^{3}+135 x^{2}+27 x -81}}{24 \left (-3+x \right )^{2}}-\frac {77 \ln \left (\frac {9-24 x +13 x^{2}-2 x^{3}+2 \sqrt {x^{6}-13 x^{5}+65 x^{4}-150 x^{3}+135 x^{2}+27 x -81}}{\left (-3+x \right )^{2}}\right )}{16}-4 \operatorname {RootOf}\left (\textit {\_Z}^{2}+1\right ) \ln \left (-\frac {-\operatorname {RootOf}\left (\textit {\_Z}^{2}+1\right ) x^{3}+9 \operatorname {RootOf}\left (\textit {\_Z}^{2}+1\right ) x^{2}-27 \operatorname {RootOf}\left (\textit {\_Z}^{2}+1\right ) x +2 \sqrt {x^{6}-13 x^{5}+65 x^{4}-150 x^{3}+135 x^{2}+27 x -81}+27 \operatorname {RootOf}\left (\textit {\_Z}^{2}+1\right )}{\left (-1+x \right ) \left (-3+x \right )^{2}}\right )\) | \(198\) |
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 202, normalized size of antiderivative = 1.15 \[ \int \frac {\sqrt {-81+27 x+135 x^2-150 x^3+65 x^4-13 x^5+x^6}}{-1+x} \, dx=-\frac {205 \, x^{2} + 1536 \, {\left (x^{2} - 6 \, x + 9\right )} \arctan \left (-\frac {x^{3} - 7 \, x^{2} + 15 \, x - \sqrt {x^{6} - 13 \, x^{5} + 65 \, x^{4} - 150 \, x^{3} + 135 \, x^{2} + 27 \, x - 81} - 9}{x^{2} - 6 \, x + 9}\right ) + 924 \, {\left (x^{2} - 6 \, x + 9\right )} \log \left (-\frac {2 \, x^{3} - 13 \, x^{2} + 24 \, x - 2 \, \sqrt {x^{6} - 13 \, x^{5} + 65 \, x^{4} - 150 \, x^{3} + 135 \, x^{2} + 27 \, x - 81} - 9}{x^{2} - 6 \, x + 9}\right ) - 8 \, \sqrt {x^{6} - 13 \, x^{5} + 65 \, x^{4} - 150 \, x^{3} + 135 \, x^{2} + 27 \, x - 81} {\left (8 \, x^{2} - 62 \, x + 115\right )} - 1230 \, x + 1845}{192 \, {\left (x^{2} - 6 \, x + 9\right )}} \]
[In]
[Out]
\[ \int \frac {\sqrt {-81+27 x+135 x^2-150 x^3+65 x^4-13 x^5+x^6}}{-1+x} \, dx=\int \frac {\sqrt {\left (x - 3\right )^{4} \left (x^{2} - x - 1\right )}}{x - 1}\, dx \]
[In]
[Out]
\[ \int \frac {\sqrt {-81+27 x+135 x^2-150 x^3+65 x^4-13 x^5+x^6}}{-1+x} \, dx=\int { \frac {\sqrt {x^{6} - 13 \, x^{5} + 65 \, x^{4} - 150 \, x^{3} + 135 \, x^{2} + 27 \, x - 81}}{x - 1} \,d x } \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 62, normalized size of antiderivative = 0.35 \[ \int \frac {\sqrt {-81+27 x+135 x^2-150 x^3+65 x^4-13 x^5+x^6}}{-1+x} \, dx=\frac {1}{24} \, {\left (2 \, {\left (4 \, x - 31\right )} x + 115\right )} \sqrt {x^{2} - x - 1} - 8 \, \arctan \left (-x + \sqrt {x^{2} - x - 1} + 1\right ) - \frac {77}{16} \, \log \left ({\left | -2 \, x + 2 \, \sqrt {x^{2} - x - 1} + 1 \right |}\right ) \]
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {-81+27 x+135 x^2-150 x^3+65 x^4-13 x^5+x^6}}{-1+x} \, dx=\int \frac {\sqrt {x^6-13\,x^5+65\,x^4-150\,x^3+135\,x^2+27\,x-81}}{x-1} \,d x \]
[In]
[Out]