Optimal. Leaf size=175 \[ \frac {\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 )}{24 (x-3)^2}-\frac {77}{16} \log \left (-2 x^3+13 x^2+2 \sqrt {x^6-13 x^5+65 x^4-150 x^3+135 x^2+27 x-81}-24 x+9\right )-8 \tan ^{-1}\left (\frac {x^2-6 x+9}{x^3-7 x^2-\sqrt {x^6-13 x^5+65 x^4-150 x^3+135 x^2+27 x-81}+15 x-9}\right )+\frac {77}{8} \log (x-3) \]
________________________________________________________________________________________
Rubi [A] time = 0.33, antiderivative size = 208, normalized size of antiderivative = 1.19, number of steps used = 9, number of rules used = 9, integrand size = 38, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.237, Rules used = {6688, 6719, 1653, 814, 843, 621, 206, 724, 204} \begin {gather*} \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}+\frac {4 \sqrt {-(3-x)^4 \left (-x^2+x+1\right )} \tan ^{-1}\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 )} \tanh ^{-1}\left (\frac {1-2 x}{2 \sqrt {x^2-x-1}}\right )}{16 (3-x)^2 \sqrt {x^2-x-1}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 206
Rule 621
Rule 724
Rule 814
Rule 843
Rule 1653
Rule 6688
Rule 6719
Rubi steps
\begin {align*} \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 {(-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 ) \operatorname {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 ) \operatorname {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 )} \tan ^{-1}\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 )} \tanh ^{-1}\left (\frac {1-2 x}{2 \sqrt {-1-x+x^2}}\right )}{16 (3-x)^2 \sqrt {-1-x+x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.09, size = 161, normalized size = 0.92 \begin {gather*} \frac {(x-3)^2 \sqrt {x^2-x-1} \left (2 \left (8 \sqrt {x^2-x-1} x^2-62 \sqrt {x^2-x-1} x+115 \sqrt {x^2-x-1}+96 \tan ^{-1}\left (\frac {3-x}{2 \sqrt {x^2-x-1}}\right )\right )-246 \tanh ^{-1}\left (\frac {1-2 x}{2 \sqrt {x^2-x-1}}\right )-15 \tanh ^{-1}\left (\frac {2 x-1}{2 \sqrt {x^2-x-1}}\right )\right )}{48 \sqrt {(x-3)^4 \left (x^2-x-1\right )}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.45, size = 175, normalized size = 1.00 \begin {gather*} \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 \tan ^{-1}\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 ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.48, size = 202, normalized size = 1.15 \begin {gather*} -\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 )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.38, size = 62, normalized size = 0.35 \begin {gather*} \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 ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.31, size = 102, normalized size = 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 (x -\frac {1}{2}+\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 (x -\frac {1}{2}+\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 {2 x^{3}-13 x^{2}+2 \sqrt {x^{6}-13 x^{5}+65 x^{4}-150 x^{3}+135 x^{2}+27 x -81}+24 x -9}{\left (-3+x \right )^{2}}\right )}{16}+4 \RootOf \left (\textit {\_Z}^{2}+1\right ) \ln \left (-\frac {\RootOf \left (\textit {\_Z}^{2}+1\right ) x^{3}-9 \RootOf \left (\textit {\_Z}^{2}+1\right ) x^{2}+27 \RootOf \left (\textit {\_Z}^{2}+1\right ) x -27 \RootOf \left (\textit {\_Z}^{2}+1\right )+2 \sqrt {x^{6}-13 x^{5}+65 x^{4}-150 x^{3}+135 x^{2}+27 x -81}}{\left (-1+x \right ) \left (-3+x \right )^{2}}\right )\) | \(197\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {x^{6} - 13 \, x^{5} + 65 \, x^{4} - 150 \, x^{3} + 135 \, x^{2} + 27 \, x - 81}}{x - 1}\,{d x} \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 {\sqrt {x^6-13\,x^5+65\,x^4-150\,x^3+135\,x^2+27\,x-81}}{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 {\sqrt {\left (x - 3\right )^{4} \left (x^{2} - x - 1\right )}}{x - 1}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________