Optimal. Leaf size=12 \[ \log ^2\left (x+\frac {5 x^2}{8}\right ) \]
________________________________________________________________________________________
Rubi [B] time = 0.32, antiderivative size = 75, normalized size of antiderivative = 6.25, number of steps used = 18, number of rules used = 10, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.323, Rules used = {1593, 2528, 2524, 2357, 2301, 2317, 2391, 2418, 2392, 2390} \begin {gather*} 2 \log \left (\frac {1}{8} \left (5 x^2+8 x\right )\right ) \log (x)+2 \log (5 x+8) \log \left (\frac {1}{8} \left (5 x^2+8 x\right )\right )-\log ^2(x)-\log ^2(5 x+8)-2 \log \left (\frac {5 x}{8}+1\right ) \log (x)-2 \log (8) \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 1593
Rule 2301
Rule 2317
Rule 2357
Rule 2390
Rule 2391
Rule 2392
Rule 2418
Rule 2524
Rule 2528
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {(16+20 x) \log \left (\frac {1}{8} \left (8 x+5 x^2\right )\right )}{x (8+5 x)} \, dx\\ &=\int \left (\frac {2 \log \left (\frac {1}{8} \left (8 x+5 x^2\right )\right )}{x}+\frac {10 \log \left (\frac {1}{8} \left (8 x+5 x^2\right )\right )}{8+5 x}\right ) \, dx\\ &=2 \int \frac {\log \left (\frac {1}{8} \left (8 x+5 x^2\right )\right )}{x} \, dx+10 \int \frac {\log \left (\frac {1}{8} \left (8 x+5 x^2\right )\right )}{8+5 x} \, dx\\ &=2 \log (x) \log \left (\frac {1}{8} \left (8 x+5 x^2\right )\right )+2 \log (8+5 x) \log \left (\frac {1}{8} \left (8 x+5 x^2\right )\right )-2 \int \frac {(8+10 x) \log (x)}{8 x+5 x^2} \, dx-2 \int \frac {(8+10 x) \log (8+5 x)}{8 x+5 x^2} \, dx\\ &=2 \log (x) \log \left (\frac {1}{8} \left (8 x+5 x^2\right )\right )+2 \log (8+5 x) \log \left (\frac {1}{8} \left (8 x+5 x^2\right )\right )-2 \int \frac {(8+10 x) \log (x)}{x (8+5 x)} \, dx-2 \int \frac {(8+10 x) \log (8+5 x)}{x (8+5 x)} \, dx\\ &=2 \log (x) \log \left (\frac {1}{8} \left (8 x+5 x^2\right )\right )+2 \log (8+5 x) \log \left (\frac {1}{8} \left (8 x+5 x^2\right )\right )-2 \int \left (\frac {\log (x)}{x}+\frac {5 \log (x)}{8+5 x}\right ) \, dx-2 \int \left (\frac {\log (8+5 x)}{x}+\frac {5 \log (8+5 x)}{8+5 x}\right ) \, dx\\ &=2 \log (x) \log \left (\frac {1}{8} \left (8 x+5 x^2\right )\right )+2 \log (8+5 x) \log \left (\frac {1}{8} \left (8 x+5 x^2\right )\right )-2 \int \frac {\log (x)}{x} \, dx-2 \int \frac {\log (8+5 x)}{x} \, dx-10 \int \frac {\log (x)}{8+5 x} \, dx-10 \int \frac {\log (8+5 x)}{8+5 x} \, dx\\ &=-2 \log (8) \log (x)-2 \log \left (1+\frac {5 x}{8}\right ) \log (x)-\log ^2(x)+2 \log (x) \log \left (\frac {1}{8} \left (8 x+5 x^2\right )\right )+2 \log (8+5 x) \log \left (\frac {1}{8} \left (8 x+5 x^2\right )\right )-2 \operatorname {Subst}\left (\int \frac {\log (x)}{x} \, dx,x,8+5 x\right )\\ &=-2 \log (8) \log (x)-2 \log \left (1+\frac {5 x}{8}\right ) \log (x)-\log ^2(x)-\log ^2(8+5 x)+2 \log (x) \log \left (\frac {1}{8} \left (8 x+5 x^2\right )\right )+2 \log (8+5 x) \log \left (\frac {1}{8} \left (8 x+5 x^2\right )\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [B] time = 0.03, size = 83, normalized size = 6.92 \begin {gather*} 4 \left (-\frac {1}{2} \log (8) \log (x)-\frac {\log ^2(x)}{4}-\frac {1}{2} \log (x) \log \left (\frac {1}{8} (8+5 x)\right )-\frac {1}{4} \log ^2(8+5 x)+\frac {1}{2} \log (x) \log \left (x+\frac {5 x^2}{8}\right )+\frac {1}{2} \log (8+5 x) \log \left (x+\frac {5 x^2}{8}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.67, size = 10, normalized size = 0.83 \begin {gather*} \log \left (\frac {5}{8} \, x^{2} + x\right )^{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*} \int \frac {4 \, {\left (5 \, x + 4\right )} \log \left (\frac {5}{8} \, x^{2} + x\right )}{5 \, x^{2} + 8 \, x}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.24, size = 11, normalized size = 0.92
method | result | size |
norman | \(\ln \left (\frac {5}{8} x^{2}+x \right )^{2}\) | \(11\) |
risch | \(\ln \left (\frac {5}{8} x^{2}+x \right )^{2}\) | \(11\) |
default | \(2 \ln \left (5 x +8\right ) \ln \left (5 x^{2}+8 x \right )-2 \left (\ln \left (5 x +8\right )-\ln \left (\frac {5 x}{8}+1\right )\right ) \ln \left (-\frac {5 x}{8}\right )-\ln \left (5 x +8\right )^{2}+2 \ln \relax (x ) \ln \left (5 x^{2}+8 x \right )-2 \ln \relax (x ) \ln \left (\frac {5 x}{8}+1\right )-\ln \relax (x )^{2}-6 \ln \relax (2) \ln \left (x \left (5 x +8\right )\right )\) | \(93\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.41, size = 47, normalized size = 3.92 \begin {gather*} 2 \, \log \left (5 \, x^{2} + 8 \, x\right ) \log \left (\frac {5}{8} \, x^{2} + x\right ) - \log \left (5 \, x + 8\right )^{2} - 2 \, \log \left (5 \, x + 8\right ) \log \relax (x) - \log \relax (x)^{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.80, size = 10, normalized size = 0.83 \begin {gather*} {\ln \left (\frac {5\,x^2}{8}+x\right )}^2 \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.12, size = 10, normalized size = 0.83 \begin {gather*} \log {\left (\frac {5 x^{2}}{8} + x \right )}^{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________