Optimal. Leaf size=28 \[ x+\log \left (\frac {\frac {3}{x}-x}{8 \log (5) \log (-1+3 x)}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.51, antiderivative size = 23, normalized size of antiderivative = 0.82, number of steps used = 9, number of rules used = 7, integrand size = 66, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.106, Rules used = {6741, 6742, 1802, 260, 2390, 2302, 29} \begin {gather*} \log \left (3-x^2\right )+x-\log (x)-\log (\log (3 x-1)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 260
Rule 1802
Rule 2302
Rule 2390
Rule 6741
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {9 x-3 x^3+\left (-3+12 x-10 x^2+2 x^3+3 x^4\right ) \log (-1+3 x)}{x \left (3-9 x-x^2+3 x^3\right ) \log (-1+3 x)} \, dx\\ &=\int \left (\frac {3-3 x+x^2+x^3}{x \left (-3+x^2\right )}-\frac {3}{(-1+3 x) \log (-1+3 x)}\right ) \, dx\\ &=-\left (3 \int \frac {1}{(-1+3 x) \log (-1+3 x)} \, dx\right )+\int \frac {3-3 x+x^2+x^3}{x \left (-3+x^2\right )} \, dx\\ &=\int \left (1-\frac {1}{x}+\frac {2 x}{-3+x^2}\right ) \, dx-\operatorname {Subst}\left (\int \frac {1}{x \log (x)} \, dx,x,-1+3 x\right )\\ &=x-\log (x)+2 \int \frac {x}{-3+x^2} \, dx-\operatorname {Subst}\left (\int \frac {1}{x} \, dx,x,\log (-1+3 x)\right )\\ &=x-\log (x)+\log \left (3-x^2\right )-\log (\log (-1+3 x))\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.09, size = 23, normalized size = 0.82 \begin {gather*} x-\log (x)+\log \left (3-x^2\right )-\log (\log (-1+3 x)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.61, size = 21, normalized size = 0.75 \begin {gather*} x + \log \left (x^{2} - 3\right ) - \log \relax (x) - \log \left (\log \left (3 \, x - 1\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.15, size = 21, normalized size = 0.75 \begin {gather*} x + \log \left (x^{2} - 3\right ) - \log \relax (x) - \log \left (\log \left (3 \, x - 1\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.06, size = 22, normalized size = 0.79
method | result | size |
norman | \(x -\ln \relax (x )-\ln \left (\ln \left (3 x -1\right )\right )+\ln \left (x^{2}-3\right )\) | \(22\) |
risch | \(x -\ln \relax (x )-\ln \left (\ln \left (3 x -1\right )\right )+\ln \left (x^{2}-3\right )\) | \(22\) |
derivativedivides | \(x -\frac {1}{3}-\ln \left (3 x \right )+\ln \left (\left (3 x -1\right )^{2}+6 x -28\right )-\ln \left (\ln \left (3 x -1\right )\right )\) | \(32\) |
default | \(x -\frac {1}{3}-\ln \left (3 x \right )+\ln \left (\left (3 x -1\right )^{2}+6 x -28\right )-\ln \left (\ln \left (3 x -1\right )\right )\) | \(32\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.41, size = 21, normalized size = 0.75 \begin {gather*} x + \log \left (x^{2} - 3\right ) - \log \relax (x) - \log \left (\log \left (3 \, x - 1\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.29, size = 21, normalized size = 0.75 \begin {gather*} x-\ln \left (\ln \left (3\,x-1\right )\right )+\ln \left (x^2-3\right )-\ln \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.16, size = 19, normalized size = 0.68 \begin {gather*} x - \log {\relax (x )} + \log {\left (x^{2} - 3 \right )} - \log {\left (\log {\left (3 x - 1 \right )} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________