Optimal. Leaf size=28 \[ 5+3 \left (-5+\frac {x^2}{\log (1+x)}\right )^2+\frac {16}{\log ^2\left (\frac {1}{x}+x\right )} \]
________________________________________________________________________________________
Rubi [B] time = 1.18, antiderivative size = 157, normalized size of antiderivative = 5.61, number of steps used = 72, number of rules used = 16, integrand size = 162, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.099, Rules used = {6688, 2411, 2353, 2297, 2298, 2302, 30, 2306, 2309, 2178, 2418, 2389, 2400, 2399, 2390, 6686} \begin {gather*} -\frac {12 x^3 (x+1)}{\log (x+1)}+\frac {16}{\log ^2\left (\frac {x^2+1}{x}\right )}+\frac {3 (x+1)^4}{\log ^2(x+1)}-\frac {12 (x+1)^3}{\log ^2(x+1)}+\frac {18 (x+1)^2}{\log ^2(x+1)}-\frac {12 (x+1)}{\log ^2(x+1)}+\frac {3}{\log ^2(x+1)}+\frac {12 (x+1)^4}{\log (x+1)}-\frac {36 (x+1)^3}{\log (x+1)}+\frac {36 (x+1)^2}{\log (x+1)}-\frac {30 x (x+1)}{\log (x+1)}+\frac {18 (x+1)}{\log (x+1)}-\frac {30}{\log (x+1)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 30
Rule 2178
Rule 2297
Rule 2298
Rule 2302
Rule 2306
Rule 2309
Rule 2353
Rule 2389
Rule 2390
Rule 2399
Rule 2400
Rule 2411
Rule 2418
Rule 6686
Rule 6688
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (-\frac {6 x^4}{(1+x) \log ^3(1+x)}+\frac {6 x^2 \left (5+2 x+2 x^2\right )}{(1+x) \log ^2(1+x)}-\frac {60 x}{\log (1+x)}-\frac {32 \left (-1+x^2\right )}{x \left (1+x^2\right ) \log ^3\left (\frac {1+x^2}{x}\right )}\right ) \, dx\\ &=-\left (6 \int \frac {x^4}{(1+x) \log ^3(1+x)} \, dx\right )+6 \int \frac {x^2 \left (5+2 x+2 x^2\right )}{(1+x) \log ^2(1+x)} \, dx-32 \int \frac {-1+x^2}{x \left (1+x^2\right ) \log ^3\left (\frac {1+x^2}{x}\right )} \, dx-60 \int \frac {x}{\log (1+x)} \, dx\\ &=\frac {16}{\log ^2\left (\frac {1+x^2}{x}\right )}+6 \int \left (-\frac {5}{\log ^2(1+x)}+\frac {5 x}{\log ^2(1+x)}+\frac {2 x^3}{\log ^2(1+x)}+\frac {5}{(1+x) \log ^2(1+x)}\right ) \, dx-6 \operatorname {Subst}\left (\int \frac {(-1+x)^4}{x \log ^3(x)} \, dx,x,1+x\right )-60 \int \left (-\frac {1}{\log (1+x)}+\frac {1+x}{\log (1+x)}\right ) \, dx\\ &=\frac {16}{\log ^2\left (\frac {1+x^2}{x}\right )}-6 \operatorname {Subst}\left (\int \left (-\frac {4}{\log ^3(x)}+\frac {1}{x \log ^3(x)}+\frac {6 x}{\log ^3(x)}-\frac {4 x^2}{\log ^3(x)}+\frac {x^3}{\log ^3(x)}\right ) \, dx,x,1+x\right )+12 \int \frac {x^3}{\log ^2(1+x)} \, dx-30 \int \frac {1}{\log ^2(1+x)} \, dx+30 \int \frac {x}{\log ^2(1+x)} \, dx+30 \int \frac {1}{(1+x) \log ^2(1+x)} \, dx+60 \int \frac {1}{\log (1+x)} \, dx-60 \int \frac {1+x}{\log (1+x)} \, dx\\ &=-\frac {30 x (1+x)}{\log (1+x)}-\frac {12 x^3 (1+x)}{\log (1+x)}+\frac {16}{\log ^2\left (\frac {1+x^2}{x}\right )}-6 \operatorname {Subst}\left (\int \frac {1}{x \log ^3(x)} \, dx,x,1+x\right )-6 \operatorname {Subst}\left (\int \frac {x^3}{\log ^3(x)} \, dx,x,1+x\right )+24 \operatorname {Subst}\left (\int \frac {1}{\log ^3(x)} \, dx,x,1+x\right )+24 \operatorname {Subst}\left (\int \frac {x^2}{\log ^3(x)} \, dx,x,1+x\right )+30 \int \frac {1}{\log (1+x)} \, dx-30 \operatorname {Subst}\left (\int \frac {1}{\log ^2(x)} \, dx,x,1+x\right )+30 \operatorname {Subst}\left (\int \frac {1}{x \log ^2(x)} \, dx,x,1+x\right )+36 \int \frac {x^2}{\log (1+x)} \, dx-36 \operatorname {Subst}\left (\int \frac {x}{\log ^3(x)} \, dx,x,1+x\right )+48 \int \frac {x^3}{\log (1+x)} \, dx+60 \int \frac {x}{\log (1+x)} \, dx+60 \operatorname {Subst}\left (\int \frac {1}{\log (x)} \, dx,x,1+x\right )-60 \operatorname {Subst}\left (\int \frac {x}{\log (x)} \, dx,x,1+x\right )\\ &=-\frac {12 (1+x)}{\log ^2(1+x)}+\frac {18 (1+x)^2}{\log ^2(1+x)}-\frac {12 (1+x)^3}{\log ^2(1+x)}+\frac {3 (1+x)^4}{\log ^2(1+x)}+\frac {30 (1+x)}{\log (1+x)}-\frac {30 x (1+x)}{\log (1+x)}-\frac {12 x^3 (1+x)}{\log (1+x)}+\frac {16}{\log ^2\left (\frac {1+x^2}{x}\right )}+60 \text {li}(1+x)-6 \operatorname {Subst}\left (\int \frac {1}{x^3} \, dx,x,\log (1+x)\right )+12 \operatorname {Subst}\left (\int \frac {1}{\log ^2(x)} \, dx,x,1+x\right )-12 \operatorname {Subst}\left (\int \frac {x^3}{\log ^2(x)} \, dx,x,1+x\right )+30 \operatorname {Subst}\left (\int \frac {1}{x^2} \, dx,x,\log (1+x)\right )+36 \int \left (\frac {1}{\log (1+x)}-\frac {2 (1+x)}{\log (1+x)}+\frac {(1+x)^2}{\log (1+x)}\right ) \, dx-36 \operatorname {Subst}\left (\int \frac {x}{\log ^2(x)} \, dx,x,1+x\right )+36 \operatorname {Subst}\left (\int \frac {x^2}{\log ^2(x)} \, dx,x,1+x\right )+48 \int \left (-\frac {1}{\log (1+x)}+\frac {3 (1+x)}{\log (1+x)}-\frac {3 (1+x)^2}{\log (1+x)}+\frac {(1+x)^3}{\log (1+x)}\right ) \, dx+60 \int \left (-\frac {1}{\log (1+x)}+\frac {1+x}{\log (1+x)}\right ) \, dx-60 \operatorname {Subst}\left (\int \frac {e^{2 x}}{x} \, dx,x,\log (1+x)\right )\\ &=-60 \text {Ei}(2 \log (1+x))+\frac {3}{\log ^2(1+x)}-\frac {12 (1+x)}{\log ^2(1+x)}+\frac {18 (1+x)^2}{\log ^2(1+x)}-\frac {12 (1+x)^3}{\log ^2(1+x)}+\frac {3 (1+x)^4}{\log ^2(1+x)}-\frac {30}{\log (1+x)}+\frac {18 (1+x)}{\log (1+x)}-\frac {30 x (1+x)}{\log (1+x)}-\frac {12 x^3 (1+x)}{\log (1+x)}+\frac {36 (1+x)^2}{\log (1+x)}-\frac {36 (1+x)^3}{\log (1+x)}+\frac {12 (1+x)^4}{\log (1+x)}+\frac {16}{\log ^2\left (\frac {1+x^2}{x}\right )}+60 \text {li}(1+x)+12 \operatorname {Subst}\left (\int \frac {1}{\log (x)} \, dx,x,1+x\right )+36 \int \frac {1}{\log (1+x)} \, dx+36 \int \frac {(1+x)^2}{\log (1+x)} \, dx-48 \int \frac {1}{\log (1+x)} \, dx+48 \int \frac {(1+x)^3}{\log (1+x)} \, dx-48 \operatorname {Subst}\left (\int \frac {x^3}{\log (x)} \, dx,x,1+x\right )-60 \int \frac {1}{\log (1+x)} \, dx+60 \int \frac {1+x}{\log (1+x)} \, dx-72 \int \frac {1+x}{\log (1+x)} \, dx-72 \operatorname {Subst}\left (\int \frac {x}{\log (x)} \, dx,x,1+x\right )+108 \operatorname {Subst}\left (\int \frac {x^2}{\log (x)} \, dx,x,1+x\right )+144 \int \frac {1+x}{\log (1+x)} \, dx-144 \int \frac {(1+x)^2}{\log (1+x)} \, dx\\ &=-60 \text {Ei}(2 \log (1+x))+\frac {3}{\log ^2(1+x)}-\frac {12 (1+x)}{\log ^2(1+x)}+\frac {18 (1+x)^2}{\log ^2(1+x)}-\frac {12 (1+x)^3}{\log ^2(1+x)}+\frac {3 (1+x)^4}{\log ^2(1+x)}-\frac {30}{\log (1+x)}+\frac {18 (1+x)}{\log (1+x)}-\frac {30 x (1+x)}{\log (1+x)}-\frac {12 x^3 (1+x)}{\log (1+x)}+\frac {36 (1+x)^2}{\log (1+x)}-\frac {36 (1+x)^3}{\log (1+x)}+\frac {12 (1+x)^4}{\log (1+x)}+\frac {16}{\log ^2\left (\frac {1+x^2}{x}\right )}+72 \text {li}(1+x)+36 \operatorname {Subst}\left (\int \frac {1}{\log (x)} \, dx,x,1+x\right )+36 \operatorname {Subst}\left (\int \frac {x^2}{\log (x)} \, dx,x,1+x\right )-48 \operatorname {Subst}\left (\int \frac {e^{4 x}}{x} \, dx,x,\log (1+x)\right )-48 \operatorname {Subst}\left (\int \frac {1}{\log (x)} \, dx,x,1+x\right )+48 \operatorname {Subst}\left (\int \frac {x^3}{\log (x)} \, dx,x,1+x\right )-60 \operatorname {Subst}\left (\int \frac {1}{\log (x)} \, dx,x,1+x\right )+60 \operatorname {Subst}\left (\int \frac {x}{\log (x)} \, dx,x,1+x\right )-72 \operatorname {Subst}\left (\int \frac {e^{2 x}}{x} \, dx,x,\log (1+x)\right )-72 \operatorname {Subst}\left (\int \frac {x}{\log (x)} \, dx,x,1+x\right )+108 \operatorname {Subst}\left (\int \frac {e^{3 x}}{x} \, dx,x,\log (1+x)\right )+144 \operatorname {Subst}\left (\int \frac {x}{\log (x)} \, dx,x,1+x\right )-144 \operatorname {Subst}\left (\int \frac {x^2}{\log (x)} \, dx,x,1+x\right )\\ &=-132 \text {Ei}(2 \log (1+x))+108 \text {Ei}(3 \log (1+x))-48 \text {Ei}(4 \log (1+x))+\frac {3}{\log ^2(1+x)}-\frac {12 (1+x)}{\log ^2(1+x)}+\frac {18 (1+x)^2}{\log ^2(1+x)}-\frac {12 (1+x)^3}{\log ^2(1+x)}+\frac {3 (1+x)^4}{\log ^2(1+x)}-\frac {30}{\log (1+x)}+\frac {18 (1+x)}{\log (1+x)}-\frac {30 x (1+x)}{\log (1+x)}-\frac {12 x^3 (1+x)}{\log (1+x)}+\frac {36 (1+x)^2}{\log (1+x)}-\frac {36 (1+x)^3}{\log (1+x)}+\frac {12 (1+x)^4}{\log (1+x)}+\frac {16}{\log ^2\left (\frac {1+x^2}{x}\right )}+36 \operatorname {Subst}\left (\int \frac {e^{3 x}}{x} \, dx,x,\log (1+x)\right )+48 \operatorname {Subst}\left (\int \frac {e^{4 x}}{x} \, dx,x,\log (1+x)\right )+60 \operatorname {Subst}\left (\int \frac {e^{2 x}}{x} \, dx,x,\log (1+x)\right )-72 \operatorname {Subst}\left (\int \frac {e^{2 x}}{x} \, dx,x,\log (1+x)\right )+144 \operatorname {Subst}\left (\int \frac {e^{2 x}}{x} \, dx,x,\log (1+x)\right )-144 \operatorname {Subst}\left (\int \frac {e^{3 x}}{x} \, dx,x,\log (1+x)\right )\\ &=\frac {3}{\log ^2(1+x)}-\frac {12 (1+x)}{\log ^2(1+x)}+\frac {18 (1+x)^2}{\log ^2(1+x)}-\frac {12 (1+x)^3}{\log ^2(1+x)}+\frac {3 (1+x)^4}{\log ^2(1+x)}-\frac {30}{\log (1+x)}+\frac {18 (1+x)}{\log (1+x)}-\frac {30 x (1+x)}{\log (1+x)}-\frac {12 x^3 (1+x)}{\log (1+x)}+\frac {36 (1+x)^2}{\log (1+x)}-\frac {36 (1+x)^3}{\log (1+x)}+\frac {12 (1+x)^4}{\log (1+x)}+\frac {16}{\log ^2\left (\frac {1+x^2}{x}\right )}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [C] time = 0.26, size = 46, normalized size = 1.64 \begin {gather*} 60 \text {Ei}(\log (1+x))+\frac {3 x^4}{\log ^2(1+x)}-\frac {30 x^2}{\log (1+x)}+\frac {16}{\log ^2\left (\frac {1}{x}+x\right )}-60 \text {li}(1+x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.47, size = 66, normalized size = 2.36 \begin {gather*} \frac {3 \, x^{4} \log \left (\frac {x^{2} + 1}{x}\right )^{2} - 30 \, x^{2} \log \left (x + 1\right ) \log \left (\frac {x^{2} + 1}{x}\right )^{2} + 16 \, \log \left (x + 1\right )^{2}}{\log \left (x + 1\right )^{2} \log \left (\frac {x^{2} + 1}{x}\right )^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.90, size = 91, normalized size = 3.25 \begin {gather*} \frac {16 \, {\left (x^{2} - 1\right )}}{x^{2} \log \left (x^{2} + 1\right )^{2} - 2 \, x^{2} \log \left (x^{2} + 1\right ) \log \relax (x) + x^{2} \log \relax (x)^{2} - \log \left (x^{2} + 1\right )^{2} + 2 \, \log \left (x^{2} + 1\right ) \log \relax (x) - \log \relax (x)^{2}} + \frac {3 \, {\left (x^{4} - 10 \, x^{2} \log \left (x + 1\right )\right )}}{\log \left (x + 1\right )^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.27, size = 106, normalized size = 3.79
method | result | size |
default | \(\frac {3 \left (x +1\right )^{4}}{\ln \left (x +1\right )^{2}}-\frac {12 \left (x +1\right )^{3}}{\ln \left (x +1\right )^{2}}+\frac {18 \left (x +1\right )^{2}}{\ln \left (x +1\right )^{2}}-\frac {30 \left (x +1\right )^{2}}{\ln \left (x +1\right )}-\frac {12 \left (x +1\right )}{\ln \left (x +1\right )^{2}}+\frac {60 x +60}{\ln \left (x +1\right )}+\frac {3}{\ln \left (x +1\right )^{2}}+\frac {16}{\ln \left (\frac {x^{2}+1}{x}\right )^{2}}-\frac {30}{\ln \left (x +1\right )}\) | \(106\) |
risch | \(\frac {3 x^{2} \left (x^{2}-10 \ln \left (x +1\right )\right )}{\ln \left (x +1\right )^{2}}-\frac {64}{\left (\pi \,\mathrm {csgn}\left (\frac {i}{x}\right ) \mathrm {csgn}\left (i \left (x^{2}+1\right )\right ) \mathrm {csgn}\left (\frac {i \left (x^{2}+1\right )}{x}\right )-\pi \,\mathrm {csgn}\left (\frac {i}{x}\right ) \mathrm {csgn}\left (\frac {i \left (x^{2}+1\right )}{x}\right )^{2}-\pi \,\mathrm {csgn}\left (i \left (x^{2}+1\right )\right ) \mathrm {csgn}\left (\frac {i \left (x^{2}+1\right )}{x}\right )^{2}+\pi \mathrm {csgn}\left (\frac {i \left (x^{2}+1\right )}{x}\right )^{3}-2 i \ln \relax (x )+2 i \ln \left (x^{2}+1\right )\right )^{2}}\) | \(138\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.51, size = 126, normalized size = 4.50 \begin {gather*} \frac {3 \, x^{4} \log \relax (x)^{2} - 30 \, x^{2} \log \left (x + 1\right ) \log \relax (x)^{2} + 3 \, {\left (x^{4} - 10 \, x^{2} \log \left (x + 1\right )\right )} \log \left (x^{2} + 1\right )^{2} - 6 \, {\left (x^{4} \log \relax (x) - 10 \, x^{2} \log \left (x + 1\right ) \log \relax (x)\right )} \log \left (x^{2} + 1\right ) + 16 \, \log \left (x + 1\right )^{2}}{\log \left (x^{2} + 1\right )^{2} \log \left (x + 1\right )^{2} - 2 \, \log \left (x^{2} + 1\right ) \log \left (x + 1\right )^{2} \log \relax (x) + \log \left (x + 1\right )^{2} \log \relax (x)^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 5.97, size = 54, normalized size = 1.93 \begin {gather*} \frac {16}{{\ln \left (\frac {1}{x}\right )}^2+2\,\ln \left (\frac {1}{x}\right )\,\ln \left (x^2+1\right )+{\ln \left (x^2+1\right )}^2}-\frac {30\,x^2}{\ln \left (x+1\right )}+\frac {3\,x^4}{{\ln \left (x+1\right )}^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.39, size = 32, normalized size = 1.14 \begin {gather*} \frac {3 x^{4} - 30 x^{2} \log {\left (x + 1 \right )}}{\log {\left (x + 1 \right )}^{2}} + \frac {16}{\log {\left (\frac {x^{2} + 1}{x} \right )}^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________