Optimal. Leaf size=27 \[ -x-2 \left (-2+x-16 x^2\right )+\log (x)+\frac {2 (1+x)}{\log (3 x)} \]
________________________________________________________________________________________
Rubi [A] time = 0.23, antiderivative size = 28, normalized size of antiderivative = 1.04, number of steps used = 11, number of rules used = 7, integrand size = 39, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.180, Rules used = {6742, 14, 2353, 2297, 2298, 2302, 30} \begin {gather*} 32 x^2-3 x+\frac {2 x}{\log (3 x)}+\log (x)+\frac {2}{\log (3 x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 30
Rule 2297
Rule 2298
Rule 2302
Rule 2353
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (\frac {1-3 x+64 x^2}{x}-\frac {2 (1+x)}{x \log ^2(3 x)}+\frac {2}{\log (3 x)}\right ) \, dx\\ &=-\left (2 \int \frac {1+x}{x \log ^2(3 x)} \, dx\right )+2 \int \frac {1}{\log (3 x)} \, dx+\int \frac {1-3 x+64 x^2}{x} \, dx\\ &=\frac {2 \text {li}(3 x)}{3}-2 \int \left (\frac {1}{\log ^2(3 x)}+\frac {1}{x \log ^2(3 x)}\right ) \, dx+\int \left (-3+\frac {1}{x}+64 x\right ) \, dx\\ &=-3 x+32 x^2+\log (x)+\frac {2 \text {li}(3 x)}{3}-2 \int \frac {1}{\log ^2(3 x)} \, dx-2 \int \frac {1}{x \log ^2(3 x)} \, dx\\ &=-3 x+32 x^2+\log (x)+\frac {2 x}{\log (3 x)}+\frac {2 \text {li}(3 x)}{3}-2 \int \frac {1}{\log (3 x)} \, dx-2 \operatorname {Subst}\left (\int \frac {1}{x^2} \, dx,x,\log (3 x)\right )\\ &=-3 x+32 x^2+\log (x)+\frac {2}{\log (3 x)}+\frac {2 x}{\log (3 x)}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 28, normalized size = 1.04 \begin {gather*} -3 x+32 x^2+\log (x)+\frac {2}{\log (3 x)}+\frac {2 x}{\log (3 x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.84, size = 32, normalized size = 1.19 \begin {gather*} \frac {{\left (32 \, x^{2} - 3 \, x\right )} \log \left (3 \, x\right ) + \log \left (3 \, x\right )^{2} + 2 \, x + 2}{\log \left (3 \, x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.17, size = 22, normalized size = 0.81 \begin {gather*} 32 \, x^{2} - 3 \, x + \frac {2 \, {\left (x + 1\right )}}{\log \left (3 \, x\right )} + \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 23, normalized size = 0.85
method | result | size |
risch | \(32 x^{2}-3 x +\ln \relax (x )+\frac {2 x +2}{\ln \left (3 x \right )}\) | \(23\) |
derivativedivides | \(32 x^{2}-3 x +\ln \left (3 x \right )+\frac {2 x}{\ln \left (3 x \right )}+\frac {2}{\ln \left (3 x \right )}\) | \(31\) |
default | \(32 x^{2}-3 x +\ln \left (3 x \right )+\frac {2 x}{\ln \left (3 x \right )}+\frac {2}{\ln \left (3 x \right )}\) | \(31\) |
norman | \(\frac {2+\ln \left (3 x \right )^{2}+2 x -3 x \ln \left (3 x \right )+32 x^{2} \ln \left (3 x \right )}{\ln \left (3 x \right )}\) | \(35\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [C] time = 0.45, size = 36, normalized size = 1.33 \begin {gather*} 32 \, x^{2} - 3 \, x + \frac {2}{\log \left (3 \, x\right )} + \frac {2}{3} \, {\rm Ei}\left (\log \left (3 \, x\right )\right ) - \frac {2}{3} \, \Gamma \left (-1, -\log \left (3 \, x\right )\right ) + \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.03, size = 23, normalized size = 0.85 \begin {gather*} \ln \relax (x)-3\,x+\frac {2\,x+2}{\ln \left (3\,x\right )}+32\,x^2 \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.12, size = 20, normalized size = 0.74 \begin {gather*} 32 x^{2} - 3 x + \frac {2 x + 2}{\log {\left (3 x \right )}} + \log {\relax (x )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________