3.4.44 \(\int \frac {-6-3 x-6 \log (x)}{x^2 \log ^2(x)} \, dx\) [344]

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

[Out]

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

________________________________________________________________________________________

Rubi [A]
time = 0.17, antiderivative size = 16, normalized size of antiderivative = 1.23, number of steps used = 13, number of rules used = 9, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.529, Rules used = {6873, 12, 6874, 2395, 2343, 2346, 2209, 2339, 30} \begin {gather*} \frac {6}{x \log (x)}+\frac {3}{\log (x)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(-6 - 3*x - 6*Log[x])/(x^2*Log[x]^2),x]

[Out]

3/Log[x] + 6/(x*Log[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 30

Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]

Rule 2209

Int[(F_)^((g_.)*((e_.) + (f_.)*(x_)))/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[(F^(g*(e - c*(f/d)))/d)*ExpInteg
ralEi[f*g*(c + d*x)*(Log[F]/d)], x] /; FreeQ[{F, c, d, e, f, g}, x] &&  !TrueQ[$UseGamma]

Rule 2339

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 2343

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_)*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[(d*x)^(m + 1)*((a + b*Log
[c*x^n])^(p + 1)/(b*d*n*(p + 1))), x] - Dist[(m + 1)/(b*n*(p + 1)), Int[(d*x)^m*(a + b*Log[c*x^n])^(p + 1), x]
, x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[m, -1] && LtQ[p, -1]

Rule 2346

Int[((a_.) + Log[(c_.)*(x_)]*(b_.))^(p_)*(x_)^(m_.), x_Symbol] :> Dist[1/c^(m + 1), Subst[Int[E^((m + 1)*x)*(a
 + b*x)^p, x], x, Log[c*x]], x] /; FreeQ[{a, b, c, p}, x] && IntegerQ[m]

Rule 2395

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((f_.)*(x_))^(m_.)*((d_) + (e_.)*(x_)^(r_.))^(q_.), x_Symbol]
:> With[{u = ExpandIntegrand[(a + b*Log[c*x^n])^p, (f*x)^m*(d + e*x^r)^q, x]}, Int[u, x] /; SumQ[u]] /; FreeQ[
{a, b, c, d, e, f, m, n, p, q, r}, x] && IntegerQ[q] && (GtQ[q, 0] || (IGtQ[p, 0] && IntegerQ[m] && IntegerQ[r
]))

Rule 6873

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

Rule 6874

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

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]
time = 0.05, size = 14, normalized size = 1.08 \begin {gather*} -\frac {3 (-2-x)}{x \log (x)} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(-6 - 3*x - 6*Log[x])/(x^2*Log[x]^2),x]

[Out]

(-3*(-2 - x))/(x*Log[x])

________________________________________________________________________________________

Maple [A]
time = 0.03, size = 17, normalized size = 1.31

method result size
risch \(\frac {6+3 x}{x \ln \left (x \right )}\) \(13\)
norman \(\frac {6+3 x}{x \ln \left (x \right )}\) \(14\)
default \(\frac {3}{\ln \left (x \right )}+\frac {6}{x \ln \left (x \right )}\) \(17\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((-6*ln(x)-3*x-6)/x^2/ln(x)^2,x,method=_RETURNVERBOSE)

[Out]

3/ln(x)+6/x/ln(x)

________________________________________________________________________________________

Maxima [C] Result contains higher order function than in optimal. Order 4 vs. order 3.
time = 0.43, size = 20, normalized size = 1.54 \begin {gather*} \frac {3}{\log \left (x\right )} - 6 \, {\rm Ei}\left (-\log \left (x\right )\right ) + 6 \, \Gamma \left (-1, \log \left (x\right )\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-6*log(x)-3*x-6)/x^2/log(x)^2,x, algorithm="maxima")

[Out]

3/log(x) - 6*Ei(-log(x)) + 6*gamma(-1, log(x))

________________________________________________________________________________________

Fricas [A]
time = 0.31, size = 12, normalized size = 0.92 \begin {gather*} \frac {3 \, {\left (x + 2\right )}}{x \log \left (x\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-6*log(x)-3*x-6)/x^2/log(x)^2,x, algorithm="fricas")

[Out]

3*(x + 2)/(x*log(x))

________________________________________________________________________________________

Sympy [A]
time = 0.03, size = 8, normalized size = 0.62 \begin {gather*} \frac {3 x + 6}{x \log {\left (x \right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-6*ln(x)-3*x-6)/x**2/ln(x)**2,x)

[Out]

(3*x + 6)/(x*log(x))

________________________________________________________________________________________

Giac [A]
time = 0.42, size = 12, normalized size = 0.92 \begin {gather*} \frac {3 \, {\left (x + 2\right )}}{x \log \left (x\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-6*log(x)-3*x-6)/x^2/log(x)^2,x, algorithm="giac")

[Out]

3*(x + 2)/(x*log(x))

________________________________________________________________________________________

Mupad [B]
time = 0.34, size = 12, normalized size = 0.92 \begin {gather*} \frac {3\,\left (x+2\right )}{x\,\ln \left (x\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-(3*x + 6*log(x) + 6)/(x^2*log(x)^2),x)

[Out]

(3*(x + 2))/(x*log(x))

________________________________________________________________________________________