Optimal. Leaf size=14 \[ \frac {\log ^2\left (x^2 (5+x)\right )}{x^3} \]
________________________________________________________________________________________
Rubi [A] time = 1.57, antiderivative size = 14, normalized size of antiderivative = 1.00, number of steps used = 54, number of rules used = 19, integrand size = 47, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.404, Rules used = {1593, 6741, 6688, 6742, 77, 2495, 30, 44, 2514, 36, 29, 31, 2494, 2301, 2317, 2391, 2392, 2390, 2498} \begin {gather*} \frac {\log ^2\left (x^2 (x+5)\right )}{x^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 30
Rule 31
Rule 36
Rule 44
Rule 77
Rule 1593
Rule 2301
Rule 2317
Rule 2390
Rule 2391
Rule 2392
Rule 2494
Rule 2495
Rule 2498
Rule 2514
Rule 6688
Rule 6741
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {(20+6 x) \log \left (5 x^2+x^3\right )+(-15-3 x) \log ^2\left (5 x^2+x^3\right )}{x^4 (5+x)} \, dx\\ &=\int \frac {\log \left (x^2 (5+x)\right ) \left (20+6 x-15 \log \left (x^2 (5+x)\right )-3 x \log \left (x^2 (5+x)\right )\right )}{x^4 (5+x)} \, dx\\ &=\int \frac {\log \left (x^2 (5+x)\right ) \left (20+6 x-3 (5+x) \log \left (x^2 (5+x)\right )\right )}{x^4 (5+x)} \, dx\\ &=\int \left (\frac {2 (10+3 x) \log \left (x^2 (5+x)\right )}{x^4 (5+x)}-\frac {3 \log ^2\left (x^2 (5+x)\right )}{x^4}\right ) \, dx\\ &=2 \int \frac {(10+3 x) \log \left (x^2 (5+x)\right )}{x^4 (5+x)} \, dx-3 \int \frac {\log ^2\left (x^2 (5+x)\right )}{x^4} \, dx\\ &=\frac {\log ^2\left (x^2 (5+x)\right )}{x^3}-2 \int \frac {\log \left (x^2 (5+x)\right )}{x^3 (5+x)} \, dx+2 \int \left (\frac {2 \log \left (x^2 (5+x)\right )}{x^4}+\frac {\log \left (x^2 (5+x)\right )}{5 x^3}-\frac {\log \left (x^2 (5+x)\right )}{25 x^2}+\frac {\log \left (x^2 (5+x)\right )}{125 x}-\frac {\log \left (x^2 (5+x)\right )}{125 (5+x)}\right ) \, dx-4 \int \frac {\log \left (x^2 (5+x)\right )}{x^4} \, dx\\ &=\frac {4 \log \left (x^2 (5+x)\right )}{3 x^3}+\frac {\log ^2\left (x^2 (5+x)\right )}{x^3}+\frac {2}{125} \int \frac {\log \left (x^2 (5+x)\right )}{x} \, dx-\frac {2}{125} \int \frac {\log \left (x^2 (5+x)\right )}{5+x} \, dx-\frac {2}{25} \int \frac {\log \left (x^2 (5+x)\right )}{x^2} \, dx+\frac {2}{5} \int \frac {\log \left (x^2 (5+x)\right )}{x^3} \, dx-\frac {4}{3} \int \frac {1}{x^3 (5+x)} \, dx-2 \int \left (\frac {\log \left (x^2 (5+x)\right )}{5 x^3}-\frac {\log \left (x^2 (5+x)\right )}{25 x^2}+\frac {\log \left (x^2 (5+x)\right )}{125 x}-\frac {\log \left (x^2 (5+x)\right )}{125 (5+x)}\right ) \, dx-\frac {8}{3} \int \frac {1}{x^4} \, dx+4 \int \frac {\log \left (x^2 (5+x)\right )}{x^4} \, dx\\ &=\frac {8}{9 x^3}-\frac {\log \left (x^2 (5+x)\right )}{5 x^2}+\frac {2 \log \left (x^2 (5+x)\right )}{25 x}+\frac {2}{125} \log (x) \log \left (x^2 (5+x)\right )-\frac {2}{125} \log (5+x) \log \left (x^2 (5+x)\right )+\frac {\log ^2\left (x^2 (5+x)\right )}{x^3}-\frac {2}{125} \int \frac {\log (x)}{5+x} \, dx+\frac {2}{125} \int \frac {\log (5+x)}{5+x} \, dx-\frac {2}{125} \int \frac {\log \left (x^2 (5+x)\right )}{x} \, dx+\frac {2}{125} \int \frac {\log \left (x^2 (5+x)\right )}{5+x} \, dx-\frac {4}{125} \int \frac {\log (x)}{x} \, dx+\frac {4}{125} \int \frac {\log (5+x)}{x} \, dx-\frac {2}{25} \int \frac {1}{x (5+x)} \, dx+\frac {2}{25} \int \frac {\log \left (x^2 (5+x)\right )}{x^2} \, dx-\frac {4}{25} \int \frac {1}{x^2} \, dx+\frac {1}{5} \int \frac {1}{x^2 (5+x)} \, dx+\frac {2}{5} \int \frac {1}{x^3} \, dx-\frac {2}{5} \int \frac {\log \left (x^2 (5+x)\right )}{x^3} \, dx+\frac {4}{3} \int \frac {1}{x^3 (5+x)} \, dx-\frac {4}{3} \int \left (\frac {1}{5 x^3}-\frac {1}{25 x^2}+\frac {1}{125 x}-\frac {1}{125 (5+x)}\right ) \, dx+\frac {8}{3} \int \frac {1}{x^4} \, dx\\ &=-\frac {1}{15 x^2}+\frac {8}{75 x}-\frac {4 \log (x)}{375}+\frac {4}{125} \log (5) \log (x)-\frac {2}{125} \log \left (1+\frac {x}{5}\right ) \log (x)-\frac {2 \log ^2(x)}{125}+\frac {4}{375} \log (5+x)+\frac {\log ^2\left (x^2 (5+x)\right )}{x^3}-\frac {2}{125} \int \frac {1}{x} \, dx+\frac {2}{125} \int \frac {1}{5+x} \, dx+\frac {2}{125} \int \frac {\log \left (1+\frac {x}{5}\right )}{x} \, dx+\frac {2}{125} \int \frac {\log (x)}{5+x} \, dx-\frac {2}{125} \int \frac {\log (5+x)}{5+x} \, dx+\frac {2}{125} \operatorname {Subst}\left (\int \frac {\log (x)}{x} \, dx,x,5+x\right )+\frac {4}{125} \int \frac {\log \left (1+\frac {x}{5}\right )}{x} \, dx+\frac {4}{125} \int \frac {\log (x)}{x} \, dx-\frac {4}{125} \int \frac {\log (5+x)}{x} \, dx+\frac {2}{25} \int \frac {1}{x (5+x)} \, dx+\frac {4}{25} \int \frac {1}{x^2} \, dx-\frac {1}{5} \int \frac {1}{x^2 (5+x)} \, dx+\frac {1}{5} \int \left (\frac {1}{5 x^2}-\frac {1}{25 x}+\frac {1}{25 (5+x)}\right ) \, dx-\frac {2}{5} \int \frac {1}{x^3} \, dx+\frac {4}{3} \int \left (\frac {1}{5 x^3}-\frac {1}{25 x^2}+\frac {1}{125 x}-\frac {1}{125 (5+x)}\right ) \, dx\\ &=-\frac {1}{25 x}-\frac {3 \log (x)}{125}+\frac {3}{125} \log (5+x)+\frac {1}{125} \log ^2(5+x)+\frac {\log ^2\left (x^2 (5+x)\right )}{x^3}-\frac {6 \text {Li}_2\left (-\frac {x}{5}\right )}{125}+\frac {2}{125} \int \frac {1}{x} \, dx-\frac {2}{125} \int \frac {1}{5+x} \, dx-\frac {2}{125} \int \frac {\log \left (1+\frac {x}{5}\right )}{x} \, dx-\frac {2}{125} \operatorname {Subst}\left (\int \frac {\log (x)}{x} \, dx,x,5+x\right )-\frac {4}{125} \int \frac {\log \left (1+\frac {x}{5}\right )}{x} \, dx-\frac {1}{5} \int \left (\frac {1}{5 x^2}-\frac {1}{25 x}+\frac {1}{25 (5+x)}\right ) \, dx\\ &=\frac {\log ^2\left (x^2 (5+x)\right )}{x^3}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.17, size = 14, normalized size = 1.00 \begin {gather*} \frac {\log ^2\left (x^2 (5+x)\right )}{x^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.65, size = 16, normalized size = 1.14 \begin {gather*} \frac {\log \left (x^{3} + 5 \, x^{2}\right )^{2}}{x^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.21, size = 16, normalized size = 1.14 \begin {gather*} \frac {\log \left (x^{3} + 5 \, x^{2}\right )^{2}}{x^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.23, size = 17, normalized size = 1.21
method | result | size |
norman | \(\frac {\ln \left (x^{3}+5 x^{2}\right )^{2}}{x^{3}}\) | \(17\) |
risch | \(\frac {\ln \left (x^{3}+5 x^{2}\right )^{2}}{x^{3}}\) | \(17\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.50, size = 25, normalized size = 1.79 \begin {gather*} \frac {\log \left (x + 5\right )^{2} + 4 \, \log \left (x + 5\right ) \log \relax (x) + 4 \, \log \relax (x)^{2}}{x^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 6.38, size = 14, normalized size = 1.00 \begin {gather*} \frac {{\ln \left (x^2\,\left (x+5\right )\right )}^2}{x^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.17, size = 14, normalized size = 1.00 \begin {gather*} \frac {\log {\left (x^{3} + 5 x^{2} \right )}^{2}}{x^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________