\(\int (a+b \log (c (d+\frac {e}{f+g x})^p))^4 \, dx\) [723]

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

Optimal result

Integrand size = 22, antiderivative size = 221 \[ \int \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^4 \, dx=-\frac {4 b e p \log \left (-\frac {e}{d (f+g x)}\right ) \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^3}{d g}+\frac {(e+d (f+g x)) \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^4}{d g}-\frac {12 b^2 e p^2 \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^2 \operatorname {PolyLog}\left (2,1+\frac {e}{d (f+g x)}\right )}{d g}+\frac {24 b^3 e p^3 \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right ) \operatorname {PolyLog}\left (3,1+\frac {e}{d (f+g x)}\right )}{d g}-\frac {24 b^4 e p^4 \operatorname {PolyLog}\left (4,1+\frac {e}{d (f+g x)}\right )}{d g} \] Output:

-4*b*e*p*ln(-e/d/(g*x+f))*(a+b*ln(c*(d+e/(g*x+f))^p))^3/d/g+(e+d*(g*x+f))* 
(a+b*ln(c*(d+e/(g*x+f))^p))^4/d/g-12*b^2*e*p^2*(a+b*ln(c*(d+e/(g*x+f))^p)) 
^2*polylog(2,1+e/d/(g*x+f))/d/g+24*b^3*e*p^3*(a+b*ln(c*(d+e/(g*x+f))^p))*p 
olylog(3,1+e/d/(g*x+f))/d/g-24*b^4*e*p^4*polylog(4,1+e/d/(g*x+f))/d/g
 

Mathematica [B] (verified)

Leaf count is larger than twice the leaf count of optimal. \(743\) vs. \(2(221)=442\).

Time = 1.47 (sec) , antiderivative size = 743, normalized size of antiderivative = 3.36 \[ \int \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^4 \, dx =\text {Too large to display} \] Input:

Integrate[(a + b*Log[c*(d + e/(f + g*x))^p])^4,x]
 

Output:

(-4*b*p*(d*f*Log[f + g*x] - (e + d*f)*Log[e + d*f + d*g*x] - d*g*x*Log[(e 
+ d*f + d*g*x)/(f + g*x)])*(a - b*p*Log[d + e/(f + g*x)] + b*Log[c*(d + e/ 
(f + g*x))^p])^3 + d*g*x*(a - b*p*Log[d + e/(f + g*x)] + b*Log[c*(d + e/(f 
 + g*x))^p])^4 - 6*b^2*p^2*(a - b*p*Log[d + e/(f + g*x)] + b*Log[c*(d + e/ 
(f + g*x))^p])^2*(d*f*Log[-(e/(d*f + d*g*x))]^2 + 2*d*f*Log[-(e/(d*f + d*g 
*x))]*Log[(e + d*f + d*g*x)/e] - 2*d*f*Log[-(e/(d*f + d*g*x))]*Log[(e + d* 
f + d*g*x)/(f + g*x)] - 2*(e + d*f)*Log[e + d*f + d*g*x]*Log[(e + d*f + d* 
g*x)/(f + g*x)] - d*g*x*Log[(e + d*f + d*g*x)/(f + g*x)]^2 - 2*d*f*PolyLog 
[2, -((d*(f + g*x))/e)] - (e + d*f)*((2*Log[-((d*(f + g*x))/e)] - Log[e + 
d*f + d*g*x])*Log[e + d*f + d*g*x] + 2*PolyLog[2, (e + d*f + d*g*x)/e])) + 
 4*b^3*p^3*(a - b*p*Log[d + e/(f + g*x)] + b*Log[c*(d + e/(f + g*x))^p])*( 
Log[d + e/(f + g*x)]^2*(-3*e*Log[-(e/(d*f + d*g*x))] + (e + d*f + d*g*x)*L 
og[d + e/(f + g*x)]) - 6*e*Log[d + e/(f + g*x)]*PolyLog[2, 1 + e/(d*f + d* 
g*x)] + 6*e*PolyLog[3, 1 + e/(d*f + d*g*x)]) - b^4*p^4*(4*e*Log[-(e/(d*f + 
 d*g*x))]*Log[d + e/(f + g*x)]^3 - e*Log[d + e/(f + g*x)]^4 - d*f*Log[d + 
e/(f + g*x)]^4 - d*g*x*Log[d + e/(f + g*x)]^4 + 12*e*Log[d + e/(f + g*x)]^ 
2*PolyLog[2, 1 + e/(d*f + d*g*x)] - 24*e*Log[d + e/(f + g*x)]*PolyLog[3, 1 
 + e/(d*f + d*g*x)] + 24*e*PolyLog[4, 1 + e/(d*f + d*g*x)]))/(d*g)
 

Rubi [A] (verified)

Time = 1.21 (sec) , antiderivative size = 196, normalized size of antiderivative = 0.89, number of steps used = 9, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.364, Rules used = {2933, 2899, 2904, 2843, 2881, 2821, 2830, 7143}

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 \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^4 \, dx\)

\(\Big \downarrow \) 2933

\(\displaystyle \frac {\int \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^4d(f+g x)}{g}\)

\(\Big \downarrow \) 2899

\(\displaystyle \frac {\frac {4 b e p \int \frac {\left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^3}{f+g x}d(f+g x)}{d}+\frac {(d (f+g x)+e) \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^4}{d}}{g}\)

\(\Big \downarrow \) 2904

\(\displaystyle \frac {\frac {(d (f+g x)+e) \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^4}{d}-\frac {4 b e p \int (f+g x) \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^3d\frac {1}{f+g x}}{d}}{g}\)

\(\Big \downarrow \) 2843

\(\displaystyle \frac {\frac {(d (f+g x)+e) \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^4}{d}-\frac {4 b e p \left (\log \left (-\frac {e}{d (f+g x)}\right ) \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^3-3 b e p \int \frac {\log \left (-\frac {e}{d (f+g x)}\right ) \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^2}{d+\frac {e}{f+g x}}d\frac {1}{f+g x}\right )}{d}}{g}\)

\(\Big \downarrow \) 2881

\(\displaystyle \frac {\frac {(d (f+g x)+e) \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^4}{d}-\frac {4 b e p \left (\log \left (-\frac {e}{d (f+g x)}\right ) \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^3-3 b p \int (f+g x) \log \left (\frac {d-f-g x}{d}\right ) \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^2d\left (d+\frac {e}{f+g x}\right )\right )}{d}}{g}\)

\(\Big \downarrow \) 2821

\(\displaystyle \frac {\frac {(d (f+g x)+e) \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^4}{d}-\frac {4 b e p \left (\log \left (-\frac {e}{d (f+g x)}\right ) \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^3-3 b p \left (2 b p \int (f+g x) \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right ) \operatorname {PolyLog}\left (2,\frac {d+\frac {e}{f+g x}}{d}\right )d\left (d+\frac {e}{f+g x}\right )-\operatorname {PolyLog}\left (2,\frac {d+\frac {e}{f+g x}}{d}\right ) \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^2\right )\right )}{d}}{g}\)

\(\Big \downarrow \) 2830

\(\displaystyle \frac {\frac {(d (f+g x)+e) \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^4}{d}-\frac {4 b e p \left (\log \left (-\frac {e}{d (f+g x)}\right ) \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^3-3 b p \left (2 b p \left (\operatorname {PolyLog}\left (3,\frac {d+\frac {e}{f+g x}}{d}\right ) \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )-b p \int (f+g x) \operatorname {PolyLog}\left (3,\frac {d+\frac {e}{f+g x}}{d}\right )d\left (d+\frac {e}{f+g x}\right )\right )-\operatorname {PolyLog}\left (2,\frac {d+\frac {e}{f+g x}}{d}\right ) \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^2\right )\right )}{d}}{g}\)

\(\Big \downarrow \) 7143

\(\displaystyle \frac {\frac {(d (f+g x)+e) \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^4}{d}-\frac {4 b e p \left (\log \left (-\frac {e}{d (f+g x)}\right ) \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^3-3 b p \left (2 b p \left (\operatorname {PolyLog}\left (3,\frac {d+\frac {e}{f+g x}}{d}\right ) \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )-b p \operatorname {PolyLog}\left (4,\frac {d+\frac {e}{f+g x}}{d}\right )\right )-\operatorname {PolyLog}\left (2,\frac {d+\frac {e}{f+g x}}{d}\right ) \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^2\right )\right )}{d}}{g}\)

Input:

Int[(a + b*Log[c*(d + e/(f + g*x))^p])^4,x]
 

Output:

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

Defintions of rubi rules used

rule 2821
Int[(Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b 
_.))^(p_.))/(x_), x_Symbol] :> Simp[(-PolyLog[2, (-d)*f*x^m])*((a + b*Log[c 
*x^n])^p/m), x] + Simp[b*n*(p/m)   Int[PolyLog[2, (-d)*f*x^m]*((a + b*Log[c 
*x^n])^(p - 1)/x), x], x] /; FreeQ[{a, b, c, d, e, f, m, n}, x] && IGtQ[p, 
0] && EqQ[d*e, 1]
 

rule 2830
Int[(((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*PolyLog[k_, (e_.)*(x_)^(q_ 
.)])/(x_), x_Symbol] :> Simp[PolyLog[k + 1, e*x^q]*((a + b*Log[c*x^n])^p/q) 
, x] - Simp[b*n*(p/q)   Int[PolyLog[k + 1, e*x^q]*((a + b*Log[c*x^n])^(p - 
1)/x), x], x] /; FreeQ[{a, b, c, e, k, n, q}, x] && GtQ[p, 0]
 

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

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

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

rule 2904
Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_)^(n_))^(p_.)]*(b_.))^(q_.)*(x_)^(m 
_.), x_Symbol] :> Simp[1/n   Subst[Int[x^(Simplify[(m + 1)/n] - 1)*(a + b*L 
og[c*(d + e*x)^p])^q, x], x, x^n], x] /; FreeQ[{a, b, c, d, e, m, n, p, q}, 
 x] && IntegerQ[Simplify[(m + 1)/n]] && (GtQ[(m + 1)/n, 0] || IGtQ[q, 0]) & 
&  !(EqQ[q, 1] && ILtQ[n, 0] && IGtQ[m, 0])
 

rule 2933
Int[((a_.) + Log[(c_.)*((d_) + (e_.)*((f_.) + (g_.)*(x_))^(n_))^(p_.)]*(b_. 
))^(q_.), x_Symbol] :> Simp[1/g   Subst[Int[(a + b*Log[c*(d + e*x^n)^p])^q, 
 x], x, f + g*x], x] /; FreeQ[{a, b, c, d, e, f, g, n, p}, x] && IGtQ[q, 0] 
 && (EqQ[q, 1] || IntegerQ[n])
 

rule 7143
Int[PolyLog[n_, (c_.)*((a_.) + (b_.)*(x_))^(p_.)]/((d_.) + (e_.)*(x_)), x_S 
ymbol] :> Simp[PolyLog[n + 1, c*(a + b*x)^p]/(e*p), x] /; FreeQ[{a, b, c, d 
, e, n, p}, x] && EqQ[b*d, a*e]
 
Maple [F]

\[\int {\left (a +b \ln \left (c \left (d +\frac {e}{g x +f}\right )^{p}\right )\right )}^{4}d x\]

Input:

int((a+b*ln(c*(d+e/(g*x+f))^p))^4,x)
 

Output:

int((a+b*ln(c*(d+e/(g*x+f))^p))^4,x)
 

Fricas [F]

\[ \int \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^4 \, dx=\int { {\left (b \log \left (c {\left (d + \frac {e}{g x + f}\right )}^{p}\right ) + a\right )}^{4} \,d x } \] Input:

integrate((a+b*log(c*(d+e/(g*x+f))^p))^4,x, algorithm="fricas")
 

Output:

integral(b^4*log(c*((d*g*x + d*f + e)/(g*x + f))^p)^4 + 4*a*b^3*log(c*((d* 
g*x + d*f + e)/(g*x + f))^p)^3 + 6*a^2*b^2*log(c*((d*g*x + d*f + e)/(g*x + 
 f))^p)^2 + 4*a^3*b*log(c*((d*g*x + d*f + e)/(g*x + f))^p) + a^4, x)
 

Sympy [F]

\[ \int \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^4 \, dx=\int \left (a + b \log {\left (c \left (d + \frac {e}{f + g x}\right )^{p} \right )}\right )^{4}\, dx \] Input:

integrate((a+b*ln(c*(d+e/(g*x+f))**p))**4,x)
 

Output:

Integral((a + b*log(c*(d + e/(f + g*x))**p))**4, x)
 

Maxima [F]

\[ \int \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^4 \, dx=\int { {\left (b \log \left (c {\left (d + \frac {e}{g x + f}\right )}^{p}\right ) + a\right )}^{4} \,d x } \] Input:

integrate((a+b*log(c*(d+e/(g*x+f))^p))^4,x, algorithm="maxima")
 

Output:

-4*a^3*b*e*g*p*(f*log(g*x + f)/(e*g^2) - (d*f + e)*log(d*g*x + d*f + e)/(d 
*e*g^2)) + 4*a^3*b*x*log(c*(d + e/(g*x + f))^p) + a^4*x + (b^4*d*g*x*log(( 
d*g*x + d*f + e)^p)^4 - 4*(b^4*d*f*p*log(g*x + f) + b^4*d*g*x*log((g*x + f 
)^p) - (d*f*p + e*p)*b^4*log(d*g*x + d*f + e) - (b^4*d*g*log(c) + a*b^3*d* 
g)*x)*log((d*g*x + d*f + e)^p)^3)/(d*g) + integrate(((d*f + e)*b^4*log(c)^ 
4 + 4*(d*f + e)*a*b^3*log(c)^3 + 6*(d*f + e)*a^2*b^2*log(c)^2 + (b^4*d*g*x 
 + (d*f + e)*b^4)*log((g*x + f)^p)^4 - 4*((d*f + e)*b^4*log(c) + (d*f + e) 
*a*b^3 + (b^4*d*g*log(c) + a*b^3*d*g)*x)*log((g*x + f)^p)^3 + 6*(2*b^4*d*f 
*p^2*log(g*x + f) + (d*f + e)*b^4*log(c)^2 - 2*(d*f*p^2 + e*p^2)*b^4*log(d 
*g*x + d*f + e) + 2*(d*f + e)*a*b^3*log(c) + (d*f + e)*a^2*b^2 + (b^4*d*g* 
x + (d*f + e)*b^4)*log((g*x + f)^p)^2 + (a^2*b^2*d*g - 2*(d*g*p - d*g*log( 
c))*a*b^3 - (2*d*g*p*log(c) - d*g*log(c)^2)*b^4)*x - 2*((d*f + e)*b^4*log( 
c) + (d*f + e)*a*b^3 + (a*b^3*d*g - (d*g*p - d*g*log(c))*b^4)*x)*log((g*x 
+ f)^p))*log((d*g*x + d*f + e)^p)^2 + 6*((d*f + e)*b^4*log(c)^2 + 2*(d*f + 
 e)*a*b^3*log(c) + (d*f + e)*a^2*b^2 + (b^4*d*g*log(c)^2 + 2*a*b^3*d*g*log 
(c) + a^2*b^2*d*g)*x)*log((g*x + f)^p)^2 + (b^4*d*g*log(c)^4 + 4*a*b^3*d*g 
*log(c)^3 + 6*a^2*b^2*d*g*log(c)^2)*x + 4*((d*f + e)*b^4*log(c)^3 + 3*(d*f 
 + e)*a*b^3*log(c)^2 + 3*(d*f + e)*a^2*b^2*log(c) - (b^4*d*g*x + (d*f + e) 
*b^4)*log((g*x + f)^p)^3 + 3*((d*f + e)*b^4*log(c) + (d*f + e)*a*b^3 + (b^ 
4*d*g*log(c) + a*b^3*d*g)*x)*log((g*x + f)^p)^2 + (b^4*d*g*log(c)^3 + 3...
                                                                                    
                                                                                    
 

Giac [F]

\[ \int \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^4 \, dx=\int { {\left (b \log \left (c {\left (d + \frac {e}{g x + f}\right )}^{p}\right ) + a\right )}^{4} \,d x } \] Input:

integrate((a+b*log(c*(d+e/(g*x+f))^p))^4,x, algorithm="giac")
 

Output:

integrate((b*log(c*(d + e/(g*x + f))^p) + a)^4, x)
 

Mupad [F(-1)]

Timed out. \[ \int \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^4 \, dx=\int {\left (a+b\,\ln \left (c\,{\left (d+\frac {e}{f+g\,x}\right )}^p\right )\right )}^4 \,d x \] Input:

int((a + b*log(c*(d + e/(f + g*x))^p))^4,x)
 

Output:

int((a + b*log(c*(d + e/(f + g*x))^p))^4, x)
 

Reduce [F]

\[ \int \left (a+b \log \left (c \left (d+\frac {e}{f+g x}\right )^p\right )\right )^4 \, dx=\frac {4 \left (\int \frac {\mathrm {log}\left (\frac {\left (d g x +d f +e \right )^{p} c}{\left (g x +f \right )^{p}}\right )^{3} x}{d \,g^{2} x^{2}+2 d f g x +d \,f^{2}+e g x +e f}d x \right ) b^{4} d e \,g^{2} p +12 \left (\int \frac {\mathrm {log}\left (\frac {\left (d g x +d f +e \right )^{p} c}{\left (g x +f \right )^{p}}\right )^{2} x}{d \,g^{2} x^{2}+2 d f g x +d \,f^{2}+e g x +e f}d x \right ) a \,b^{3} d e \,g^{2} p +12 \left (\int \frac {\mathrm {log}\left (\frac {\left (d g x +d f +e \right )^{p} c}{\left (g x +f \right )^{p}}\right ) x}{d \,g^{2} x^{2}+2 d f g x +d \,f^{2}+e g x +e f}d x \right ) a^{2} b^{2} d e \,g^{2} p +4 \,\mathrm {log}\left (g x +f \right ) a^{3} b e p +\mathrm {log}\left (\frac {\left (d g x +d f +e \right )^{p} c}{\left (g x +f \right )^{p}}\right )^{4} b^{4} d g x +4 \mathrm {log}\left (\frac {\left (d g x +d f +e \right )^{p} c}{\left (g x +f \right )^{p}}\right )^{3} a \,b^{3} d g x +6 \mathrm {log}\left (\frac {\left (d g x +d f +e \right )^{p} c}{\left (g x +f \right )^{p}}\right )^{2} a^{2} b^{2} d g x +4 \,\mathrm {log}\left (\frac {\left (d g x +d f +e \right )^{p} c}{\left (g x +f \right )^{p}}\right ) a^{3} b d f +4 \,\mathrm {log}\left (\frac {\left (d g x +d f +e \right )^{p} c}{\left (g x +f \right )^{p}}\right ) a^{3} b d g x +4 \,\mathrm {log}\left (\frac {\left (d g x +d f +e \right )^{p} c}{\left (g x +f \right )^{p}}\right ) a^{3} b e +a^{4} d g x}{d g} \] Input:

int((a+b*log(c*(d+e/(g*x+f))^p))^4,x)
 

Output:

(4*int((log(((d*f + d*g*x + e)**p*c)/(f + g*x)**p)**3*x)/(d*f**2 + 2*d*f*g 
*x + d*g**2*x**2 + e*f + e*g*x),x)*b**4*d*e*g**2*p + 12*int((log(((d*f + d 
*g*x + e)**p*c)/(f + g*x)**p)**2*x)/(d*f**2 + 2*d*f*g*x + d*g**2*x**2 + e* 
f + e*g*x),x)*a*b**3*d*e*g**2*p + 12*int((log(((d*f + d*g*x + e)**p*c)/(f 
+ g*x)**p)*x)/(d*f**2 + 2*d*f*g*x + d*g**2*x**2 + e*f + e*g*x),x)*a**2*b** 
2*d*e*g**2*p + 4*log(f + g*x)*a**3*b*e*p + log(((d*f + d*g*x + e)**p*c)/(f 
 + g*x)**p)**4*b**4*d*g*x + 4*log(((d*f + d*g*x + e)**p*c)/(f + g*x)**p)** 
3*a*b**3*d*g*x + 6*log(((d*f + d*g*x + e)**p*c)/(f + g*x)**p)**2*a**2*b**2 
*d*g*x + 4*log(((d*f + d*g*x + e)**p*c)/(f + g*x)**p)*a**3*b*d*f + 4*log(( 
(d*f + d*g*x + e)**p*c)/(f + g*x)**p)*a**3*b*d*g*x + 4*log(((d*f + d*g*x + 
 e)**p*c)/(f + g*x)**p)*a**3*b*e + a**4*d*g*x)/(d*g)