3.39.38 \(\int \frac {9 x-3 x^3+(-3+12 x-10 x^2+2 x^3+3 x^4) \log (-1+3 x)}{(3 x-9 x^2-x^3+3 x^4) \log (-1+3 x)} \, dx\)

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]

Int[(9*x - 3*x^3 + (-3 + 12*x - 10*x^2 + 2*x^3 + 3*x^4)*Log[-1 + 3*x])/((3*x - 9*x^2 - x^3 + 3*x^4)*Log[-1 + 3
*x]),x]

[Out]

x - Log[x] + Log[3 - x^2] - Log[Log[-1 + 3*x]]

Rule 29

Int[(x_)^(-1), x_Symbol] :> Simp[Log[x], x]

Rule 260

Int[(x_)^(m_.)/((a_) + (b_.)*(x_)^(n_)), x_Symbol] :> Simp[Log[RemoveContent[a + b*x^n, x]]/(b*n), x] /; FreeQ
[{a, b, m, n}, x] && EqQ[m, n - 1]

Rule 1802

Int[(Pq_)*((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*Pq*(a + b*x
^2)^p, x], x] /; FreeQ[{a, b, c, m}, x] && PolyQ[Pq, x] && IGtQ[p, -2]

Rule 2302

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)/(x_), x_Symbol] :> Dist[1/(b*n), Subst[Int[x^p, x], x, a + b*L
og[c*x^n]], x] /; FreeQ[{a, b, c, n, p}, x]

Rule 2390

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_) + (g_.)*(x_))^(q_.), x_Symbol] :> Dist[1/
e, Subst[Int[((f*x)/d)^q*(a + b*Log[c*x^n])^p, x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, f, g, n, p, q}, x]
 && EqQ[e*f - d*g, 0]

Rule 6741

Int[u_, x_Symbol] :> With[{v = NormalizeIntegrand[u, x]}, Int[v, x] /; v =!= u]

Rule 6742

Int[u_, x_Symbol] :> With[{v = ExpandIntegrand[u, x]}, Int[v, x] /; SumQ[v]]

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]

Integrate[(9*x - 3*x^3 + (-3 + 12*x - 10*x^2 + 2*x^3 + 3*x^4)*Log[-1 + 3*x])/((3*x - 9*x^2 - x^3 + 3*x^4)*Log[
-1 + 3*x]),x]

[Out]

x - Log[x] + Log[3 - x^2] - Log[Log[-1 + 3*x]]

________________________________________________________________________________________

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]

integrate(((3*x^4+2*x^3-10*x^2+12*x-3)*log(3*x-1)-3*x^3+9*x)/(3*x^4-x^3-9*x^2+3*x)/log(3*x-1),x, algorithm="fr
icas")

[Out]

x + log(x^2 - 3) - log(x) - log(log(3*x - 1))

________________________________________________________________________________________

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]

integrate(((3*x^4+2*x^3-10*x^2+12*x-3)*log(3*x-1)-3*x^3+9*x)/(3*x^4-x^3-9*x^2+3*x)/log(3*x-1),x, algorithm="gi
ac")

[Out]

x + log(x^2 - 3) - log(x) - log(log(3*x - 1))

________________________________________________________________________________________

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]

int(((3*x^4+2*x^3-10*x^2+12*x-3)*ln(3*x-1)-3*x^3+9*x)/(3*x^4-x^3-9*x^2+3*x)/ln(3*x-1),x,method=_RETURNVERBOSE)

[Out]

x-ln(x)-ln(ln(3*x-1))+ln(x^2-3)

________________________________________________________________________________________

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]

integrate(((3*x^4+2*x^3-10*x^2+12*x-3)*log(3*x-1)-3*x^3+9*x)/(3*x^4-x^3-9*x^2+3*x)/log(3*x-1),x, algorithm="ma
xima")

[Out]

x + log(x^2 - 3) - log(x) - log(log(3*x - 1))

________________________________________________________________________________________

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]

int((9*x - 3*x^3 + log(3*x - 1)*(12*x - 10*x^2 + 2*x^3 + 3*x^4 - 3))/(log(3*x - 1)*(3*x - 9*x^2 - x^3 + 3*x^4)
),x)

[Out]

x - log(log(3*x - 1)) + log(x^2 - 3) - log(x)

________________________________________________________________________________________

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]

integrate(((3*x**4+2*x**3-10*x**2+12*x-3)*ln(3*x-1)-3*x**3+9*x)/(3*x**4-x**3-9*x**2+3*x)/ln(3*x-1),x)

[Out]

x - log(x) + log(x**2 - 3) - log(log(3*x - 1))

________________________________________________________________________________________