3.16.99 \(\int \frac {-12-403 x-2438 x^2-535 x^3+2360 x^4-672 x^5-128 x^6+48 x^7+e^2 (4 x^4+x^5)+e (-8 x^2-2 x^3-158 x^4+24 x^5+16 x^6)+(-16 x-204 x^2-48 x^3+32 x^4+8 x^5) \log (4+x)+(-4 x^2-x^3) \log ^2(4+x)}{4 x^4+x^5} \, dx\) [1599]

3.16.99.1 Optimal result
3.16.99.2 Mathematica [B] (verified)
3.16.99.3 Rubi [B] (verified)
3.16.99.4 Maple [B] (verified)
3.16.99.5 Fricas [B] (verification not implemented)
3.16.99.6 Sympy [B] (verification not implemented)
3.16.99.7 Maxima [B] (verification not implemented)
3.16.99.8 Giac [B] (verification not implemented)
3.16.99.9 Mupad [B] (verification not implemented)

3.16.99.1 Optimal result

Integrand size = 135, antiderivative size = 24 \[ \int \frac {-12-403 x-2438 x^2-535 x^3+2360 x^4-672 x^5-128 x^6+48 x^7+e^2 \left (4 x^4+x^5\right )+e \left (-8 x^2-2 x^3-158 x^4+24 x^5+16 x^6\right )+\left (-16 x-204 x^2-48 x^3+32 x^4+8 x^5\right ) \log (4+x)+\left (-4 x^2-x^3\right ) \log ^2(4+x)}{4 x^4+x^5} \, dx=\frac {\left ((5-2 x)^2+\frac {1}{x}+e x+\log (4+x)\right )^2}{x} \]

output
(x*exp(1)+ln(4+x)+(5-2*x)^2+1/x)^2/x
 
3.16.99.2 Mathematica [B] (verified)

Leaf count is larger than twice the leaf count of optimal. \(79\) vs. \(2(24)=48\).

Time = 0.07 (sec) , antiderivative size = 79, normalized size of antiderivative = 3.29 \[ \int \frac {-12-403 x-2438 x^2-535 x^3+2360 x^4-672 x^5-128 x^6+48 x^7+e^2 \left (4 x^4+x^5\right )+e \left (-8 x^2-2 x^3-158 x^4+24 x^5+16 x^6\right )+\left (-16 x-204 x^2-48 x^3+32 x^4+8 x^5\right ) \log (4+x)+\left (-4 x^2-x^3\right ) \log ^2(4+x)}{4 x^4+x^5} \, dx=\frac {1}{x^3}+\frac {50}{x^2}+\frac {585+2 e}{x}+\left (600-40 e+e^2\right ) x+8 (-20+e) x^2+16 x^3+2 (-20+e) \log (4+x)+\frac {2 \left (1+25 x+4 x^3\right ) \log (4+x)}{x^2}+\frac {\log ^2(4+x)}{x} \]

input
Integrate[(-12 - 403*x - 2438*x^2 - 535*x^3 + 2360*x^4 - 672*x^5 - 128*x^6 
 + 48*x^7 + E^2*(4*x^4 + x^5) + E*(-8*x^2 - 2*x^3 - 158*x^4 + 24*x^5 + 16* 
x^6) + (-16*x - 204*x^2 - 48*x^3 + 32*x^4 + 8*x^5)*Log[4 + x] + (-4*x^2 - 
x^3)*Log[4 + x]^2)/(4*x^4 + x^5),x]
 
output
x^(-3) + 50/x^2 + (585 + 2*E)/x + (600 - 40*E + E^2)*x + 8*(-20 + E)*x^2 + 
 16*x^3 + 2*(-20 + E)*Log[4 + x] + (2*(1 + 25*x + 4*x^3)*Log[4 + x])/x^2 + 
 Log[4 + x]^2/x
 
3.16.99.3 Rubi [B] (verified)

Leaf count is larger than twice the leaf count of optimal. \(114\) vs. \(2(24)=48\).

Time = 1.12 (sec) , antiderivative size = 114, normalized size of antiderivative = 4.75, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.022, Rules used = {2026, 7293, 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 {48 x^7-128 x^6-672 x^5+2360 x^4-535 x^3-2438 x^2+e^2 \left (x^5+4 x^4\right )+\left (-x^3-4 x^2\right ) \log ^2(x+4)+\left (8 x^5+32 x^4-48 x^3-204 x^2-16 x\right ) \log (x+4)+e \left (16 x^6+24 x^5-158 x^4-2 x^3-8 x^2\right )-403 x-12}{x^5+4 x^4} \, dx\)

\(\Big \downarrow \) 2026

\(\displaystyle \int \frac {48 x^7-128 x^6-672 x^5+2360 x^4-535 x^3-2438 x^2+e^2 \left (x^5+4 x^4\right )+\left (-x^3-4 x^2\right ) \log ^2(x+4)+\left (8 x^5+32 x^4-48 x^3-204 x^2-16 x\right ) \log (x+4)+e \left (16 x^6+24 x^5-158 x^4-2 x^3-8 x^2\right )-403 x-12}{x^4 (x+4)}dx\)

\(\Big \downarrow \) 7293

\(\displaystyle \int \left (-\frac {12}{(x+4) x^4}+\frac {48 x^3}{x+4}-\frac {403}{(x+4) x^3}-\frac {128 x^2}{x+4}-\frac {2438}{(x+4) x^2}-\frac {\log ^2(x+4)}{x^2}+\frac {2 e \left (8 x^4+12 x^3-79 x^2-x-4\right )}{(x+4) x^2}+\frac {4 \left (2 x^4+8 x^3-12 x^2-51 x-4\right ) \log (x+4)}{(x+4) x^3}-\frac {672 x}{x+4}+\frac {2360}{x+4}-\frac {535}{(x+4) x}+e^2\right )dx\)

\(\Big \downarrow \) 2009

\(\displaystyle 16 x^3+\frac {1}{x^3}+8 e x^2-160 x^2+\frac {50}{x^2}+\frac {2 \log (x+4)}{x^2}+e^2 x-40 e x+600 x+\frac {2 e}{x}+\frac {585}{x}-\frac {1}{4} \log ^2(x+4)+\frac {(x+4) \log ^2(x+4)}{4 x}+8 (x+4) \log (x+4)+2 e \log (x+4)-72 \log (x+4)+\frac {50 \log (x+4)}{x}\)

input
Int[(-12 - 403*x - 2438*x^2 - 535*x^3 + 2360*x^4 - 672*x^5 - 128*x^6 + 48* 
x^7 + E^2*(4*x^4 + x^5) + E*(-8*x^2 - 2*x^3 - 158*x^4 + 24*x^5 + 16*x^6) + 
 (-16*x - 204*x^2 - 48*x^3 + 32*x^4 + 8*x^5)*Log[4 + x] + (-4*x^2 - x^3)*L 
og[4 + x]^2)/(4*x^4 + x^5),x]
 
output
x^(-3) + 50/x^2 + 585/x + (2*E)/x + 600*x - 40*E*x + E^2*x - 160*x^2 + 8*E 
*x^2 + 16*x^3 - 72*Log[4 + x] + 2*E*Log[4 + x] + (2*Log[4 + x])/x^2 + (50* 
Log[4 + x])/x + 8*(4 + x)*Log[4 + x] - Log[4 + x]^2/4 + ((4 + x)*Log[4 + x 
]^2)/(4*x)
 

3.16.99.3.1 Defintions of rubi rules used

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

rule 2026
Int[(Fx_.)*(Px_)^(p_.), x_Symbol] :> With[{r = Expon[Px, x, Min]}, Int[x^(p 
*r)*ExpandToSum[Px/x^r, x]^p*Fx, x] /; IGtQ[r, 0]] /; PolyQ[Px, x] && Integ 
erQ[p] &&  !MonomialQ[Px, x] && (ILtQ[p, 0] ||  !PolyQ[u, x])
 

rule 7293
Int[u_, x_Symbol] :> With[{v = ExpandIntegrand[u, x]}, Int[v, x] /; SumQ[v] 
]
 
3.16.99.4 Maple [B] (verified)

Leaf count of result is larger than twice the leaf count of optimal. \(97\) vs. \(2(25)=50\).

Time = 0.34 (sec) , antiderivative size = 98, normalized size of antiderivative = 4.08

method result size
norman \(\frac {1+x^{2} \ln \left (4+x \right )^{2}+\left (-160+8 \,{\mathrm e}\right ) x^{5}+\left (585+2 \,{\mathrm e}\right ) x^{2}+\left (600-40 \,{\mathrm e}+{\mathrm e}^{2}\right ) x^{4}+\left (-40+2 \,{\mathrm e}\right ) x^{3} \ln \left (4+x \right )+50 x +16 x^{6}+50 x^{2} \ln \left (4+x \right )+2 \ln \left (4+x \right ) x +8 \ln \left (4+x \right ) x^{4}}{x^{3}}\) \(98\)
risch \(\frac {\ln \left (4+x \right )^{2}}{x}+\frac {2 \left (4 x^{3}+25 x +1\right ) \ln \left (4+x \right )}{x^{2}}+\frac {x^{4} {\mathrm e}^{2}+8 x^{5} {\mathrm e}+16 x^{6}+2 \ln \left (-4-x \right ) x^{3} {\mathrm e}-40 x^{4} {\mathrm e}-160 x^{5}-40 \ln \left (-4-x \right ) x^{3}+600 x^{4}+2 x^{2} {\mathrm e}+585 x^{2}+50 x +1}{x^{3}}\) \(111\)
parallelrisch \(\frac {x^{4} {\mathrm e}^{2}+8 x^{5} {\mathrm e}+16 x^{6}-8 x^{3} {\mathrm e}^{2}-40 x^{4} {\mathrm e}+2 \ln \left (4+x \right ) x^{3} {\mathrm e}-160 x^{5}+8 \ln \left (4+x \right ) x^{4}+192 x^{3} {\mathrm e}+600 x^{4}-40 x^{3} \ln \left (4+x \right )+1+x^{2} \ln \left (4+x \right )^{2}+2 x^{2} {\mathrm e}-2240 x^{3}+50 x^{2} \ln \left (4+x \right )+585 x^{2}+2 \ln \left (4+x \right ) x +50 x}{x^{3}}\) \(135\)

input
int(((-x^3-4*x^2)*ln(4+x)^2+(8*x^5+32*x^4-48*x^3-204*x^2-16*x)*ln(4+x)+(x^ 
5+4*x^4)*exp(1)^2+(16*x^6+24*x^5-158*x^4-2*x^3-8*x^2)*exp(1)+48*x^7-128*x^ 
6-672*x^5+2360*x^4-535*x^3-2438*x^2-403*x-12)/(x^5+4*x^4),x,method=_RETURN 
VERBOSE)
 
output
(1+x^2*ln(4+x)^2+(-160+8*exp(1))*x^5+(585+2*exp(1))*x^2+(600-40*exp(1)+exp 
(1)^2)*x^4+(-40+2*exp(1))*x^3*ln(4+x)+50*x+16*x^6+50*x^2*ln(4+x)+2*ln(4+x) 
*x+8*ln(4+x)*x^4)/x^3
 
3.16.99.5 Fricas [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 92 vs. \(2 (25) = 50\).

Time = 0.30 (sec) , antiderivative size = 92, normalized size of antiderivative = 3.83 \[ \int \frac {-12-403 x-2438 x^2-535 x^3+2360 x^4-672 x^5-128 x^6+48 x^7+e^2 \left (4 x^4+x^5\right )+e \left (-8 x^2-2 x^3-158 x^4+24 x^5+16 x^6\right )+\left (-16 x-204 x^2-48 x^3+32 x^4+8 x^5\right ) \log (4+x)+\left (-4 x^2-x^3\right ) \log ^2(4+x)}{4 x^4+x^5} \, dx=\frac {16 \, x^{6} - 160 \, x^{5} + x^{4} e^{2} + 600 \, x^{4} + x^{2} \log \left (x + 4\right )^{2} + 585 \, x^{2} + 2 \, {\left (4 \, x^{5} - 20 \, x^{4} + x^{2}\right )} e + 2 \, {\left (4 \, x^{4} + x^{3} e - 20 \, x^{3} + 25 \, x^{2} + x\right )} \log \left (x + 4\right ) + 50 \, x + 1}{x^{3}} \]

input
integrate(((-x^3-4*x^2)*log(4+x)^2+(8*x^5+32*x^4-48*x^3-204*x^2-16*x)*log( 
4+x)+(x^5+4*x^4)*exp(1)^2+(16*x^6+24*x^5-158*x^4-2*x^3-8*x^2)*exp(1)+48*x^ 
7-128*x^6-672*x^5+2360*x^4-535*x^3-2438*x^2-403*x-12)/(x^5+4*x^4),x, algor 
ithm=\
 
output
(16*x^6 - 160*x^5 + x^4*e^2 + 600*x^4 + x^2*log(x + 4)^2 + 585*x^2 + 2*(4* 
x^5 - 20*x^4 + x^2)*e + 2*(4*x^4 + x^3*e - 20*x^3 + 25*x^2 + x)*log(x + 4) 
 + 50*x + 1)/x^3
 
3.16.99.6 Sympy [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 83 vs. \(2 (22) = 44\).

Time = 0.53 (sec) , antiderivative size = 83, normalized size of antiderivative = 3.46 \[ \int \frac {-12-403 x-2438 x^2-535 x^3+2360 x^4-672 x^5-128 x^6+48 x^7+e^2 \left (4 x^4+x^5\right )+e \left (-8 x^2-2 x^3-158 x^4+24 x^5+16 x^6\right )+\left (-16 x-204 x^2-48 x^3+32 x^4+8 x^5\right ) \log (4+x)+\left (-4 x^2-x^3\right ) \log ^2(4+x)}{4 x^4+x^5} \, dx=16 x^{3} + x^{2} \left (-160 + 8 e\right ) + x \left (- 40 e + e^{2} + 600\right ) + 2 \left (-20 + e\right ) \log {\left (x + 4 \right )} + \frac {\log {\left (x + 4 \right )}^{2}}{x} + \frac {\left (8 x^{3} + 50 x + 2\right ) \log {\left (x + 4 \right )}}{x^{2}} + \frac {x^{2} \cdot \left (2 e + 585\right ) + 50 x + 1}{x^{3}} \]

input
integrate(((-x**3-4*x**2)*ln(4+x)**2+(8*x**5+32*x**4-48*x**3-204*x**2-16*x 
)*ln(4+x)+(x**5+4*x**4)*exp(1)**2+(16*x**6+24*x**5-158*x**4-2*x**3-8*x**2) 
*exp(1)+48*x**7-128*x**6-672*x**5+2360*x**4-535*x**3-2438*x**2-403*x-12)/( 
x**5+4*x**4),x)
 
output
16*x**3 + x**2*(-160 + 8*E) + x*(-40*E + exp(2) + 600) + 2*(-20 + E)*log(x 
 + 4) + log(x + 4)**2/x + (8*x**3 + 50*x + 2)*log(x + 4)/x**2 + (x**2*(2*E 
 + 585) + 50*x + 1)/x**3
 
3.16.99.7 Maxima [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 179 vs. \(2 (25) = 50\).

Time = 0.24 (sec) , antiderivative size = 179, normalized size of antiderivative = 7.46 \[ \int \frac {-12-403 x-2438 x^2-535 x^3+2360 x^4-672 x^5-128 x^6+48 x^7+e^2 \left (4 x^4+x^5\right )+e \left (-8 x^2-2 x^3-158 x^4+24 x^5+16 x^6\right )+\left (-16 x-204 x^2-48 x^3+32 x^4+8 x^5\right ) \log (4+x)+\left (-4 x^2-x^3\right ) \log ^2(4+x)}{4 x^4+x^5} \, dx=16 \, x^{3} - 160 \, x^{2} + {\left (x - 4 \, \log \left (x + 4\right )\right )} e^{2} + 8 \, {\left (x^{2} - 8 \, x + 32 \, \log \left (x + 4\right )\right )} e + 24 \, {\left (x - 4 \, \log \left (x + 4\right )\right )} e + \frac {1}{2} \, {\left (\frac {4}{x} - \log \left (x + 4\right ) + \log \left (x\right )\right )} e + \frac {1}{2} \, {\left (\log \left (x + 4\right ) - \log \left (x\right )\right )} e + 4 \, e^{2} \log \left (x + 4\right ) - 158 \, e \log \left (x + 4\right ) + 608 \, x - \frac {64 \, x^{3} - 8 \, x \log \left (x + 4\right )^{2} - {\left (64 \, x^{3} + 355 \, x^{2} + 400 \, x + 16\right )} \log \left (x + 4\right ) - 4 \, x}{8 \, x^{2}} - \frac {403 \, {\left (x - 2\right )}}{16 \, x^{2}} + \frac {1219}{2 \, x} + \frac {3 \, x^{2} - 6 \, x + 16}{16 \, x^{3}} - \frac {675}{8} \, \log \left (x + 4\right ) \]

input
integrate(((-x^3-4*x^2)*log(4+x)^2+(8*x^5+32*x^4-48*x^3-204*x^2-16*x)*log( 
4+x)+(x^5+4*x^4)*exp(1)^2+(16*x^6+24*x^5-158*x^4-2*x^3-8*x^2)*exp(1)+48*x^ 
7-128*x^6-672*x^5+2360*x^4-535*x^3-2438*x^2-403*x-12)/(x^5+4*x^4),x, algor 
ithm=\
 
output
16*x^3 - 160*x^2 + (x - 4*log(x + 4))*e^2 + 8*(x^2 - 8*x + 32*log(x + 4))* 
e + 24*(x - 4*log(x + 4))*e + 1/2*(4/x - log(x + 4) + log(x))*e + 1/2*(log 
(x + 4) - log(x))*e + 4*e^2*log(x + 4) - 158*e*log(x + 4) + 608*x - 1/8*(6 
4*x^3 - 8*x*log(x + 4)^2 - (64*x^3 + 355*x^2 + 400*x + 16)*log(x + 4) - 4* 
x)/x^2 - 403/16*(x - 2)/x^2 + 1219/2/x + 1/16*(3*x^2 - 6*x + 16)/x^3 - 675 
/8*log(x + 4)
 
3.16.99.8 Giac [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 111 vs. \(2 (25) = 50\).

Time = 0.28 (sec) , antiderivative size = 111, normalized size of antiderivative = 4.62 \[ \int \frac {-12-403 x-2438 x^2-535 x^3+2360 x^4-672 x^5-128 x^6+48 x^7+e^2 \left (4 x^4+x^5\right )+e \left (-8 x^2-2 x^3-158 x^4+24 x^5+16 x^6\right )+\left (-16 x-204 x^2-48 x^3+32 x^4+8 x^5\right ) \log (4+x)+\left (-4 x^2-x^3\right ) \log ^2(4+x)}{4 x^4+x^5} \, dx=\frac {16 \, x^{6} + 8 \, x^{5} e - 160 \, x^{5} + x^{4} e^{2} - 40 \, x^{4} e + 8 \, x^{4} \log \left (x + 4\right ) + 2 \, x^{3} e \log \left (x + 4\right ) + 600 \, x^{4} - 40 \, x^{3} \log \left (x + 4\right ) + x^{2} \log \left (x + 4\right )^{2} + 2 \, x^{2} e + 50 \, x^{2} \log \left (x + 4\right ) + 585 \, x^{2} + 2 \, x \log \left (x + 4\right ) + 50 \, x + 1}{x^{3}} \]

input
integrate(((-x^3-4*x^2)*log(4+x)^2+(8*x^5+32*x^4-48*x^3-204*x^2-16*x)*log( 
4+x)+(x^5+4*x^4)*exp(1)^2+(16*x^6+24*x^5-158*x^4-2*x^3-8*x^2)*exp(1)+48*x^ 
7-128*x^6-672*x^5+2360*x^4-535*x^3-2438*x^2-403*x-12)/(x^5+4*x^4),x, algor 
ithm=\
 
output
(16*x^6 + 8*x^5*e - 160*x^5 + x^4*e^2 - 40*x^4*e + 8*x^4*log(x + 4) + 2*x^ 
3*e*log(x + 4) + 600*x^4 - 40*x^3*log(x + 4) + x^2*log(x + 4)^2 + 2*x^2*e 
+ 50*x^2*log(x + 4) + 585*x^2 + 2*x*log(x + 4) + 50*x + 1)/x^3
 
3.16.99.9 Mupad [B] (verification not implemented)

Time = 14.27 (sec) , antiderivative size = 88, normalized size of antiderivative = 3.67 \[ \int \frac {-12-403 x-2438 x^2-535 x^3+2360 x^4-672 x^5-128 x^6+48 x^7+e^2 \left (4 x^4+x^5\right )+e \left (-8 x^2-2 x^3-158 x^4+24 x^5+16 x^6\right )+\left (-16 x-204 x^2-48 x^3+32 x^4+8 x^5\right ) \log (4+x)+\left (-4 x^2-x^3\right ) \log ^2(4+x)}{4 x^4+x^5} \, dx=600\,x-40\,\ln \left (x+4\right )+2\,\ln \left (x+4\right )\,\mathrm {e}+8\,x\,\ln \left (x+4\right )+\frac {2\,\ln \left (x+4\right )+50}{x^2}-40\,x\,\mathrm {e}+x\,{\mathrm {e}}^2+8\,x^2\,\mathrm {e}+\frac {{\ln \left (x+4\right )}^2+50\,\ln \left (x+4\right )+2\,\mathrm {e}+585}{x}-160\,x^2+\frac {1}{x^3}+16\,x^3 \]

input
int(-(403*x - exp(2)*(4*x^4 + x^5) + exp(1)*(8*x^2 + 2*x^3 + 158*x^4 - 24* 
x^5 - 16*x^6) + log(x + 4)^2*(4*x^2 + x^3) + log(x + 4)*(16*x + 204*x^2 + 
48*x^3 - 32*x^4 - 8*x^5) + 2438*x^2 + 535*x^3 - 2360*x^4 + 672*x^5 + 128*x 
^6 - 48*x^7 + 12)/(4*x^4 + x^5),x)
 
output
600*x - 40*log(x + 4) + 2*log(x + 4)*exp(1) + 8*x*log(x + 4) + (2*log(x + 
4) + 50)/x^2 - 40*x*exp(1) + x*exp(2) + 8*x^2*exp(1) + (50*log(x + 4) + 2* 
exp(1) + log(x + 4)^2 + 585)/x - 160*x^2 + 1/x^3 + 16*x^3