3.7.16 \(\int \frac {\log (x)}{a+b x} \, dx\) [616]

Optimal. Leaf size=29 \[ \frac {\log (x) \log \left (1+\frac {b x}{a}\right )}{b}+\frac {\text {Li}_2\left (-\frac {b x}{a}\right )}{b} \]

[Out]

ln(x)*ln(1+b*x/a)/b+polylog(2,-b*x/a)/b

________________________________________________________________________________________

Rubi [A]
time = 0.02, antiderivative size = 29, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {2354, 2438} \begin {gather*} \frac {\text {PolyLog}\left (2,-\frac {b x}{a}\right )}{b}+\frac {\log (x) \log \left (\frac {b x}{a}+1\right )}{b} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

(Log[x]*Log[1 + (b*x)/a])/b + PolyLog[2, -((b*x)/a)]/b

Rule 2354

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

Rule 2438

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> Simp[-PolyLog[2, (-c)*e*x^n]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rubi steps

\begin {align*} \int \frac {\log (x)}{a+b x} \, dx &=\frac {\log (x) \log \left (1+\frac {b x}{a}\right )}{b}-\frac {\int \frac {\log \left (1+\frac {b x}{a}\right )}{x} \, dx}{b}\\ &=\frac {\log (x) \log \left (1+\frac {b x}{a}\right )}{b}+\frac {\text {Li}_2\left (-\frac {b x}{a}\right )}{b}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.00, size = 30, normalized size = 1.03 \begin {gather*} \frac {\log (x) \log \left (\frac {a+b x}{a}\right )}{b}+\frac {\text {Li}_2\left (-\frac {b x}{a}\right )}{b} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

(Log[x]*Log[(a + b*x)/a])/b + PolyLog[2, -((b*x)/a)]/b

________________________________________________________________________________________

Maple [A]
time = 0.08, size = 32, normalized size = 1.10

method result size
default \(\frac {\dilog \left (\frac {b x +a}{a}\right )}{b}+\frac {\ln \left (x \right ) \ln \left (\frac {b x +a}{a}\right )}{b}\) \(32\)
risch \(\frac {\dilog \left (\frac {b x +a}{a}\right )}{b}+\frac {\ln \left (x \right ) \ln \left (\frac {b x +a}{a}\right )}{b}\) \(32\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

dilog((b*x+a)/a)/b+ln(x)*ln((b*x+a)/a)/b

________________________________________________________________________________________

Maxima [A]
time = 0.50, size = 25, normalized size = 0.86 \begin {gather*} \frac {\log \left (\frac {b x}{a} + 1\right ) \log \left (x\right ) + {\rm Li}_2\left (-\frac {b x}{a}\right )}{b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

(log(b*x/a + 1)*log(x) + dilog(-b*x/a))/b

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

integral(log(x)/(b*x + a), x)

________________________________________________________________________________________

Sympy [C] Result contains complex when optimal does not.
time = 3.45, size = 177, normalized size = 6.10 \begin {gather*} \begin {cases} - \frac {\operatorname {Li}_{2}\left (\frac {b \left (\frac {a}{b} + x\right )}{a}\right )}{b} & \text {for}\: \frac {1}{\left |{\frac {a}{b} + x}\right |} < 1 \wedge \left |{\frac {a}{b} + x}\right | < 1 \\\frac {\log {\left (\frac {a}{b} \right )} \log {\left (\frac {a}{b} + x \right )}}{b} + \frac {i \pi \log {\left (\frac {a}{b} + x \right )}}{b} - \frac {\operatorname {Li}_{2}\left (\frac {b \left (\frac {a}{b} + x\right )}{a}\right )}{b} & \text {for}\: \left |{\frac {a}{b} + x}\right | < 1 \\- \frac {\log {\left (\frac {a}{b} \right )} \log {\left (\frac {1}{\frac {a}{b} + x} \right )}}{b} - \frac {i \pi \log {\left (\frac {1}{\frac {a}{b} + x} \right )}}{b} - \frac {\operatorname {Li}_{2}\left (\frac {b \left (\frac {a}{b} + x\right )}{a}\right )}{b} & \text {for}\: \frac {1}{\left |{\frac {a}{b} + x}\right |} < 1 \\- \frac {{G_{2, 2}^{2, 0}\left (\begin {matrix} & 1, 1 \\0, 0 & \end {matrix} \middle | {\frac {a}{b} + x} \right )} \log {\left (\frac {a}{b} \right )}}{b} - \frac {i \pi {G_{2, 2}^{2, 0}\left (\begin {matrix} & 1, 1 \\0, 0 & \end {matrix} \middle | {\frac {a}{b} + x} \right )}}{b} + \frac {{G_{2, 2}^{0, 2}\left (\begin {matrix} 1, 1 & \\ & 0, 0 \end {matrix} \middle | {\frac {a}{b} + x} \right )} \log {\left (\frac {a}{b} \right )}}{b} + \frac {i \pi {G_{2, 2}^{0, 2}\left (\begin {matrix} 1, 1 & \\ & 0, 0 \end {matrix} \middle | {\frac {a}{b} + x} \right )}}{b} - \frac {\operatorname {Li}_{2}\left (\frac {b \left (\frac {a}{b} + x\right )}{a}\right )}{b} & \text {otherwise} \end {cases} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

Piecewise((-polylog(2, b*(a/b + x)/a)/b, (Abs(a/b + x) < 1) & (1/Abs(a/b + x) < 1)), (log(a/b)*log(a/b + x)/b
+ I*pi*log(a/b + x)/b - polylog(2, b*(a/b + x)/a)/b, Abs(a/b + x) < 1), (-log(a/b)*log(1/(a/b + x))/b - I*pi*l
og(1/(a/b + x))/b - polylog(2, b*(a/b + x)/a)/b, 1/Abs(a/b + x) < 1), (-meijerg(((), (1, 1)), ((0, 0), ()), a/
b + x)*log(a/b)/b - I*pi*meijerg(((), (1, 1)), ((0, 0), ()), a/b + x)/b + meijerg(((1, 1), ()), ((), (0, 0)),
a/b + x)*log(a/b)/b + I*pi*meijerg(((1, 1), ()), ((), (0, 0)), a/b + x)/b - polylog(2, b*(a/b + x)/a)/b, True)
)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

integrate(log(x)/(b*x + a), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.03 \begin {gather*} \int \frac {\ln \left (x\right )}{a+b\,x} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(log(x)/(a + b*x),x)

[Out]

int(log(x)/(a + b*x), x)

________________________________________________________________________________________