\(\int \frac {(c i+d i x)^3 (A+B \log (e (\frac {a+b x}{c+d x})^n))^2}{(a g+b g x)^2} \, dx\) [183]

Optimal result
Mathematica [B] (verified)
Rubi [A] (verified)
Maple [F]
Fricas [F]
Sympy [F(-1)]
Maxima [F]
Giac [F(-1)]
Mupad [F(-1)]
Reduce [F]

Optimal result

Integrand size = 45, antiderivative size = 739 \[ \int \frac {(c i+d i x)^3 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{(a g+b g x)^2} \, dx=-\frac {2 B^2 (b c-a d)^2 i^3 n^2 (c+d x)}{b^3 g^2 (a+b x)}-\frac {B d^2 (b c-a d) i^3 n (a+b x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{b^4 g^2}-\frac {2 B (b c-a d)^2 i^3 n (c+d x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{b^3 g^2 (a+b x)}+\frac {2 d^2 (b c-a d) i^3 (a+b x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{b^4 g^2}-\frac {(b c-a d)^2 i^3 (c+d x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{b^3 g^2 (a+b x)}+\frac {d i^3 (c+d x)^2 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{2 b^2 g^2}+\frac {4 B d (b c-a d)^2 i^3 n \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right ) \log \left (\frac {b c-a d}{b (c+d x)}\right )}{b^4 g^2}+\frac {B^2 d (b c-a d)^2 i^3 n^2 \log (c+d x)}{b^4 g^2}+\frac {B d (b c-a d)^2 i^3 n \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right ) \log \left (1-\frac {b (c+d x)}{d (a+b x)}\right )}{b^4 g^2}-\frac {3 d (b c-a d)^2 i^3 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2 \log \left (1-\frac {b (c+d x)}{d (a+b x)}\right )}{b^4 g^2}+\frac {4 B^2 d (b c-a d)^2 i^3 n^2 \operatorname {PolyLog}\left (2,\frac {d (a+b x)}{b (c+d x)}\right )}{b^4 g^2}-\frac {B^2 d (b c-a d)^2 i^3 n^2 \operatorname {PolyLog}\left (2,\frac {b (c+d x)}{d (a+b x)}\right )}{b^4 g^2}+\frac {6 B d (b c-a d)^2 i^3 n \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right ) \operatorname {PolyLog}\left (2,\frac {b (c+d x)}{d (a+b x)}\right )}{b^4 g^2}+\frac {6 B^2 d (b c-a d)^2 i^3 n^2 \operatorname {PolyLog}\left (3,\frac {b (c+d x)}{d (a+b x)}\right )}{b^4 g^2} \] Output:

-2*B^2*(-a*d+b*c)^2*i^3*n^2*(d*x+c)/b^3/g^2/(b*x+a)-B*d^2*(-a*d+b*c)*i^3*n 
*(b*x+a)*(A+B*ln(e*((b*x+a)/(d*x+c))^n))/b^4/g^2-2*B*(-a*d+b*c)^2*i^3*n*(d 
*x+c)*(A+B*ln(e*((b*x+a)/(d*x+c))^n))/b^3/g^2/(b*x+a)+2*d^2*(-a*d+b*c)*i^3 
*(b*x+a)*(A+B*ln(e*((b*x+a)/(d*x+c))^n))^2/b^4/g^2-(-a*d+b*c)^2*i^3*(d*x+c 
)*(A+B*ln(e*((b*x+a)/(d*x+c))^n))^2/b^3/g^2/(b*x+a)+1/2*d*i^3*(d*x+c)^2*(A 
+B*ln(e*((b*x+a)/(d*x+c))^n))^2/b^2/g^2+4*B*d*(-a*d+b*c)^2*i^3*n*(A+B*ln(e 
*((b*x+a)/(d*x+c))^n))*ln((-a*d+b*c)/b/(d*x+c))/b^4/g^2+B^2*d*(-a*d+b*c)^2 
*i^3*n^2*ln(d*x+c)/b^4/g^2+B*d*(-a*d+b*c)^2*i^3*n*(A+B*ln(e*((b*x+a)/(d*x+ 
c))^n))*ln(1-b*(d*x+c)/d/(b*x+a))/b^4/g^2-3*d*(-a*d+b*c)^2*i^3*(A+B*ln(e*( 
(b*x+a)/(d*x+c))^n))^2*ln(1-b*(d*x+c)/d/(b*x+a))/b^4/g^2+4*B^2*d*(-a*d+b*c 
)^2*i^3*n^2*polylog(2,d*(b*x+a)/b/(d*x+c))/b^4/g^2-B^2*d*(-a*d+b*c)^2*i^3* 
n^2*polylog(2,b*(d*x+c)/d/(b*x+a))/b^4/g^2+6*B*d*(-a*d+b*c)^2*i^3*n*(A+B*l 
n(e*((b*x+a)/(d*x+c))^n))*polylog(2,b*(d*x+c)/d/(b*x+a))/b^4/g^2+6*B^2*d*( 
-a*d+b*c)^2*i^3*n^2*polylog(3,b*(d*x+c)/d/(b*x+a))/b^4/g^2
 

Mathematica [B] (verified)

Leaf count is larger than twice the leaf count of optimal. \(5917\) vs. \(2(739)=1478\).

Time = 7.54 (sec) , antiderivative size = 5917, normalized size of antiderivative = 8.01 \[ \int \frac {(c i+d i x)^3 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{(a g+b g x)^2} \, dx=\text {Result too large to show} \] Input:

Integrate[((c*i + d*i*x)^3*(A + B*Log[e*((a + b*x)/(c + d*x))^n])^2)/(a*g 
+ b*g*x)^2,x]
 

Output:

Result too large to show
 

Rubi [A] (verified)

Time = 1.01 (sec) , antiderivative size = 624, normalized size of antiderivative = 0.84, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.067, Rules used = {2961, 2795, 2009}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \frac {(c i+d i x)^3 \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )^2}{(a g+b g x)^2} \, dx\)

\(\Big \downarrow \) 2961

\(\displaystyle \frac {i^3 (b c-a d)^2 \int \frac {(c+d x)^2 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{(a+b x)^2 \left (b-\frac {d (a+b x)}{c+d x}\right )^3}d\frac {a+b x}{c+d x}}{g^2}\)

\(\Big \downarrow \) 2795

\(\displaystyle \frac {i^3 (b c-a d)^2 \int \left (\frac {(c+d x)^2 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{b^3 (a+b x)^2}+\frac {3 d (c+d x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{b^3 (a+b x) \left (b-\frac {d (a+b x)}{c+d x}\right )}+\frac {2 d^2 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{b^3 \left (b-\frac {d (a+b x)}{c+d x}\right )^2}+\frac {d^2 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{b^2 \left (b-\frac {d (a+b x)}{c+d x}\right )^3}\right )d\frac {a+b x}{c+d x}}{g^2}\)

\(\Big \downarrow \) 2009

\(\displaystyle \frac {i^3 (b c-a d)^2 \left (\frac {2 d^2 (a+b x) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )^2}{b^4 (c+d x) \left (b-\frac {d (a+b x)}{c+d x}\right )}-\frac {B d^2 n (a+b x) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )}{b^4 (c+d x) \left (b-\frac {d (a+b x)}{c+d x}\right )}+\frac {6 B d n \operatorname {PolyLog}\left (2,\frac {b (c+d x)}{d (a+b x)}\right ) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )}{b^4}+\frac {4 B d n \log \left (1-\frac {d (a+b x)}{b (c+d x)}\right ) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )}{b^4}-\frac {3 d \log \left (1-\frac {b (c+d x)}{d (a+b x)}\right ) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )^2}{b^4}+\frac {B d n \log \left (1-\frac {b (c+d x)}{d (a+b x)}\right ) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )}{b^4}-\frac {(c+d x) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )^2}{b^3 (a+b x)}-\frac {2 B n (c+d x) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )}{b^3 (a+b x)}+\frac {d \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )^2}{2 b^2 \left (b-\frac {d (a+b x)}{c+d x}\right )^2}+\frac {4 B^2 d n^2 \operatorname {PolyLog}\left (2,\frac {d (a+b x)}{b (c+d x)}\right )}{b^4}-\frac {B^2 d n^2 \operatorname {PolyLog}\left (2,\frac {b (c+d x)}{d (a+b x)}\right )}{b^4}+\frac {6 B^2 d n^2 \operatorname {PolyLog}\left (3,\frac {b (c+d x)}{d (a+b x)}\right )}{b^4}-\frac {B^2 d n^2 \log \left (b-\frac {d (a+b x)}{c+d x}\right )}{b^4}-\frac {2 B^2 n^2 (c+d x)}{b^3 (a+b x)}\right )}{g^2}\)

Input:

Int[((c*i + d*i*x)^3*(A + B*Log[e*((a + b*x)/(c + d*x))^n])^2)/(a*g + b*g* 
x)^2,x]
 

Output:

((b*c - a*d)^2*i^3*((-2*B^2*n^2*(c + d*x))/(b^3*(a + b*x)) - (2*B*n*(c + d 
*x)*(A + B*Log[e*((a + b*x)/(c + d*x))^n]))/(b^3*(a + b*x)) - (B*d^2*n*(a 
+ b*x)*(A + B*Log[e*((a + b*x)/(c + d*x))^n]))/(b^4*(c + d*x)*(b - (d*(a + 
 b*x))/(c + d*x))) - ((c + d*x)*(A + B*Log[e*((a + b*x)/(c + d*x))^n])^2)/ 
(b^3*(a + b*x)) + (d*(A + B*Log[e*((a + b*x)/(c + d*x))^n])^2)/(2*b^2*(b - 
 (d*(a + b*x))/(c + d*x))^2) + (2*d^2*(a + b*x)*(A + B*Log[e*((a + b*x)/(c 
 + d*x))^n])^2)/(b^4*(c + d*x)*(b - (d*(a + b*x))/(c + d*x))) - (B^2*d*n^2 
*Log[b - (d*(a + b*x))/(c + d*x)])/b^4 + (4*B*d*n*(A + B*Log[e*((a + b*x)/ 
(c + d*x))^n])*Log[1 - (d*(a + b*x))/(b*(c + d*x))])/b^4 + (B*d*n*(A + B*L 
og[e*((a + b*x)/(c + d*x))^n])*Log[1 - (b*(c + d*x))/(d*(a + b*x))])/b^4 - 
 (3*d*(A + B*Log[e*((a + b*x)/(c + d*x))^n])^2*Log[1 - (b*(c + d*x))/(d*(a 
 + b*x))])/b^4 + (4*B^2*d*n^2*PolyLog[2, (d*(a + b*x))/(b*(c + d*x))])/b^4 
 - (B^2*d*n^2*PolyLog[2, (b*(c + d*x))/(d*(a + b*x))])/b^4 + (6*B*d*n*(A + 
 B*Log[e*((a + b*x)/(c + d*x))^n])*PolyLog[2, (b*(c + d*x))/(d*(a + b*x))] 
)/b^4 + (6*B^2*d*n^2*PolyLog[3, (b*(c + d*x))/(d*(a + b*x))])/b^4))/g^2
 

Defintions of rubi rules used

rule 2009
Int[u_, x_Symbol] :> Simp[IntSum[u, x], x] /; SumQ[u]
 

rule 2795
Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((f_.)*(x_))^(m_.)*((d_) + 
(e_.)*(x_)^(r_.))^(q_.), x_Symbol] :> With[{u = ExpandIntegrand[(a + b*Log[ 
c*x^n])^p, (f*x)^m*(d + e*x^r)^q, x]}, Int[u, x] /; SumQ[u]] /; FreeQ[{a, b 
, c, d, e, f, m, n, p, q, r}, x] && IntegerQ[q] && (GtQ[q, 0] || (IGtQ[p, 0 
] && IntegerQ[m] && IntegerQ[r]))
 

rule 2961
Int[((A_.) + Log[(e_.)*(((a_.) + (b_.)*(x_))/((c_.) + (d_.)*(x_)))^(n_.)]*( 
B_.))^(p_.)*((f_.) + (g_.)*(x_))^(m_.)*((h_.) + (i_.)*(x_))^(q_.), x_Symbol 
] :> Simp[(b*c - a*d)^(m + q + 1)*(g/b)^m*(i/d)^q   Subst[Int[x^m*((A + B*L 
og[e*x^n])^p/(b - d*x)^(m + q + 2)), x], x, (a + b*x)/(c + d*x)], x] /; Fre 
eQ[{a, b, c, d, e, f, g, h, i, A, B, n, p}, x] && NeQ[b*c - a*d, 0] && EqQ[ 
b*f - a*g, 0] && EqQ[d*h - c*i, 0] && IntegersQ[m, q]
 
Maple [F]

\[\int \frac {\left (d i x +c i \right )^{3} {\left (A +B \ln \left (e \left (\frac {b x +a}{d x +c}\right )^{n}\right )\right )}^{2}}{\left (b g x +a g \right )^{2}}d x\]

Input:

int((d*i*x+c*i)^3*(A+B*ln(e*((b*x+a)/(d*x+c))^n))^2/(b*g*x+a*g)^2,x)
 

Output:

int((d*i*x+c*i)^3*(A+B*ln(e*((b*x+a)/(d*x+c))^n))^2/(b*g*x+a*g)^2,x)
 

Fricas [F]

\[ \int \frac {(c i+d i x)^3 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{(a g+b g x)^2} \, dx=\int { \frac {{\left (d i x + c i\right )}^{3} {\left (B \log \left (e \left (\frac {b x + a}{d x + c}\right )^{n}\right ) + A\right )}^{2}}{{\left (b g x + a g\right )}^{2}} \,d x } \] Input:

integrate((d*i*x+c*i)^3*(A+B*log(e*((b*x+a)/(d*x+c))^n))^2/(b*g*x+a*g)^2,x 
, algorithm="fricas")
 

Output:

integral((A^2*d^3*i^3*x^3 + 3*A^2*c*d^2*i^3*x^2 + 3*A^2*c^2*d*i^3*x + A^2* 
c^3*i^3 + (B^2*d^3*i^3*x^3 + 3*B^2*c*d^2*i^3*x^2 + 3*B^2*c^2*d*i^3*x + B^2 
*c^3*i^3)*log(e*((b*x + a)/(d*x + c))^n)^2 + 2*(A*B*d^3*i^3*x^3 + 3*A*B*c* 
d^2*i^3*x^2 + 3*A*B*c^2*d*i^3*x + A*B*c^3*i^3)*log(e*((b*x + a)/(d*x + c)) 
^n))/(b^2*g^2*x^2 + 2*a*b*g^2*x + a^2*g^2), x)
 

Sympy [F(-1)]

Timed out. \[ \int \frac {(c i+d i x)^3 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{(a g+b g x)^2} \, dx=\text {Timed out} \] Input:

integrate((d*i*x+c*i)**3*(A+B*ln(e*((b*x+a)/(d*x+c))**n))**2/(b*g*x+a*g)** 
2,x)
 

Output:

Timed out
 

Maxima [F]

\[ \int \frac {(c i+d i x)^3 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{(a g+b g x)^2} \, dx=\int { \frac {{\left (d i x + c i\right )}^{3} {\left (B \log \left (e \left (\frac {b x + a}{d x + c}\right )^{n}\right ) + A\right )}^{2}}{{\left (b g x + a g\right )}^{2}} \,d x } \] Input:

integrate((d*i*x+c*i)^3*(A+B*log(e*((b*x+a)/(d*x+c))^n))^2/(b*g*x+a*g)^2,x 
, algorithm="maxima")
 

Output:

-2*A*B*c^3*i^3*n*(1/(b^2*g^2*x + a*b*g^2) + d*log(b*x + a)/((b^2*c - a*b*d 
)*g^2) - d*log(d*x + c)/((b^2*c - a*b*d)*g^2)) - 3*A^2*(a^2/(b^4*g^2*x + a 
*b^3*g^2) - x/(b^2*g^2) + 2*a*log(b*x + a)/(b^3*g^2))*c*d^2*i^3 + 1/2*(2*a 
^3/(b^5*g^2*x + a*b^4*g^2) + 6*a^2*log(b*x + a)/(b^4*g^2) + (b*x^2 - 4*a*x 
)/(b^3*g^2))*A^2*d^3*i^3 + 3*A^2*c^2*d*i^3*(a/(b^3*g^2*x + a*b^2*g^2) + lo 
g(b*x + a)/(b^2*g^2)) - 2*A*B*c^3*i^3*log(e*(b*x/(d*x + c) + a/(d*x + c))^ 
n)/(b^2*g^2*x + a*b*g^2) - A^2*c^3*i^3/(b^2*g^2*x + a*b*g^2) + 1/2*(B^2*b^ 
3*d^3*i^3*x^3 + 3*(2*b^3*c*d^2*i^3 - a*b^2*d^3*i^3)*B^2*x^2 + 2*(3*a*b^2*c 
*d^2*i^3 - 2*a^2*b*d^3*i^3)*B^2*x - 2*(b^3*c^3*i^3 - 3*a*b^2*c^2*d*i^3 + 3 
*a^2*b*c*d^2*i^3 - a^3*d^3*i^3)*B^2 + 6*((b^3*c^2*d*i^3 - 2*a*b^2*c*d^2*i^ 
3 + a^2*b*d^3*i^3)*B^2*x + (a*b^2*c^2*d*i^3 - 2*a^2*b*c*d^2*i^3 + a^3*d^3* 
i^3)*B^2)*log(b*x + a))*log((d*x + c)^n)^2/(b^5*g^2*x + a*b^4*g^2) - integ 
rate(-(B^2*b^4*c^4*i^3*log(e)^2 + (B^2*b^4*d^4*i^3*log(e)^2 + 2*A*B*b^4*d^ 
4*i^3*log(e))*x^4 + 4*(B^2*b^4*c*d^3*i^3*log(e)^2 + 2*A*B*b^4*c*d^3*i^3*lo 
g(e))*x^3 + 6*(B^2*b^4*c^2*d^2*i^3*log(e)^2 + 2*A*B*b^4*c^2*d^2*i^3*log(e) 
)*x^2 + (B^2*b^4*d^4*i^3*x^4 + 4*B^2*b^4*c*d^3*i^3*x^3 + 6*B^2*b^4*c^2*d^2 
*i^3*x^2 + 4*B^2*b^4*c^3*d*i^3*x + B^2*b^4*c^4*i^3)*log((b*x + a)^n)^2 + 2 
*(2*B^2*b^4*c^3*d*i^3*log(e)^2 + 3*A*B*b^4*c^3*d*i^3*log(e))*x + 2*(B^2*b^ 
4*c^4*i^3*log(e) + (B^2*b^4*d^4*i^3*log(e) + A*B*b^4*d^4*i^3)*x^4 + 4*(B^2 
*b^4*c*d^3*i^3*log(e) + A*B*b^4*c*d^3*i^3)*x^3 + 6*(B^2*b^4*c^2*d^2*i^3...
 

Giac [F(-1)]

Timed out. \[ \int \frac {(c i+d i x)^3 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{(a g+b g x)^2} \, dx=\text {Timed out} \] Input:

integrate((d*i*x+c*i)^3*(A+B*log(e*((b*x+a)/(d*x+c))^n))^2/(b*g*x+a*g)^2,x 
, algorithm="giac")
 

Output:

Timed out
 

Mupad [F(-1)]

Timed out. \[ \int \frac {(c i+d i x)^3 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{(a g+b g x)^2} \, dx=\int \frac {{\left (c\,i+d\,i\,x\right )}^3\,{\left (A+B\,\ln \left (e\,{\left (\frac {a+b\,x}{c+d\,x}\right )}^n\right )\right )}^2}{{\left (a\,g+b\,g\,x\right )}^2} \,d x \] Input:

int(((c*i + d*i*x)^3*(A + B*log(e*((a + b*x)/(c + d*x))^n))^2)/(a*g + b*g* 
x)^2,x)
 

Output:

int(((c*i + d*i*x)^3*(A + B*log(e*((a + b*x)/(c + d*x))^n))^2)/(a*g + b*g* 
x)^2, x)
 

Reduce [F]

\[ \int \frac {(c i+d i x)^3 \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{(a g+b g x)^2} \, dx=\text {too large to display} \] Input:

int((d*i*x+c*i)^3*(A+B*log(e*((b*x+a)/(d*x+c))^n))^2/(b*g*x+a*g)^2,x)
 

Output:

(i*( - 2*int((log(((a + b*x)**n*e)/(c + d*x)**n)**2*x**3)/(a**2 + 2*a*b*x 
+ b**2*x**2),x)*a**3*b**6*d**4 + 2*int((log(((a + b*x)**n*e)/(c + d*x)**n) 
**2*x**3)/(a**2 + 2*a*b*x + b**2*x**2),x)*a**2*b**7*c*d**3 - 2*int((log((( 
a + b*x)**n*e)/(c + d*x)**n)**2*x**3)/(a**2 + 2*a*b*x + b**2*x**2),x)*a**2 
*b**7*d**4*x + 2*int((log(((a + b*x)**n*e)/(c + d*x)**n)**2*x**3)/(a**2 + 
2*a*b*x + b**2*x**2),x)*a*b**8*c*d**3*x - 6*int((log(((a + b*x)**n*e)/(c + 
 d*x)**n)**2*x**2)/(a**2 + 2*a*b*x + b**2*x**2),x)*a**3*b**6*c*d**3 + 6*in 
t((log(((a + b*x)**n*e)/(c + d*x)**n)**2*x**2)/(a**2 + 2*a*b*x + b**2*x**2 
),x)*a**2*b**7*c**2*d**2 - 6*int((log(((a + b*x)**n*e)/(c + d*x)**n)**2*x* 
*2)/(a**2 + 2*a*b*x + b**2*x**2),x)*a**2*b**7*c*d**3*x + 6*int((log(((a + 
b*x)**n*e)/(c + d*x)**n)**2*x**2)/(a**2 + 2*a*b*x + b**2*x**2),x)*a*b**8*c 
**2*d**2*x - 6*int((log(((a + b*x)**n*e)/(c + d*x)**n)**2*x)/(a**2 + 2*a*b 
*x + b**2*x**2),x)*a**3*b**6*c**2*d**2 + 6*int((log(((a + b*x)**n*e)/(c + 
d*x)**n)**2*x)/(a**2 + 2*a*b*x + b**2*x**2),x)*a**2*b**7*c**3*d - 6*int((l 
og(((a + b*x)**n*e)/(c + d*x)**n)**2*x)/(a**2 + 2*a*b*x + b**2*x**2),x)*a* 
*2*b**7*c**2*d**2*x + 6*int((log(((a + b*x)**n*e)/(c + d*x)**n)**2*x)/(a** 
2 + 2*a*b*x + b**2*x**2),x)*a*b**8*c**3*d*x - 4*int((log(((a + b*x)**n*e)/ 
(c + d*x)**n)*x**3)/(a**2 + 2*a*b*x + b**2*x**2),x)*a**4*b**5*d**4 + 4*int 
((log(((a + b*x)**n*e)/(c + d*x)**n)*x**3)/(a**2 + 2*a*b*x + b**2*x**2),x) 
*a**3*b**6*c*d**3 - 4*int((log(((a + b*x)**n*e)/(c + d*x)**n)*x**3)/(a*...