3.12.87 \(\int \frac {24+12 x+(4-12 x) \log (\frac {3}{-1+3 x})}{-9+27 x+(-12+30 x+18 x^2) \log (\frac {3}{-1+3 x})+(-4+8 x+11 x^2+3 x^3) \log ^2(\frac {3}{-1+3 x})} \, dx\)

Optimal. Leaf size=22 \[ 2+\frac {4}{3+(2+x) \log \left (\frac {3}{-1+3 x}\right )} \]

________________________________________________________________________________________

Rubi [A]  time = 0.26, antiderivative size = 20, normalized size of antiderivative = 0.91, number of steps used = 4, number of rules used = 4, integrand size = 78, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.051, Rules used = {6688, 12, 6708, 32} \begin {gather*} \frac {4}{(x+2) \log \left (-\frac {3}{1-3 x}\right )+3} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(24 + 12*x + (4 - 12*x)*Log[3/(-1 + 3*x)])/(-9 + 27*x + (-12 + 30*x + 18*x^2)*Log[3/(-1 + 3*x)] + (-4 + 8*
x + 11*x^2 + 3*x^3)*Log[3/(-1 + 3*x)]^2),x]

[Out]

4/(3 + (2 + x)*Log[-3/(1 - 3*x)])

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 32

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

Rule 6688

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

Rule 6708

Int[(u_)*((a_) + (b_.)*(v_)^(p_.)*(w_)^(p_.))^(m_.), x_Symbol] :> With[{c = Simplify[u/(w*D[v, x] + v*D[w, x])
]}, Dist[c, Subst[Int[(a + b*x^p)^m, x], x, v*w], x] /; FreeQ[c, x]] /; FreeQ[{a, b, m, p}, x] && IntegerQ[p]

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {4 \left (-3 (2+x)-(1-3 x) \log \left (\frac {3}{-1+3 x}\right )\right )}{(1-3 x) \left (3+(2+x) \log \left (\frac {3}{-1+3 x}\right )\right )^2} \, dx\\ &=4 \int \frac {-3 (2+x)-(1-3 x) \log \left (\frac {3}{-1+3 x}\right )}{(1-3 x) \left (3+(2+x) \log \left (\frac {3}{-1+3 x}\right )\right )^2} \, dx\\ &=-\left (4 \operatorname {Subst}\left (\int \frac {1}{(3+x)^2} \, dx,x,(2+x) \log \left (\frac {3}{-1+3 x}\right )\right )\right )\\ &=\frac {4}{3+(2+x) \log \left (-\frac {3}{1-3 x}\right )}\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]  time = 0.34, size = 20, normalized size = 0.91 \begin {gather*} \frac {4}{3+(2+x) \log \left (\frac {3}{-1+3 x}\right )} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(24 + 12*x + (4 - 12*x)*Log[3/(-1 + 3*x)])/(-9 + 27*x + (-12 + 30*x + 18*x^2)*Log[3/(-1 + 3*x)] + (-
4 + 8*x + 11*x^2 + 3*x^3)*Log[3/(-1 + 3*x)]^2),x]

[Out]

4/(3 + (2 + x)*Log[3/(-1 + 3*x)])

________________________________________________________________________________________

fricas [A]  time = 0.54, size = 20, normalized size = 0.91 \begin {gather*} \frac {4}{{\left (x + 2\right )} \log \left (\frac {3}{3 \, x - 1}\right ) + 3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((-12*x+4)*log(3/(3*x-1))+12*x+24)/((3*x^3+11*x^2+8*x-4)*log(3/(3*x-1))^2+(18*x^2+30*x-12)*log(3/(3*
x-1))+27*x-9),x, algorithm="fricas")

[Out]

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

________________________________________________________________________________________

giac [B]  time = 0.42, size = 50, normalized size = 2.27 \begin {gather*} \frac {12}{{\left (3 \, x - 1\right )} {\left (\frac {7 \, \log \left (\frac {3}{3 \, x - 1}\right )}{3 \, x - 1} + \frac {9}{3 \, x - 1} + \log \left (\frac {3}{3 \, x - 1}\right )\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((-12*x+4)*log(3/(3*x-1))+12*x+24)/((3*x^3+11*x^2+8*x-4)*log(3/(3*x-1))^2+(18*x^2+30*x-12)*log(3/(3*
x-1))+27*x-9),x, algorithm="giac")

[Out]

12/((3*x - 1)*(7*log(3/(3*x - 1))/(3*x - 1) + 9/(3*x - 1) + log(3/(3*x - 1))))

________________________________________________________________________________________

maple [A]  time = 0.09, size = 31, normalized size = 1.41




method result size



norman \(\frac {4}{\ln \left (\frac {3}{3 x -1}\right ) x +2 \ln \left (\frac {3}{3 x -1}\right )+3}\) \(31\)
risch \(\frac {4}{\ln \left (\frac {3}{3 x -1}\right ) x +2 \ln \left (\frac {3}{3 x -1}\right )+3}\) \(31\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((-12*x+4)*ln(3/(3*x-1))+12*x+24)/((3*x^3+11*x^2+8*x-4)*ln(3/(3*x-1))^2+(18*x^2+30*x-12)*ln(3/(3*x-1))+27*
x-9),x,method=_RETURNVERBOSE)

[Out]

4/(ln(3/(3*x-1))*x+2*ln(3/(3*x-1))+3)

________________________________________________________________________________________

maxima [A]  time = 0.59, size = 25, normalized size = 1.14 \begin {gather*} \frac {4}{x \log \relax (3) - {\left (x + 2\right )} \log \left (3 \, x - 1\right ) + 2 \, \log \relax (3) + 3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((-12*x+4)*log(3/(3*x-1))+12*x+24)/((3*x^3+11*x^2+8*x-4)*log(3/(3*x-1))^2+(18*x^2+30*x-12)*log(3/(3*
x-1))+27*x-9),x, algorithm="maxima")

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 0.44, size = 30, normalized size = 1.36 \begin {gather*} \frac {4}{2\,\ln \left (\frac {3}{3\,x-1}\right )+x\,\ln \left (\frac {3}{3\,x-1}\right )+3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((12*x - log(3/(3*x - 1))*(12*x - 4) + 24)/(27*x + log(3/(3*x - 1))*(30*x + 18*x^2 - 12) + log(3/(3*x - 1))
^2*(8*x + 11*x^2 + 3*x^3 - 4) - 9),x)

[Out]

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

________________________________________________________________________________________

sympy [A]  time = 0.19, size = 14, normalized size = 0.64 \begin {gather*} \frac {4}{\left (x + 2\right ) \log {\left (\frac {3}{3 x - 1} \right )} + 3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((-12*x+4)*ln(3/(3*x-1))+12*x+24)/((3*x**3+11*x**2+8*x-4)*ln(3/(3*x-1))**2+(18*x**2+30*x-12)*ln(3/(3
*x-1))+27*x-9),x)

[Out]

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

________________________________________________________________________________________