Optimal. Leaf size=27 \[ x+\log \left (\frac {5+\left (-1-\frac {x}{3}-\log (3)\right )^2+\log (x)}{26 x}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.37, antiderivative size = 32, normalized size of antiderivative = 1.19, number of steps used = 6, number of rules used = 4, integrand size = 83, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.048, Rules used = {6, 6742, 43, 6684} \begin {gather*} \log \left (x^2+6 x (1+\log (3))+9 \log (x)+9 \left (6+\log ^2(3)+\log (9)\right )\right )+x-\log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 6
Rule 43
Rule 6684
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {-45+54 x+7 x^2+x^3+\left (-18+18 x+6 x^2\right ) \log (3)+(-9+9 x) \log ^2(3)+(-9+9 x) \log (x)}{6 x^2+x^3+\left (18 x+6 x^2\right ) \log (3)+x \left (54+9 \log ^2(3)\right )+9 x \log (x)} \, dx\\ &=\int \left (\frac {-1+x}{x}+\frac {9+2 x^2+6 x (1+\log (3))}{x \left (x^2+6 x (1+\log (3))+54 \left (1+\frac {1}{6} \left (\log ^2(3)+\log (9)\right )\right )+9 \log (x)\right )}\right ) \, dx\\ &=\int \frac {-1+x}{x} \, dx+\int \frac {9+2 x^2+6 x (1+\log (3))}{x \left (x^2+6 x (1+\log (3))+54 \left (1+\frac {1}{6} \left (\log ^2(3)+\log (9)\right )\right )+9 \log (x)\right )} \, dx\\ &=\log \left (x^2+6 x (1+\log (3))+9 \left (6+\log ^2(3)+\log (9)\right )+9 \log (x)\right )+\int \left (1-\frac {1}{x}\right ) \, dx\\ &=x-\log (x)+\log \left (x^2+6 x (1+\log (3))+9 \left (6+\log ^2(3)+\log (9)\right )+9 \log (x)\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [F] time = 1.75, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {-45+54 x+7 x^2+x^3+\left (-18+18 x+6 x^2\right ) \log (3)+(-9+9 x) \log ^2(3)+(-9+9 x) \log (x)}{54 x+6 x^2+x^3+\left (18 x+6 x^2\right ) \log (3)+9 x \log ^2(3)+9 x \log (x)} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.46, size = 32, normalized size = 1.19 \begin {gather*} x + \log \left (x^{2} + 6 \, {\left (x + 3\right )} \log \relax (3) + 9 \, \log \relax (3)^{2} + 6 \, x + 9 \, \log \relax (x) + 54\right ) - \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.14, size = 34, normalized size = 1.26 \begin {gather*} x + \log \left (x^{2} + 6 \, x \log \relax (3) + 9 \, \log \relax (3)^{2} + 6 \, x + 18 \, \log \relax (3) + 9 \, \log \relax (x) + 54\right ) - \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.07, size = 33, normalized size = 1.22
method | result | size |
risch | \(x -\ln \relax (x )+\ln \left (\ln \relax (3)^{2}+\frac {2 x \ln \relax (3)}{3}+\frac {x^{2}}{9}+2 \ln \relax (3)+\frac {2 x}{3}+\ln \relax (x )+6\right )\) | \(33\) |
norman | \(x -\ln \relax (x )+\ln \left (9 \ln \relax (3)^{2}+6 x \ln \relax (3)+x^{2}+9 \ln \relax (x )+18 \ln \relax (3)+6 x +54\right )\) | \(35\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.46, size = 31, normalized size = 1.15 \begin {gather*} x + \log \left (\frac {1}{9} \, x^{2} + \frac {2}{3} \, x {\left (\log \relax (3) + 1\right )} + \log \relax (3)^{2} + 2 \, \log \relax (3) + \log \relax (x) + 6\right ) - \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 8.13, size = 30, normalized size = 1.11 \begin {gather*} x+\ln \left (\frac {2\,x}{3}+\ln \left (9\,x\right )+\frac {2\,x\,\ln \relax (3)}{3}+{\ln \relax (3)}^2+\frac {x^2}{9}+6\right )-\ln \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.25, size = 39, normalized size = 1.44 \begin {gather*} x - \log {\relax (x )} + \log {\left (\frac {x^{2}}{9} + \frac {2 x}{3} + \frac {2 x \log {\relax (3 )}}{3} + \log {\relax (x )} + \log {\relax (3 )}^{2} + 2 \log {\relax (3 )} + 6 \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________