3.7.99 \(\int \frac {16-48 \log (\frac {-32-7 x}{4+x})+48 \log ^2(\frac {-32-7 x}{4+x})-16 \log ^3(\frac {-32-7 x}{4+x})}{128+60 x+7 x^2} \, dx\) [699]

3.7.99.1 Optimal result
3.7.99.2 Mathematica [B] (verified)
3.7.99.3 Rubi [A] (warning: unable to verify)
3.7.99.4 Maple [B] (verified)
3.7.99.5 Fricas [B] (verification not implemented)
3.7.99.6 Sympy [B] (verification not implemented)
3.7.99.7 Maxima [B] (verification not implemented)
3.7.99.8 Giac [B] (verification not implemented)
3.7.99.9 Mupad [B] (verification not implemented)

3.7.99.1 Optimal result

Integrand size = 61, antiderivative size = 16 \begin {dmath*} \int \frac {16-48 \log \left (\frac {-32-7 x}{4+x}\right )+48 \log ^2\left (\frac {-32-7 x}{4+x}\right )-16 \log ^3\left (\frac {-32-7 x}{4+x}\right )}{128+60 x+7 x^2} \, dx=261+\left (-1+\log \left (-8+\frac {x}{4+x}\right )\right )^4 \end {dmath*}

output
(ln(x/(4+x)-8)-1)^4+261
 
3.7.99.2 Mathematica [B] (verified)

Leaf count is larger than twice the leaf count of optimal. \(77\) vs. \(2(16)=32\).

Time = 2.29 (sec) , antiderivative size = 77, normalized size of antiderivative = 4.81 \begin {dmath*} \int \frac {16-48 \log \left (\frac {-32-7 x}{4+x}\right )+48 \log ^2\left (\frac {-32-7 x}{4+x}\right )-16 \log ^3\left (\frac {-32-7 x}{4+x}\right )}{128+60 x+7 x^2} \, dx=-16 \left (\frac {1}{4} \log \left (-\frac {32+7 x}{4+x}\right )-\frac {3}{8} \log ^2\left (-\frac {32+7 x}{4+x}\right )+\frac {1}{4} \log ^3\left (-\frac {32+7 x}{4+x}\right )-\frac {1}{16} \log ^4\left (-\frac {32+7 x}{4+x}\right )\right ) \end {dmath*}

input
Integrate[(16 - 48*Log[(-32 - 7*x)/(4 + x)] + 48*Log[(-32 - 7*x)/(4 + x)]^ 
2 - 16*Log[(-32 - 7*x)/(4 + x)]^3)/(128 + 60*x + 7*x^2),x]
 
output
-16*(Log[-((32 + 7*x)/(4 + x))]/4 - (3*Log[-((32 + 7*x)/(4 + x))]^2)/8 + L 
og[-((32 + 7*x)/(4 + x))]^3/4 - Log[-((32 + 7*x)/(4 + x))]^4/16)
 
3.7.99.3 Rubi [A] (warning: unable to verify)

Time = 0.40 (sec) , antiderivative size = 13, normalized size of antiderivative = 0.81, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.098, Rules used = {7239, 27, 2975, 2962, 2739, 15}

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 {-16 \log ^3\left (\frac {-7 x-32}{x+4}\right )+48 \log ^2\left (\frac {-7 x-32}{x+4}\right )-48 \log \left (\frac {-7 x-32}{x+4}\right )+16}{7 x^2+60 x+128} \, dx\)

\(\Big \downarrow \) 7239

\(\displaystyle \int \frac {16 \left (1-\log \left (-\frac {7 x+32}{x+4}\right )\right )^3}{7 x^2+60 x+128}dx\)

\(\Big \downarrow \) 27

\(\displaystyle 16 \int \frac {\left (1-\log \left (-\frac {7 x+32}{x+4}\right )\right )^3}{7 x^2+60 x+128}dx\)

\(\Big \downarrow \) 2975

\(\displaystyle 16 \int \frac {\left (1-\log \left (-\frac {7 x+32}{x+4}\right )\right )^3}{(x+4) (7 x+32)}dx\)

\(\Big \downarrow \) 2962

\(\displaystyle -4 \int \frac {(x+4) \left (1-\log \left (-\frac {7 x+32}{x+4}\right )\right )^3}{7 x+32}d\frac {7 x+32}{x+4}\)

\(\Big \downarrow \) 2739

\(\displaystyle 4 \int \frac {(7 x+32)^3}{(x+4)^3}d\left (1-\log \left (-\frac {7 x+32}{x+4}\right )\right )\)

\(\Big \downarrow \) 15

\(\displaystyle \frac {(7 x+32)^4}{(x+4)^4}\)

input
Int[(16 - 48*Log[(-32 - 7*x)/(4 + x)] + 48*Log[(-32 - 7*x)/(4 + x)]^2 - 16 
*Log[(-32 - 7*x)/(4 + x)]^3)/(128 + 60*x + 7*x^2),x]
 
output
(32 + 7*x)^4/(4 + x)^4
 

3.7.99.3.1 Defintions of rubi rules used

rule 15
Int[(a_.)*(x_)^(m_.), x_Symbol] :> Simp[a*(x^(m + 1)/(m + 1)), x] /; FreeQ[ 
{a, m}, x] && NeQ[m, -1]
 

rule 27
Int[(a_)*(Fx_), x_Symbol] :> Simp[a   Int[Fx, x], x] /; FreeQ[a, x] &&  !Ma 
tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
 

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

rule 2962
Int[((A_.) + Log[(e_.)*((a_.) + (b_.)*(x_))^(n_.)*((c_.) + (d_.)*(x_))^(mn_ 
)]*(B_.))^(p_.)*((f_.) + (g_.)*(x_))^(m_.)*((h_.) + (i_.)*(x_))^(q_.), x_Sy 
mbol] :> Simp[(b*c - a*d)^(m + q + 1)*(g/b)^m*(i/d)^q   Subst[Int[x^m*((A + 
 B*Log[e*x^n])^p/(b - d*x)^(m + q + 2)), x], x, (a + b*x)/(c + d*x)], x] /; 
 FreeQ[{a, b, c, d, e, f, g, h, i, A, B, n, p}, x] && EqQ[n + mn, 0] && IGt 
Q[n, 0] && NeQ[b*c - a*d, 0] && EqQ[b*f - a*g, 0] && EqQ[d*h - c*i, 0] && I 
ntegersQ[m, q]
 

rule 2975
Int[((A_.) + Log[(e_.)*((a_.) + (b_.)*(x_))^(n_.)*((c_.) + (d_.)*(x_))^(mn_ 
)]*(B_.))^(p_.)*((f_.) + (g_.)*(x_) + (h_.)*(x_)^2)^(m_.), x_Symbol] :> Sim 
p[h^m/(b^m*d^m)   Int[(a + b*x)^m*(c + d*x)^m*(A + B*Log[e*((a + b*x)^n/(c 
+ d*x)^n)])^p, x], x] /; FreeQ[{a, b, c, d, e, f, g, h, A, B, n, p}, x] && 
EqQ[n + mn, 0] && IGtQ[n, 0] && EqQ[b*d*f - a*c*h, 0] && EqQ[b*d*g - h*(b*c 
 + a*d), 0] && IntegerQ[m]
 

rule 7239
Int[u_, x_Symbol] :> With[{v = SimplifyIntegrand[u, x]}, Int[v, x] /; Simpl 
erIntegrandQ[v, u, x]]
 
3.7.99.4 Maple [B] (verified)

Leaf count of result is larger than twice the leaf count of optimal. \(53\) vs. \(2(16)=32\).

Time = 2.35 (sec) , antiderivative size = 54, normalized size of antiderivative = 3.38

method result size
derivativedivides \(\ln \left (-7-\frac {4}{4+x}\right )^{4}-4 \ln \left (-7-\frac {4}{4+x}\right )^{3}+6 \ln \left (-7-\frac {4}{4+x}\right )^{2}-4 \ln \left (-7-\frac {4}{4+x}\right )\) \(54\)
default \(\ln \left (-7-\frac {4}{4+x}\right )^{4}-4 \ln \left (-7-\frac {4}{4+x}\right )^{3}+6 \ln \left (-7-\frac {4}{4+x}\right )^{2}-4 \ln \left (-7-\frac {4}{4+x}\right )\) \(54\)
risch \(-4 \ln \left (7 x +32\right )+4 \ln \left (4+x \right )+6 \ln \left (-7-\frac {4}{4+x}\right )^{2}-4 \ln \left (-7-\frac {4}{4+x}\right )^{3}+\ln \left (-7-\frac {4}{4+x}\right )^{4}\) \(56\)
parts \(-4 \ln \left (7 x +32\right )+4 \ln \left (4+x \right )+6 \ln \left (-7-\frac {4}{4+x}\right )^{2}-4 \ln \left (-7-\frac {4}{4+x}\right )^{3}+\ln \left (-7-\frac {4}{4+x}\right )^{4}\) \(56\)
norman \(\ln \left (\frac {-7 x -32}{4+x}\right )^{4}-4 \ln \left (\frac {-7 x -32}{4+x}\right )+6 \ln \left (\frac {-7 x -32}{4+x}\right )^{2}-4 \ln \left (\frac {-7 x -32}{4+x}\right )^{3}\) \(62\)

input
int((-16*ln((-7*x-32)/(4+x))^3+48*ln((-7*x-32)/(4+x))^2-48*ln((-7*x-32)/(4 
+x))+16)/(7*x^2+60*x+128),x,method=_RETURNVERBOSE)
 
output
ln(-7-4/(4+x))^4-4*ln(-7-4/(4+x))^3+6*ln(-7-4/(4+x))^2-4*ln(-7-4/(4+x))
 
3.7.99.5 Fricas [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 65 vs. \(2 (16) = 32\).

Time = 0.26 (sec) , antiderivative size = 65, normalized size of antiderivative = 4.06 \begin {dmath*} \int \frac {16-48 \log \left (\frac {-32-7 x}{4+x}\right )+48 \log ^2\left (\frac {-32-7 x}{4+x}\right )-16 \log ^3\left (\frac {-32-7 x}{4+x}\right )}{128+60 x+7 x^2} \, dx=\log \left (-\frac {7 \, x + 32}{x + 4}\right )^{4} - 4 \, \log \left (-\frac {7 \, x + 32}{x + 4}\right )^{3} + 6 \, \log \left (-\frac {7 \, x + 32}{x + 4}\right )^{2} - 4 \, \log \left (-\frac {7 \, x + 32}{x + 4}\right ) \end {dmath*}

input
integrate((-16*log((-7*x-32)/(4+x))^3+48*log((-7*x-32)/(4+x))^2-48*log((-7 
*x-32)/(4+x))+16)/(7*x^2+60*x+128),x, algorithm=\
 
output
log(-(7*x + 32)/(x + 4))^4 - 4*log(-(7*x + 32)/(x + 4))^3 + 6*log(-(7*x + 
32)/(x + 4))^2 - 4*log(-(7*x + 32)/(x + 4))
 
3.7.99.6 Sympy [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 58 vs. \(2 (12) = 24\).

Time = 0.11 (sec) , antiderivative size = 58, normalized size of antiderivative = 3.62 \begin {dmath*} \int \frac {16-48 \log \left (\frac {-32-7 x}{4+x}\right )+48 \log ^2\left (\frac {-32-7 x}{4+x}\right )-16 \log ^3\left (\frac {-32-7 x}{4+x}\right )}{128+60 x+7 x^2} \, dx=\log {\left (\frac {- 7 x - 32}{x + 4} \right )}^{4} - 4 \log {\left (\frac {- 7 x - 32}{x + 4} \right )}^{3} + 6 \log {\left (\frac {- 7 x - 32}{x + 4} \right )}^{2} + 4 \log {\left (x + 4 \right )} - 4 \log {\left (x + \frac {32}{7} \right )} \end {dmath*}

input
integrate((-16*ln((-7*x-32)/(4+x))**3+48*ln((-7*x-32)/(4+x))**2-48*ln((-7* 
x-32)/(4+x))+16)/(7*x**2+60*x+128),x)
 
output
log((-7*x - 32)/(x + 4))**4 - 4*log((-7*x - 32)/(x + 4))**3 + 6*log((-7*x 
- 32)/(x + 4))**2 + 4*log(x + 4) - 4*log(x + 32/7)
 
3.7.99.7 Maxima [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 411 vs. \(2 (16) = 32\).

Time = 0.22 (sec) , antiderivative size = 411, normalized size of antiderivative = 25.69 \begin {dmath*} \int \frac {16-48 \log \left (\frac {-32-7 x}{4+x}\right )+48 \log ^2\left (\frac {-32-7 x}{4+x}\right )-16 \log ^3\left (\frac {-32-7 x}{4+x}\right )}{128+60 x+7 x^2} \, dx=-\log \left (7 \, x + 32\right )^{4} + 4 \, \log \left (7 \, x + 32\right )^{3} \log \left (x + 4\right ) - 6 \, \log \left (7 \, x + 32\right )^{2} \log \left (x + 4\right )^{2} + 4 \, \log \left (7 \, x + 32\right ) \log \left (x + 4\right )^{3} - \log \left (x + 4\right )^{4} + 4 \, {\left (\log \left (7 \, x + 32\right ) - \log \left (x + 4\right )\right )} \log \left (-\frac {7 \, x}{x + 4} - \frac {32}{x + 4}\right )^{3} - 4 \, \log \left (7 \, x + 32\right )^{3} + 12 \, \log \left (7 \, x + 32\right )^{2} \log \left (x + 4\right ) - 12 \, \log \left (7 \, x + 32\right ) \log \left (x + 4\right )^{2} + 4 \, \log \left (x + 4\right )^{3} - 6 \, {\left (\log \left (7 \, x + 32\right )^{2} - 2 \, \log \left (7 \, x + 32\right ) \log \left (x + 4\right ) + \log \left (x + 4\right )^{2}\right )} \log \left (-\frac {7 \, x}{x + 4} - \frac {32}{x + 4}\right )^{2} - 12 \, {\left (\log \left (7 \, x + 32\right ) - \log \left (x + 4\right )\right )} \log \left (-\frac {7 \, x}{x + 4} - \frac {32}{x + 4}\right )^{2} - 6 \, \log \left (7 \, x + 32\right )^{2} + 12 \, \log \left (7 \, x + 32\right ) \log \left (x + 4\right ) - 6 \, \log \left (x + 4\right )^{2} + 4 \, {\left (\log \left (7 \, x + 32\right )^{3} - 3 \, \log \left (7 \, x + 32\right )^{2} \log \left (x + 4\right ) + 3 \, \log \left (7 \, x + 32\right ) \log \left (x + 4\right )^{2} - \log \left (x + 4\right )^{3}\right )} \log \left (-\frac {7 \, x}{x + 4} - \frac {32}{x + 4}\right ) + 12 \, {\left (\log \left (7 \, x + 32\right )^{2} - 2 \, \log \left (7 \, x + 32\right ) \log \left (x + 4\right ) + \log \left (x + 4\right )^{2}\right )} \log \left (-\frac {7 \, x}{x + 4} - \frac {32}{x + 4}\right ) + 12 \, {\left (\log \left (7 \, x + 32\right ) - \log \left (x + 4\right )\right )} \log \left (-\frac {7 \, x}{x + 4} - \frac {32}{x + 4}\right ) - 4 \, \log \left (7 \, x + 32\right ) + 4 \, \log \left (x + 4\right ) \end {dmath*}

input
integrate((-16*log((-7*x-32)/(4+x))^3+48*log((-7*x-32)/(4+x))^2-48*log((-7 
*x-32)/(4+x))+16)/(7*x^2+60*x+128),x, algorithm=\
 
output
-log(7*x + 32)^4 + 4*log(7*x + 32)^3*log(x + 4) - 6*log(7*x + 32)^2*log(x 
+ 4)^2 + 4*log(7*x + 32)*log(x + 4)^3 - log(x + 4)^4 + 4*(log(7*x + 32) - 
log(x + 4))*log(-7*x/(x + 4) - 32/(x + 4))^3 - 4*log(7*x + 32)^3 + 12*log( 
7*x + 32)^2*log(x + 4) - 12*log(7*x + 32)*log(x + 4)^2 + 4*log(x + 4)^3 - 
6*(log(7*x + 32)^2 - 2*log(7*x + 32)*log(x + 4) + log(x + 4)^2)*log(-7*x/( 
x + 4) - 32/(x + 4))^2 - 12*(log(7*x + 32) - log(x + 4))*log(-7*x/(x + 4) 
- 32/(x + 4))^2 - 6*log(7*x + 32)^2 + 12*log(7*x + 32)*log(x + 4) - 6*log( 
x + 4)^2 + 4*(log(7*x + 32)^3 - 3*log(7*x + 32)^2*log(x + 4) + 3*log(7*x + 
 32)*log(x + 4)^2 - log(x + 4)^3)*log(-7*x/(x + 4) - 32/(x + 4)) + 12*(log 
(7*x + 32)^2 - 2*log(7*x + 32)*log(x + 4) + log(x + 4)^2)*log(-7*x/(x + 4) 
 - 32/(x + 4)) + 12*(log(7*x + 32) - log(x + 4))*log(-7*x/(x + 4) - 32/(x 
+ 4)) - 4*log(7*x + 32) + 4*log(x + 4)
 
3.7.99.8 Giac [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 65 vs. \(2 (16) = 32\).

Time = 0.28 (sec) , antiderivative size = 65, normalized size of antiderivative = 4.06 \begin {dmath*} \int \frac {16-48 \log \left (\frac {-32-7 x}{4+x}\right )+48 \log ^2\left (\frac {-32-7 x}{4+x}\right )-16 \log ^3\left (\frac {-32-7 x}{4+x}\right )}{128+60 x+7 x^2} \, dx=\log \left (-\frac {7 \, x + 32}{x + 4}\right )^{4} - 4 \, \log \left (-\frac {7 \, x + 32}{x + 4}\right )^{3} + 6 \, \log \left (-\frac {7 \, x + 32}{x + 4}\right )^{2} - 4 \, \log \left (-\frac {7 \, x + 32}{x + 4}\right ) \end {dmath*}

input
integrate((-16*log((-7*x-32)/(4+x))^3+48*log((-7*x-32)/(4+x))^2-48*log((-7 
*x-32)/(4+x))+16)/(7*x^2+60*x+128),x, algorithm=\
 
output
log(-(7*x + 32)/(x + 4))^4 - 4*log(-(7*x + 32)/(x + 4))^3 + 6*log(-(7*x + 
32)/(x + 4))^2 - 4*log(-(7*x + 32)/(x + 4))
 
3.7.99.9 Mupad [B] (verification not implemented)

Time = 16.50 (sec) , antiderivative size = 61, normalized size of antiderivative = 3.81 \begin {dmath*} \int \frac {16-48 \log \left (\frac {-32-7 x}{4+x}\right )+48 \log ^2\left (\frac {-32-7 x}{4+x}\right )-16 \log ^3\left (\frac {-32-7 x}{4+x}\right )}{128+60 x+7 x^2} \, dx={\ln \left (-\frac {7\,x+32}{x+4}\right )}^4-4\,{\ln \left (-\frac {7\,x+32}{x+4}\right )}^3+6\,{\ln \left (-\frac {7\,x+32}{x+4}\right )}^2+\mathrm {atan}\left (\frac {x\,7{}\mathrm {i}}{2}+15{}\mathrm {i}\right )\,8{}\mathrm {i} \end {dmath*}

input
int(-(48*log(-(7*x + 32)/(x + 4)) - 48*log(-(7*x + 32)/(x + 4))^2 + 16*log 
(-(7*x + 32)/(x + 4))^3 - 16)/(60*x + 7*x^2 + 128),x)
 
output
atan((x*7i)/2 + 15i)*8i + 6*log(-(7*x + 32)/(x + 4))^2 - 4*log(-(7*x + 32) 
/(x + 4))^3 + log(-(7*x + 32)/(x + 4))^4