3.182 \(\int \frac {(g+h \log (f (d+e x)^n)) \text {Li}_2(c (a+b x))}{x^3} \, dx\)

Optimal. Leaf size=3119 \[ \text {result too large to display} \]

[Out]

1/2*e^2*h*n*ln(b*(e*x+d)/(-a*e+b*d)/(1-c*(b*x+a)))*polylog(2,(-a*e+b*d)*(1-c*(b*x+a))/b/(e*x+d))/d^2+1/4*b^2*h
*n*(ln(b*c*x/(-a*c+1))+ln((-a*c*e+b*c*d+e)/b/c/(e*x+d))-ln((-a*c*e+b*c*d+e)*x/(-a*c+1)/(e*x+d)))*ln((-a*c+1)*(
e*x+d)/d/(-b*c*x-a*c+1))^2/a^2-1/4*b^2*h*n*(ln(b*c*x/(-a*c+1))-ln(-e*x/d))*(ln(-b*c*x-a*c+1)+ln((-a*c+1)*(e*x+
d)/d/(-b*c*x-a*c+1)))^2/a^2-1/2*b^2*h*ln(b*c*x/(-a*c+1))*ln(-b*c*x-a*c+1)*(n*ln(e*x+d)-ln(f*(e*x+d)^n))/a^2+1/
2*b^2*c*ln(-e*x/d)*(g+h*ln(f*(e*x+d)^n))/a/(-a*c+1)-1/2*b^2*c*ln(e*(-b*c*x-a*c+1)/(-a*c*e+b*c*d+e))*(g+h*ln(f*
(e*x+d)^n))/a/(-a*c+1)-1/4*b^2*h*n*(ln(c*(b*x+a))+ln((-a*c*e+b*c*d+e)/b/c/(e*x+d))-ln((-a*c*e+b*c*d+e)*(b*x+a)
/b/(e*x+d)))*ln(b*(e*x+d)/(-a*e+b*d)/(1-c*(b*x+a)))^2/a^2+1/4*e^2*h*n*(ln(c*(b*x+a))+ln((-a*c*e+b*c*d+e)/b/c/(
e*x+d))-ln((-a*c*e+b*c*d+e)*(b*x+a)/b/(e*x+d)))*ln(b*(e*x+d)/(-a*e+b*d)/(1-c*(b*x+a)))^2/d^2+1/4*b^2*h*n*(ln(c
*(b*x+a))-ln(-e*(b*x+a)/(-a*e+b*d)))*(ln(b*(e*x+d)/(-a*e+b*d)/(1-c*(b*x+a)))+ln(1-c*(b*x+a)))^2/a^2-1/4*e^2*h*
n*(ln(c*(b*x+a))-ln(-e*(b*x+a)/(-a*e+b*d)))*(ln(b*(e*x+d)/(-a*e+b*d)/(1-c*(b*x+a)))+ln(1-c*(b*x+a)))^2/d^2-1/4
*e^2*h*n*(ln(1+b*x/a)+ln((-a*c+1)/(1-c*(b*x+a)))-ln((-a*c+1)*(b*x+a)/a/(1-c*(b*x+a))))*ln(-a*(1-c*(b*x+a))/b/x
)^2/d^2-1/4*e^2*h*n*(ln(c*(b*x+a))-ln(1+b*x/a))*(ln(x)+ln(-a*(1-c*(b*x+a))/b/x))^2/d^2-1/2*e^2*h*n*(ln(1-c*(b*
x+a))-ln(-a*(1-c*(b*x+a))/b/x))*polylog(2,-b*x/a)/d^2-1/2*e^2*h*n*ln(x)*polylog(2,c*(b*x+a))/d^2+1/2*e^2*h*n*l
n(e*x+d)*polylog(2,c*(b*x+a))/d^2+1/2*b^2*h*n*(ln(e*x+d)-ln((-a*c+1)*(e*x+d)/d/(-b*c*x-a*c+1)))*polylog(2,1-b*
c*x/(-a*c+1))/a^2+1/2*b^2*h*n*ln((-a*c+1)*(e*x+d)/d/(-b*c*x-a*c+1))*polylog(2,d*(-b*c*x-a*c+1)/(-a*c+1)/(e*x+d
))/a^2-1/2*b^2*h*n*ln((-a*c+1)*(e*x+d)/d/(-b*c*x-a*c+1))*polylog(2,-e*(-b*c*x-a*c+1)/b/c/(e*x+d))/a^2-1/2*b^2*
h*n*(ln(b*(e*x+d)/(-a*e+b*d)/(1-c*(b*x+a)))+ln(1-c*(b*x+a)))*polylog(2,b*(e*x+d)/(-a*e+b*d))/a^2+1/2*e^2*h*n*(
ln(b*(e*x+d)/(-a*e+b*d)/(1-c*(b*x+a)))+ln(1-c*(b*x+a)))*polylog(2,b*(e*x+d)/(-a*e+b*d))/d^2+1/2*b^2*h*n*(ln(-b
*c*x-a*c+1)+ln((-a*c+1)*(e*x+d)/d/(-b*c*x-a*c+1)))*polylog(2,1+e*x/d)/a^2-1/2*e^2*h*n*ln(-a*(1-c*(b*x+a))/b/x)
*polylog(2,-b*x/a/(1-c*(b*x+a)))/d^2+1/2*e^2*h*n*ln(-a*(1-c*(b*x+a))/b/x)*polylog(2,-b*c*x/(1-c*(b*x+a)))/d^2-
1/2*b^2*h*n*(ln(e*x+d)-ln(b*(e*x+d)/(-a*e+b*d)/(1-c*(b*x+a))))*polylog(2,1-c*(b*x+a))/a^2+1/2*e^2*h*n*(ln(e*x+
d)-ln(b*(e*x+d)/(-a*e+b*d)/(1-c*(b*x+a))))*polylog(2,1-c*(b*x+a))/d^2-1/2*e^2*h*n*(ln(x)+ln(-a*(1-c*(b*x+a))/b
/x))*polylog(2,1-c*(b*x+a))/d^2+1/2*b^2*h*n*ln(b*(e*x+d)/(-a*e+b*d)/(1-c*(b*x+a)))*polylog(2,-e*(1-c*(b*x+a))/
b/c/(e*x+d))/a^2-1/2*e^2*h*n*ln(b*(e*x+d)/(-a*e+b*d)/(1-c*(b*x+a)))*polylog(2,-e*(1-c*(b*x+a))/b/c/(e*x+d))/d^
2-1/2*b^2*h*n*ln(b*(e*x+d)/(-a*e+b*d)/(1-c*(b*x+a)))*polylog(2,(-a*e+b*d)*(1-c*(b*x+a))/b/(e*x+d))/a^2-1/2*e*h
*n*polylog(2,c*(b*x+a))/d/x+1/2*b^2*g*ln(b*c*x/(-a*c+1))*ln(-b*c*x-a*c+1)/a^2+1/2*b*ln(-b*c*x-a*c+1)*(g+h*ln(f
*(e*x+d)^n))/a/x-1/2*b^2*h*(n*ln(e*x+d)-ln(f*(e*x+d)^n))*polylog(2,c*(b*x+a))/a^2-1/2*b^2*h*(n*ln(e*x+d)-ln(f*
(e*x+d)^n))*polylog(2,1-b*c*x/(-a*c+1))/a^2+1/2*e^2*h*n*polylog(3,-b*x/a)/d^2-1/2*b^2*h*n*polylog(3,1-b*c*x/(-
a*c+1))/a^2+1/2*b^2*h*n*polylog(3,d*(-b*c*x-a*c+1)/(-a*c+1)/(e*x+d))/a^2-1/2*b^2*h*n*polylog(3,-e*(-b*c*x-a*c+
1)/b/c/(e*x+d))/a^2+1/2*b^2*h*n*polylog(3,b*(e*x+d)/(-a*e+b*d))/a^2-1/2*e^2*h*n*polylog(3,b*(e*x+d)/(-a*e+b*d)
)/d^2-1/2*b^2*h*n*polylog(3,1+e*x/d)/a^2-1/2*e^2*h*n*polylog(3,-b*x/a/(1-c*(b*x+a)))/d^2+1/2*e^2*h*n*polylog(3
,-b*c*x/(1-c*(b*x+a)))/d^2+1/2*b^2*h*n*polylog(3,1-c*(b*x+a))/a^2+1/2*b^2*h*n*polylog(3,-e*(1-c*(b*x+a))/b/c/(
e*x+d))/a^2-1/2*e^2*h*n*polylog(3,-e*(1-c*(b*x+a))/b/c/(e*x+d))/d^2-1/2*b^2*h*n*polylog(3,(-a*e+b*d)*(1-c*(b*x
+a))/b/(e*x+d))/a^2+1/2*e^2*h*n*polylog(3,(-a*e+b*d)*(1-c*(b*x+a))/b/(e*x+d))/d^2+1/2*b^2*h*n*ln(b*c*x/(-a*c+1
))*ln(-b*c*x-a*c+1)*ln(e*x+d)/a^2-1/2*e^2*h*n*ln(x)*ln(1+b*x/a)*ln(1-c*(b*x+a))/d^2-1/2*b^2*h*n*ln(c*(b*x+a))*
ln(e*x+d)*ln(1-c*(b*x+a))/a^2+1/2*e^2*h*n*ln(c*(b*x+a))*ln(e*x+d)*ln(1-c*(b*x+a))/d^2-b*e*h*n*polylog(2,1-b*c*
x/(-a*c+1))/a/d-1/2*(g+h*ln(f*(e*x+d)^n))*polylog(2,c*(b*x+a))/x^2+1/2*b^2*g*polylog(2,c*(b*x+a))/a^2+1/2*b^2*
g*polylog(2,1-b*c*x/(-a*c+1))/a^2-b*e*h*n*ln(b*c*x/(-a*c+1))*ln(-b*c*x-a*c+1)/a/d+1/2*b*e*h*n*ln(-b*c*x-a*c+1)
*ln(b*c*(e*x+d)/(-a*c*e+b*c*d+e))/a/d-1/2*b*e*h*n*polylog(2,c*(b*x+a))/a/d+1/2*b*e*h*n*polylog(2,e*(-b*c*x-a*c
+1)/(-a*c*e+b*c*d+e))/a/d-1/2*b^2*c*h*n*polylog(2,b*c*(e*x+d)/(-a*c*e+b*c*d+e))/a/(-a*c+1)+1/2*b^2*c*h*n*polyl
og(2,1+e*x/d)/a/(-a*c+1)

________________________________________________________________________________________

Rubi [A]  time = 3.24, antiderivative size = 3119, normalized size of antiderivative = 1.00, number of steps used = 44, number of rules used = 16, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.593, Rules used = {6603, 2439, 36, 29, 31, 2416, 2394, 2315, 2393, 2391, 2438, 2437, 2435, 2440, 6598, 6597} \[ \text {result too large to display} \]

Antiderivative was successfully verified.

[In]

Int[((g + h*Log[f*(d + e*x)^n])*PolyLog[2, c*(a + b*x)])/x^3,x]

[Out]

(b^2*g*Log[(b*c*x)/(1 - a*c)]*Log[1 - a*c - b*c*x])/(2*a^2) - (b*e*h*n*Log[(b*c*x)/(1 - a*c)]*Log[1 - a*c - b*
c*x])/(a*d) + (b^2*h*n*Log[(b*c*x)/(1 - a*c)]*Log[1 - a*c - b*c*x]*Log[d + e*x])/(2*a^2) + (b*e*h*n*Log[1 - a*
c - b*c*x]*Log[(b*c*(d + e*x))/(b*c*d + e - a*c*e)])/(2*a*d) + (b^2*h*n*(Log[(b*c*x)/(1 - a*c)] + Log[(b*c*d +
 e - a*c*e)/(b*c*(d + e*x))] - Log[((b*c*d + e - a*c*e)*x)/((1 - a*c)*(d + e*x))])*Log[((1 - a*c)*(d + e*x))/(
d*(1 - a*c - b*c*x))]^2)/(4*a^2) - (b^2*h*n*(Log[(b*c*x)/(1 - a*c)] - Log[-((e*x)/d)])*(Log[1 - a*c - b*c*x] +
 Log[((1 - a*c)*(d + e*x))/(d*(1 - a*c - b*c*x))])^2)/(4*a^2) - (b^2*h*Log[(b*c*x)/(1 - a*c)]*Log[1 - a*c - b*
c*x]*(n*Log[d + e*x] - Log[f*(d + e*x)^n]))/(2*a^2) + (b^2*c*Log[-((e*x)/d)]*(g + h*Log[f*(d + e*x)^n]))/(2*a*
(1 - a*c)) + (b*Log[1 - a*c - b*c*x]*(g + h*Log[f*(d + e*x)^n]))/(2*a*x) - (b^2*c*Log[(e*(1 - a*c - b*c*x))/(b
*c*d + e - a*c*e)]*(g + h*Log[f*(d + e*x)^n]))/(2*a*(1 - a*c)) - (b^2*h*n*(Log[c*(a + b*x)] + Log[(b*c*d + e -
 a*c*e)/(b*c*(d + e*x))] - Log[((b*c*d + e - a*c*e)*(a + b*x))/(b*(d + e*x))])*Log[(b*(d + e*x))/((b*d - a*e)*
(1 - c*(a + b*x)))]^2)/(4*a^2) + (e^2*h*n*(Log[c*(a + b*x)] + Log[(b*c*d + e - a*c*e)/(b*c*(d + e*x))] - Log[(
(b*c*d + e - a*c*e)*(a + b*x))/(b*(d + e*x))])*Log[(b*(d + e*x))/((b*d - a*e)*(1 - c*(a + b*x)))]^2)/(4*d^2) -
 (e^2*h*n*Log[x]*Log[1 + (b*x)/a]*Log[1 - c*(a + b*x)])/(2*d^2) - (b^2*h*n*Log[c*(a + b*x)]*Log[d + e*x]*Log[1
 - c*(a + b*x)])/(2*a^2) + (e^2*h*n*Log[c*(a + b*x)]*Log[d + e*x]*Log[1 - c*(a + b*x)])/(2*d^2) + (b^2*h*n*(Lo
g[c*(a + b*x)] - Log[-((e*(a + b*x))/(b*d - a*e))])*(Log[(b*(d + e*x))/((b*d - a*e)*(1 - c*(a + b*x)))] + Log[
1 - c*(a + b*x)])^2)/(4*a^2) - (e^2*h*n*(Log[c*(a + b*x)] - Log[-((e*(a + b*x))/(b*d - a*e))])*(Log[(b*(d + e*
x))/((b*d - a*e)*(1 - c*(a + b*x)))] + Log[1 - c*(a + b*x)])^2)/(4*d^2) - (e^2*h*n*(Log[1 + (b*x)/a] + Log[(1
- a*c)/(1 - c*(a + b*x))] - Log[((1 - a*c)*(a + b*x))/(a*(1 - c*(a + b*x)))])*Log[-((a*(1 - c*(a + b*x)))/(b*x
))]^2)/(4*d^2) - (e^2*h*n*(Log[c*(a + b*x)] - Log[1 + (b*x)/a])*(Log[x] + Log[-((a*(1 - c*(a + b*x)))/(b*x))])
^2)/(4*d^2) - (e^2*h*n*(Log[1 - c*(a + b*x)] - Log[-((a*(1 - c*(a + b*x)))/(b*x))])*PolyLog[2, -((b*x)/a)])/(2
*d^2) + (b^2*g*PolyLog[2, c*(a + b*x)])/(2*a^2) - (b*e*h*n*PolyLog[2, c*(a + b*x)])/(2*a*d) - (e*h*n*PolyLog[2
, c*(a + b*x)])/(2*d*x) - (e^2*h*n*Log[x]*PolyLog[2, c*(a + b*x)])/(2*d^2) + (e^2*h*n*Log[d + e*x]*PolyLog[2,
c*(a + b*x)])/(2*d^2) - (b^2*h*(n*Log[d + e*x] - Log[f*(d + e*x)^n])*PolyLog[2, c*(a + b*x)])/(2*a^2) - ((g +
h*Log[f*(d + e*x)^n])*PolyLog[2, c*(a + b*x)])/(2*x^2) + (b*e*h*n*PolyLog[2, (e*(1 - a*c - b*c*x))/(b*c*d + e
- a*c*e)])/(2*a*d) + (b^2*g*PolyLog[2, 1 - (b*c*x)/(1 - a*c)])/(2*a^2) - (b*e*h*n*PolyLog[2, 1 - (b*c*x)/(1 -
a*c)])/(a*d) + (b^2*h*n*(Log[d + e*x] - Log[((1 - a*c)*(d + e*x))/(d*(1 - a*c - b*c*x))])*PolyLog[2, 1 - (b*c*
x)/(1 - a*c)])/(2*a^2) - (b^2*h*(n*Log[d + e*x] - Log[f*(d + e*x)^n])*PolyLog[2, 1 - (b*c*x)/(1 - a*c)])/(2*a^
2) + (b^2*h*n*Log[((1 - a*c)*(d + e*x))/(d*(1 - a*c - b*c*x))]*PolyLog[2, (d*(1 - a*c - b*c*x))/((1 - a*c)*(d
+ e*x))])/(2*a^2) - (b^2*h*n*Log[((1 - a*c)*(d + e*x))/(d*(1 - a*c - b*c*x))]*PolyLog[2, -((e*(1 - a*c - b*c*x
))/(b*c*(d + e*x)))])/(2*a^2) - (b^2*h*n*(Log[(b*(d + e*x))/((b*d - a*e)*(1 - c*(a + b*x)))] + Log[1 - c*(a +
b*x)])*PolyLog[2, (b*(d + e*x))/(b*d - a*e)])/(2*a^2) + (e^2*h*n*(Log[(b*(d + e*x))/((b*d - a*e)*(1 - c*(a + b
*x)))] + Log[1 - c*(a + b*x)])*PolyLog[2, (b*(d + e*x))/(b*d - a*e)])/(2*d^2) - (b^2*c*h*n*PolyLog[2, (b*c*(d
+ e*x))/(b*c*d + e - a*c*e)])/(2*a*(1 - a*c)) + (b^2*c*h*n*PolyLog[2, 1 + (e*x)/d])/(2*a*(1 - a*c)) + (b^2*h*n
*(Log[1 - a*c - b*c*x] + Log[((1 - a*c)*(d + e*x))/(d*(1 - a*c - b*c*x))])*PolyLog[2, 1 + (e*x)/d])/(2*a^2) -
(e^2*h*n*Log[-((a*(1 - c*(a + b*x)))/(b*x))]*PolyLog[2, -((b*x)/(a*(1 - c*(a + b*x))))])/(2*d^2) + (e^2*h*n*Lo
g[-((a*(1 - c*(a + b*x)))/(b*x))]*PolyLog[2, -((b*c*x)/(1 - c*(a + b*x)))])/(2*d^2) - (b^2*h*n*(Log[d + e*x] -
 Log[(b*(d + e*x))/((b*d - a*e)*(1 - c*(a + b*x)))])*PolyLog[2, 1 - c*(a + b*x)])/(2*a^2) + (e^2*h*n*(Log[d +
e*x] - Log[(b*(d + e*x))/((b*d - a*e)*(1 - c*(a + b*x)))])*PolyLog[2, 1 - c*(a + b*x)])/(2*d^2) - (e^2*h*n*(Lo
g[x] + Log[-((a*(1 - c*(a + b*x)))/(b*x))])*PolyLog[2, 1 - c*(a + b*x)])/(2*d^2) + (b^2*h*n*Log[(b*(d + e*x))/
((b*d - a*e)*(1 - c*(a + b*x)))]*PolyLog[2, -((e*(1 - c*(a + b*x)))/(b*c*(d + e*x)))])/(2*a^2) - (e^2*h*n*Log[
(b*(d + e*x))/((b*d - a*e)*(1 - c*(a + b*x)))]*PolyLog[2, -((e*(1 - c*(a + b*x)))/(b*c*(d + e*x)))])/(2*d^2) -
 (b^2*h*n*Log[(b*(d + e*x))/((b*d - a*e)*(1 - c*(a + b*x)))]*PolyLog[2, ((b*d - a*e)*(1 - c*(a + b*x)))/(b*(d
+ e*x))])/(2*a^2) + (e^2*h*n*Log[(b*(d + e*x))/((b*d - a*e)*(1 - c*(a + b*x)))]*PolyLog[2, ((b*d - a*e)*(1 - c
*(a + b*x)))/(b*(d + e*x))])/(2*d^2) + (e^2*h*n*PolyLog[3, -((b*x)/a)])/(2*d^2) - (b^2*h*n*PolyLog[3, 1 - (b*c
*x)/(1 - a*c)])/(2*a^2) + (b^2*h*n*PolyLog[3, (d*(1 - a*c - b*c*x))/((1 - a*c)*(d + e*x))])/(2*a^2) - (b^2*h*n
*PolyLog[3, -((e*(1 - a*c - b*c*x))/(b*c*(d + e*x)))])/(2*a^2) + (b^2*h*n*PolyLog[3, (b*(d + e*x))/(b*d - a*e)
])/(2*a^2) - (e^2*h*n*PolyLog[3, (b*(d + e*x))/(b*d - a*e)])/(2*d^2) - (b^2*h*n*PolyLog[3, 1 + (e*x)/d])/(2*a^
2) - (e^2*h*n*PolyLog[3, -((b*x)/(a*(1 - c*(a + b*x))))])/(2*d^2) + (e^2*h*n*PolyLog[3, -((b*c*x)/(1 - c*(a +
b*x)))])/(2*d^2) + (b^2*h*n*PolyLog[3, 1 - c*(a + b*x)])/(2*a^2) + (b^2*h*n*PolyLog[3, -((e*(1 - c*(a + b*x)))
/(b*c*(d + e*x)))])/(2*a^2) - (e^2*h*n*PolyLog[3, -((e*(1 - c*(a + b*x)))/(b*c*(d + e*x)))])/(2*d^2) - (b^2*h*
n*PolyLog[3, ((b*d - a*e)*(1 - c*(a + b*x)))/(b*(d + e*x))])/(2*a^2) + (e^2*h*n*PolyLog[3, ((b*d - a*e)*(1 - c
*(a + b*x)))/(b*(d + e*x))])/(2*d^2)

Rule 29

Int[(x_)^(-1), x_Symbol] :> Simp[Log[x], x]

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 36

Int[1/(((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))), x_Symbol] :> Dist[b/(b*c - a*d), Int[1/(a + b*x), x], x] -
Dist[d/(b*c - a*d), Int[1/(c + d*x), x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0]

Rule 2315

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

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 2394

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))/((f_.) + (g_.)*(x_)), x_Symbol] :> Simp[(Log[(e*(f +
g*x))/(e*f - d*g)]*(a + b*Log[c*(d + e*x)^n]))/g, x] - Dist[(b*e*n)/g, Int[Log[(e*(f + g*x))/(e*f - d*g)]/(d +
 e*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n}, x] && NeQ[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]

Rule 2435

Int[(Log[(a_) + (b_.)*(x_)]*Log[(c_) + (d_.)*(x_)])/(x_), x_Symbol] :> Simp[Log[-((b*x)/a)]*Log[a + b*x]*Log[c
 + d*x], x] + (Simp[(1*(Log[-((b*x)/a)] - Log[-(((b*c - a*d)*x)/(a*(c + d*x)))] + Log[(b*c - a*d)/(b*(c + d*x)
)])*Log[(a*(c + d*x))/(c*(a + b*x))]^2)/2, x] - Simp[(1*(Log[-((b*x)/a)] - Log[-((d*x)/c)])*(Log[a + b*x] + Lo
g[(a*(c + d*x))/(c*(a + b*x))])^2)/2, x] + Simp[(Log[c + d*x] - Log[(a*(c + d*x))/(c*(a + b*x))])*PolyLog[2, 1
 + (b*x)/a], x] + Simp[(Log[a + b*x] + Log[(a*(c + d*x))/(c*(a + b*x))])*PolyLog[2, 1 + (d*x)/c], x] + Simp[Lo
g[(a*(c + d*x))/(c*(a + b*x))]*PolyLog[2, (c*(a + b*x))/(a*(c + d*x))], x] - Simp[Log[(a*(c + d*x))/(c*(a + b*
x))]*PolyLog[2, (d*(a + b*x))/(b*(c + d*x))], x] - Simp[PolyLog[3, 1 + (b*x)/a], x] - Simp[PolyLog[3, 1 + (d*x
)/c], x] + Simp[PolyLog[3, (c*(a + b*x))/(a*(c + d*x))], x] - Simp[PolyLog[3, (d*(a + b*x))/(b*(c + d*x))], x]
) /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0]

Rule 2437

Int[(Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*Log[(h_.)*((i_.) + (j_.)*(x_))^(m_.)])/(x_), x_Symbol] :> Dist[m, In
t[(Log[i + j*x]*Log[c*(d + e*x)^n])/x, x], x] - Dist[m*Log[i + j*x] - Log[h*(i + j*x)^m], Int[Log[c*(d + e*x)^
n]/x, x], x] /; FreeQ[{c, d, e, h, i, j, m, n}, x] && NeQ[e*i - d*j, 0] && NeQ[i + j*x, h*(i + j*x)^m]

Rule 2438

Int[(((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))*(Log[(h_.)*((i_.) + (j_.)*(x_))^(m_.)]*(g_.) + (f_))
)/(x_), x_Symbol] :> Dist[f, Int[(a + b*Log[c*(d + e*x)^n])/x, x], x] + Dist[g, Int[(Log[h*(i + j*x)^m]*(a + b
*Log[c*(d + e*x)^n]))/x, x], x] /; FreeQ[{a, b, c, d, e, f, g, h, i, j, m, n}, x] && NeQ[e*i - d*j, 0]

Rule 2439

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_.) + Log[(h_.)*((i_.) + (j_.)*(x_))^(m_.)]*
(g_.))*(x_)^(r_.), x_Symbol] :> Simp[(x^(r + 1)*(a + b*Log[c*(d + e*x)^n])^p*(f + g*Log[h*(i + j*x)^m]))/(r +
1), x] + (-Dist[(g*j*m)/(r + 1), Int[(x^(r + 1)*(a + b*Log[c*(d + e*x)^n])^p)/(i + j*x), x], x] - Dist[(b*e*n*
p)/(r + 1), Int[(x^(r + 1)*(a + b*Log[c*(d + e*x)^n])^(p - 1)*(f + g*Log[h*(i + j*x)^m]))/(d + e*x), x], x]) /
; FreeQ[{a, b, c, d, e, f, g, h, i, j, m, n}, x] && IGtQ[p, 0] && IntegerQ[r] && (EqQ[p, 1] || GtQ[r, 0]) && N
eQ[r, -1]

Rule 2440

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))*((f_.) + Log[(h_.)*((i_.) + (j_.)*(x_))^(m_.)]*(g_.))
*((k_) + (l_.)*(x_))^(r_.), x_Symbol] :> Dist[1/l, Subst[Int[x^r*(a + b*Log[c*(-((e*k - d*l)/l) + (e*x)/l)^n])
*(f + g*Log[h*(-((j*k - i*l)/l) + (j*x)/l)^m]), x], x, k + l*x], x] /; FreeQ[{a, b, c, d, e, f, g, h, i, j, k,
 l, m, n}, x] && IntegerQ[r]

Rule 6597

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

Rule 6598

Int[((d_.) + (e_.)*(x_))^(m_.)*PolyLog[2, (c_.)*((a_.) + (b_.)*(x_))], x_Symbol] :> Simp[((d + e*x)^(m + 1)*Po
lyLog[2, c*(a + b*x)])/(e*(m + 1)), x] + Dist[b/(e*(m + 1)), Int[((d + e*x)^(m + 1)*Log[1 - a*c - b*c*x])/(a +
 b*x), x], x] /; FreeQ[{a, b, c, d, e, m}, x] && NeQ[m, -1]

Rule 6603

Int[((g_.) + Log[(f_.)*((d_.) + (e_.)*(x_))^(n_.)]*(h_.))*(x_)^(m_.)*PolyLog[2, (c_.)*((a_.) + (b_.)*(x_))], x
_Symbol] :> Simp[(x^(m + 1)*(g + h*Log[f*(d + e*x)^n])*PolyLog[2, c*(a + b*x)])/(m + 1), x] + (Dist[b/(m + 1),
 Int[ExpandIntegrand[(g + h*Log[f*(d + e*x)^n])*Log[1 - a*c - b*c*x], x^(m + 1)/(a + b*x), x], x], x] - Dist[(
e*h*n)/(m + 1), Int[ExpandIntegrand[PolyLog[2, c*(a + b*x)], x^(m + 1)/(d + e*x), x], x], x]) /; FreeQ[{a, b,
c, d, e, f, g, h, n}, x] && IntegerQ[m] && NeQ[m, -1]

Rubi steps

\begin {align*} \int \frac {\left (g+h \log \left (f (d+e x)^n\right )\right ) \text {Li}_2(c (a+b x))}{x^3} \, dx &=-\frac {\left (g+h \log \left (f (d+e x)^n\right )\right ) \text {Li}_2(c (a+b x))}{2 x^2}-\frac {1}{2} b \int \left (\frac {\log (1-a c-b c x) \left (g+h \log \left (f (d+e x)^n\right )\right )}{a x^2}-\frac {b \log (1-a c-b c x) \left (g+h \log \left (f (d+e x)^n\right )\right )}{a^2 x}+\frac {b^2 \log (1-a c-b c x) \left (g+h \log \left (f (d+e x)^n\right )\right )}{a^2 (a+b x)}\right ) \, dx+\frac {1}{2} (e h n) \int \left (\frac {\text {Li}_2(c (a+b x))}{d x^2}-\frac {e \text {Li}_2(c (a+b x))}{d^2 x}+\frac {e^2 \text {Li}_2(c (a+b x))}{d^2 (d+e x)}\right ) \, dx\\ &=-\frac {\left (g+h \log \left (f (d+e x)^n\right )\right ) \text {Li}_2(c (a+b x))}{2 x^2}-\frac {b \int \frac {\log (1-a c-b c x) \left (g+h \log \left (f (d+e x)^n\right )\right )}{x^2} \, dx}{2 a}+\frac {b^2 \int \frac {\log (1-a c-b c x) \left (g+h \log \left (f (d+e x)^n\right )\right )}{x} \, dx}{2 a^2}-\frac {b^3 \int \frac {\log (1-a c-b c x) \left (g+h \log \left (f (d+e x)^n\right )\right )}{a+b x} \, dx}{2 a^2}+\frac {(e h n) \int \frac {\text {Li}_2(c (a+b x))}{x^2} \, dx}{2 d}-\frac {\left (e^2 h n\right ) \int \frac {\text {Li}_2(c (a+b x))}{x} \, dx}{2 d^2}+\frac {\left (e^3 h n\right ) \int \frac {\text {Li}_2(c (a+b x))}{d+e x} \, dx}{2 d^2}\\ &=\frac {b \log (1-a c-b c x) \left (g+h \log \left (f (d+e x)^n\right )\right )}{2 a x}-\frac {e h n \text {Li}_2(c (a+b x))}{2 d x}-\frac {e^2 h n \log (x) \text {Li}_2(c (a+b x))}{2 d^2}+\frac {e^2 h n \log (d+e x) \text {Li}_2(c (a+b x))}{2 d^2}-\frac {\left (g+h \log \left (f (d+e x)^n\right )\right ) \text {Li}_2(c (a+b x))}{2 x^2}-\frac {b^2 \operatorname {Subst}\left (\int \frac {\log \left (-\frac {-a b c-b (1-a c)}{b}-c x\right ) \left (g+h \log \left (f \left (-\frac {-b d+a e}{b}+\frac {e x}{b}\right )^n\right )\right )}{x} \, dx,x,a+b x\right )}{2 a^2}+\frac {\left (b^2 c\right ) \int \frac {g+h \log \left (f (d+e x)^n\right )}{x (1-a c-b c x)} \, dx}{2 a}+\frac {\left (b^2 g\right ) \int \frac {\log (1-a c-b c x)}{x} \, dx}{2 a^2}+\frac {\left (b^2 h\right ) \int \frac {\log (1-a c-b c x) \log \left (f (d+e x)^n\right )}{x} \, dx}{2 a^2}-\frac {(b e h n) \int \frac {\log (1-a c-b c x)}{x (d+e x)} \, dx}{2 a}-\frac {(b e h n) \int \frac {\log (1-a c-b c x)}{x (a+b x)} \, dx}{2 d}-\frac {\left (b e^2 h n\right ) \int \frac {\log (x) \log (1-a c-b c x)}{a+b x} \, dx}{2 d^2}+\frac {\left (b e^2 h n\right ) \int \frac {\log (1-a c-b c x) \log (d+e x)}{a+b x} \, dx}{2 d^2}\\ &=\frac {b^2 g \log \left (\frac {b c x}{1-a c}\right ) \log (1-a c-b c x)}{2 a^2}+\frac {b \log (1-a c-b c x) \left (g+h \log \left (f (d+e x)^n\right )\right )}{2 a x}-\frac {e h n \text {Li}_2(c (a+b x))}{2 d x}-\frac {e^2 h n \log (x) \text {Li}_2(c (a+b x))}{2 d^2}+\frac {e^2 h n \log (d+e x) \text {Li}_2(c (a+b x))}{2 d^2}-\frac {\left (g+h \log \left (f (d+e x)^n\right )\right ) \text {Li}_2(c (a+b x))}{2 x^2}+\frac {\left (b^2 c\right ) \int \left (-\frac {g+h \log \left (f (d+e x)^n\right )}{(-1+a c) x}+\frac {b c \left (g+h \log \left (f (d+e x)^n\right )\right )}{(-1+a c) (-1+a c+b c x)}\right ) \, dx}{2 a}-\frac {\left (b^2 g\right ) \operatorname {Subst}\left (\int \frac {\log \left (-\frac {-a b c-b (1-a c)}{b}-c x\right )}{x} \, dx,x,a+b x\right )}{2 a^2}+\frac {\left (b^3 c g\right ) \int \frac {\log \left (-\frac {b c x}{-1+a c}\right )}{1-a c-b c x} \, dx}{2 a^2}-\frac {\left (b^2 h\right ) \operatorname {Subst}\left (\int \frac {\log \left (-\frac {-a b c-b (1-a c)}{b}-c x\right ) \log \left (f \left (-\frac {-b d+a e}{b}+\frac {e x}{b}\right )^n\right )}{x} \, dx,x,a+b x\right )}{2 a^2}+\frac {\left (b^2 h n\right ) \int \frac {\log (1-a c-b c x) \log (d+e x)}{x} \, dx}{2 a^2}-\frac {(b e h n) \int \left (\frac {\log (1-a c-b c x)}{d x}-\frac {e \log (1-a c-b c x)}{d (d+e x)}\right ) \, dx}{2 a}-\frac {(b e h n) \int \left (\frac {\log (1-a c-b c x)}{a x}-\frac {b \log (1-a c-b c x)}{a (a+b x)}\right ) \, dx}{2 d}-\frac {\left (e^2 h n\right ) \operatorname {Subst}\left (\int \frac {\log \left (-\frac {a}{b}+\frac {x}{b}\right ) \log \left (-\frac {-a b c-b (1-a c)}{b}-c x\right )}{x} \, dx,x,a+b x\right )}{2 d^2}+\frac {\left (e^2 h n\right ) \operatorname {Subst}\left (\int \frac {\log \left (-\frac {-a b c-b (1-a c)}{b}-c x\right ) \log \left (-\frac {-b d+a e}{b}+\frac {e x}{b}\right )}{x} \, dx,x,a+b x\right )}{2 d^2}-\frac {\left (b^2 h \left (n \log (d+e x)-\log \left (f (d+e x)^n\right )\right )\right ) \int \frac {\log (1-a c-b c x)}{x} \, dx}{2 a^2}\\ &=\frac {b^2 g \log \left (\frac {b c x}{1-a c}\right ) \log (1-a c-b c x)}{2 a^2}+\frac {b^2 h n \log \left (\frac {b c x}{1-a c}\right ) \log (1-a c-b c x) \log (d+e x)}{2 a^2}+\frac {b^2 h n \left (\log \left (\frac {b c x}{1-a c}\right )+\log \left (\frac {b c d+e-a c e}{b c (d+e x)}\right )-\log \left (\frac {(b c d+e-a c e) x}{(1-a c) (d+e x)}\right )\right ) \log ^2\left (\frac {(1-a c) (d+e x)}{d (1-a c-b c x)}\right )}{4 a^2}-\frac {b^2 h n \left (\log \left (\frac {b c x}{1-a c}\right )-\log \left (-\frac {e x}{d}\right )\right ) \left (\log (1-a c-b c x)+\log \left (\frac {(1-a c) (d+e x)}{d (1-a c-b c x)}\right )\right )^2}{4 a^2}-\frac {b^2 h \log \left (\frac {b c x}{1-a c}\right ) \log (1-a c-b c x) \left (n \log (d+e x)-\log \left (f (d+e x)^n\right )\right )}{2 a^2}+\frac {b \log (1-a c-b c x) \left (g+h \log \left (f (d+e x)^n\right )\right )}{2 a x}+\frac {e^2 h n \left (\log (c (a+b x))+\log \left (\frac {b c d+e-a c e}{b c (d+e x)}\right )-\log \left (\frac {(b c d+e-a c e) (a+b x)}{b (d+e x)}\right )\right ) \log ^2\left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right )}{4 d^2}-\frac {e^2 h n \log (x) \log \left (1+\frac {b x}{a}\right ) \log (1-c (a+b x))}{2 d^2}+\frac {e^2 h n \log (c (a+b x)) \log (d+e x) \log (1-c (a+b x))}{2 d^2}-\frac {e^2 h n \left (\log (c (a+b x))-\log \left (-\frac {e (a+b x)}{b d-a e}\right )\right ) \left (\log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right )+\log (1-c (a+b x))\right )^2}{4 d^2}-\frac {e^2 h n \left (\log \left (1+\frac {b x}{a}\right )+\log \left (\frac {1-a c}{1-c (a+b x)}\right )-\log \left (\frac {(1-a c) (a+b x)}{a (1-c (a+b x))}\right )\right ) \log ^2\left (-\frac {a (1-c (a+b x))}{b x}\right )}{4 d^2}-\frac {e^2 h n \left (\log (c (a+b x))-\log \left (1+\frac {b x}{a}\right )\right ) \left (\log (x)+\log \left (-\frac {a (1-c (a+b x))}{b x}\right )\right )^2}{4 d^2}-\frac {e^2 h n \left (\log (1-c (a+b x))-\log \left (-\frac {a (1-c (a+b x))}{b x}\right )\right ) \text {Li}_2\left (-\frac {b x}{a}\right )}{2 d^2}+\frac {b^2 g \text {Li}_2(c (a+b x))}{2 a^2}-\frac {e h n \text {Li}_2(c (a+b x))}{2 d x}-\frac {e^2 h n \log (x) \text {Li}_2(c (a+b x))}{2 d^2}+\frac {e^2 h n \log (d+e x) \text {Li}_2(c (a+b x))}{2 d^2}-\frac {\left (g+h \log \left (f (d+e x)^n\right )\right ) \text {Li}_2(c (a+b x))}{2 x^2}+\frac {b^2 g \text {Li}_2\left (1-\frac {b c x}{1-a c}\right )}{2 a^2}+\frac {b^2 h n \left (\log (d+e x)-\log \left (\frac {(1-a c) (d+e x)}{d (1-a c-b c x)}\right )\right ) \text {Li}_2\left (1-\frac {b c x}{1-a c}\right )}{2 a^2}+\frac {b^2 h n \log \left (\frac {(1-a c) (d+e x)}{d (1-a c-b c x)}\right ) \text {Li}_2\left (\frac {d (1-a c-b c x)}{(1-a c) (d+e x)}\right )}{2 a^2}-\frac {b^2 h n \log \left (\frac {(1-a c) (d+e x)}{d (1-a c-b c x)}\right ) \text {Li}_2\left (-\frac {e (1-a c-b c x)}{b c (d+e x)}\right )}{2 a^2}+\frac {e^2 h n \left (\log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right )+\log (1-c (a+b x))\right ) \text {Li}_2\left (\frac {b (d+e x)}{b d-a e}\right )}{2 d^2}+\frac {b^2 h n \left (\log (1-a c-b c x)+\log \left (\frac {(1-a c) (d+e x)}{d (1-a c-b c x)}\right )\right ) \text {Li}_2\left (1+\frac {e x}{d}\right )}{2 a^2}-\frac {e^2 h n \log \left (-\frac {a (1-c (a+b x))}{b x}\right ) \text {Li}_2\left (-\frac {b x}{a (1-c (a+b x))}\right )}{2 d^2}+\frac {e^2 h n \log \left (-\frac {a (1-c (a+b x))}{b x}\right ) \text {Li}_2\left (-\frac {b c x}{1-c (a+b x)}\right )}{2 d^2}+\frac {e^2 h n \left (\log (d+e x)-\log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right )\right ) \text {Li}_2(1-c (a+b x))}{2 d^2}-\frac {e^2 h n \left (\log (x)+\log \left (-\frac {a (1-c (a+b x))}{b x}\right )\right ) \text {Li}_2(1-c (a+b x))}{2 d^2}-\frac {e^2 h n \log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right ) \text {Li}_2\left (-\frac {e (1-c (a+b x))}{b c (d+e x)}\right )}{2 d^2}+\frac {e^2 h n \log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right ) \text {Li}_2\left (\frac {(b d-a e) (1-c (a+b x))}{b (d+e x)}\right )}{2 d^2}+\frac {e^2 h n \text {Li}_3\left (-\frac {b x}{a}\right )}{2 d^2}-\frac {b^2 h n \text {Li}_3\left (1-\frac {b c x}{1-a c}\right )}{2 a^2}+\frac {b^2 h n \text {Li}_3\left (\frac {d (1-a c-b c x)}{(1-a c) (d+e x)}\right )}{2 a^2}-\frac {b^2 h n \text {Li}_3\left (-\frac {e (1-a c-b c x)}{b c (d+e x)}\right )}{2 a^2}-\frac {e^2 h n \text {Li}_3\left (\frac {b (d+e x)}{b d-a e}\right )}{2 d^2}-\frac {b^2 h n \text {Li}_3\left (1+\frac {e x}{d}\right )}{2 a^2}-\frac {e^2 h n \text {Li}_3\left (-\frac {b x}{a (1-c (a+b x))}\right )}{2 d^2}+\frac {e^2 h n \text {Li}_3\left (-\frac {b c x}{1-c (a+b x)}\right )}{2 d^2}-\frac {e^2 h n \text {Li}_3\left (-\frac {e (1-c (a+b x))}{b c (d+e x)}\right )}{2 d^2}+\frac {e^2 h n \text {Li}_3\left (\frac {(b d-a e) (1-c (a+b x))}{b (d+e x)}\right )}{2 d^2}+\frac {\left (b^2 c\right ) \int \frac {g+h \log \left (f (d+e x)^n\right )}{x} \, dx}{2 a (1-a c)}-\frac {\left (b^3 c^2\right ) \int \frac {g+h \log \left (f (d+e x)^n\right )}{-1+a c+b c x} \, dx}{2 a (1-a c)}-\frac {\left (b^2 h n\right ) \operatorname {Subst}\left (\int \frac {\log \left (-\frac {-a b c-b (1-a c)}{b}-c x\right ) \log \left (-\frac {-b d+a e}{b}+\frac {e x}{b}\right )}{x} \, dx,x,a+b x\right )}{2 a^2}-2 \frac {(b e h n) \int \frac {\log (1-a c-b c x)}{x} \, dx}{2 a d}+\frac {\left (b^2 e h n\right ) \int \frac {\log (1-a c-b c x)}{a+b x} \, dx}{2 a d}+\frac {\left (b e^2 h n\right ) \int \frac {\log (1-a c-b c x)}{d+e x} \, dx}{2 a d}+\frac {\left (b^2 h \left (n \log (d+e x)-\log \left (f (d+e x)^n\right )\right )\right ) \operatorname {Subst}\left (\int \frac {\log \left (-\frac {-a b c-b (1-a c)}{b}-c x\right )}{x} \, dx,x,a+b x\right )}{2 a^2}-\frac {\left (b^3 c h \left (n \log (d+e x)-\log \left (f (d+e x)^n\right )\right )\right ) \int \frac {\log \left (-\frac {b c x}{-1+a c}\right )}{1-a c-b c x} \, dx}{2 a^2}\\ &=\frac {b^2 g \log \left (\frac {b c x}{1-a c}\right ) \log (1-a c-b c x)}{2 a^2}+\frac {b^2 h n \log \left (\frac {b c x}{1-a c}\right ) \log (1-a c-b c x) \log (d+e x)}{2 a^2}+\frac {b e h n \log (1-a c-b c x) \log \left (\frac {b c (d+e x)}{b c d+e-a c e}\right )}{2 a d}+\frac {b^2 h n \left (\log \left (\frac {b c x}{1-a c}\right )+\log \left (\frac {b c d+e-a c e}{b c (d+e x)}\right )-\log \left (\frac {(b c d+e-a c e) x}{(1-a c) (d+e x)}\right )\right ) \log ^2\left (\frac {(1-a c) (d+e x)}{d (1-a c-b c x)}\right )}{4 a^2}-\frac {b^2 h n \left (\log \left (\frac {b c x}{1-a c}\right )-\log \left (-\frac {e x}{d}\right )\right ) \left (\log (1-a c-b c x)+\log \left (\frac {(1-a c) (d+e x)}{d (1-a c-b c x)}\right )\right )^2}{4 a^2}-\frac {b^2 h \log \left (\frac {b c x}{1-a c}\right ) \log (1-a c-b c x) \left (n \log (d+e x)-\log \left (f (d+e x)^n\right )\right )}{2 a^2}+\frac {b^2 c \log \left (-\frac {e x}{d}\right ) \left (g+h \log \left (f (d+e x)^n\right )\right )}{2 a (1-a c)}+\frac {b \log (1-a c-b c x) \left (g+h \log \left (f (d+e x)^n\right )\right )}{2 a x}-\frac {b^2 c \log \left (\frac {e (1-a c-b c x)}{b c d+e-a c e}\right ) \left (g+h \log \left (f (d+e x)^n\right )\right )}{2 a (1-a c)}-\frac {b^2 h n \left (\log (c (a+b x))+\log \left (\frac {b c d+e-a c e}{b c (d+e x)}\right )-\log \left (\frac {(b c d+e-a c e) (a+b x)}{b (d+e x)}\right )\right ) \log ^2\left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right )}{4 a^2}+\frac {e^2 h n \left (\log (c (a+b x))+\log \left (\frac {b c d+e-a c e}{b c (d+e x)}\right )-\log \left (\frac {(b c d+e-a c e) (a+b x)}{b (d+e x)}\right )\right ) \log ^2\left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right )}{4 d^2}-\frac {e^2 h n \log (x) \log \left (1+\frac {b x}{a}\right ) \log (1-c (a+b x))}{2 d^2}-\frac {b^2 h n \log (c (a+b x)) \log (d+e x) \log (1-c (a+b x))}{2 a^2}+\frac {e^2 h n \log (c (a+b x)) \log (d+e x) \log (1-c (a+b x))}{2 d^2}+\frac {b^2 h n \left (\log (c (a+b x))-\log \left (-\frac {e (a+b x)}{b d-a e}\right )\right ) \left (\log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right )+\log (1-c (a+b x))\right )^2}{4 a^2}-\frac {e^2 h n \left (\log (c (a+b x))-\log \left (-\frac {e (a+b x)}{b d-a e}\right )\right ) \left (\log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right )+\log (1-c (a+b x))\right )^2}{4 d^2}-\frac {e^2 h n \left (\log \left (1+\frac {b x}{a}\right )+\log \left (\frac {1-a c}{1-c (a+b x)}\right )-\log \left (\frac {(1-a c) (a+b x)}{a (1-c (a+b x))}\right )\right ) \log ^2\left (-\frac {a (1-c (a+b x))}{b x}\right )}{4 d^2}-\frac {e^2 h n \left (\log (c (a+b x))-\log \left (1+\frac {b x}{a}\right )\right ) \left (\log (x)+\log \left (-\frac {a (1-c (a+b x))}{b x}\right )\right )^2}{4 d^2}-\frac {e^2 h n \left (\log (1-c (a+b x))-\log \left (-\frac {a (1-c (a+b x))}{b x}\right )\right ) \text {Li}_2\left (-\frac {b x}{a}\right )}{2 d^2}+\frac {b^2 g \text {Li}_2(c (a+b x))}{2 a^2}-\frac {e h n \text {Li}_2(c (a+b x))}{2 d x}-\frac {e^2 h n \log (x) \text {Li}_2(c (a+b x))}{2 d^2}+\frac {e^2 h n \log (d+e x) \text {Li}_2(c (a+b x))}{2 d^2}-\frac {b^2 h \left (n \log (d+e x)-\log \left (f (d+e x)^n\right )\right ) \text {Li}_2(c (a+b x))}{2 a^2}-\frac {\left (g+h \log \left (f (d+e x)^n\right )\right ) \text {Li}_2(c (a+b x))}{2 x^2}+\frac {b^2 g \text {Li}_2\left (1-\frac {b c x}{1-a c}\right )}{2 a^2}+\frac {b^2 h n \left (\log (d+e x)-\log \left (\frac {(1-a c) (d+e x)}{d (1-a c-b c x)}\right )\right ) \text {Li}_2\left (1-\frac {b c x}{1-a c}\right )}{2 a^2}-\frac {b^2 h \left (n \log (d+e x)-\log \left (f (d+e x)^n\right )\right ) \text {Li}_2\left (1-\frac {b c x}{1-a c}\right )}{2 a^2}+\frac {b^2 h n \log \left (\frac {(1-a c) (d+e x)}{d (1-a c-b c x)}\right ) \text {Li}_2\left (\frac {d (1-a c-b c x)}{(1-a c) (d+e x)}\right )}{2 a^2}-\frac {b^2 h n \log \left (\frac {(1-a c) (d+e x)}{d (1-a c-b c x)}\right ) \text {Li}_2\left (-\frac {e (1-a c-b c x)}{b c (d+e x)}\right )}{2 a^2}-\frac {b^2 h n \left (\log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right )+\log (1-c (a+b x))\right ) \text {Li}_2\left (\frac {b (d+e x)}{b d-a e}\right )}{2 a^2}+\frac {e^2 h n \left (\log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right )+\log (1-c (a+b x))\right ) \text {Li}_2\left (\frac {b (d+e x)}{b d-a e}\right )}{2 d^2}+\frac {b^2 h n \left (\log (1-a c-b c x)+\log \left (\frac {(1-a c) (d+e x)}{d (1-a c-b c x)}\right )\right ) \text {Li}_2\left (1+\frac {e x}{d}\right )}{2 a^2}-\frac {e^2 h n \log \left (-\frac {a (1-c (a+b x))}{b x}\right ) \text {Li}_2\left (-\frac {b x}{a (1-c (a+b x))}\right )}{2 d^2}+\frac {e^2 h n \log \left (-\frac {a (1-c (a+b x))}{b x}\right ) \text {Li}_2\left (-\frac {b c x}{1-c (a+b x)}\right )}{2 d^2}-\frac {b^2 h n \left (\log (d+e x)-\log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right )\right ) \text {Li}_2(1-c (a+b x))}{2 a^2}+\frac {e^2 h n \left (\log (d+e x)-\log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right )\right ) \text {Li}_2(1-c (a+b x))}{2 d^2}-\frac {e^2 h n \left (\log (x)+\log \left (-\frac {a (1-c (a+b x))}{b x}\right )\right ) \text {Li}_2(1-c (a+b x))}{2 d^2}+\frac {b^2 h n \log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right ) \text {Li}_2\left (-\frac {e (1-c (a+b x))}{b c (d+e x)}\right )}{2 a^2}-\frac {e^2 h n \log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right ) \text {Li}_2\left (-\frac {e (1-c (a+b x))}{b c (d+e x)}\right )}{2 d^2}-\frac {b^2 h n \log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right ) \text {Li}_2\left (\frac {(b d-a e) (1-c (a+b x))}{b (d+e x)}\right )}{2 a^2}+\frac {e^2 h n \log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right ) \text {Li}_2\left (\frac {(b d-a e) (1-c (a+b x))}{b (d+e x)}\right )}{2 d^2}+\frac {e^2 h n \text {Li}_3\left (-\frac {b x}{a}\right )}{2 d^2}-\frac {b^2 h n \text {Li}_3\left (1-\frac {b c x}{1-a c}\right )}{2 a^2}+\frac {b^2 h n \text {Li}_3\left (\frac {d (1-a c-b c x)}{(1-a c) (d+e x)}\right )}{2 a^2}-\frac {b^2 h n \text {Li}_3\left (-\frac {e (1-a c-b c x)}{b c (d+e x)}\right )}{2 a^2}+\frac {b^2 h n \text {Li}_3\left (\frac {b (d+e x)}{b d-a e}\right )}{2 a^2}-\frac {e^2 h n \text {Li}_3\left (\frac {b (d+e x)}{b d-a e}\right )}{2 d^2}-\frac {b^2 h n \text {Li}_3\left (1+\frac {e x}{d}\right )}{2 a^2}-\frac {e^2 h n \text {Li}_3\left (-\frac {b x}{a (1-c (a+b x))}\right )}{2 d^2}+\frac {e^2 h n \text {Li}_3\left (-\frac {b c x}{1-c (a+b x)}\right )}{2 d^2}+\frac {b^2 h n \text {Li}_3(1-c (a+b x))}{2 a^2}+\frac {b^2 h n \text {Li}_3\left (-\frac {e (1-c (a+b x))}{b c (d+e x)}\right )}{2 a^2}-\frac {e^2 h n \text {Li}_3\left (-\frac {e (1-c (a+b x))}{b c (d+e x)}\right )}{2 d^2}-\frac {b^2 h n \text {Li}_3\left (\frac {(b d-a e) (1-c (a+b x))}{b (d+e x)}\right )}{2 a^2}+\frac {e^2 h n \text {Li}_3\left (\frac {(b d-a e) (1-c (a+b x))}{b (d+e x)}\right )}{2 d^2}-\frac {\left (b^2 c e h n\right ) \int \frac {\log \left (-\frac {e x}{d}\right )}{d+e x} \, dx}{2 a (1-a c)}+\frac {\left (b^2 c e h n\right ) \int \frac {\log \left (\frac {e (-1+a c+b c x)}{-b c d+(-1+a c) e}\right )}{d+e x} \, dx}{2 a (1-a c)}+\frac {(b e h n) \operatorname {Subst}\left (\int \frac {\log (1-c x)}{x} \, dx,x,a+b x\right )}{2 a d}-2 \left (\frac {b e h n \log \left (\frac {b c x}{1-a c}\right ) \log (1-a c-b c x)}{2 a d}+\frac {\left (b^2 c e h n\right ) \int \frac {\log \left (-\frac {b c x}{-1+a c}\right )}{1-a c-b c x} \, dx}{2 a d}\right )+\frac {\left (b^2 c e h n\right ) \int \frac {\log \left (-\frac {b c (d+e x)}{-b c d-(1-a c) e}\right )}{1-a c-b c x} \, dx}{2 a d}\\ &=\frac {b^2 g \log \left (\frac {b c x}{1-a c}\right ) \log (1-a c-b c x)}{2 a^2}+\frac {b^2 h n \log \left (\frac {b c x}{1-a c}\right ) \log (1-a c-b c x) \log (d+e x)}{2 a^2}+\frac {b e h n \log (1-a c-b c x) \log \left (\frac {b c (d+e x)}{b c d+e-a c e}\right )}{2 a d}+\frac {b^2 h n \left (\log \left (\frac {b c x}{1-a c}\right )+\log \left (\frac {b c d+e-a c e}{b c (d+e x)}\right )-\log \left (\frac {(b c d+e-a c e) x}{(1-a c) (d+e x)}\right )\right ) \log ^2\left (\frac {(1-a c) (d+e x)}{d (1-a c-b c x)}\right )}{4 a^2}-\frac {b^2 h n \left (\log \left (\frac {b c x}{1-a c}\right )-\log \left (-\frac {e x}{d}\right )\right ) \left (\log (1-a c-b c x)+\log \left (\frac {(1-a c) (d+e x)}{d (1-a c-b c x)}\right )\right )^2}{4 a^2}-\frac {b^2 h \log \left (\frac {b c x}{1-a c}\right ) \log (1-a c-b c x) \left (n \log (d+e x)-\log \left (f (d+e x)^n\right )\right )}{2 a^2}+\frac {b^2 c \log \left (-\frac {e x}{d}\right ) \left (g+h \log \left (f (d+e x)^n\right )\right )}{2 a (1-a c)}+\frac {b \log (1-a c-b c x) \left (g+h \log \left (f (d+e x)^n\right )\right )}{2 a x}-\frac {b^2 c \log \left (\frac {e (1-a c-b c x)}{b c d+e-a c e}\right ) \left (g+h \log \left (f (d+e x)^n\right )\right )}{2 a (1-a c)}-\frac {b^2 h n \left (\log (c (a+b x))+\log \left (\frac {b c d+e-a c e}{b c (d+e x)}\right )-\log \left (\frac {(b c d+e-a c e) (a+b x)}{b (d+e x)}\right )\right ) \log ^2\left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right )}{4 a^2}+\frac {e^2 h n \left (\log (c (a+b x))+\log \left (\frac {b c d+e-a c e}{b c (d+e x)}\right )-\log \left (\frac {(b c d+e-a c e) (a+b x)}{b (d+e x)}\right )\right ) \log ^2\left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right )}{4 d^2}-\frac {e^2 h n \log (x) \log \left (1+\frac {b x}{a}\right ) \log (1-c (a+b x))}{2 d^2}-\frac {b^2 h n \log (c (a+b x)) \log (d+e x) \log (1-c (a+b x))}{2 a^2}+\frac {e^2 h n \log (c (a+b x)) \log (d+e x) \log (1-c (a+b x))}{2 d^2}+\frac {b^2 h n \left (\log (c (a+b x))-\log \left (-\frac {e (a+b x)}{b d-a e}\right )\right ) \left (\log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right )+\log (1-c (a+b x))\right )^2}{4 a^2}-\frac {e^2 h n \left (\log (c (a+b x))-\log \left (-\frac {e (a+b x)}{b d-a e}\right )\right ) \left (\log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right )+\log (1-c (a+b x))\right )^2}{4 d^2}-\frac {e^2 h n \left (\log \left (1+\frac {b x}{a}\right )+\log \left (\frac {1-a c}{1-c (a+b x)}\right )-\log \left (\frac {(1-a c) (a+b x)}{a (1-c (a+b x))}\right )\right ) \log ^2\left (-\frac {a (1-c (a+b x))}{b x}\right )}{4 d^2}-\frac {e^2 h n \left (\log (c (a+b x))-\log \left (1+\frac {b x}{a}\right )\right ) \left (\log (x)+\log \left (-\frac {a (1-c (a+b x))}{b x}\right )\right )^2}{4 d^2}-\frac {e^2 h n \left (\log (1-c (a+b x))-\log \left (-\frac {a (1-c (a+b x))}{b x}\right )\right ) \text {Li}_2\left (-\frac {b x}{a}\right )}{2 d^2}+\frac {b^2 g \text {Li}_2(c (a+b x))}{2 a^2}-\frac {b e h n \text {Li}_2(c (a+b x))}{2 a d}-\frac {e h n \text {Li}_2(c (a+b x))}{2 d x}-\frac {e^2 h n \log (x) \text {Li}_2(c (a+b x))}{2 d^2}+\frac {e^2 h n \log (d+e x) \text {Li}_2(c (a+b x))}{2 d^2}-\frac {b^2 h \left (n \log (d+e x)-\log \left (f (d+e x)^n\right )\right ) \text {Li}_2(c (a+b x))}{2 a^2}-\frac {\left (g+h \log \left (f (d+e x)^n\right )\right ) \text {Li}_2(c (a+b x))}{2 x^2}+\frac {b^2 g \text {Li}_2\left (1-\frac {b c x}{1-a c}\right )}{2 a^2}+\frac {b^2 h n \left (\log (d+e x)-\log \left (\frac {(1-a c) (d+e x)}{d (1-a c-b c x)}\right )\right ) \text {Li}_2\left (1-\frac {b c x}{1-a c}\right )}{2 a^2}-\frac {b^2 h \left (n \log (d+e x)-\log \left (f (d+e x)^n\right )\right ) \text {Li}_2\left (1-\frac {b c x}{1-a c}\right )}{2 a^2}-2 \left (\frac {b e h n \log \left (\frac {b c x}{1-a c}\right ) \log (1-a c-b c x)}{2 a d}+\frac {b e h n \text {Li}_2\left (1-\frac {b c x}{1-a c}\right )}{2 a d}\right )+\frac {b^2 h n \log \left (\frac {(1-a c) (d+e x)}{d (1-a c-b c x)}\right ) \text {Li}_2\left (\frac {d (1-a c-b c x)}{(1-a c) (d+e x)}\right )}{2 a^2}-\frac {b^2 h n \log \left (\frac {(1-a c) (d+e x)}{d (1-a c-b c x)}\right ) \text {Li}_2\left (-\frac {e (1-a c-b c x)}{b c (d+e x)}\right )}{2 a^2}-\frac {b^2 h n \left (\log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right )+\log (1-c (a+b x))\right ) \text {Li}_2\left (\frac {b (d+e x)}{b d-a e}\right )}{2 a^2}+\frac {e^2 h n \left (\log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right )+\log (1-c (a+b x))\right ) \text {Li}_2\left (\frac {b (d+e x)}{b d-a e}\right )}{2 d^2}+\frac {b^2 c h n \text {Li}_2\left (1+\frac {e x}{d}\right )}{2 a (1-a c)}+\frac {b^2 h n \left (\log (1-a c-b c x)+\log \left (\frac {(1-a c) (d+e x)}{d (1-a c-b c x)}\right )\right ) \text {Li}_2\left (1+\frac {e x}{d}\right )}{2 a^2}-\frac {e^2 h n \log \left (-\frac {a (1-c (a+b x))}{b x}\right ) \text {Li}_2\left (-\frac {b x}{a (1-c (a+b x))}\right )}{2 d^2}+\frac {e^2 h n \log \left (-\frac {a (1-c (a+b x))}{b x}\right ) \text {Li}_2\left (-\frac {b c x}{1-c (a+b x)}\right )}{2 d^2}-\frac {b^2 h n \left (\log (d+e x)-\log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right )\right ) \text {Li}_2(1-c (a+b x))}{2 a^2}+\frac {e^2 h n \left (\log (d+e x)-\log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right )\right ) \text {Li}_2(1-c (a+b x))}{2 d^2}-\frac {e^2 h n \left (\log (x)+\log \left (-\frac {a (1-c (a+b x))}{b x}\right )\right ) \text {Li}_2(1-c (a+b x))}{2 d^2}+\frac {b^2 h n \log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right ) \text {Li}_2\left (-\frac {e (1-c (a+b x))}{b c (d+e x)}\right )}{2 a^2}-\frac {e^2 h n \log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right ) \text {Li}_2\left (-\frac {e (1-c (a+b x))}{b c (d+e x)}\right )}{2 d^2}-\frac {b^2 h n \log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right ) \text {Li}_2\left (\frac {(b d-a e) (1-c (a+b x))}{b (d+e x)}\right )}{2 a^2}+\frac {e^2 h n \log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right ) \text {Li}_2\left (\frac {(b d-a e) (1-c (a+b x))}{b (d+e x)}\right )}{2 d^2}+\frac {e^2 h n \text {Li}_3\left (-\frac {b x}{a}\right )}{2 d^2}-\frac {b^2 h n \text {Li}_3\left (1-\frac {b c x}{1-a c}\right )}{2 a^2}+\frac {b^2 h n \text {Li}_3\left (\frac {d (1-a c-b c x)}{(1-a c) (d+e x)}\right )}{2 a^2}-\frac {b^2 h n \text {Li}_3\left (-\frac {e (1-a c-b c x)}{b c (d+e x)}\right )}{2 a^2}+\frac {b^2 h n \text {Li}_3\left (\frac {b (d+e x)}{b d-a e}\right )}{2 a^2}-\frac {e^2 h n \text {Li}_3\left (\frac {b (d+e x)}{b d-a e}\right )}{2 d^2}-\frac {b^2 h n \text {Li}_3\left (1+\frac {e x}{d}\right )}{2 a^2}-\frac {e^2 h n \text {Li}_3\left (-\frac {b x}{a (1-c (a+b x))}\right )}{2 d^2}+\frac {e^2 h n \text {Li}_3\left (-\frac {b c x}{1-c (a+b x)}\right )}{2 d^2}+\frac {b^2 h n \text {Li}_3(1-c (a+b x))}{2 a^2}+\frac {b^2 h n \text {Li}_3\left (-\frac {e (1-c (a+b x))}{b c (d+e x)}\right )}{2 a^2}-\frac {e^2 h n \text {Li}_3\left (-\frac {e (1-c (a+b x))}{b c (d+e x)}\right )}{2 d^2}-\frac {b^2 h n \text {Li}_3\left (\frac {(b d-a e) (1-c (a+b x))}{b (d+e x)}\right )}{2 a^2}+\frac {e^2 h n \text {Li}_3\left (\frac {(b d-a e) (1-c (a+b x))}{b (d+e x)}\right )}{2 d^2}+\frac {\left (b^2 c h n\right ) \operatorname {Subst}\left (\int \frac {\log \left (1+\frac {b c x}{-b c d+(-1+a c) e}\right )}{x} \, dx,x,d+e x\right )}{2 a (1-a c)}-\frac {(b e h n) \operatorname {Subst}\left (\int \frac {\log \left (1+\frac {e x}{-b c d-(1-a c) e}\right )}{x} \, dx,x,1-a c-b c x\right )}{2 a d}\\ &=\frac {b^2 g \log \left (\frac {b c x}{1-a c}\right ) \log (1-a c-b c x)}{2 a^2}+\frac {b^2 h n \log \left (\frac {b c x}{1-a c}\right ) \log (1-a c-b c x) \log (d+e x)}{2 a^2}+\frac {b e h n \log (1-a c-b c x) \log \left (\frac {b c (d+e x)}{b c d+e-a c e}\right )}{2 a d}+\frac {b^2 h n \left (\log \left (\frac {b c x}{1-a c}\right )+\log \left (\frac {b c d+e-a c e}{b c (d+e x)}\right )-\log \left (\frac {(b c d+e-a c e) x}{(1-a c) (d+e x)}\right )\right ) \log ^2\left (\frac {(1-a c) (d+e x)}{d (1-a c-b c x)}\right )}{4 a^2}-\frac {b^2 h n \left (\log \left (\frac {b c x}{1-a c}\right )-\log \left (-\frac {e x}{d}\right )\right ) \left (\log (1-a c-b c x)+\log \left (\frac {(1-a c) (d+e x)}{d (1-a c-b c x)}\right )\right )^2}{4 a^2}-\frac {b^2 h \log \left (\frac {b c x}{1-a c}\right ) \log (1-a c-b c x) \left (n \log (d+e x)-\log \left (f (d+e x)^n\right )\right )}{2 a^2}+\frac {b^2 c \log \left (-\frac {e x}{d}\right ) \left (g+h \log \left (f (d+e x)^n\right )\right )}{2 a (1-a c)}+\frac {b \log (1-a c-b c x) \left (g+h \log \left (f (d+e x)^n\right )\right )}{2 a x}-\frac {b^2 c \log \left (\frac {e (1-a c-b c x)}{b c d+e-a c e}\right ) \left (g+h \log \left (f (d+e x)^n\right )\right )}{2 a (1-a c)}-\frac {b^2 h n \left (\log (c (a+b x))+\log \left (\frac {b c d+e-a c e}{b c (d+e x)}\right )-\log \left (\frac {(b c d+e-a c e) (a+b x)}{b (d+e x)}\right )\right ) \log ^2\left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right )}{4 a^2}+\frac {e^2 h n \left (\log (c (a+b x))+\log \left (\frac {b c d+e-a c e}{b c (d+e x)}\right )-\log \left (\frac {(b c d+e-a c e) (a+b x)}{b (d+e x)}\right )\right ) \log ^2\left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right )}{4 d^2}-\frac {e^2 h n \log (x) \log \left (1+\frac {b x}{a}\right ) \log (1-c (a+b x))}{2 d^2}-\frac {b^2 h n \log (c (a+b x)) \log (d+e x) \log (1-c (a+b x))}{2 a^2}+\frac {e^2 h n \log (c (a+b x)) \log (d+e x) \log (1-c (a+b x))}{2 d^2}+\frac {b^2 h n \left (\log (c (a+b x))-\log \left (-\frac {e (a+b x)}{b d-a e}\right )\right ) \left (\log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right )+\log (1-c (a+b x))\right )^2}{4 a^2}-\frac {e^2 h n \left (\log (c (a+b x))-\log \left (-\frac {e (a+b x)}{b d-a e}\right )\right ) \left (\log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right )+\log (1-c (a+b x))\right )^2}{4 d^2}-\frac {e^2 h n \left (\log \left (1+\frac {b x}{a}\right )+\log \left (\frac {1-a c}{1-c (a+b x)}\right )-\log \left (\frac {(1-a c) (a+b x)}{a (1-c (a+b x))}\right )\right ) \log ^2\left (-\frac {a (1-c (a+b x))}{b x}\right )}{4 d^2}-\frac {e^2 h n \left (\log (c (a+b x))-\log \left (1+\frac {b x}{a}\right )\right ) \left (\log (x)+\log \left (-\frac {a (1-c (a+b x))}{b x}\right )\right )^2}{4 d^2}-\frac {e^2 h n \left (\log (1-c (a+b x))-\log \left (-\frac {a (1-c (a+b x))}{b x}\right )\right ) \text {Li}_2\left (-\frac {b x}{a}\right )}{2 d^2}+\frac {b^2 g \text {Li}_2(c (a+b x))}{2 a^2}-\frac {b e h n \text {Li}_2(c (a+b x))}{2 a d}-\frac {e h n \text {Li}_2(c (a+b x))}{2 d x}-\frac {e^2 h n \log (x) \text {Li}_2(c (a+b x))}{2 d^2}+\frac {e^2 h n \log (d+e x) \text {Li}_2(c (a+b x))}{2 d^2}-\frac {b^2 h \left (n \log (d+e x)-\log \left (f (d+e x)^n\right )\right ) \text {Li}_2(c (a+b x))}{2 a^2}-\frac {\left (g+h \log \left (f (d+e x)^n\right )\right ) \text {Li}_2(c (a+b x))}{2 x^2}+\frac {b e h n \text {Li}_2\left (\frac {e (1-a c-b c x)}{b c d+e-a c e}\right )}{2 a d}+\frac {b^2 g \text {Li}_2\left (1-\frac {b c x}{1-a c}\right )}{2 a^2}+\frac {b^2 h n \left (\log (d+e x)-\log \left (\frac {(1-a c) (d+e x)}{d (1-a c-b c x)}\right )\right ) \text {Li}_2\left (1-\frac {b c x}{1-a c}\right )}{2 a^2}-\frac {b^2 h \left (n \log (d+e x)-\log \left (f (d+e x)^n\right )\right ) \text {Li}_2\left (1-\frac {b c x}{1-a c}\right )}{2 a^2}-2 \left (\frac {b e h n \log \left (\frac {b c x}{1-a c}\right ) \log (1-a c-b c x)}{2 a d}+\frac {b e h n \text {Li}_2\left (1-\frac {b c x}{1-a c}\right )}{2 a d}\right )+\frac {b^2 h n \log \left (\frac {(1-a c) (d+e x)}{d (1-a c-b c x)}\right ) \text {Li}_2\left (\frac {d (1-a c-b c x)}{(1-a c) (d+e x)}\right )}{2 a^2}-\frac {b^2 h n \log \left (\frac {(1-a c) (d+e x)}{d (1-a c-b c x)}\right ) \text {Li}_2\left (-\frac {e (1-a c-b c x)}{b c (d+e x)}\right )}{2 a^2}-\frac {b^2 h n \left (\log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right )+\log (1-c (a+b x))\right ) \text {Li}_2\left (\frac {b (d+e x)}{b d-a e}\right )}{2 a^2}+\frac {e^2 h n \left (\log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right )+\log (1-c (a+b x))\right ) \text {Li}_2\left (\frac {b (d+e x)}{b d-a e}\right )}{2 d^2}-\frac {b^2 c h n \text {Li}_2\left (\frac {b c (d+e x)}{b c d+e-a c e}\right )}{2 a (1-a c)}+\frac {b^2 c h n \text {Li}_2\left (1+\frac {e x}{d}\right )}{2 a (1-a c)}+\frac {b^2 h n \left (\log (1-a c-b c x)+\log \left (\frac {(1-a c) (d+e x)}{d (1-a c-b c x)}\right )\right ) \text {Li}_2\left (1+\frac {e x}{d}\right )}{2 a^2}-\frac {e^2 h n \log \left (-\frac {a (1-c (a+b x))}{b x}\right ) \text {Li}_2\left (-\frac {b x}{a (1-c (a+b x))}\right )}{2 d^2}+\frac {e^2 h n \log \left (-\frac {a (1-c (a+b x))}{b x}\right ) \text {Li}_2\left (-\frac {b c x}{1-c (a+b x)}\right )}{2 d^2}-\frac {b^2 h n \left (\log (d+e x)-\log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right )\right ) \text {Li}_2(1-c (a+b x))}{2 a^2}+\frac {e^2 h n \left (\log (d+e x)-\log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right )\right ) \text {Li}_2(1-c (a+b x))}{2 d^2}-\frac {e^2 h n \left (\log (x)+\log \left (-\frac {a (1-c (a+b x))}{b x}\right )\right ) \text {Li}_2(1-c (a+b x))}{2 d^2}+\frac {b^2 h n \log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right ) \text {Li}_2\left (-\frac {e (1-c (a+b x))}{b c (d+e x)}\right )}{2 a^2}-\frac {e^2 h n \log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right ) \text {Li}_2\left (-\frac {e (1-c (a+b x))}{b c (d+e x)}\right )}{2 d^2}-\frac {b^2 h n \log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right ) \text {Li}_2\left (\frac {(b d-a e) (1-c (a+b x))}{b (d+e x)}\right )}{2 a^2}+\frac {e^2 h n \log \left (\frac {b (d+e x)}{(b d-a e) (1-c (a+b x))}\right ) \text {Li}_2\left (\frac {(b d-a e) (1-c (a+b x))}{b (d+e x)}\right )}{2 d^2}+\frac {e^2 h n \text {Li}_3\left (-\frac {b x}{a}\right )}{2 d^2}-\frac {b^2 h n \text {Li}_3\left (1-\frac {b c x}{1-a c}\right )}{2 a^2}+\frac {b^2 h n \text {Li}_3\left (\frac {d (1-a c-b c x)}{(1-a c) (d+e x)}\right )}{2 a^2}-\frac {b^2 h n \text {Li}_3\left (-\frac {e (1-a c-b c x)}{b c (d+e x)}\right )}{2 a^2}+\frac {b^2 h n \text {Li}_3\left (\frac {b (d+e x)}{b d-a e}\right )}{2 a^2}-\frac {e^2 h n \text {Li}_3\left (\frac {b (d+e x)}{b d-a e}\right )}{2 d^2}-\frac {b^2 h n \text {Li}_3\left (1+\frac {e x}{d}\right )}{2 a^2}-\frac {e^2 h n \text {Li}_3\left (-\frac {b x}{a (1-c (a+b x))}\right )}{2 d^2}+\frac {e^2 h n \text {Li}_3\left (-\frac {b c x}{1-c (a+b x)}\right )}{2 d^2}+\frac {b^2 h n \text {Li}_3(1-c (a+b x))}{2 a^2}+\frac {b^2 h n \text {Li}_3\left (-\frac {e (1-c (a+b x))}{b c (d+e x)}\right )}{2 a^2}-\frac {e^2 h n \text {Li}_3\left (-\frac {e (1-c (a+b x))}{b c (d+e x)}\right )}{2 d^2}-\frac {b^2 h n \text {Li}_3\left (\frac {(b d-a e) (1-c (a+b x))}{b (d+e x)}\right )}{2 a^2}+\frac {e^2 h n \text {Li}_3\left (\frac {(b d-a e) (1-c (a+b x))}{b (d+e x)}\right )}{2 d^2}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 14.60, size = 2673, normalized size = 0.86 \[ \text {Result too large to show} \]

Antiderivative was successfully verified.

[In]

Integrate[((g + h*Log[f*(d + e*x)^n])*PolyLog[2, c*(a + b*x)])/x^3,x]

[Out]

((g - h*n*Log[d + e*x] + h*Log[f*(d + e*x)^n])*(-((-1 + a*c)*(a^2 - b^2*x^2)*PolyLog[2, c*(a + b*x)]) + b*x*(-
(a*b*c*x*Log[x]) + (a*(-1 + a*c + b*c*x) + b*(-1 + a*c)*x*Log[(b*c*x)/(1 - a*c)])*Log[1 - a*c - b*c*x] + b*(-1
 + a*c)*x*PolyLog[2, (-1 + a*c + b*c*x)/(-1 + a*c)])))/(2*a^2*(-1 + a*c)*x^2) - (h*n*(((d*e*x + e^2*x^2*Log[x]
 + (d^2 - e^2*x^2)*Log[d + e*x])*PolyLog[2, c*(a + b*x)])/x^2 + (b*d*e*(Log[x]*Log[1 - a*c - b*c*x] - Log[c*(a
 + b*x)]*Log[1 - a*c - b*c*x] - Log[x]*Log[1 + (b*c*x)/(-1 + a*c)] - PolyLog[2, (b*c*x)/(1 - a*c)] - PolyLog[2
, 1 - a*c - b*c*x]))/a + e^2*(Log[x]*Log[1 + (b*x)/a]*Log[1 - a*c - b*c*x] + ((-Log[c*(a + b*x)] + Log[1 + (b*
x)/a])*Log[1 - a*c - b*c*x]*(-2*Log[x] + Log[1 - a*c - b*c*x]))/2 + (Log[c*(a + b*x)] - Log[1 + (b*x)/a])*Log[
1 - a*c - b*c*x]*Log[(a*(-1 + a*c + b*c*x))/(b*x)] + ((Log[(1 - a*c)/(b*c*x)] - Log[((1 - a*c)*(a + b*x))/(b*x
)] + Log[1 + (b*x)/a])*Log[(a*(-1 + a*c + b*c*x))/(b*x)]^2)/2 + (Log[1 - a*c - b*c*x] - Log[(a*(-1 + a*c + b*c
*x))/(b*x)])*PolyLog[2, -((b*x)/a)] + (Log[x] + Log[(a*(-1 + a*c + b*c*x))/(b*x)])*PolyLog[2, 1 - a*c - b*c*x]
 + Log[(a*(-1 + a*c + b*c*x))/(b*x)]*(-PolyLog[2, (a*(-1 + a*c + b*c*x))/(b*x)] + PolyLog[2, (-1 + a*c + b*c*x
)/(b*c*x)]) - PolyLog[3, -((b*x)/a)] - PolyLog[3, 1 - a*c - b*c*x] + PolyLog[3, (a*(-1 + a*c + b*c*x))/(b*x)]
- PolyLog[3, (-1 + a*c + b*c*x)/(b*c*x)]) - e^2*(Log[c*(a + b*x)]*Log[1 - a*c - b*c*x]*Log[d + e*x] + ((Log[c*
(a + b*x)] - Log[(e*(a + b*x))/(-(b*d) + a*e)])*Log[(b*(d + e*x))/(b*d - a*e)]*(-2*Log[1 - a*c - b*c*x] + Log[
(b*(d + e*x))/(b*d - a*e)]))/2 + (-Log[c*(a + b*x)] + Log[(e*(a + b*x))/(-(b*d) + a*e)])*Log[(b*(d + e*x))/(b*
d - a*e)]*Log[-((b*(d + e*x))/((b*d - a*e)*(-1 + a*c + b*c*x)))] + (Log[-((b*(d + e*x))/((b*d - a*e)*(-1 + a*c
 + b*c*x)))]^2*(Log[c*(a + b*x)] - Log[((b*c*d + e - a*c*e)*(a + b*x))/((b*d - a*e)*(-1 + a*c + b*c*x))] + Log
[(b*c*d + e - a*c*e)/(e - a*c*e - b*c*e*x)]))/2 + (Log[d + e*x] - Log[-((b*(d + e*x))/((b*d - a*e)*(-1 + a*c +
 b*c*x)))])*PolyLog[2, 1 - a*c - b*c*x] + (Log[1 - a*c - b*c*x] + Log[-((b*(d + e*x))/((b*d - a*e)*(-1 + a*c +
 b*c*x)))])*PolyLog[2, (b*(d + e*x))/(b*d - a*e)] + Log[-((b*(d + e*x))/((b*d - a*e)*(-1 + a*c + b*c*x)))]*(Po
lyLog[2, (b*c*(d + e*x))/(e*(-1 + a*c + b*c*x))] - PolyLog[2, -((b*(d + e*x))/((b*d - a*e)*(-1 + a*c + b*c*x))
)]) - PolyLog[3, 1 - a*c - b*c*x] - PolyLog[3, (b*(d + e*x))/(b*d - a*e)] - PolyLog[3, (b*c*(d + e*x))/(e*(-1
+ a*c + b*c*x))] + PolyLog[3, -((b*(d + e*x))/((b*d - a*e)*(-1 + a*c + b*c*x)))]) + (b*d^2*(-((a*Log[1 - a*c -
 b*c*x]*Log[d + e*x])/x) - b*Log[(b*c*x)/(1 - a*c)]*Log[1 - a*c - b*c*x]*Log[d + e*x] + b*Log[c*(a + b*x)]*Log
[1 - a*c - b*c*x]*Log[d + e*x] + (b*(Log[c*(a + b*x)] - Log[(e*(a + b*x))/(-(b*d) + a*e)])*Log[(b*(d + e*x))/(
b*d - a*e)]*(-2*Log[1 - a*c - b*c*x] + Log[(b*(d + e*x))/(b*d - a*e)]))/2 + b*(-Log[c*(a + b*x)] + Log[(e*(a +
 b*x))/(-(b*d) + a*e)])*Log[(b*(d + e*x))/(b*d - a*e)]*Log[-((b*(d + e*x))/((b*d - a*e)*(-1 + a*c + b*c*x)))]
- (b*Log[((-1 + a*c)*(d + e*x))/(d*(-1 + a*c + b*c*x))]^2*(Log[(b*c*x)/(1 - a*c)] - Log[((b*c*d + e - a*c*e)*x
)/(d*(-1 + a*c + b*c*x))] + Log[(b*c*d + e - a*c*e)/(e - a*c*e - b*c*e*x)]))/2 + (b*Log[-((b*(d + e*x))/((b*d
- a*e)*(-1 + a*c + b*c*x)))]^2*(Log[c*(a + b*x)] - Log[((b*c*d + e - a*c*e)*(a + b*x))/((b*d - a*e)*(-1 + a*c
+ b*c*x))] + Log[(b*c*d + e - a*c*e)/(e - a*c*e - b*c*e*x)]))/2 + b*(Log[(b*c*x)/(1 - a*c)] - Log[-((e*x)/d)])
*Log[((-1 + a*c)*(d + e*x))/(d*(-1 + a*c + b*c*x))]*Log[1 + (e*x)/d] - (b*(Log[(b*c*x)/(1 - a*c)] - Log[-((e*x
)/d)])*Log[1 + (e*x)/d]*(-2*Log[1 - a*c - b*c*x] + Log[1 + (e*x)/d]))/2 + b*(Log[d + e*x] - Log[-((b*(d + e*x)
)/((b*d - a*e)*(-1 + a*c + b*c*x)))])*PolyLog[2, 1 - a*c - b*c*x] - b*(Log[d + e*x] - Log[((-1 + a*c)*(d + e*x
))/(d*(-1 + a*c + b*c*x))])*PolyLog[2, (-1 + a*c + b*c*x)/(-1 + a*c)] + (a*e*(Log[x]*Log[1 - a*c - b*c*x] - Lo
g[x]*Log[1 + (b*c*x)/(-1 + a*c)] - Log[1 - a*c - b*c*x]*Log[(b*c*(d + e*x))/(b*c*d + e - a*c*e)] - PolyLog[2,
(b*c*x)/(1 - a*c)] - PolyLog[2, (e*(-1 + a*c + b*c*x))/(-(b*c*d) - e + a*c*e)]))/d + b*(Log[1 - a*c - b*c*x] +
 Log[-((b*(d + e*x))/((b*d - a*e)*(-1 + a*c + b*c*x)))])*PolyLog[2, (b*(d + e*x))/(b*d - a*e)] + b*Log[((-1 +
a*c)*(d + e*x))/(d*(-1 + a*c + b*c*x))]*(PolyLog[2, ((-1 + a*c)*(d + e*x))/(d*(-1 + a*c + b*c*x))] - PolyLog[2
, (b*c*(d + e*x))/(e*(-1 + a*c + b*c*x))]) + b*Log[-((b*(d + e*x))/((b*d - a*e)*(-1 + a*c + b*c*x)))]*(PolyLog
[2, (b*c*(d + e*x))/(e*(-1 + a*c + b*c*x))] - PolyLog[2, -((b*(d + e*x))/((b*d - a*e)*(-1 + a*c + b*c*x)))]) -
 b*(Log[1 - a*c - b*c*x] + Log[((-1 + a*c)*(d + e*x))/(d*(-1 + a*c + b*c*x))])*PolyLog[2, 1 + (e*x)/d] + (a*b*
c*(Log[d + e*x]*(Log[-((e*x)/d)] - Log[1 - (b*c*(d + e*x))/(b*c*d + e - a*c*e)]) - PolyLog[2, (b*c*(d + e*x))/
(b*c*d + e - a*c*e)] + PolyLog[2, 1 + (e*x)/d]))/(-1 + a*c) - b*PolyLog[3, 1 - a*c - b*c*x] + b*PolyLog[3, (-1
 + a*c + b*c*x)/(-1 + a*c)] - b*PolyLog[3, (b*(d + e*x))/(b*d - a*e)] - b*PolyLog[3, ((-1 + a*c)*(d + e*x))/(d
*(-1 + a*c + b*c*x))] + b*PolyLog[3, -((b*(d + e*x))/((b*d - a*e)*(-1 + a*c + b*c*x)))] + b*PolyLog[3, 1 + (e*
x)/d]))/a^2))/(2*d^2)

________________________________________________________________________________________

fricas [F]  time = 0.79, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {h {\rm Li}_2\left (b c x + a c\right ) \log \left ({\left (e x + d\right )}^{n} f\right ) + g {\rm Li}_2\left (b c x + a c\right )}{x^{3}}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g+h*log(f*(e*x+d)^n))*polylog(2,c*(b*x+a))/x^3,x, algorithm="fricas")

[Out]

integral((h*dilog(b*c*x + a*c)*log((e*x + d)^n*f) + g*dilog(b*c*x + a*c))/x^3, x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (h \log \left ({\left (e x + d\right )}^{n} f\right ) + g\right )} {\rm Li}_2\left ({\left (b x + a\right )} c\right )}{x^{3}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g+h*log(f*(e*x+d)^n))*polylog(2,c*(b*x+a))/x^3,x, algorithm="giac")

[Out]

integrate((h*log((e*x + d)^n*f) + g)*dilog((b*x + a)*c)/x^3, x)

________________________________________________________________________________________

maple [F]  time = 0.30, size = 0, normalized size = 0.00 \[ \int \frac {\left (g +h \ln \left (f \left (e x +d \right )^{n}\right )\right ) \polylog \left (2, c \left (b x +a \right )\right )}{x^{3}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((g+h*ln(f*(e*x+d)^n))*polylog(2,c*(b*x+a))/x^3,x)

[Out]

int((g+h*ln(f*(e*x+d)^n))*polylog(2,c*(b*x+a))/x^3,x)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (h \log \left ({\left (e x + d\right )}^{n} f\right ) + g\right )} {\rm Li}_2\left ({\left (b x + a\right )} c\right )}{x^{3}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g+h*log(f*(e*x+d)^n))*polylog(2,c*(b*x+a))/x^3,x, algorithm="maxima")

[Out]

integrate((h*log((e*x + d)^n*f) + g)*dilog((b*x + a)*c)/x^3, x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {\mathrm {polylog}\left (2,c\,\left (a+b\,x\right )\right )\,\left (g+h\,\ln \left (f\,{\left (d+e\,x\right )}^n\right )\right )}{x^3} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((polylog(2, c*(a + b*x))*(g + h*log(f*(d + e*x)^n)))/x^3,x)

[Out]

int((polylog(2, c*(a + b*x))*(g + h*log(f*(d + e*x)^n)))/x^3, x)

________________________________________________________________________________________

sympy [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g+h*ln(f*(e*x+d)**n))*polylog(2,c*(b*x+a))/x**3,x)

[Out]

Timed out

________________________________________________________________________________________