Optimal. Leaf size=20 \[ -4+\left (4+4 x \left (1-\frac {4}{1+x}\right ) \log (x)\right )^2 \]
________________________________________________________________________________________
Rubi [B] time = 0.54, antiderivative size = 61, normalized size of antiderivative = 3.05, number of steps used = 31, number of rules used = 18, integrand size = 78, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {6688, 12, 6742, 43, 2357, 2295, 2304, 2314, 31, 2317, 2391, 2296, 2305, 2319, 2347, 2344, 2301, 2318} \begin {gather*} 16 x^2 \log ^2(x)-128 x \log ^2(x)+\frac {640 x \log ^2(x)}{x+1}+\frac {256 \log ^2(x)}{(x+1)^2}-256 \log ^2(x)+32 x \log (x)-\frac {128 x \log (x)}{x+1} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 31
Rule 43
Rule 2295
Rule 2296
Rule 2301
Rule 2304
Rule 2305
Rule 2314
Rule 2317
Rule 2318
Rule 2319
Rule 2344
Rule 2347
Rule 2357
Rule 2391
Rule 6688
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {32 \left ((-3+x) (1+x)^2+\left (-3+8 x+6 x^2-4 x^3+x^4\right ) \log (x)+x \left (9-9 x-x^2+x^3\right ) \log ^2(x)\right )}{(1+x)^3} \, dx\\ &=32 \int \frac {(-3+x) (1+x)^2+\left (-3+8 x+6 x^2-4 x^3+x^4\right ) \log (x)+x \left (9-9 x-x^2+x^3\right ) \log ^2(x)}{(1+x)^3} \, dx\\ &=32 \int \left (\frac {-3+x}{1+x}+\frac {\left (-3+11 x-5 x^2+x^3\right ) \log (x)}{(1+x)^2}+\frac {(-3+x) (-1+x) x (3+x) \log ^2(x)}{(1+x)^3}\right ) \, dx\\ &=32 \int \frac {-3+x}{1+x} \, dx+32 \int \frac {\left (-3+11 x-5 x^2+x^3\right ) \log (x)}{(1+x)^2} \, dx+32 \int \frac {(-3+x) (-1+x) x (3+x) \log ^2(x)}{(1+x)^3} \, dx\\ &=32 \int \left (1-\frac {4}{1+x}\right ) \, dx+32 \int \left (-7 \log (x)+x \log (x)-\frac {20 \log (x)}{(1+x)^2}+\frac {24 \log (x)}{1+x}\right ) \, dx+32 \int \left (-4 \log ^2(x)+x \log ^2(x)-\frac {16 \log ^2(x)}{(1+x)^3}+\frac {20 \log ^2(x)}{(1+x)^2}\right ) \, dx\\ &=32 x-128 \log (1+x)+32 \int x \log (x) \, dx+32 \int x \log ^2(x) \, dx-128 \int \log ^2(x) \, dx-224 \int \log (x) \, dx-512 \int \frac {\log ^2(x)}{(1+x)^3} \, dx-640 \int \frac {\log (x)}{(1+x)^2} \, dx+640 \int \frac {\log ^2(x)}{(1+x)^2} \, dx+768 \int \frac {\log (x)}{1+x} \, dx\\ &=256 x-8 x^2-224 x \log (x)+16 x^2 \log (x)-\frac {640 x \log (x)}{1+x}-128 x \log ^2(x)+16 x^2 \log ^2(x)+\frac {256 \log ^2(x)}{(1+x)^2}+\frac {640 x \log ^2(x)}{1+x}-128 \log (1+x)+768 \log (x) \log (1+x)-32 \int x \log (x) \, dx+256 \int \log (x) \, dx-512 \int \frac {\log (x)}{x (1+x)^2} \, dx+640 \int \frac {1}{1+x} \, dx-768 \int \frac {\log (1+x)}{x} \, dx-1280 \int \frac {\log (x)}{1+x} \, dx\\ &=32 x \log (x)-\frac {640 x \log (x)}{1+x}-128 x \log ^2(x)+16 x^2 \log ^2(x)+\frac {256 \log ^2(x)}{(1+x)^2}+\frac {640 x \log ^2(x)}{1+x}+512 \log (1+x)-512 \log (x) \log (1+x)+768 \text {Li}_2(-x)+512 \int \frac {\log (x)}{(1+x)^2} \, dx-512 \int \frac {\log (x)}{x (1+x)} \, dx+1280 \int \frac {\log (1+x)}{x} \, dx\\ &=32 x \log (x)-\frac {128 x \log (x)}{1+x}-128 x \log ^2(x)+16 x^2 \log ^2(x)+\frac {256 \log ^2(x)}{(1+x)^2}+\frac {640 x \log ^2(x)}{1+x}+512 \log (1+x)-512 \log (x) \log (1+x)-512 \text {Li}_2(-x)-512 \int \frac {1}{1+x} \, dx-512 \int \frac {\log (x)}{x} \, dx+512 \int \frac {\log (x)}{1+x} \, dx\\ &=32 x \log (x)-\frac {128 x \log (x)}{1+x}-256 \log ^2(x)-128 x \log ^2(x)+16 x^2 \log ^2(x)+\frac {256 \log ^2(x)}{(1+x)^2}+\frac {640 x \log ^2(x)}{1+x}-512 \text {Li}_2(-x)-512 \int \frac {\log (1+x)}{x} \, dx\\ &=32 x \log (x)-\frac {128 x \log (x)}{1+x}-256 \log ^2(x)-128 x \log ^2(x)+16 x^2 \log ^2(x)+\frac {256 \log ^2(x)}{(1+x)^2}+\frac {640 x \log ^2(x)}{1+x}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.11, size = 26, normalized size = 1.30 \begin {gather*} \frac {16 (-3+x) x \log (x) (2 (1+x)+(-3+x) x \log (x))}{(1+x)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.69, size = 48, normalized size = 2.40 \begin {gather*} \frac {16 \, {\left ({\left (x^{4} - 6 \, x^{3} + 9 \, x^{2}\right )} \log \relax (x)^{2} + 2 \, {\left (x^{3} - 2 \, x^{2} - 3 \, x\right )} \log \relax (x)\right )}}{x^{2} + 2 \, x + 1} \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*} \int \frac {32 \, {\left (x^{3} + {\left (x^{4} - x^{3} - 9 \, x^{2} + 9 \, x\right )} \log \relax (x)^{2} - x^{2} + {\left (x^{4} - 4 \, x^{3} + 6 \, x^{2} + 8 \, x - 3\right )} \log \relax (x) - 5 \, x - 3\right )}}{x^{3} + 3 \, x^{2} + 3 \, x + 1}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.12, size = 48, normalized size = 2.40
method | result | size |
risch | \(\frac {16 x^{2} \left (x^{2}-6 x +9\right ) \ln \relax (x )^{2}}{x^{2}+2 x +1}+\frac {32 \left (x^{2}+x +4\right ) \ln \relax (x )}{x +1}-128 \ln \relax (x )\) | \(48\) |
norman | \(\frac {-96 x \ln \relax (x )-64 x^{2} \ln \relax (x )+144 x^{2} \ln \relax (x )^{2}+32 x^{3} \ln \relax (x )-96 x^{3} \ln \relax (x )^{2}+16 x^{4} \ln \relax (x )^{2}}{\left (x +1\right )^{2}}\) | \(54\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.42, size = 173, normalized size = 8.65 \begin {gather*} 32 \, x - \frac {128 \, {\left (2 \, x + 1\right )} \log \relax (x)}{x^{2} + 2 \, x + 1} - \frac {16 \, {\left (2 \, x^{3} - {\left (x^{4} - 6 \, x^{3} + 9 \, x^{2}\right )} \log \relax (x)^{2} + 4 \, x^{2} - {\left (2 \, x^{3} - 9 \, x^{2}\right )} \log \relax (x) - 9 \, x - 11\right )}}{x^{2} + 2 \, x + 1} - \frac {16 \, {\left (6 \, x + 5\right )}}{x^{2} + 2 \, x + 1} - \frac {16 \, {\left (4 \, x + 3\right )}}{x^{2} + 2 \, x + 1} + \frac {80 \, {\left (2 \, x + 1\right )}}{x^{2} + 2 \, x + 1} + \frac {48 \, \log \relax (x)}{x^{2} + 2 \, x + 1} + \frac {48}{x^{2} + 2 \, x + 1} - \frac {176}{x + 1} + 80 \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.50, size = 29, normalized size = 1.45 \begin {gather*} \frac {16\,x\,\ln \relax (x)\,\left (x-3\right )\,\left (2\,x+x^2\,\ln \relax (x)-3\,x\,\ln \relax (x)+2\right )}{{\left (x+1\right )}^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.26, size = 49, normalized size = 2.45 \begin {gather*} - 128 \log {\relax (x )} + \frac {\left (16 x^{4} - 96 x^{3} + 144 x^{2}\right ) \log {\relax (x )}^{2}}{x^{2} + 2 x + 1} + \frac {\left (32 x^{2} + 32 x + 128\right ) \log {\relax (x )}}{x + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________