3.64.26 \(\int \frac {-16-x-x^3+e (16 x^2+5 x^3)+x^3 \log (5)+(32+3 x-e x^3) \log (x)}{256 x^3+32 x^4+x^5} \, dx\) [6326]

Optimal. Leaf size=28 \[ \frac {1-\log (5)-e (4-\log (x))-\frac {\log (x)}{x^2}}{16+x} \]

[Out]

(1-ln(5)-ln(x)/x^2-exp(1)*(-ln(x)+4))/(x+16)

________________________________________________________________________________________

Rubi [B] Leaf count is larger than twice the leaf count of optimal. \(99\) vs. \(2(28)=56\).
time = 0.26, antiderivative size = 99, normalized size of antiderivative = 3.54, number of steps used = 17, number of rules used = 10, integrand size = 60, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {6, 1608, 27, 6874, 46, 78, 2404, 2341, 2351, 31} \begin {gather*} -\frac {\log (x)}{16 x^2}-\frac {4 e}{x+16}+\frac {\log (x)}{256 x}+\frac {(1-256 e) x \log (x)}{4096 (x+16)}+\frac {1}{16} e \log (x)-\frac {\log (x)}{4096}-\frac {1}{16} e \log (x+16)-\frac {(1-256 e) \log (x+16)}{4096}+\frac {\log (x+16)}{4096}+\frac {1-\log (5)}{x+16} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(-16 - x - x^3 + E*(16*x^2 + 5*x^3) + x^3*Log[5] + (32 + 3*x - E*x^3)*Log[x])/(256*x^3 + 32*x^4 + x^5),x]

[Out]

(-4*E)/(16 + x) + (1 - Log[5])/(16 + x) - Log[x]/4096 + (E*Log[x])/16 - Log[x]/(16*x^2) + Log[x]/(256*x) + ((1
 - 256*E)*x*Log[x])/(4096*(16 + x)) + Log[16 + x]/4096 - ((1 - 256*E)*Log[16 + x])/4096 - (E*Log[16 + x])/16

Rule 6

Int[(u_.)*((w_.) + (a_.)*(v_) + (b_.)*(v_))^(p_.), x_Symbol] :> Int[u*((a + b)*v + w)^p, x] /; FreeQ[{a, b}, x
] &&  !FreeQ[v, x]

Rule 27

Int[(u_.)*((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[u*Cancel[(b/2 + c*x)^(2*p)/c^p], x] /; Fr
eeQ[{a, b, c}, x] && EqQ[b^2 - 4*a*c, 0] && IntegerQ[p]

Rule 31

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

Rule 46

Int[((a_) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d*x
)^n, x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0] && ILtQ[m, 0] && IntegerQ[n] &&  !(IGtQ[n, 0] && Lt
Q[m + n + 2, 0])

Rule 78

Int[((a_.) + (b_.)*(x_))*((c_) + (d_.)*(x_))^(n_.)*((e_.) + (f_.)*(x_))^(p_.), x_Symbol] :> Int[ExpandIntegran
d[(a + b*x)*(c + d*x)^n*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, n}, x] && NeQ[b*c - a*d, 0] && ((ILtQ[
n, 0] && ILtQ[p, 0]) || EqQ[p, 1] || (IGtQ[p, 0] && ( !IntegerQ[n] || LeQ[9*p + 5*(n + 2), 0] || GeQ[n + p + 1
, 0] || (GeQ[n + p + 2, 0] && RationalQ[a, b, c, d, e, f]))))

Rule 1608

Int[(u_.)*((a_.)*(x_)^(p_.) + (b_.)*(x_)^(q_.) + (c_.)*(x_)^(r_.))^(n_.), x_Symbol] :> Int[u*x^(n*p)*(a + b*x^
(q - p) + c*x^(r - p))^n, x] /; FreeQ[{a, b, c, p, q, r}, x] && IntegerQ[n] && PosQ[q - p] && PosQ[r - p]

Rule 2341

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

Rule 2351

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*((d_) + (e_.)*(x_)^(r_.))^(q_), x_Symbol] :> Simp[x*(d + e*x^r)^(q +
 1)*((a + b*Log[c*x^n])/d), x] - Dist[b*(n/d), Int[(d + e*x^r)^(q + 1), x], x] /; FreeQ[{a, b, c, d, e, n, q,
r}, x] && EqQ[r*(q + 1) + 1, 0]

Rule 2404

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*(RFx_), x_Symbol] :> With[{u = ExpandIntegrand[(a + b*Log[c*x^
n])^p, RFx, x]}, Int[u, x] /; SumQ[u]] /; FreeQ[{a, b, c, n}, x] && RationalFunctionQ[RFx, x] && IGtQ[p, 0]

Rule 6874

Int[u_, x_Symbol] :> With[{v = ExpandIntegrand[u, x]}, Int[v, x] /; SumQ[v]]

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {-16-x+e \left (16 x^2+5 x^3\right )+x^3 (-1+\log (5))+\left (32+3 x-e x^3\right ) \log (x)}{256 x^3+32 x^4+x^5} \, dx\\ &=\int \frac {-16-x+e \left (16 x^2+5 x^3\right )+x^3 (-1+\log (5))+\left (32+3 x-e x^3\right ) \log (x)}{x^3 \left (256+32 x+x^2\right )} \, dx\\ &=\int \frac {-16-x+e \left (16 x^2+5 x^3\right )+x^3 (-1+\log (5))+\left (32+3 x-e x^3\right ) \log (x)}{x^3 (16+x)^2} \, dx\\ &=\int \left (-\frac {16}{x^3 (16+x)^2}-\frac {1}{x^2 (16+x)^2}+\frac {e (16+5 x)}{x (16+x)^2}+\frac {-1+\log (5)}{(16+x)^2}-\frac {\left (-32-3 x+e x^3\right ) \log (x)}{x^3 (16+x)^2}\right ) \, dx\\ &=\frac {1-\log (5)}{16+x}-16 \int \frac {1}{x^3 (16+x)^2} \, dx+e \int \frac {16+5 x}{x (16+x)^2} \, dx-\int \frac {1}{x^2 (16+x)^2} \, dx-\int \frac {\left (-32-3 x+e x^3\right ) \log (x)}{x^3 (16+x)^2} \, dx\\ &=\frac {1-\log (5)}{16+x}-16 \int \left (\frac {1}{256 x^3}-\frac {1}{2048 x^2}+\frac {3}{65536 x}-\frac {1}{4096 (16+x)^2}-\frac {3}{65536 (16+x)}\right ) \, dx+e \int \left (\frac {1}{16 x}+\frac {4}{(16+x)^2}-\frac {1}{16 (16+x)}\right ) \, dx-\int \left (\frac {1}{256 x^2}-\frac {1}{2048 x}+\frac {1}{256 (16+x)^2}+\frac {1}{2048 (16+x)}\right ) \, dx-\int \left (-\frac {\log (x)}{8 x^3}+\frac {\log (x)}{256 x^2}+\frac {(-1+256 e) \log (x)}{256 (16+x)^2}\right ) \, dx\\ &=\frac {1}{32 x^2}-\frac {1}{256 x}-\frac {4 e}{16+x}+\frac {1-\log (5)}{16+x}-\frac {\log (x)}{4096}+\frac {1}{16} e \log (x)+\frac {\log (16+x)}{4096}-\frac {1}{16} e \log (16+x)-\frac {1}{256} \int \frac {\log (x)}{x^2} \, dx+\frac {1}{8} \int \frac {\log (x)}{x^3} \, dx-\frac {1}{256} (-1+256 e) \int \frac {\log (x)}{(16+x)^2} \, dx\\ &=-\frac {4 e}{16+x}+\frac {1-\log (5)}{16+x}-\frac {\log (x)}{4096}+\frac {1}{16} e \log (x)-\frac {\log (x)}{16 x^2}+\frac {\log (x)}{256 x}+\frac {(1-256 e) x \log (x)}{4096 (16+x)}+\frac {\log (16+x)}{4096}-\frac {1}{16} e \log (16+x)-\frac {(1-256 e) \int \frac {1}{16+x} \, dx}{4096}\\ &=-\frac {4 e}{16+x}+\frac {1-\log (5)}{16+x}-\frac {\log (x)}{4096}+\frac {1}{16} e \log (x)-\frac {\log (x)}{16 x^2}+\frac {\log (x)}{256 x}+\frac {(1-256 e) x \log (x)}{4096 (16+x)}+\frac {\log (16+x)}{4096}-\frac {(1-256 e) \log (16+x)}{4096}-\frac {1}{16} e \log (16+x)\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]
time = 0.11, size = 34, normalized size = 1.21 \begin {gather*} \frac {1-4 e-\log (5)}{16+x}+\frac {\left (-1+e x^2\right ) \log (x)}{x^2 (16+x)} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(-16 - x - x^3 + E*(16*x^2 + 5*x^3) + x^3*Log[5] + (32 + 3*x - E*x^3)*Log[x])/(256*x^3 + 32*x^4 + x^
5),x]

[Out]

(1 - 4*E - Log[5])/(16 + x) + ((-1 + E*x^2)*Log[x])/(x^2*(16 + x))

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(70\) vs. \(2(29)=58\).
time = 0.58, size = 71, normalized size = 2.54

method result size
norman \(\frac {\left (1-4 \,{\mathrm e}-\ln \left (5\right )\right ) x^{2}+x^{2} {\mathrm e} \ln \left (x \right )-\ln \left (x \right )}{x^{2} \left (x +16\right )}\) \(37\)
risch \(\frac {\left (x^{2} {\mathrm e}-1\right ) \ln \left (x \right )}{x^{2} \left (x +16\right )}+\frac {1}{x +16}-\frac {4 \,{\mathrm e}}{x +16}-\frac {\ln \left (5\right )}{x +16}\) \(44\)
default \(-\frac {\ln \left (5\right )}{x +16}-\frac {4 \,{\mathrm e}}{x +16}+\frac {1}{x +16}-\frac {\ln \left (x \right )}{4096}+\frac {{\mathrm e} \ln \left (x \right )}{16}+\frac {\ln \left (x \right )}{256 x}-\frac {{\mathrm e} \ln \left (x \right ) x}{16 \left (x +16\right )}+\frac {x \ln \left (x \right )}{4096 x +65536}-\frac {\ln \left (x \right )}{16 x^{2}}\) \(71\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((-x^3*exp(1)+3*x+32)*ln(x)+x^3*ln(5)+(5*x^3+16*x^2)*exp(1)-x^3-x-16)/(x^5+32*x^4+256*x^3),x,method=_RETUR
NVERBOSE)

[Out]

-ln(5)/(x+16)-4/(x+16)*exp(1)+1/(x+16)-1/4096*ln(x)+1/16*exp(1)*ln(x)+1/256*ln(x)/x-1/16*exp(1)*ln(x)*x/(x+16)
+1/4096*ln(x)*x/(x+16)-1/16*ln(x)/x^2

________________________________________________________________________________________

Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 147 vs. \(2 (26) = 52\).
time = 0.34, size = 147, normalized size = 5.25 \begin {gather*} \frac {1}{16} \, {\left (\frac {16}{x + 16} - \log \left (x + 16\right ) + \log \left (x\right )\right )} e + \frac {1}{4096} \, {\left (256 \, e - 1\right )} \log \left (x + 16\right ) + \frac {16 \, x^{2} - {\left (x^{3} {\left (256 \, e - 1\right )} - 16 \, x^{2} + 4096\right )} \log \left (x\right ) + 128 \, x - 2048}{4096 \, {\left (x^{3} + 16 \, x^{2}\right )}} - \frac {3 \, x^{2} + 24 \, x - 128}{256 \, {\left (x^{3} + 16 \, x^{2}\right )}} + \frac {x + 8}{128 \, {\left (x^{2} + 16 \, x\right )}} - \frac {5 \, e}{x + 16} - \frac {\log \left (5\right )}{x + 16} + \frac {1}{x + 16} + \frac {1}{4096} \, \log \left (x + 16\right ) - \frac {1}{4096} \, \log \left (x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((-x^3*exp(1)+3*x+32)*log(x)+x^3*log(5)+(5*x^3+16*x^2)*exp(1)-x^3-x-16)/(x^5+32*x^4+256*x^3),x, algo
rithm="maxima")

[Out]

1/16*(16/(x + 16) - log(x + 16) + log(x))*e + 1/4096*(256*e - 1)*log(x + 16) + 1/4096*(16*x^2 - (x^3*(256*e -
1) - 16*x^2 + 4096)*log(x) + 128*x - 2048)/(x^3 + 16*x^2) - 1/256*(3*x^2 + 24*x - 128)/(x^3 + 16*x^2) + 1/128*
(x + 8)/(x^2 + 16*x) - 5*e/(x + 16) - log(5)/(x + 16) + 1/(x + 16) + 1/4096*log(x + 16) - 1/4096*log(x)

________________________________________________________________________________________

Fricas [A]
time = 0.37, size = 44, normalized size = 1.57 \begin {gather*} -\frac {4 \, x^{2} e + x^{2} \log \left (5\right ) - x^{2} - {\left (x^{2} e - 1\right )} \log \left (x\right )}{x^{3} + 16 \, x^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((-x^3*exp(1)+3*x+32)*log(x)+x^3*log(5)+(5*x^3+16*x^2)*exp(1)-x^3-x-16)/(x^5+32*x^4+256*x^3),x, algo
rithm="fricas")

[Out]

-(4*x^2*e + x^2*log(5) - x^2 - (x^2*e - 1)*log(x))/(x^3 + 16*x^2)

________________________________________________________________________________________

Sympy [A]
time = 0.11, size = 32, normalized size = 1.14 \begin {gather*} \frac {\left (e x^{2} - 1\right ) \log {\left (x \right )}}{x^{3} + 16 x^{2}} - \frac {-1 + \log {\left (5 \right )} + 4 e}{x + 16} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((-x**3*exp(1)+3*x+32)*ln(x)+x**3*ln(5)+(5*x**3+16*x**2)*exp(1)-x**3-x-16)/(x**5+32*x**4+256*x**3),x
)

[Out]

(E*x**2 - 1)*log(x)/(x**3 + 16*x**2) - (-1 + log(5) + 4*E)/(x + 16)

________________________________________________________________________________________

Giac [A]
time = 0.39, size = 42, normalized size = 1.50 \begin {gather*} \frac {x^{2} e \log \left (x\right ) - 4 \, x^{2} e - x^{2} \log \left (5\right ) + x^{2} - \log \left (x\right )}{x^{3} + 16 \, x^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((-x^3*exp(1)+3*x+32)*log(x)+x^3*log(5)+(5*x^3+16*x^2)*exp(1)-x^3-x-16)/(x^5+32*x^4+256*x^3),x, algo
rithm="giac")

[Out]

(x^2*e*log(x) - 4*x^2*e - x^2*log(5) + x^2 - log(x))/(x^3 + 16*x^2)

________________________________________________________________________________________

Mupad [B]
time = 4.35, size = 40, normalized size = 1.43 \begin {gather*} \frac {x^4\,\left (\frac {\mathrm {e}}{4}+\frac {\ln \left (5\right )}{16}-\frac {1}{16}\right )-x\,\ln \left (x\right )+x^3\,\mathrm {e}\,\ln \left (x\right )}{x^4+16\,x^3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-(x - log(x)*(3*x - x^3*exp(1) + 32) - exp(1)*(16*x^2 + 5*x^3) - x^3*log(5) + x^3 + 16)/(256*x^3 + 32*x^4
+ x^5),x)

[Out]

(x^4*(exp(1)/4 + log(5)/16 - 1/16) - x*log(x) + x^3*exp(1)*log(x))/(16*x^3 + x^4)

________________________________________________________________________________________