Optimal. Leaf size=19 \[ \left ((4+x)^2 (x-\log (3))^2+\log (x)\right )^2 \]
________________________________________________________________________________________
Rubi [B] time = 0.33, antiderivative size = 279, normalized size of antiderivative = 14.68, number of steps used = 12, number of rules used = 7, integrand size = 216, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.032, Rules used = {14, 1583, 1620, 2357, 2301, 2304, 2295} \begin {gather*} x^8+4 x^7 (4-\log (3))+2 x^6 \left (48+3 \log ^2(3)-32 \log (3)\right )+4 x^5 (4-\log (3)) \left (16+\log ^2(3)-20 \log (3)\right )-\frac {x^4}{2}+\frac {1}{2} x^4 \left (513+2 \log ^4(3)-128 \log ^3(3)+1152 \log ^2(3)-2048 \log (3)\right )+2 x^4 \log (x)+\frac {16}{3} x^3 \left (1+2 \log ^4(3)-68 \log ^3(3)+288 \log ^2(3)-192 \log (3)\right )+4 x^3 (4-\log (3)) \log (x)-\frac {4}{3} x^3 (4-\log (3))+2 x^2 \left (16+\log ^2(3)-16 \log (3)\right ) \log (x)-x^2 \left (16+\log ^2(3)-16 \log (3)\right )+x^2 \left (16+32 \log ^4(3)-768 \log ^3(3)+1537 \log ^2(3)\right )+16 x \log ^2(3)+\log ^2(x)+32 \log ^2(3) \log (x)-\frac {4}{3} (x+4)^3 \log (3) \left (1-4 \log ^3(3)+16 \log ^2(3)\right )-16 x (4-\log (3)) \log (3) \log (x)+16 x (4-\log (3)) \log (3) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 1583
Rule 1620
Rule 2295
Rule 2301
Rule 2304
Rule 2357
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (\frac {2 (4+x)^2 (x-\log (3))^2 \left (1+4 x^4+6 x^3 (4-\log (3))-8 x (4-\log (3)) \log (3)+2 x^2 \left (16-16 \log (3)+\log ^2(3)\right )\right )}{x}+\frac {2 \left (1+4 x^4+6 x^3 (4-\log (3))-8 x (4-\log (3)) \log (3)+2 x^2 \left (16-16 \log (3)+\log ^2(3)\right )\right ) \log (x)}{x}\right ) \, dx\\ &=2 \int \frac {(4+x)^2 (x-\log (3))^2 \left (1+4 x^4+6 x^3 (4-\log (3))-8 x (4-\log (3)) \log (3)+2 x^2 \left (16-16 \log (3)+\log ^2(3)\right )\right )}{x} \, dx+2 \int \frac {\left (1+4 x^4+6 x^3 (4-\log (3))-8 x (4-\log (3)) \log (3)+2 x^2 \left (16-16 \log (3)+\log ^2(3)\right )\right ) \log (x)}{x} \, dx\\ &=-\frac {4}{3} (4+x)^3 \log (3) \left (1+16 \log ^2(3)-4 \log ^3(3)\right )+2 \int \frac {(4+x)^2 \left (-x \left (-2 \log (3)-32 \log ^3(3)+8 \log ^4(3)\right )+(x-\log (3))^2 \left (1+4 x^4+6 x^3 (4-\log (3))-8 x (4-\log (3)) \log (3)+2 x^2 \left (16-16 \log (3)+\log ^2(3)\right )\right )\right )}{x} \, dx+2 \int \left (\frac {\log (x)}{x}+4 x^3 \log (x)+6 x^2 (4-\log (3)) \log (x)-8 (4-\log (3)) \log (3) \log (x)+2 x \left (16-16 \log (3)+\log ^2(3)\right ) \log (x)\right ) \, dx\\ &=-\frac {4}{3} (4+x)^3 \log (3) \left (1+16 \log ^2(3)-4 \log ^3(3)\right )+2 \int \left (4 x^7+14 x^6 (4-\log (3))+8 \log ^2(3)+\frac {16 \log ^2(3)}{x}+10 x^4 (4-\log (3)) \left (16-20 \log (3)+\log ^2(3)\right )+6 x^5 \left (48-32 \log (3)+3 \log ^2(3)\right )+x^3 \left (513-2048 \log (3)+1152 \log ^2(3)-128 \log ^3(3)+2 \log ^4(3)\right )+8 x^2 \left (1-192 \log (3)+288 \log ^2(3)-68 \log ^3(3)+2 \log ^4(3)\right )+x \left (16+1537 \log ^2(3)-768 \log ^3(3)+32 \log ^4(3)\right )\right ) \, dx+2 \int \frac {\log (x)}{x} \, dx+8 \int x^3 \log (x) \, dx+(12 (4-\log (3))) \int x^2 \log (x) \, dx-(16 (4-\log (3)) \log (3)) \int \log (x) \, dx+\left (4 \left (16-16 \log (3)+\log ^2(3)\right )\right ) \int x \log (x) \, dx\\ &=-\frac {x^4}{2}+x^8-\frac {4}{3} x^3 (4-\log (3))+4 x^7 (4-\log (3))+16 x (4-\log (3)) \log (3)+16 x \log ^2(3)+4 x^5 (4-\log (3)) \left (16-20 \log (3)+\log ^2(3)\right )-x^2 \left (16-16 \log (3)+\log ^2(3)\right )+2 x^6 \left (48-32 \log (3)+3 \log ^2(3)\right )-\frac {4}{3} (4+x)^3 \log (3) \left (1+16 \log ^2(3)-4 \log ^3(3)\right )+\frac {1}{2} x^4 \left (513-2048 \log (3)+1152 \log ^2(3)-128 \log ^3(3)+2 \log ^4(3)\right )+\frac {16}{3} x^3 \left (1-192 \log (3)+288 \log ^2(3)-68 \log ^3(3)+2 \log ^4(3)\right )+x^2 \left (16+1537 \log ^2(3)-768 \log ^3(3)+32 \log ^4(3)\right )+2 x^4 \log (x)+4 x^3 (4-\log (3)) \log (x)-16 x (4-\log (3)) \log (3) \log (x)+32 \log ^2(3) \log (x)+2 x^2 \left (16-16 \log (3)+\log ^2(3)\right ) \log (x)+\log ^2(x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.05, size = 19, normalized size = 1.00 \begin {gather*} \left ((4+x)^2 (x-\log (3))^2+\log (x)\right )^2 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.78, size = 183, normalized size = 9.63 \begin {gather*} x^{8} + 16 \, x^{7} + 96 \, x^{6} + 256 \, x^{5} + {\left (x^{4} + 16 \, x^{3} + 96 \, x^{2} + 256 \, x\right )} \log \relax (3)^{4} + 256 \, x^{4} - 4 \, {\left (x^{5} + 16 \, x^{4} + 96 \, x^{3} + 256 \, x^{2} + 256 \, x\right )} \log \relax (3)^{3} + 6 \, {\left (x^{6} + 16 \, x^{5} + 96 \, x^{4} + 256 \, x^{3} + 256 \, x^{2}\right )} \log \relax (3)^{2} - 4 \, {\left (x^{7} + 16 \, x^{6} + 96 \, x^{5} + 256 \, x^{4} + 256 \, x^{3}\right )} \log \relax (3) + 2 \, {\left (x^{4} + 8 \, x^{3} + {\left (x^{2} + 8 \, x + 16\right )} \log \relax (3)^{2} + 16 \, x^{2} - 2 \, {\left (x^{3} + 8 \, x^{2} + 16 \, x\right )} \log \relax (3)\right )} \log \relax (x) + \log \relax (x)^{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.21, size = 196, normalized size = 10.32 \begin {gather*} x^{8} - 4 \, x^{7} {\left (\log \relax (3) - 4\right )} + 2 \, {\left (3 \, \log \relax (3)^{2} - 32 \, \log \relax (3) + 48\right )} x^{6} - 4 \, {\left (\log \relax (3)^{3} - 24 \, \log \relax (3)^{2} + 96 \, \log \relax (3) - 64\right )} x^{5} + {\left (\log \relax (3)^{4} - 64 \, \log \relax (3)^{3} + 576 \, \log \relax (3)^{2} - 1024 \, \log \relax (3) + 256\right )} x^{4} + 16 \, {\left (\log \relax (3)^{4} - 24 \, \log \relax (3)^{3} + 96 \, \log \relax (3)^{2} - 64 \, \log \relax (3)\right )} x^{3} + 32 \, {\left (3 \, \log \relax (3)^{4} - 32 \, \log \relax (3)^{3} + 48 \, \log \relax (3)^{2}\right )} x^{2} + 32 \, \log \relax (3)^{2} \log \relax (x) + 256 \, {\left (\log \relax (3)^{4} - 4 \, \log \relax (3)^{3}\right )} x + 2 \, {\left (x^{4} - 2 \, x^{3} {\left (\log \relax (3) - 4\right )} + {\left (\log \relax (3)^{2} - 16 \, \log \relax (3) + 16\right )} x^{2} + 8 \, {\left (\log \relax (3)^{2} - 4 \, \log \relax (3)\right )} x\right )} \log \relax (x) + \log \relax (x)^{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.07, size = 208, normalized size = 10.95
method | result | size |
norman | \(x^{8}+\ln \relax (x )^{2}+32 \ln \relax (3)^{2} \ln \relax (x )+\left (256 \ln \relax (3)^{4}-1024 \ln \relax (3)^{3}\right ) x +\left (-4 \ln \relax (3)+16\right ) x^{7}+\left (6 \ln \relax (3)^{2}-64 \ln \relax (3)+96\right ) x^{6}+\left (1536 \ln \relax (3)^{2}+96 \ln \relax (3)^{4}-1024 \ln \relax (3)^{3}\right ) x^{2}+\left (-4 \ln \relax (3)^{3}+96 \ln \relax (3)^{2}-384 \ln \relax (3)+256\right ) x^{5}+\left (-1024 \ln \relax (3)+16 \ln \relax (3)^{4}-384 \ln \relax (3)^{3}+1536 \ln \relax (3)^{2}\right ) x^{3}+\left (256+\ln \relax (3)^{4}-64 \ln \relax (3)^{3}+576 \ln \relax (3)^{2}-1024 \ln \relax (3)\right ) x^{4}+\left (16 \ln \relax (3)^{2}-64 \ln \relax (3)\right ) x \ln \relax (x )+\left (-4 \ln \relax (3)+16\right ) x^{3} \ln \relax (x )+\left (2 \ln \relax (3)^{2}-32 \ln \relax (3)+32\right ) x^{2} \ln \relax (x )+2 x^{4} \ln \relax (x )\) | \(208\) |
risch | \(-384 x^{3} \ln \relax (3)^{3}+16 x^{7}+x^{8}+\ln \relax (x )^{2}+256 x^{4}+96 x^{6}+256 x^{5}-64 x^{6} \ln \relax (3)-1024 x \ln \relax (3)^{3}+1536 x^{3} \ln \relax (3)^{2}+32 \ln \relax (3)^{2} \ln \relax (x )-384 x^{5} \ln \relax (3)-1024 x^{3} \ln \relax (3)+256 x \ln \relax (3)^{4}-1024 \ln \relax (3)^{3} x^{2}+x^{4} \ln \relax (3)^{4}+96 x^{2} \ln \relax (3)^{4}+96 x^{5} \ln \relax (3)^{2}+6 x^{6} \ln \relax (3)^{2}+1536 x^{2} \ln \relax (3)^{2}+576 x^{4} \ln \relax (3)^{2}-64 x^{4} \ln \relax (3)^{3}-1024 x^{4} \ln \relax (3)-4 \ln \relax (3)^{3} x^{5}-4 \ln \relax (3) x^{7}+16 \ln \relax (3)^{4} x^{3}+\left (2 x^{2} \ln \relax (3)^{2}-4 x^{3} \ln \relax (3)+2 x^{4}+16 x \ln \relax (3)^{2}-32 x^{2} \ln \relax (3)+16 x^{3}-64 x \ln \relax (3)+32 x^{2}\right ) \ln \relax (x )\) | \(247\) |
default | \(32 x^{2} \ln \relax (x )-384 x^{3} \ln \relax (3)^{3}-16 x^{2} \ln \relax (3)+16 x^{7}+x^{8}+\ln \relax (x )^{2}+256 x^{4}+96 x^{6}+256 x^{5}+16 x^{3} \ln \relax (x )-64 x^{6} \ln \relax (3)-1024 x \ln \relax (3)^{3}+1536 x^{3} \ln \relax (3)^{2}+32 \ln \relax (3)^{2} \ln \relax (x )-384 x^{5} \ln \relax (3)-\frac {3076 x^{3} \ln \relax (3)}{3}+16 x \ln \relax (3)^{2}-64 x \ln \relax (3)+2 x^{4} \ln \relax (x )+256 x \ln \relax (3)^{4}-1024 \ln \relax (3)^{3} x^{2}+x^{4} \ln \relax (3)^{4}+96 x^{2} \ln \relax (3)^{4}+96 x^{5} \ln \relax (3)^{2}+6 x^{6} \ln \relax (3)^{2}+1537 x^{2} \ln \relax (3)^{2}+576 x^{4} \ln \relax (3)^{2}-64 x^{4} \ln \relax (3)^{3}-1024 x^{4} \ln \relax (3)-64 \ln \relax (3) \left (\frac {x^{2} \ln \relax (x )}{2}-\frac {x^{2}}{4}\right )-12 \ln \relax (3) \left (\frac {x^{3} \ln \relax (x )}{3}-\frac {x^{3}}{9}\right )+16 \ln \relax (3)^{2} \left (x \ln \relax (x )-x \right )-64 \ln \relax (3) \left (x \ln \relax (x )-x \right )-4 \ln \relax (3)^{3} x^{5}-4 \ln \relax (3) x^{7}+16 \ln \relax (3)^{4} x^{3}+4 \ln \relax (3)^{2} \left (\frac {x^{2} \ln \relax (x )}{2}-\frac {x^{2}}{4}\right )\) | \(312\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.45, size = 310, normalized size = 16.32 \begin {gather*} x^{8} - 4 \, x^{7} \log \relax (3) + 6 \, x^{6} \log \relax (3)^{2} - 4 \, x^{5} \log \relax (3)^{3} + x^{4} \log \relax (3)^{4} + 16 \, x^{7} - 64 \, x^{6} \log \relax (3) + 96 \, x^{5} \log \relax (3)^{2} - 64 \, x^{4} \log \relax (3)^{3} + 16 \, x^{3} \log \relax (3)^{4} + 96 \, x^{6} - 384 \, x^{5} \log \relax (3) + 576 \, x^{4} \log \relax (3)^{2} - 384 \, x^{3} \log \relax (3)^{3} + 96 \, x^{2} \log \relax (3)^{4} + 256 \, x^{5} - 1024 \, x^{4} \log \relax (3) + 1536 \, x^{3} \log \relax (3)^{2} - 1024 \, x^{2} \log \relax (3)^{3} + 256 \, x \log \relax (3)^{4} + 2 \, x^{4} \log \relax (x) + 256 \, x^{4} - \frac {3076}{3} \, x^{3} \log \relax (3) + 1537 \, x^{2} \log \relax (3)^{2} - 1024 \, x \log \relax (3)^{3} + 16 \, x^{3} \log \relax (x) - 16 \, x^{2} \log \relax (3) + {\left (2 \, x^{2} \log \relax (x) - x^{2}\right )} \log \relax (3)^{2} + 16 \, {\left (x \log \relax (x) - x\right )} \log \relax (3)^{2} + 16 \, x \log \relax (3)^{2} + 32 \, x^{2} \log \relax (x) + 32 \, \log \relax (3)^{2} \log \relax (x) - \frac {4}{3} \, {\left (3 \, x^{3} \log \relax (x) - x^{3}\right )} \log \relax (3) - 16 \, {\left (2 \, x^{2} \log \relax (x) - x^{2}\right )} \log \relax (3) - 64 \, {\left (x \log \relax (x) - x\right )} \log \relax (3) - 64 \, x \log \relax (3) + \log \relax (x)^{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.71, size = 184, normalized size = 9.68 \begin {gather*} 32\,{\ln \relax (3)}^2\,\ln \relax (x)-x^7\,\left (\ln \left (81\right )-16\right )+{\ln \relax (x)}^2+x^6\,\left (6\,{\ln \relax (3)}^2-64\,\ln \relax (3)+96\right )-x^3\,\left (\ln \relax (x)\,\left (\ln \left (81\right )-16\right )-16\,\ln \relax (3)\,\left (96\,\ln \relax (3)-24\,{\ln \relax (3)}^2+{\ln \relax (3)}^3-64\right )\right )+x\,\left (256\,{\ln \relax (3)}^3\,\left (\ln \relax (3)-4\right )+16\,\ln \relax (3)\,\ln \relax (x)\,\left (\ln \relax (3)-4\right )\right )+x^2\,\left (32\,{\ln \relax (3)}^2\,\left (3\,{\ln \relax (3)}^2-32\,\ln \relax (3)+48\right )+\ln \relax (x)\,\left (2\,{\ln \relax (3)}^2-32\,\ln \relax (3)+32\right )\right )+x^4\,\left (2\,\ln \relax (x)-1024\,\ln \relax (3)+576\,{\ln \relax (3)}^2-64\,{\ln \relax (3)}^3+{\ln \relax (3)}^4+256\right )+x^8-4\,x^5\,\left (\ln \relax (3)-4\right )\,\left ({\ln \relax (3)}^2-20\,\ln \relax (3)+16\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.51, size = 226, normalized size = 11.89 \begin {gather*} x^{8} + x^{7} \left (16 - 4 \log {\relax (3 )}\right ) + x^{6} \left (- 64 \log {\relax (3 )} + 6 \log {\relax (3 )}^{2} + 96\right ) + x^{5} \left (- 384 \log {\relax (3 )} - 4 \log {\relax (3 )}^{3} + 96 \log {\relax (3 )}^{2} + 256\right ) + x^{4} \left (- 1024 \log {\relax (3 )} - 64 \log {\relax (3 )}^{3} + \log {\relax (3 )}^{4} + 256 + 576 \log {\relax (3 )}^{2}\right ) + x^{3} \left (- 1024 \log {\relax (3 )} - 384 \log {\relax (3 )}^{3} + 16 \log {\relax (3 )}^{4} + 1536 \log {\relax (3 )}^{2}\right ) + x^{2} \left (- 1024 \log {\relax (3 )}^{3} + 96 \log {\relax (3 )}^{4} + 1536 \log {\relax (3 )}^{2}\right ) + x \left (- 1024 \log {\relax (3 )}^{3} + 256 \log {\relax (3 )}^{4}\right ) + \left (2 x^{4} - 4 x^{3} \log {\relax (3 )} + 16 x^{3} - 32 x^{2} \log {\relax (3 )} + 2 x^{2} \log {\relax (3 )}^{2} + 32 x^{2} - 64 x \log {\relax (3 )} + 16 x \log {\relax (3 )}^{2}\right ) \log {\relax (x )} + \log {\relax (x )}^{2} + 32 \log {\relax (3 )}^{2} \log {\relax (x )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________