Optimal. Leaf size=21 \[ \frac {\left (-17+e^4 x\right ) \log ^2\left (e^5 x\right )}{(1+x)^2} \]
________________________________________________________________________________________
Rubi [C] time = 0.70, antiderivative size = 255, normalized size of antiderivative = 12.14, number of steps used = 29, number of rules used = 14, integrand size = 68, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.206, Rules used = {6688, 6742, 44, 37, 2357, 2301, 2319, 2314, 31, 2317, 2391, 2347, 2344, 2318} \begin {gather*} -2 \left (17+e^4\right ) \text {Li}_2(-x)+2 e^4 \text {Li}_2(-x)+34 \text {Li}_2(-x)-\frac {15 e^4 x^2}{2 (x+1)^2}+\frac {10 \left (17+e^4\right )}{x+1}-\frac {170}{x+1}-\frac {5 \left (136+7 e^4\right )}{2 (x+1)^2}-\frac {85}{(x+1)^2}-\frac {e^4 x \log ^2(x)}{x+1}-\frac {\left (17+e^4\right ) \log ^2(x)}{(x+1)^2}+\left (17+e^4\right ) \log ^2(x)-17 \log ^2(x)-\frac {2 \left (17+e^4\right ) x \log (x)}{x+1}+\frac {2 \left (17-4 e^4\right ) x \log (x)}{x+1}-\frac {10 \left (17+e^4\right ) \log (x)}{(x+1)^2}+10 \left (17+e^4\right ) \log (x)-170 \log (x)-2 \left (17+e^4\right ) \log (x) \log (x+1)+2 e^4 \log (x) \log (x+1)+34 \log (x) \log (x+1)-8 \left (17+e^4\right ) \log (x+1)-2 \left (17-4 e^4\right ) \log (x+1)+170 \log (x+1) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 37
Rule 44
Rule 2301
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 {(5+\log (x)) \left (-34+\left (136+7 e^4\right ) x-3 e^4 x^2+\left (34-e^4 (-1+x)\right ) x \log (x)\right )}{x (1+x)^3} \, dx\\ &=\int \left (\frac {5 \left (136+7 e^4\right )}{(1+x)^3}-\frac {170}{x (1+x)^3}-\frac {15 e^4 x}{(1+x)^3}+\frac {2 \left (-17+3 \left (51+2 e^4\right ) x-4 e^4 x^2\right ) \log (x)}{x (1+x)^3}-\frac {\left (-34-e^4+e^4 x\right ) \log ^2(x)}{(1+x)^3}\right ) \, dx\\ &=-\frac {5 \left (136+7 e^4\right )}{2 (1+x)^2}+2 \int \frac {\left (-17+3 \left (51+2 e^4\right ) x-4 e^4 x^2\right ) \log (x)}{x (1+x)^3} \, dx-170 \int \frac {1}{x (1+x)^3} \, dx-\left (15 e^4\right ) \int \frac {x}{(1+x)^3} \, dx-\int \frac {\left (-34-e^4+e^4 x\right ) \log ^2(x)}{(1+x)^3} \, dx\\ &=-\frac {5 \left (136+7 e^4\right )}{2 (1+x)^2}-\frac {15 e^4 x^2}{2 (1+x)^2}+2 \int \left (-\frac {17 \log (x)}{x}+\frac {10 \left (17+e^4\right ) \log (x)}{(1+x)^3}+\frac {\left (17-4 e^4\right ) \log (x)}{(1+x)^2}+\frac {17 \log (x)}{1+x}\right ) \, dx-170 \int \left (\frac {1}{-1-x}+\frac {1}{x}-\frac {1}{(1+x)^3}-\frac {1}{(1+x)^2}\right ) \, dx-\int \left (-\frac {2 \left (17+e^4\right ) \log ^2(x)}{(1+x)^3}+\frac {e^4 \log ^2(x)}{(1+x)^2}\right ) \, dx\\ &=-\frac {85}{(1+x)^2}-\frac {5 \left (136+7 e^4\right )}{2 (1+x)^2}-\frac {15 e^4 x^2}{2 (1+x)^2}-\frac {170}{1+x}-170 \log (x)+170 \log (1+x)-34 \int \frac {\log (x)}{x} \, dx+34 \int \frac {\log (x)}{1+x} \, dx-e^4 \int \frac {\log ^2(x)}{(1+x)^2} \, dx+\left (2 \left (17-4 e^4\right )\right ) \int \frac {\log (x)}{(1+x)^2} \, dx+\left (2 \left (17+e^4\right )\right ) \int \frac {\log ^2(x)}{(1+x)^3} \, dx+\left (20 \left (17+e^4\right )\right ) \int \frac {\log (x)}{(1+x)^3} \, dx\\ &=-\frac {85}{(1+x)^2}-\frac {5 \left (136+7 e^4\right )}{2 (1+x)^2}-\frac {15 e^4 x^2}{2 (1+x)^2}-\frac {170}{1+x}-170 \log (x)-\frac {10 \left (17+e^4\right ) \log (x)}{(1+x)^2}+\frac {2 \left (17-4 e^4\right ) x \log (x)}{1+x}-17 \log ^2(x)-\frac {\left (17+e^4\right ) \log ^2(x)}{(1+x)^2}-\frac {e^4 x \log ^2(x)}{1+x}+170 \log (1+x)+34 \log (x) \log (1+x)-34 \int \frac {\log (1+x)}{x} \, dx+\left (2 e^4\right ) \int \frac {\log (x)}{1+x} \, dx-\left (2 \left (17-4 e^4\right )\right ) \int \frac {1}{1+x} \, dx+\left (2 \left (17+e^4\right )\right ) \int \frac {\log (x)}{x (1+x)^2} \, dx+\left (10 \left (17+e^4\right )\right ) \int \frac {1}{x (1+x)^2} \, dx\\ &=-\frac {85}{(1+x)^2}-\frac {5 \left (136+7 e^4\right )}{2 (1+x)^2}-\frac {15 e^4 x^2}{2 (1+x)^2}-\frac {170}{1+x}-170 \log (x)-\frac {10 \left (17+e^4\right ) \log (x)}{(1+x)^2}+\frac {2 \left (17-4 e^4\right ) x \log (x)}{1+x}-17 \log ^2(x)-\frac {\left (17+e^4\right ) \log ^2(x)}{(1+x)^2}-\frac {e^4 x \log ^2(x)}{1+x}+170 \log (1+x)-2 \left (17-4 e^4\right ) \log (1+x)+34 \log (x) \log (1+x)+2 e^4 \log (x) \log (1+x)+34 \text {Li}_2(-x)-\left (2 e^4\right ) \int \frac {\log (1+x)}{x} \, dx-\left (2 \left (17+e^4\right )\right ) \int \frac {\log (x)}{(1+x)^2} \, dx+\left (2 \left (17+e^4\right )\right ) \int \frac {\log (x)}{x (1+x)} \, dx+\left (10 \left (17+e^4\right )\right ) \int \left (\frac {1}{-1-x}+\frac {1}{x}-\frac {1}{(1+x)^2}\right ) \, dx\\ &=-\frac {85}{(1+x)^2}-\frac {5 \left (136+7 e^4\right )}{2 (1+x)^2}-\frac {15 e^4 x^2}{2 (1+x)^2}-\frac {170}{1+x}+\frac {10 \left (17+e^4\right )}{1+x}-170 \log (x)+10 \left (17+e^4\right ) \log (x)-\frac {10 \left (17+e^4\right ) \log (x)}{(1+x)^2}+\frac {2 \left (17-4 e^4\right ) x \log (x)}{1+x}-\frac {2 \left (17+e^4\right ) x \log (x)}{1+x}-17 \log ^2(x)-\frac {\left (17+e^4\right ) \log ^2(x)}{(1+x)^2}-\frac {e^4 x \log ^2(x)}{1+x}+170 \log (1+x)-2 \left (17-4 e^4\right ) \log (1+x)-10 \left (17+e^4\right ) \log (1+x)+34 \log (x) \log (1+x)+2 e^4 \log (x) \log (1+x)+34 \text {Li}_2(-x)+2 e^4 \text {Li}_2(-x)+\left (2 \left (17+e^4\right )\right ) \int \frac {1}{1+x} \, dx+\left (2 \left (17+e^4\right )\right ) \int \frac {\log (x)}{x} \, dx-\left (2 \left (17+e^4\right )\right ) \int \frac {\log (x)}{1+x} \, dx\\ &=-\frac {85}{(1+x)^2}-\frac {5 \left (136+7 e^4\right )}{2 (1+x)^2}-\frac {15 e^4 x^2}{2 (1+x)^2}-\frac {170}{1+x}+\frac {10 \left (17+e^4\right )}{1+x}-170 \log (x)+10 \left (17+e^4\right ) \log (x)-\frac {10 \left (17+e^4\right ) \log (x)}{(1+x)^2}+\frac {2 \left (17-4 e^4\right ) x \log (x)}{1+x}-\frac {2 \left (17+e^4\right ) x \log (x)}{1+x}-17 \log ^2(x)+\left (17+e^4\right ) \log ^2(x)-\frac {\left (17+e^4\right ) \log ^2(x)}{(1+x)^2}-\frac {e^4 x \log ^2(x)}{1+x}+170 \log (1+x)-2 \left (17-4 e^4\right ) \log (1+x)-8 \left (17+e^4\right ) \log (1+x)+34 \log (x) \log (1+x)+2 e^4 \log (x) \log (1+x)-2 \left (17+e^4\right ) \log (x) \log (1+x)+34 \text {Li}_2(-x)+2 e^4 \text {Li}_2(-x)+\left (2 \left (17+e^4\right )\right ) \int \frac {\log (1+x)}{x} \, dx\\ &=-\frac {85}{(1+x)^2}-\frac {5 \left (136+7 e^4\right )}{2 (1+x)^2}-\frac {15 e^4 x^2}{2 (1+x)^2}-\frac {170}{1+x}+\frac {10 \left (17+e^4\right )}{1+x}-170 \log (x)+10 \left (17+e^4\right ) \log (x)-\frac {10 \left (17+e^4\right ) \log (x)}{(1+x)^2}+\frac {2 \left (17-4 e^4\right ) x \log (x)}{1+x}-\frac {2 \left (17+e^4\right ) x \log (x)}{1+x}-17 \log ^2(x)+\left (17+e^4\right ) \log ^2(x)-\frac {\left (17+e^4\right ) \log ^2(x)}{(1+x)^2}-\frac {e^4 x \log ^2(x)}{1+x}+170 \log (1+x)-2 \left (17-4 e^4\right ) \log (1+x)-8 \left (17+e^4\right ) \log (1+x)+34 \log (x) \log (1+x)+2 e^4 \log (x) \log (1+x)-2 \left (17+e^4\right ) \log (x) \log (1+x)+34 \text {Li}_2(-x)+2 e^4 \text {Li}_2(-x)-2 \left (17+e^4\right ) \text {Li}_2(-x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.18, size = 19, normalized size = 0.90 \begin {gather*} \frac {\left (-17+e^4 x\right ) (5+\log (x))^2}{(1+x)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.79, size = 24, normalized size = 1.14 \begin {gather*} \frac {{\left (x e^{4} - 17\right )} \log \left (x e^{5}\right )^{2}}{x^{2} + 2 \, x + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.16, size = 43, normalized size = 2.05 \begin {gather*} \frac {x e^{4} \log \relax (x)^{2} + 10 \, x e^{4} \log \relax (x) + 25 \, x e^{4} - 17 \, \log \relax (x)^{2} - 170 \, \log \relax (x) - 425}{x^{2} + 2 \, x + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.29, size = 25, normalized size = 1.19
method | result | size |
risch | \(\frac {\left (x \,{\mathrm e}^{4}-17\right ) \ln \left (x \,{\mathrm e}^{5}\right )^{2}}{x^{2}+2 x +1}\) | \(25\) |
norman | \(\frac {x \,{\mathrm e}^{4} \ln \left (x \,{\mathrm e}^{5}\right )^{2}-17 \ln \left (x \,{\mathrm e}^{5}\right )^{2}}{\left (x +1\right )^{2}}\) | \(28\) |
derivativedivides | error in convert/parfrac: numeric exception: division by zero\ | N/A |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.43, size = 39, normalized size = 1.86 \begin {gather*} \frac {{\left (x e^{4} - 17\right )} \log \relax (x)^{2} + 25 \, x e^{4} + 10 \, {\left (x e^{4} - 17\right )} \log \relax (x) - 425}{x^{2} + 2 \, x + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 5.26, size = 19, normalized size = 0.90 \begin {gather*} \frac {{\ln \left (x\,{\mathrm {e}}^5\right )}^2\,\left (x\,{\mathrm {e}}^4-17\right )}{{\left (x+1\right )}^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.22, size = 22, normalized size = 1.05 \begin {gather*} \frac {\left (x e^{4} - 17\right ) \log {\left (x e^{5} \right )}^{2}}{x^{2} + 2 x + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________