3.7.18 \(\int \frac {\log ^n(x)}{x} \, dx\) [618]

Optimal. Leaf size=12 \[ \frac {\log ^{1+n}(x)}{1+n} \]

[Out]

ln(x)^(1+n)/(1+n)

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 12, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2339, 30} \begin {gather*} \frac {\log ^{n+1}(x)}{n+1} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Log[x]^n/x,x]

[Out]

Log[x]^(1 + n)/(1 + n)

Rule 30

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

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]

Rubi steps

\begin {align*} \int \frac {\log ^n(x)}{x} \, dx &=\text {Subst}\left (\int x^n \, dx,x,\log (x)\right )\\ &=\frac {\log ^{1+n}(x)}{1+n}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.00, size = 12, normalized size = 1.00 \begin {gather*} \frac {\log ^{1+n}(x)}{1+n} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Log[x]^n/x,x]

[Out]

Log[x]^(1 + n)/(1 + n)

________________________________________________________________________________________

Maple [A]
time = 0.02, size = 13, normalized size = 1.08

method result size
derivativedivides \(\frac {\ln \left (x \right )^{1+n}}{1+n}\) \(13\)
default \(\frac {\ln \left (x \right )^{1+n}}{1+n}\) \(13\)
risch \(\frac {\ln \left (x \right ) \ln \left (x \right )^{n}}{1+n}\) \(13\)
norman \(\frac {\ln \left (x \right ) {\mathrm e}^{n \ln \left (\ln \left (x \right )\right )}}{1+n}\) \(15\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(ln(x)^n/x,x,method=_RETURNVERBOSE)

[Out]

ln(x)^(1+n)/(1+n)

________________________________________________________________________________________

Maxima [A]
time = 0.29, size = 12, normalized size = 1.00 \begin {gather*} \frac {\log \left (x\right )^{n + 1}}{n + 1} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(x)^n/x,x, algorithm="maxima")

[Out]

log(x)^(n + 1)/(n + 1)

________________________________________________________________________________________

Fricas [A]
time = 0.74, size = 12, normalized size = 1.00 \begin {gather*} \frac {\log \left (x\right )^{n} \log \left (x\right )}{n + 1} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(x)^n/x,x, algorithm="fricas")

[Out]

log(x)^n*log(x)/(n + 1)

________________________________________________________________________________________

Sympy [A]
time = 0.41, size = 15, normalized size = 1.25 \begin {gather*} \begin {cases} \frac {\log {\left (x \right )}^{n + 1}}{n + 1} & \text {for}\: n \neq -1 \\\log {\left (\log {\left (x \right )} \right )} & \text {otherwise} \end {cases} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(ln(x)**n/x,x)

[Out]

Piecewise((log(x)**(n + 1)/(n + 1), Ne(n, -1)), (log(log(x)), True))

________________________________________________________________________________________

Giac [A]
time = 1.75, size = 12, normalized size = 1.00 \begin {gather*} \frac {\log \left (x\right )^{n + 1}}{n + 1} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(x)^n/x,x, algorithm="giac")

[Out]

log(x)^(n + 1)/(n + 1)

________________________________________________________________________________________

Mupad [B]
time = 0.33, size = 22, normalized size = 1.83 \begin {gather*} \left \{\begin {array}{cl} \ln \left (\ln \left (x\right )\right ) & \text {\ if\ \ }n=-1\\ \frac {{\ln \left (x\right )}^{n+1}}{n+1} & \text {\ if\ \ }n\neq -1 \end {array}\right . \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(log(x)^n/x,x)

[Out]

piecewise(n == -1, log(log(x)), n ~= -1, log(x)^(n + 1)/(n + 1))

________________________________________________________________________________________