3.269 \(\int \frac {x \log (1-a-b x)}{a+b x} \, dx\)

Optimal. Leaf size=43 \[ \frac {a \text {Li}_2(a+b x)}{b^2}-\frac {(-a-b x+1) \log (-a-b x+1)}{b^2}-\frac {x}{b} \]

[Out]

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

________________________________________________________________________________________

Rubi [A]  time = 0.07, antiderivative size = 43, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.316, Rules used = {43, 2416, 2389, 2295, 2393, 2391} \[ \frac {a \text {PolyLog}(2,a+b x)}{b^2}-\frac {(-a-b x+1) \log (-a-b x+1)}{b^2}-\frac {x}{b} \]

Antiderivative was successfully verified.

[In]

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

[Out]

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

Rule 43

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 2295

Int[Log[(c_.)*(x_)^(n_.)], x_Symbol] :> Simp[x*Log[c*x^n], x] - Simp[n*x, x] /; FreeQ[{c, n}, x]

Rule 2389

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

Rule 2391

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]

Rule 2393

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))]*(b_.))/((f_.) + (g_.)*(x_)), x_Symbol] :> Dist[1/g, Subst[Int[(a +
 b*Log[1 + (c*e*x)/g])/x, x], x, f + g*x], x] /; FreeQ[{a, b, c, d, e, f, g}, x] && NeQ[e*f - d*g, 0] && EqQ[g
 + c*(e*f - d*g), 0]

Rule 2416

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((h_.)*(x_))^(m_.)*((f_) + (g_.)*(x_)^(r_.))^(q
_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*Log[c*(d + e*x)^n])^p, (h*x)^m*(f + g*x^r)^q, x], x] /; FreeQ[{a,
 b, c, d, e, f, g, h, m, n, p, q, r}, x] && IntegerQ[m] && IntegerQ[q]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 35, normalized size = 0.81 \[ \frac {a \text {Li}_2(a+b x)+(a+b x-1) \log (-a-b x+1)-b x}{b^2} \]

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

fricas [F]  time = 0.46, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {x \log \left (-b x - a + 1\right )}{b x + a}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {x \log \left (-b x - a + 1\right )}{b x + a}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.07, size = 77, normalized size = 1.79 \[ \frac {x \ln \left (-b x -a +1\right )}{b}+\frac {a \dilog \left (-b x -a +1\right )}{b^{2}}+\frac {a \ln \left (-b x -a +1\right )}{b^{2}}-\frac {x}{b}-\frac {a}{b^{2}}-\frac {\ln \left (-b x -a +1\right )}{b^{2}}+\frac {1}{b^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maxima [B]  time = 0.64, size = 82, normalized size = 1.91 \[ b {\left (\frac {{\left (\log \left (b x + a\right ) \log \left (-b x - a + 1\right ) + {\rm Li}_2\left (b x + a\right )\right )} a}{b^{3}} - \frac {x}{b^{2}} + \frac {{\left (a - 1\right )} \log \left (b x + a - 1\right )}{b^{3}}\right )} + {\left (\frac {x}{b} - \frac {a \log \left (b x + a\right )}{b^{2}}\right )} \log \left (-b x - a + 1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 0.32, size = 59, normalized size = 1.37 \[ -\frac {\ln \left (1-b\,x-a\right )+b\,\left (x-x\,\ln \left (1-b\,x-a\right )\right )-a\,{\mathrm {Li}}_{\mathrm {2}}\left (1-b\,x-a\right )-a\,\ln \left (1-b\,x-a\right )}{b^2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {x \log {\left (- a - b x + 1 \right )}}{a + b x}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

Integral(x*log(-a - b*x + 1)/(a + b*x), x)

________________________________________________________________________________________