Integrand size = 55, antiderivative size = 15 \[ \int \frac {x^3+3 x^4+3 x^5+x^6+(-2-2 x) \log (x)+(2+4 x) \log ^2(x)}{x^3+3 x^4+3 x^5+x^6} \, dx=x-\frac {\log ^2(x)}{\left (x+x^2\right )^2} \]
[Out]
Result contains higher order function than in optimal. Order 4 vs. order 3 in optimal.
Time = 0.27 (sec) , antiderivative size = 77, normalized size of antiderivative = 5.13, number of steps used = 25, number of rules used = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.255, Rules used = {6820, 46, 2393, 2341, 2351, 31, 2379, 2438, 2404, 2342, 2356, 2389, 2355, 2354} \[ \int \frac {x^3+3 x^4+3 x^5+x^6+(-2-2 x) \log (x)+(2+4 x) \log ^2(x)}{x^3+3 x^4+3 x^5+x^6} \, dx=-4 \operatorname {PolyLog}\left (2,-\frac {1}{x}\right )-4 \operatorname {PolyLog}(2,-x)-\frac {\log ^2(x)}{x^2}+x+\frac {2 \log ^2(x)}{x}+\frac {2 x \log ^2(x)}{x+1}-\frac {\log ^2(x)}{(x+1)^2}+4 \log \left (\frac {1}{x}+1\right ) \log (x)-4 \log (x+1) \log (x) \]
[In]
[Out]
Rule 31
Rule 46
Rule 2341
Rule 2342
Rule 2351
Rule 2354
Rule 2355
Rule 2356
Rule 2379
Rule 2389
Rule 2393
Rule 2404
Rule 2438
Rule 6820
Rubi steps \begin{align*} \text {integral}& = \int \left (1-\frac {2 \log (x)}{x^3 (1+x)^2}+\frac {(2+4 x) \log ^2(x)}{x^3 (1+x)^3}\right ) \, dx \\ & = x-2 \int \frac {\log (x)}{x^3 (1+x)^2} \, dx+\int \frac {(2+4 x) \log ^2(x)}{x^3 (1+x)^3} \, dx \\ & = x-2 \int \left (\frac {\log (x)}{x^3}-\frac {2 \log (x)}{x^2}-\frac {\log (x)}{(1+x)^2}+\frac {3 \log (x)}{x (1+x)}\right ) \, dx+\int \left (\frac {2 \log ^2(x)}{x^3}-\frac {2 \log ^2(x)}{x^2}+\frac {2 \log ^2(x)}{(1+x)^3}+\frac {2 \log ^2(x)}{(1+x)^2}\right ) \, dx \\ & = x-2 \int \frac {\log (x)}{x^3} \, dx+2 \int \frac {\log (x)}{(1+x)^2} \, dx+2 \int \frac {\log ^2(x)}{x^3} \, dx-2 \int \frac {\log ^2(x)}{x^2} \, dx+2 \int \frac {\log ^2(x)}{(1+x)^3} \, dx+2 \int \frac {\log ^2(x)}{(1+x)^2} \, dx+4 \int \frac {\log (x)}{x^2} \, dx-6 \int \frac {\log (x)}{x (1+x)} \, dx \\ & = \frac {1}{2 x^2}-\frac {4}{x}+x+\frac {\log (x)}{x^2}-\frac {4 \log (x)}{x}+\frac {2 x \log (x)}{1+x}+6 \log \left (1+\frac {1}{x}\right ) \log (x)-\frac {\log ^2(x)}{x^2}+\frac {2 \log ^2(x)}{x}-\frac {\log ^2(x)}{(1+x)^2}+\frac {2 x \log ^2(x)}{1+x}-2 \int \frac {1}{1+x} \, dx+2 \int \frac {\log (x)}{x^3} \, dx+2 \int \frac {\log (x)}{x (1+x)^2} \, dx-4 \int \frac {\log (x)}{x^2} \, dx-4 \int \frac {\log (x)}{1+x} \, dx-6 \int \frac {\log \left (1+\frac {1}{x}\right )}{x} \, dx \\ & = x+\frac {2 x \log (x)}{1+x}+6 \log \left (1+\frac {1}{x}\right ) \log (x)-\frac {\log ^2(x)}{x^2}+\frac {2 \log ^2(x)}{x}-\frac {\log ^2(x)}{(1+x)^2}+\frac {2 x \log ^2(x)}{1+x}-2 \log (1+x)-4 \log (x) \log (1+x)-6 \operatorname {PolyLog}\left (2,-\frac {1}{x}\right )-2 \int \frac {\log (x)}{(1+x)^2} \, dx+2 \int \frac {\log (x)}{x (1+x)} \, dx+4 \int \frac {\log (1+x)}{x} \, dx \\ & = x+4 \log \left (1+\frac {1}{x}\right ) \log (x)-\frac {\log ^2(x)}{x^2}+\frac {2 \log ^2(x)}{x}-\frac {\log ^2(x)}{(1+x)^2}+\frac {2 x \log ^2(x)}{1+x}-2 \log (1+x)-4 \log (x) \log (1+x)-6 \operatorname {PolyLog}\left (2,-\frac {1}{x}\right )-4 \operatorname {PolyLog}(2,-x)+2 \int \frac {1}{1+x} \, dx+2 \int \frac {\log \left (1+\frac {1}{x}\right )}{x} \, dx \\ & = x+4 \log \left (1+\frac {1}{x}\right ) \log (x)-\frac {\log ^2(x)}{x^2}+\frac {2 \log ^2(x)}{x}-\frac {\log ^2(x)}{(1+x)^2}+\frac {2 x \log ^2(x)}{1+x}-4 \log (x) \log (1+x)-4 \operatorname {PolyLog}\left (2,-\frac {1}{x}\right )-4 \operatorname {PolyLog}(2,-x) \\ \end{align*}
Time = 0.07 (sec) , antiderivative size = 25, normalized size of antiderivative = 1.67 \[ \int \frac {x^3+3 x^4+3 x^5+x^6+(-2-2 x) \log (x)+(2+4 x) \log ^2(x)}{x^3+3 x^4+3 x^5+x^6} \, dx=\frac {x^3 (1+x)^2-\log ^2(x)}{x^2 (1+x)^2} \]
[In]
[Out]
Time = 0.24 (sec) , antiderivative size = 22, normalized size of antiderivative = 1.47
method | result | size |
risch | \(-\frac {\ln \left (x \right )^{2}}{x^{2} \left (x^{2}+2 x +1\right )}+x\) | \(22\) |
norman | \(\frac {x^{5}-3 x^{3}-2 x^{2}-\ln \left (x \right )^{2}}{x^{2} \left (1+x \right )^{2}}\) | \(30\) |
parallelrisch | \(\frac {x^{5}-3 x^{3}-2 x^{2}-\ln \left (x \right )^{2}}{x^{2} \left (x^{2}+2 x +1\right )}\) | \(35\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 33 vs. \(2 (15) = 30\).
Time = 0.26 (sec) , antiderivative size = 33, normalized size of antiderivative = 2.20 \[ \int \frac {x^3+3 x^4+3 x^5+x^6+(-2-2 x) \log (x)+(2+4 x) \log ^2(x)}{x^3+3 x^4+3 x^5+x^6} \, dx=\frac {x^{5} + 2 \, x^{4} + x^{3} - \log \left (x\right )^{2}}{x^{4} + 2 \, x^{3} + x^{2}} \]
[In]
[Out]
Time = 0.08 (sec) , antiderivative size = 17, normalized size of antiderivative = 1.13 \[ \int \frac {x^3+3 x^4+3 x^5+x^6+(-2-2 x) \log (x)+(2+4 x) \log ^2(x)}{x^3+3 x^4+3 x^5+x^6} \, dx=x - \frac {\log {\left (x \right )}^{2}}{x^{4} + 2 x^{3} + x^{2}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 85 vs. \(2 (15) = 30\).
Time = 0.24 (sec) , antiderivative size = 85, normalized size of antiderivative = 5.67 \[ \int \frac {x^3+3 x^4+3 x^5+x^6+(-2-2 x) \log (x)+(2+4 x) \log ^2(x)}{x^3+3 x^4+3 x^5+x^6} \, dx=x - \frac {\log \left (x\right )^{2}}{x^{4} + 2 \, x^{3} + x^{2}} - \frac {6 \, x + 5}{2 \, {\left (x^{2} + 2 \, x + 1\right )}} + \frac {3 \, {\left (4 \, x + 3\right )}}{2 \, {\left (x^{2} + 2 \, x + 1\right )}} - \frac {3 \, {\left (2 \, x + 1\right )}}{2 \, {\left (x^{2} + 2 \, x + 1\right )}} - \frac {1}{2 \, {\left (x^{2} + 2 \, x + 1\right )}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 35 vs. \(2 (15) = 30\).
Time = 0.28 (sec) , antiderivative size = 35, normalized size of antiderivative = 2.33 \[ \int \frac {x^3+3 x^4+3 x^5+x^6+(-2-2 x) \log (x)+(2+4 x) \log ^2(x)}{x^3+3 x^4+3 x^5+x^6} \, dx=-{\left (\frac {2 \, x + 3}{x^{2} + 2 \, x + 1} - \frac {2 \, x - 1}{x^{2}}\right )} \log \left (x\right )^{2} + x \]
[In]
[Out]
Time = 13.15 (sec) , antiderivative size = 16, normalized size of antiderivative = 1.07 \[ \int \frac {x^3+3 x^4+3 x^5+x^6+(-2-2 x) \log (x)+(2+4 x) \log ^2(x)}{x^3+3 x^4+3 x^5+x^6} \, dx=x-\frac {{\ln \left (x\right )}^2}{x^2\,{\left (x+1\right )}^2} \]
[In]
[Out]