Optimal. Leaf size=28 \[ x^2-\left (x+\left (-5+\frac {-3+x}{x}\right ) (-3 x+\log (-1+x))\right )^2 \]
[Out]
________________________________________________________________________________________
Rubi [C] Result contains higher order function than in optimal. Order 4 vs. order 3 in
optimal.
time = 0.64, antiderivative size = 128, normalized size of antiderivative = 4.57, number of steps
used = 29, number of rules used = 22, integrand size = 74, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.297, Rules used = {1607, 6874,
1634, 2465, 2436, 2332, 2437, 2338, 2442, 36, 31, 29, 2441, 2352, 2463, 2445, 2458, 2389, 2379,
2438, 2351, 2444} \begin {gather*} 18 \text {PolyLog}\left (2,\frac {1}{1-x}\right )+18 \text {PolyLog}(2,1-x)-168 x^2-\frac {9 \log ^2(x-1)}{x^2}-234 x-49 \log ^2(x-1)-\frac {24 (1-x) \log ^2(x-1)}{x}+272 \log (1-x)-104 (1-x) \log (x-1)-18 \log \left (\frac {1}{x-1}+1\right ) \log (x-1)+18 \log (x-1) \log (x)+\frac {18 (1-x) \log (x-1)}{x}+\frac {36 \log (x-1)}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 31
Rule 36
Rule 1607
Rule 1634
Rule 2332
Rule 2338
Rule 2351
Rule 2352
Rule 2379
Rule 2389
Rule 2436
Rule 2437
Rule 2438
Rule 2441
Rule 2442
Rule 2444
Rule 2445
Rule 2458
Rule 2463
Rule 2465
Rule 6874
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {54 x^2+384 x^3+206 x^4-336 x^5+\left (36 x-102 x^2-136 x^3+104 x^4\right ) \log (-1+x)+\left (-18-6 x+24 x^2\right ) \log ^2(-1+x)}{(-1+x) x^3} \, dx\\ &=\int \left (-\frac {2 \left (-27-192 x-103 x^2+168 x^3\right )}{(-1+x) x}+\frac {2 \left (18-51 x-68 x^2+52 x^3\right ) \log (-1+x)}{(-1+x) x^2}+\frac {6 (3+4 x) \log ^2(-1+x)}{x^3}\right ) \, dx\\ &=-\left (2 \int \frac {-27-192 x-103 x^2+168 x^3}{(-1+x) x} \, dx\right )+2 \int \frac {\left (18-51 x-68 x^2+52 x^3\right ) \log (-1+x)}{(-1+x) x^2} \, dx+6 \int \frac {(3+4 x) \log ^2(-1+x)}{x^3} \, dx\\ &=-\left (2 \int \left (65-\frac {154}{-1+x}+\frac {27}{x}+168 x\right ) \, dx\right )+2 \int \left (52 \log (-1+x)-\frac {49 \log (-1+x)}{-1+x}-\frac {18 \log (-1+x)}{x^2}+\frac {33 \log (-1+x)}{x}\right ) \, dx+6 \int \left (\frac {3 \log ^2(-1+x)}{x^3}+\frac {4 \log ^2(-1+x)}{x^2}\right ) \, dx\\ &=-130 x-168 x^2+308 \log (1-x)-54 \log (x)+18 \int \frac {\log ^2(-1+x)}{x^3} \, dx+24 \int \frac {\log ^2(-1+x)}{x^2} \, dx-36 \int \frac {\log (-1+x)}{x^2} \, dx+66 \int \frac {\log (-1+x)}{x} \, dx-98 \int \frac {\log (-1+x)}{-1+x} \, dx+104 \int \log (-1+x) \, dx\\ &=-130 x-168 x^2+308 \log (1-x)+\frac {36 \log (-1+x)}{x}-\frac {9 \log ^2(-1+x)}{x^2}-\frac {24 (1-x) \log ^2(-1+x)}{x}-54 \log (x)+66 \log (-1+x) \log (x)+18 \int \frac {\log (-1+x)}{(-1+x) x^2} \, dx-36 \int \frac {1}{(-1+x) x} \, dx-48 \int \frac {\log (-1+x)}{x} \, dx-66 \int \frac {\log (x)}{-1+x} \, dx-98 \text {Subst}\left (\int \frac {\log (x)}{x} \, dx,x,-1+x\right )+104 \text {Subst}(\int \log (x) \, dx,x,-1+x)\\ &=-234 x-168 x^2+308 \log (1-x)-104 (1-x) \log (-1+x)+\frac {36 \log (-1+x)}{x}-49 \log ^2(-1+x)-\frac {9 \log ^2(-1+x)}{x^2}-\frac {24 (1-x) \log ^2(-1+x)}{x}-54 \log (x)+18 \log (-1+x) \log (x)+66 \text {Li}_2(1-x)+18 \text {Subst}\left (\int \frac {\log (x)}{x (1+x)^2} \, dx,x,-1+x\right )-36 \int \frac {1}{-1+x} \, dx+36 \int \frac {1}{x} \, dx+48 \int \frac {\log (x)}{-1+x} \, dx\\ &=-234 x-168 x^2+272 \log (1-x)-104 (1-x) \log (-1+x)+\frac {36 \log (-1+x)}{x}-49 \log ^2(-1+x)-\frac {9 \log ^2(-1+x)}{x^2}-\frac {24 (1-x) \log ^2(-1+x)}{x}-18 \log (x)+18 \log (-1+x) \log (x)+18 \text {Li}_2(1-x)-18 \text {Subst}\left (\int \frac {\log (x)}{(1+x)^2} \, dx,x,-1+x\right )+18 \text {Subst}\left (\int \frac {\log (x)}{x (1+x)} \, dx,x,-1+x\right )\\ &=-234 x-168 x^2+272 \log (1-x)-104 (1-x) \log (-1+x)+\frac {36 \log (-1+x)}{x}+\frac {18 (1-x) \log (-1+x)}{x}-49 \log ^2(-1+x)-\frac {9 \log ^2(-1+x)}{x^2}-\frac {24 (1-x) \log ^2(-1+x)}{x}-18 \log (x)+18 \log (-1+x) \log (x)+18 \text {Li}_2(1-x)+18 \text {Subst}\left (\int \frac {1}{1+x} \, dx,x,-1+x\right )+18 \text {Subst}\left (\int \frac {\log (x)}{x} \, dx,x,-1+x\right )-18 \text {Subst}\left (\int \frac {\log (x)}{1+x} \, dx,x,-1+x\right )\\ &=-234 x-168 x^2+272 \log (1-x)-104 (1-x) \log (-1+x)+\frac {36 \log (-1+x)}{x}+\frac {18 (1-x) \log (-1+x)}{x}-40 \log ^2(-1+x)-\frac {9 \log ^2(-1+x)}{x^2}-\frac {24 (1-x) \log ^2(-1+x)}{x}+18 \text {Li}_2(1-x)+18 \text {Subst}\left (\int \frac {\log (1+x)}{x} \, dx,x,-1+x\right )\\ &=-234 x-168 x^2+272 \log (1-x)-104 (1-x) \log (-1+x)+\frac {36 \log (-1+x)}{x}+\frac {18 (1-x) \log (-1+x)}{x}-40 \log ^2(-1+x)-\frac {9 \log ^2(-1+x)}{x^2}-\frac {24 (1-x) \log ^2(-1+x)}{x}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.11, size = 55, normalized size = 1.96 \begin {gather*} -2 \left (3 x (39+28 x)-75 \log (1-x)-\frac {\left (27+52 x^2\right ) \log (-1+x)}{x}+\frac {(3+4 x)^2 \log ^2(-1+x)}{2 x^2}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.56, size = 53, normalized size = 1.89
method | result | size |
risch | \(-\frac {\left (16 x^{2}+24 x +9\right ) \ln \left (x -1\right )^{2}}{x^{2}}+\frac {2 \left (52 x^{2}+27\right ) \ln \left (x -1\right )}{x}-168 x^{2}-234 x +150 \ln \left (x -1\right )\) | \(53\) |
norman | \(\frac {150 x^{2} \ln \left (x -1\right )-234 x^{3}-168 x^{4}-9 \ln \left (x -1\right )^{2}+104 x^{3} \ln \left (x -1\right )+54 \ln \left (x -1\right ) x -24 \ln \left (x -1\right )^{2} x -16 \ln \left (x -1\right )^{2} x^{2}}{x^{2}}\) | \(69\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.35, size = 53, normalized size = 1.89 \begin {gather*} -\frac {168 \, x^{4} + 234 \, x^{3} + {\left (16 \, x^{2} + 24 \, x + 9\right )} \log \left (x - 1\right )^{2} - 2 \, {\left (52 \, x^{3} + 75 \, x^{2} + 27 \, x\right )} \log \left (x - 1\right )}{x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.40, size = 53, normalized size = 1.89 \begin {gather*} -\frac {168 \, x^{4} + 234 \, x^{3} + {\left (16 \, x^{2} + 24 \, x + 9\right )} \log \left (x - 1\right )^{2} - 2 \, {\left (52 \, x^{3} + 75 \, x^{2} + 27 \, x\right )} \log \left (x - 1\right )}{x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 49 vs.
\(2 (20) = 40\).
time = 0.11, size = 49, normalized size = 1.75 \begin {gather*} - 168 x^{2} - 234 x + 150 \log {\left (x - 1 \right )} + \frac {\left (104 x^{2} + 54\right ) \log {\left (x - 1 \right )}}{x} + \frac {\left (- 16 x^{2} - 24 x - 9\right ) \log {\left (x - 1 \right )}^{2}}{x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.16, size = 61, normalized size = 2.18 \begin {gather*} 150\,\ln \left (x-1\right )-234\,x+104\,x\,\ln \left (x-1\right )+\frac {54\,\ln \left (x-1\right )}{x}-16\,{\ln \left (x-1\right )}^2-168\,x^2-\frac {24\,{\ln \left (x-1\right )}^2}{x}-\frac {9\,{\ln \left (x-1\right )}^2}{x^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________