Optimal. Leaf size=24 \[ x \left (3+x+x^2 (5+x) \left (2+\frac {3}{2+x}+\log (\log (x))\right )\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.57, antiderivative size = 41, normalized size of antiderivative = 1.71, number of steps used = 29, number of rules used = 8, integrand size = 89, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.090, Rules used = {27, 6688, 2353, 2309, 2178, 6742, 43, 2522} \begin {gather*} 2 x^4+x^4 \log (\log (x))+13 x^3+5 x^3 \log (\log (x))+10 x^2-15 x-\frac {72}{x+2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 27
Rule 43
Rule 2178
Rule 2309
Rule 2353
Rule 2522
Rule 6688
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {20 x^2+24 x^3+9 x^4+x^5+\left (12+20 x+221 x^2+208 x^3+71 x^4+8 x^5\right ) \log (x)+\left (60 x^2+76 x^3+31 x^4+4 x^5\right ) \log (x) \log (\log (x))}{(2+x)^2 \log (x)} \, dx\\ &=\int \left (\frac {x^2 (5+x)}{\log (x)}+\frac {12+20 x+221 x^2+208 x^3+71 x^4+8 x^5+x^2 (2+x)^2 (15+4 x) \log (\log (x))}{(2+x)^2}\right ) \, dx\\ &=\int \frac {x^2 (5+x)}{\log (x)} \, dx+\int \frac {12+20 x+221 x^2+208 x^3+71 x^4+8 x^5+x^2 (2+x)^2 (15+4 x) \log (\log (x))}{(2+x)^2} \, dx\\ &=\int \left (\frac {5 x^2}{\log (x)}+\frac {x^3}{\log (x)}\right ) \, dx+\int \left (\frac {12}{(2+x)^2}+\frac {20 x}{(2+x)^2}+\frac {221 x^2}{(2+x)^2}+\frac {208 x^3}{(2+x)^2}+\frac {71 x^4}{(2+x)^2}+\frac {8 x^5}{(2+x)^2}+x^2 (15+4 x) \log (\log (x))\right ) \, dx\\ &=-\frac {12}{2+x}+5 \int \frac {x^2}{\log (x)} \, dx+8 \int \frac {x^5}{(2+x)^2} \, dx+20 \int \frac {x}{(2+x)^2} \, dx+71 \int \frac {x^4}{(2+x)^2} \, dx+208 \int \frac {x^3}{(2+x)^2} \, dx+221 \int \frac {x^2}{(2+x)^2} \, dx+\int \frac {x^3}{\log (x)} \, dx+\int x^2 (15+4 x) \log (\log (x)) \, dx\\ &=-\frac {12}{2+x}+5 \operatorname {Subst}\left (\int \frac {e^{3 x}}{x} \, dx,x,\log (x)\right )+8 \int \left (-32+12 x-4 x^2+x^3-\frac {32}{(2+x)^2}+\frac {80}{2+x}\right ) \, dx+20 \int \left (-\frac {2}{(2+x)^2}+\frac {1}{2+x}\right ) \, dx+71 \int \left (12-4 x+x^2+\frac {16}{(2+x)^2}-\frac {32}{2+x}\right ) \, dx+208 \int \left (-4+x-\frac {8}{(2+x)^2}+\frac {12}{2+x}\right ) \, dx+221 \int \left (1+\frac {4}{(2+x)^2}-\frac {4}{2+x}\right ) \, dx+\int \left (15 x^2 \log (\log (x))+4 x^3 \log (\log (x))\right ) \, dx+\operatorname {Subst}\left (\int \frac {e^{4 x}}{x} \, dx,x,\log (x)\right )\\ &=-15 x+10 x^2+13 x^3+2 x^4-\frac {72}{2+x}+5 \text {Ei}(3 \log (x))+\text {Ei}(4 \log (x))+4 \int x^3 \log (\log (x)) \, dx+15 \int x^2 \log (\log (x)) \, dx\\ &=-15 x+10 x^2+13 x^3+2 x^4-\frac {72}{2+x}+5 \text {Ei}(3 \log (x))+\text {Ei}(4 \log (x))+5 x^3 \log (\log (x))+x^4 \log (\log (x))-5 \int \frac {x^2}{\log (x)} \, dx-\int \frac {x^3}{\log (x)} \, dx\\ &=-15 x+10 x^2+13 x^3+2 x^4-\frac {72}{2+x}+5 \text {Ei}(3 \log (x))+\text {Ei}(4 \log (x))+5 x^3 \log (\log (x))+x^4 \log (\log (x))-5 \operatorname {Subst}\left (\int \frac {e^{3 x}}{x} \, dx,x,\log (x)\right )-\operatorname {Subst}\left (\int \frac {e^{4 x}}{x} \, dx,x,\log (x)\right )\\ &=-15 x+10 x^2+13 x^3+2 x^4-\frac {72}{2+x}+5 x^3 \log (\log (x))+x^4 \log (\log (x))\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.17, size = 36, normalized size = 1.50 \begin {gather*} -15 x+10 x^2+13 x^3+2 x^4-\frac {72}{2+x}+x^3 (5+x) \log (\log (x)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.72, size = 49, normalized size = 2.04 \begin {gather*} \frac {2 \, x^{5} + 17 \, x^{4} + 36 \, x^{3} + 5 \, x^{2} + {\left (x^{5} + 7 \, x^{4} + 10 \, x^{3}\right )} \log \left (\log \relax (x)\right ) - 30 \, x - 72}{x + 2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.24, size = 39, normalized size = 1.62 \begin {gather*} 2 \, x^{4} + 13 \, x^{3} + 10 \, x^{2} + {\left (x^{4} + 5 \, x^{3}\right )} \log \left (\log \relax (x)\right ) - 15 \, x - \frac {72}{x + 2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.42, size = 46, normalized size = 1.92
method | result | size |
risch | \(\left (x^{4}+5 x^{3}\right ) \ln \left (\ln \relax (x )\right )+\frac {2 x^{5}+17 x^{4}+36 x^{3}+5 x^{2}-30 x -72}{2+x}\) | \(46\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.38, size = 49, normalized size = 2.04 \begin {gather*} \frac {2 \, x^{5} + 17 \, x^{4} + 36 \, x^{3} + 5 \, x^{2} + {\left (x^{5} + 7 \, x^{4} + 10 \, x^{3}\right )} \log \left (\log \relax (x)\right ) - 30 \, x - 72}{x + 2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 5.46, size = 39, normalized size = 1.62 \begin {gather*} \ln \left (\ln \relax (x)\right )\,\left (x^4+5\,x^3\right )-15\,x-\frac {72}{x+2}+10\,x^2+13\,x^3+2\,x^4 \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.38, size = 36, normalized size = 1.50 \begin {gather*} 2 x^{4} + 13 x^{3} + 10 x^{2} - 15 x + \left (x^{4} + 5 x^{3}\right ) \log {\left (\log {\relax (x )} \right )} - \frac {72}{x + 2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________