Optimal. Leaf size=30 \[ \log \left (9 e^{-2 x+2 x^2} x^4 \log ^2(5) \log ^2\left (\frac {\log (x)}{x^2}\right )\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.31, antiderivative size = 23, normalized size of antiderivative = 0.77, number of steps used = 5, number of rules used = 3, integrand size = 43, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.070, Rules used = {6742, 14, 6684} \begin {gather*} 2 x^2+2 \log \left (\log \left (\frac {\log (x)}{x^2}\right )\right )-2 x+4 \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 6684
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (\frac {2 \left (2-x+2 x^2\right )}{x}-\frac {2 (-1+2 \log (x))}{x \log (x) \log \left (\frac {\log (x)}{x^2}\right )}\right ) \, dx\\ &=2 \int \frac {2-x+2 x^2}{x} \, dx-2 \int \frac {-1+2 \log (x)}{x \log (x) \log \left (\frac {\log (x)}{x^2}\right )} \, dx\\ &=2 \log \left (\log \left (\frac {\log (x)}{x^2}\right )\right )+2 \int \left (-1+\frac {2}{x}+2 x\right ) \, dx\\ &=-2 x+2 x^2+4 \log (x)+2 \log \left (\log \left (\frac {\log (x)}{x^2}\right )\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.10, size = 23, normalized size = 0.77 \begin {gather*} -2 x+2 x^2+4 \log (x)+2 \log \left (\log \left (\frac {\log (x)}{x^2}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.54, size = 23, normalized size = 0.77 \begin {gather*} 2 \, x^{2} - 2 \, x + 4 \, \log \relax (x) + 2 \, \log \left (\log \left (\frac {\log \relax (x)}{x^{2}}\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.63, size = 26, normalized size = 0.87 \begin {gather*} 2 \, x^{2} - 2 \, x + 4 \, \log \relax (x) + 2 \, \log \left (2 \, \log \relax (x) - \log \left (\log \relax (x)\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.08, size = 24, normalized size = 0.80
method | result | size |
norman | \(4 \ln \relax (x )-2 x +2 x^{2}+2 \ln \left (\ln \left (\frac {\ln \relax (x )}{x^{2}}\right )\right )\) | \(24\) |
risch | \(2 x^{2}-2 x +4 \ln \relax (x )+2 \ln \left (\ln \left (\ln \relax (x )\right )+\frac {i \left (\pi \mathrm {csgn}\left (i x \right )^{2} \mathrm {csgn}\left (i x^{2}\right )-2 \pi \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i x^{2}\right )^{2}+\pi \mathrm {csgn}\left (i x^{2}\right )^{3}-\pi \,\mathrm {csgn}\left (i \ln \relax (x )\right ) \mathrm {csgn}\left (\frac {i}{x^{2}}\right ) \mathrm {csgn}\left (\frac {i \ln \relax (x )}{x^{2}}\right )+\pi \,\mathrm {csgn}\left (i \ln \relax (x )\right ) \mathrm {csgn}\left (\frac {i \ln \relax (x )}{x^{2}}\right )^{2}+\pi \,\mathrm {csgn}\left (\frac {i}{x^{2}}\right ) \mathrm {csgn}\left (\frac {i \ln \relax (x )}{x^{2}}\right )^{2}-\pi \mathrm {csgn}\left (\frac {i \ln \relax (x )}{x^{2}}\right )^{3}+4 i \ln \relax (x )\right )}{2}\right )\) | \(152\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.44, size = 24, normalized size = 0.80 \begin {gather*} 2 \, x^{2} - 2 \, x + 4 \, \log \relax (x) + 2 \, \log \left (-2 \, \log \relax (x) + \log \left (\log \relax (x)\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.18, size = 23, normalized size = 0.77 \begin {gather*} 4\,\ln \relax (x)-2\,x+2\,\ln \left (\ln \left (\frac {\ln \relax (x)}{x^2}\right )\right )+2\,x^2 \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.31, size = 24, normalized size = 0.80 \begin {gather*} 2 x^{2} - 2 x + 4 \log {\relax (x )} + 2 \log {\left (\log {\left (\frac {\log {\relax (x )}}{x^{2}} \right )} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________