3.621 \(\int \frac {(a+b \log (x))^{-n}}{x} \, dx\)

Optimal. Leaf size=23 \[ \frac {(a+b \log (x))^{1-n}}{b (1-n)} \]

________________________________________________________________________________________

Rubi [A]  time = 0.03, antiderivative size = 23, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {2302, 30} \[ \frac {(a+b \log (x))^{1-n}}{b (1-n)} \]

Antiderivative was successfully verified.

[In]

Int[1/(x*(a + b*Log[x])^n),x]

[Out]

(a + b*Log[x])^(1 - n)/(b*(1 - n))

Rule 30

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

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]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 23, normalized size = 1.00 \[ \frac {(a+b \log (x))^{1-n}}{b (1-n)} \]

Antiderivative was successfully verified.

[In]

Integrate[1/(x*(a + b*Log[x])^n),x]

[Out]

(a + b*Log[x])^(1 - n)/(b*(1 - n))

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {(a+b \log (x))^{-n}}{x} \, dx \]

Verification is Not applicable to the result.

[In]

IntegrateAlgebraic[1/(x*(a + b*Log[x])^n),x]

[Out]

Could not integrate

________________________________________________________________________________________

fricas [A]  time = 0.69, size = 27, normalized size = 1.17 \[ -\frac {b \log \relax (x) + a}{{\left (b n - b\right )} {\left (b \log \relax (x) + a\right )}^{n}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x/((a+b*log(x))^n),x, algorithm="fricas")

[Out]

-(b*log(x) + a)/((b*n - b)*(b*log(x) + a)^n)

________________________________________________________________________________________

giac [A]  time = 0.63, size = 22, normalized size = 0.96 \[ -\frac {{\left (b \log \relax (x) + a\right )}^{-n + 1}}{b {\left (n - 1\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x/((a+b*log(x))^n),x, algorithm="giac")

[Out]

-(b*log(x) + a)^(-n + 1)/(b*(n - 1))

________________________________________________________________________________________

maple [A]  time = 0.04, size = 24, normalized size = 1.04




method result size



derivativedivides \(\frac {\left (a +b \ln \relax (x )\right )^{1-n}}{b \left (1-n \right )}\) \(24\)
default \(\frac {\left (a +b \ln \relax (x )\right )^{1-n}}{b \left (1-n \right )}\) \(24\)
risch \(-\frac {\left (a +b \ln \relax (x )\right ) \left (a +b \ln \relax (x )\right )^{-n}}{b \left (-1+n \right )}\) \(27\)
norman \(\left (-\frac {\ln \relax (x )}{-1+n}-\frac {a}{b \left (-1+n \right )}\right ) {\mathrm e}^{-n \ln \left (a +b \ln \relax (x )\right )}\) \(35\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/x/((a+b*ln(x))^n),x,method=_RETURNVERBOSE)

[Out]

(a+b*ln(x))^(1-n)/b/(1-n)

________________________________________________________________________________________

maxima [F(-2)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: ValueError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x/((a+b*log(x))^n),x, algorithm="maxima")

[Out]

Exception raised: ValueError >> Computation failed since Maxima requested additional constraints; using the 'a
ssume' command before evaluation *may* help (example of legal syntax is 'assume(-n>0)', see `assume?` for more
 details)Is -n equal to -1?

________________________________________________________________________________________

mupad [B]  time = 0.43, size = 22, normalized size = 0.96 \[ -\frac {{\left (a+b\,\ln \relax (x)\right )}^{1-n}}{b\,\left (n-1\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(x*(a + b*log(x))^n),x)

[Out]

-(a + b*log(x))^(1 - n)/(b*(n - 1))

________________________________________________________________________________________

sympy [A]  time = 20.65, size = 71, normalized size = 3.09 \[ \begin {cases} \frac {\log {\relax (x )}}{a} & \text {for}\: b = 0 \wedge n = 1 \\a^{- n} \log {\relax (x )} & \text {for}\: b = 0 \\\frac {\log {\left (\frac {a}{b} + \log {\relax (x )} \right )}}{b} & \text {for}\: n = 1 \\- \frac {a}{b n \left (a + b \log {\relax (x )}\right )^{n} - b \left (a + b \log {\relax (x )}\right )^{n}} - \frac {b \log {\relax (x )}}{b n \left (a + b \log {\relax (x )}\right )^{n} - b \left (a + b \log {\relax (x )}\right )^{n}} & \text {otherwise} \end {cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x/((a+b*ln(x))**n),x)

[Out]

Piecewise((log(x)/a, Eq(b, 0) & Eq(n, 1)), (a**(-n)*log(x), Eq(b, 0)), (log(a/b + log(x))/b, Eq(n, 1)), (-a/(b
*n*(a + b*log(x))**n - b*(a + b*log(x))**n) - b*log(x)/(b*n*(a + b*log(x))**n - b*(a + b*log(x))**n), True))

________________________________________________________________________________________