Optimal. Leaf size=22 \[ -2-\frac {1}{(8-x)^4 x^2}+x+x (4+x) \log (x) \]
________________________________________________________________________________________
Rubi [B] time = 0.85, antiderivative size = 100, normalized size of antiderivative = 4.55, number of steps used = 20, number of rules used = 7, integrand size = 109, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.064, Rules used = {6688, 6742, 44, 43, 37, 2313, 9} \begin {gather*} \frac {60 x^4}{(8-x)^4}+\frac {x^2}{2}-\frac {1}{4096 x^2}+\left (x^2+4 x\right ) \log (x)+5 x-\frac {1}{2} (x+4)^2+\frac {15728639}{8192 (8-x)}-\frac {94371843}{4096 (8-x)^2}+\frac {31457279}{256 (8-x)^3}-\frac {15728641}{64 (8-x)^4}-\frac {1}{8192 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 9
Rule 37
Rule 43
Rule 44
Rule 2313
Rule 6688
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {16-6 x+163840 x^3-69632 x^4+5120 x^5+1920 x^6-440 x^7+35 x^8-x^9-2 (-8+x)^5 x^3 (2+x) \log (x)}{(8-x)^5 x^3} \, dx\\ &=\int \left (-\frac {163840}{(-8+x)^5}-\frac {16}{(-8+x)^5 x^3}+\frac {6}{(-8+x)^5 x^2}+\frac {69632 x}{(-8+x)^5}-\frac {5120 x^2}{(-8+x)^5}-\frac {1920 x^3}{(-8+x)^5}+\frac {440 x^4}{(-8+x)^5}-\frac {35 x^5}{(-8+x)^5}+\frac {x^6}{(-8+x)^5}+2 (2+x) \log (x)\right ) \, dx\\ &=\frac {40960}{(8-x)^4}+2 \int (2+x) \log (x) \, dx+6 \int \frac {1}{(-8+x)^5 x^2} \, dx-16 \int \frac {1}{(-8+x)^5 x^3} \, dx-35 \int \frac {x^5}{(-8+x)^5} \, dx+440 \int \frac {x^4}{(-8+x)^5} \, dx-1920 \int \frac {x^3}{(-8+x)^5} \, dx-5120 \int \frac {x^2}{(-8+x)^5} \, dx+69632 \int \frac {x}{(-8+x)^5} \, dx+\int \frac {x^6}{(-8+x)^5} \, dx\\ &=\frac {40960}{(8-x)^4}+\frac {60 x^4}{(8-x)^4}+\left (4 x+x^2\right ) \log (x)-2 \int \frac {4+x}{2} \, dx+6 \int \left (\frac {1}{64 (-8+x)^5}-\frac {1}{256 (-8+x)^4}+\frac {3}{4096 (-8+x)^3}-\frac {1}{8192 (-8+x)^2}+\frac {5}{262144 (-8+x)}-\frac {1}{32768 x^2}-\frac {5}{262144 x}\right ) \, dx-16 \int \left (\frac {1}{512 (-8+x)^5}-\frac {3}{4096 (-8+x)^4}+\frac {3}{16384 (-8+x)^3}-\frac {5}{131072 (-8+x)^2}+\frac {15}{2097152 (-8+x)}-\frac {1}{32768 x^3}-\frac {5}{262144 x^2}-\frac {15}{2097152 x}\right ) \, dx-35 \int \left (1+\frac {32768}{(-8+x)^5}+\frac {20480}{(-8+x)^4}+\frac {5120}{(-8+x)^3}+\frac {640}{(-8+x)^2}+\frac {40}{-8+x}\right ) \, dx+440 \int \left (\frac {4096}{(-8+x)^5}+\frac {2048}{(-8+x)^4}+\frac {384}{(-8+x)^3}+\frac {32}{(-8+x)^2}+\frac {1}{-8+x}\right ) \, dx-5120 \int \left (\frac {64}{(-8+x)^5}+\frac {16}{(-8+x)^4}+\frac {1}{(-8+x)^3}\right ) \, dx+69632 \int \left (\frac {8}{(-8+x)^5}+\frac {1}{(-8+x)^4}\right ) \, dx+\int \left (40+\frac {262144}{(-8+x)^5}+\frac {196608}{(-8+x)^4}+\frac {61440}{(-8+x)^3}+\frac {10240}{(-8+x)^2}+\frac {960}{-8+x}+x\right ) \, dx\\ &=-\frac {15728641}{64 (8-x)^4}+\frac {31457279}{256 (8-x)^3}-\frac {94371843}{4096 (8-x)^2}+\frac {15728639}{8192 (8-x)}-\frac {1}{4096 x^2}-\frac {1}{8192 x}+5 x+\frac {x^2}{2}+\frac {60 x^4}{(8-x)^4}-\frac {1}{2} (4+x)^2+\left (4 x+x^2\right ) \log (x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [B] time = 0.11, size = 48, normalized size = 2.18 \begin {gather*} \frac {-1+4096 x^3-2048 x^4+384 x^5-32 x^6+x^7+(-8+x)^4 x^3 (4+x) \log (x)}{(-8+x)^4 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.73, size = 84, normalized size = 3.82 \begin {gather*} \frac {x^{7} - 32 \, x^{6} + 384 \, x^{5} - 2048 \, x^{4} + 4096 \, x^{3} + {\left (x^{8} - 28 \, x^{7} + 256 \, x^{6} - 512 \, x^{5} - 4096 \, x^{4} + 16384 \, x^{3}\right )} \log \relax (x) - 1}{x^{6} - 32 \, x^{5} + 384 \, x^{4} - 2048 \, x^{3} + 4096 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.16, size = 55, normalized size = 2.50 \begin {gather*} {\left (x^{2} + 4 \, x\right )} \log \relax (x) + x + \frac {x^{3} - 30 \, x^{2} + 320 \, x - 1280}{8192 \, {\left (x^{4} - 32 \, x^{3} + 384 \, x^{2} - 2048 \, x + 4096\right )}} - \frac {x + 2}{8192 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.06, size = 52, normalized size = 2.36
method | result | size |
default | \(4 x \ln \relax (x )+x +x^{2} \ln \relax (x )-\frac {1}{64 \left (-8+x \right )^{4}}+\frac {1}{256 \left (-8+x \right )^{3}}-\frac {3}{4096 \left (-8+x \right )^{2}}+\frac {1}{-65536+8192 x}-\frac {1}{4096 x^{2}}-\frac {1}{8192 x}\) | \(52\) |
risch | \(\left (x^{2}+4 x \right ) \ln \relax (x )+\frac {x^{7}-32 x^{6}+384 x^{5}-2048 x^{4}+4096 x^{3}-1}{x^{2} \left (x^{4}-32 x^{3}+384 x^{2}-2048 x +4096\right )}\) | \(61\) |
norman | \(\frac {-1+x^{7}+x^{8} \ln \relax (x )-\frac {20480 x^{3}}{3}-\frac {80 x^{6}}{3}+\frac {640 x^{5}}{3}+\frac {65536 x^{2}}{3}-\frac {16384 x^{3} \ln \relax (x )}{3}-\frac {2560 x^{5} \ln \relax (x )}{3}+\frac {800 x^{6} \ln \relax (x )}{3}+\frac {131072 x^{2} \ln \relax (x )}{3}-28 x^{7} \ln \relax (x )}{x^{2} \left (-8+x \right )^{4}}-\frac {32 \ln \relax (x )}{3}\) | \(81\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.42, size = 628, normalized size = 28.55 \begin {gather*} \frac {1}{2} \, x^{2} + 5 \, x + \frac {7680 \, {\left (x^{3} - 12 \, x^{2} + 64 \, x - 128\right )} \log \relax (x)}{x^{4} - 32 \, x^{3} + 384 \, x^{2} - 2048 \, x + 4096} - \frac {10240 \, {\left (3 \, x^{2} - 16 \, x + 32\right )} \log \relax (x)}{3 \, {\left (x^{4} - 32 \, x^{3} + 384 \, x^{2} - 2048 \, x + 4096\right )}} - \frac {16384 \, {\left (x - 2\right )} \log \relax (x)}{3 \, {\left (x^{4} - 32 \, x^{3} + 384 \, x^{2} - 2048 \, x + 4096\right )}} - \frac {15 \, x^{5} - 420 \, x^{4} + 4160 \, x^{3} - 16000 \, x^{2} + 12288 \, x + 16384}{16384 \, {\left (x^{6} - 32 \, x^{5} + 384 \, x^{4} - 2048 \, x^{3} + 4096 \, x^{2}\right )}} + \frac {15 \, x^{4} - 420 \, x^{3} + 4160 \, x^{2} - 16000 \, x + 12288}{16384 \, {\left (x^{5} - 32 \, x^{4} + 384 \, x^{3} - 2048 \, x^{2} + 4096 \, x\right )}} - \frac {3 \, x^{6} - 72 \, x^{5} + 384 \, x^{4} + 36864 \, x^{3} - 737280 \, x^{2} - 6 \, {\left (x^{6} - 28 \, x^{5}\right )} \log \relax (x) + 4980736 \, x - 11534336}{6 \, {\left (x^{4} - 32 \, x^{3} + 384 \, x^{2} - 2048 \, x + 4096\right )}} + \frac {4480 \, {\left (15 \, x^{3} - 300 \, x^{2} + 2080 \, x - 4928\right )}}{3 \, {\left (x^{4} - 32 \, x^{3} + 384 \, x^{2} - 2048 \, x + 4096\right )}} - \frac {2048 \, {\left (5 \, x^{3} - 105 \, x^{2} + 752 \, x - 1824\right )}}{x^{4} - 32 \, x^{3} + 384 \, x^{2} - 2048 \, x + 4096} - \frac {14080 \, {\left (3 \, x^{3} - 54 \, x^{2} + 352 \, x - 800\right )}}{3 \, {\left (x^{4} - 32 \, x^{3} + 384 \, x^{2} - 2048 \, x + 4096\right )}} + \frac {1920 \, {\left (x^{3} - 12 \, x^{2} + 64 \, x - 128\right )}}{x^{4} - 32 \, x^{3} + 384 \, x^{2} - 2048 \, x + 4096} + \frac {640 \, {\left (9 \, x^{2} - 108 \, x + 352\right )}}{x^{3} - 24 \, x^{2} + 192 \, x - 512} + \frac {2560 \, {\left (3 \, x^{2} - 16 \, x + 32\right )}}{3 \, {\left (x^{4} - 32 \, x^{3} + 384 \, x^{2} - 2048 \, x + 4096\right )}} + \frac {64 \, {\left (3 \, x^{2} - 60 \, x + 352\right )}}{3 \, {\left (x^{3} - 24 \, x^{2} + 192 \, x - 512\right )}} - \frac {640 \, {\left (x^{2} + 4 \, x - 32\right )}}{3 \, {\left (x^{3} - 24 \, x^{2} + 192 \, x - 512\right )}} + \frac {64 \, {\left (x^{2} - 20 \, x + 32\right )}}{3 \, {\left (x^{3} - 24 \, x^{2} + 192 \, x - 512\right )}} - \frac {69632 \, {\left (x - 2\right )}}{3 \, {\left (x^{4} - 32 \, x^{3} + 384 \, x^{2} - 2048 \, x + 4096\right )}} + \frac {32768 \, \log \relax (x)}{x^{4} - 32 \, x^{3} + 384 \, x^{2} - 2048 \, x + 4096} + \frac {40960}{x^{4} - 32 \, x^{3} + 384 \, x^{2} - 2048 \, x + 4096} + 256 \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.18, size = 40, normalized size = 1.82 \begin {gather*} x+\ln \relax (x)\,\left (x^2+4\,x\right )-\frac {1}{x^6-32\,x^5+384\,x^4-2048\,x^3+4096\,x^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.20, size = 36, normalized size = 1.64 \begin {gather*} x + \left (x^{2} + 4 x\right ) \log {\relax (x )} - \frac {1}{x^{6} - 32 x^{5} + 384 x^{4} - 2048 x^{3} + 4096 x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________