Optimal. Leaf size=20 \[ 2+2 \left (4+2 x+\frac {\log ^2(4)}{\log ^2(x)}+\log (x)\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.16, antiderivative size = 18, normalized size of antiderivative = 0.90, number of steps used = 6, number of rules used = 4, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {6742, 43, 2302, 30} \begin {gather*} 4 x+\frac {2 \log ^2(4)}{\log ^2(x)}+2 \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 30
Rule 43
Rule 2302
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (\frac {2 (1+2 x)}{x}-\frac {4 \log ^2(4)}{x \log ^3(x)}\right ) \, dx\\ &=2 \int \frac {1+2 x}{x} \, dx-\left (4 \log ^2(4)\right ) \int \frac {1}{x \log ^3(x)} \, dx\\ &=2 \int \left (2+\frac {1}{x}\right ) \, dx-\left (4 \log ^2(4)\right ) \operatorname {Subst}\left (\int \frac {1}{x^3} \, dx,x,\log (x)\right )\\ &=4 x+\frac {2 \log ^2(4)}{\log ^2(x)}+2 \log (x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 18, normalized size = 0.90 \begin {gather*} 4 x+\frac {2 \log ^2(4)}{\log ^2(x)}+2 \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.66, size = 24, normalized size = 1.20 \begin {gather*} \frac {2 \, {\left (2 \, x \log \relax (x)^{2} + \log \relax (x)^{3} + 4 \, \log \relax (2)^{2}\right )}}{\log \relax (x)^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.41, size = 18, normalized size = 0.90 \begin {gather*} 4 \, x + \frac {8 \, \log \relax (2)^{2}}{\log \relax (x)^{2}} + 2 \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 19, normalized size = 0.95
method | result | size |
default | \(4 x +2 \ln \relax (x )+\frac {8 \ln \relax (2)^{2}}{\ln \relax (x )^{2}}\) | \(19\) |
risch | \(4 x +2 \ln \relax (x )+\frac {8 \ln \relax (2)^{2}}{\ln \relax (x )^{2}}\) | \(19\) |
norman | \(\frac {2 \ln \relax (x )^{3}+8 \ln \relax (2)^{2}+4 x \ln \relax (x )^{2}}{\ln \relax (x )^{2}}\) | \(26\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.61, size = 18, normalized size = 0.90 \begin {gather*} 4 \, x + \frac {8 \, \log \relax (2)^{2}}{\log \relax (x)^{2}} + 2 \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.67, size = 18, normalized size = 0.90 \begin {gather*} 4\,x+2\,\ln \relax (x)+\frac {8\,{\ln \relax (2)}^2}{{\ln \relax (x)}^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.10, size = 19, normalized size = 0.95 \begin {gather*} 4 x + 2 \log {\relax (x )} + \frac {8 \log {\relax (2 )}^{2}}{\log {\relax (x )}^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________