3.78.57 \(\int \frac {48-16 x-8 x^5+(-64+24 x+16 x^5) \log (x)-8 x^5 \log ^2(x)}{x^5-2 x^5 \log (x)+x^5 \log ^2(x)} \, dx\)

Optimal. Leaf size=24 \[ 2 (2-x) \left (4+\frac {4}{x^3 (-x+x \log (x))}\right ) \]

________________________________________________________________________________________

Rubi [A]  time = 0.59, antiderivative size = 30, normalized size of antiderivative = 1.25, number of steps used = 18, number of rules used = 7, integrand size = 54, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {6741, 12, 6742, 2353, 2306, 2309, 2178} \begin {gather*} -\frac {16}{x^4 (1-\log (x))}+\frac {8}{x^3 (1-\log (x))}-8 x \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(48 - 16*x - 8*x^5 + (-64 + 24*x + 16*x^5)*Log[x] - 8*x^5*Log[x]^2)/(x^5 - 2*x^5*Log[x] + x^5*Log[x]^2),x]

[Out]

-8*x - 16/(x^4*(1 - Log[x])) + 8/(x^3*(1 - Log[x]))

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 2178

Int[(F_)^((g_.)*((e_.) + (f_.)*(x_)))/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[(F^(g*(e - (c*f)/d))*ExpIntegral
Ei[(f*g*(c + d*x)*Log[F])/d])/d, x] /; FreeQ[{F, c, d, e, f, g}, x] &&  !$UseGamma === True

Rule 2306

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

Rule 2309

Int[((a_.) + Log[(c_.)*(x_)]*(b_.))^(p_)*(x_)^(m_.), x_Symbol] :> Dist[1/c^(m + 1), Subst[Int[E^((m + 1)*x)*(a
 + b*x)^p, x], x, Log[c*x]], x] /; FreeQ[{a, b, c, p}, x] && IntegerQ[m]

Rule 2353

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 6741

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

Rule 6742

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

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {8 \left (6-2 x-x^5-8 \log (x)+3 x \log (x)+2 x^5 \log (x)-x^5 \log ^2(x)\right )}{x^5 (1-\log (x))^2} \, dx\\ &=8 \int \frac {6-2 x-x^5-8 \log (x)+3 x \log (x)+2 x^5 \log (x)-x^5 \log ^2(x)}{x^5 (1-\log (x))^2} \, dx\\ &=8 \int \left (-1+\frac {-2+x}{x^5 (-1+\log (x))^2}+\frac {-8+3 x}{x^5 (-1+\log (x))}\right ) \, dx\\ &=-8 x+8 \int \frac {-2+x}{x^5 (-1+\log (x))^2} \, dx+8 \int \frac {-8+3 x}{x^5 (-1+\log (x))} \, dx\\ &=-8 x+8 \int \left (-\frac {2}{x^5 (-1+\log (x))^2}+\frac {1}{x^4 (-1+\log (x))^2}\right ) \, dx+8 \int \left (-\frac {8}{x^5 (-1+\log (x))}+\frac {3}{x^4 (-1+\log (x))}\right ) \, dx\\ &=-8 x+8 \int \frac {1}{x^4 (-1+\log (x))^2} \, dx-16 \int \frac {1}{x^5 (-1+\log (x))^2} \, dx+24 \int \frac {1}{x^4 (-1+\log (x))} \, dx-64 \int \frac {1}{x^5 (-1+\log (x))} \, dx\\ &=-8 x-\frac {16}{x^4 (1-\log (x))}+\frac {8}{x^3 (1-\log (x))}-24 \int \frac {1}{x^4 (-1+\log (x))} \, dx+24 \operatorname {Subst}\left (\int \frac {e^{-3 x}}{-1+x} \, dx,x,\log (x)\right )+64 \int \frac {1}{x^5 (-1+\log (x))} \, dx-64 \operatorname {Subst}\left (\int \frac {e^{-4 x}}{-1+x} \, dx,x,\log (x)\right )\\ &=-8 x+\frac {24 \text {Ei}(3 (1-\log (x)))}{e^3}-\frac {64 \text {Ei}(4 (1-\log (x)))}{e^4}-\frac {16}{x^4 (1-\log (x))}+\frac {8}{x^3 (1-\log (x))}-24 \operatorname {Subst}\left (\int \frac {e^{-3 x}}{-1+x} \, dx,x,\log (x)\right )+64 \operatorname {Subst}\left (\int \frac {e^{-4 x}}{-1+x} \, dx,x,\log (x)\right )\\ &=-8 x-\frac {16}{x^4 (1-\log (x))}+\frac {8}{x^3 (1-\log (x))}\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]  time = 0.12, size = 17, normalized size = 0.71 \begin {gather*} -8 \left (x+\frac {-2+x}{x^4 (-1+\log (x))}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(48 - 16*x - 8*x^5 + (-64 + 24*x + 16*x^5)*Log[x] - 8*x^5*Log[x]^2)/(x^5 - 2*x^5*Log[x] + x^5*Log[x]
^2),x]

[Out]

-8*(x + (-2 + x)/(x^4*(-1 + Log[x])))

________________________________________________________________________________________

fricas [A]  time = 0.73, size = 30, normalized size = 1.25 \begin {gather*} -\frac {8 \, {\left (x^{5} \log \relax (x) - x^{5} + x - 2\right )}}{x^{4} \log \relax (x) - x^{4}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-8*x^5*log(x)^2+(16*x^5+24*x-64)*log(x)-8*x^5-16*x+48)/(x^5*log(x)^2-2*x^5*log(x)+x^5),x, algorithm
="fricas")

[Out]

-8*(x^5*log(x) - x^5 + x - 2)/(x^4*log(x) - x^4)

________________________________________________________________________________________

giac [A]  time = 0.19, size = 23, normalized size = 0.96 \begin {gather*} -8 \, x - \frac {8 \, {\left (x - 2\right )}}{x^{4} \log \relax (x) - x^{4}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-8*x^5*log(x)^2+(16*x^5+24*x-64)*log(x)-8*x^5-16*x+48)/(x^5*log(x)^2-2*x^5*log(x)+x^5),x, algorithm
="giac")

[Out]

-8*x - 8*(x - 2)/(x^4*log(x) - x^4)

________________________________________________________________________________________

maple [A]  time = 0.03, size = 19, normalized size = 0.79




method result size



risch \(-8 x -\frac {8 \left (x -2\right )}{x^{4} \left (\ln \relax (x )-1\right )}\) \(19\)
norman \(\frac {16-8 x +8 x^{5}-8 x^{5} \ln \relax (x )}{x^{4} \left (\ln \relax (x )-1\right )}\) \(28\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int((-8*x^5*ln(x)^2+(16*x^5+24*x-64)*ln(x)-8*x^5-16*x+48)/(x^5*ln(x)^2-2*x^5*ln(x)+x^5),x,method=_RETURNVERBOS
E)

[Out]

-8*x-8/x^4*(x-2)/(ln(x)-1)

________________________________________________________________________________________

maxima [A]  time = 0.46, size = 30, normalized size = 1.25 \begin {gather*} -\frac {8 \, {\left (x^{5} \log \relax (x) - x^{5} + x - 2\right )}}{x^{4} \log \relax (x) - x^{4}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-8*x^5*log(x)^2+(16*x^5+24*x-64)*log(x)-8*x^5-16*x+48)/(x^5*log(x)^2-2*x^5*log(x)+x^5),x, algorithm
="maxima")

[Out]

-8*(x^5*log(x) - x^5 + x - 2)/(x^4*log(x) - x^4)

________________________________________________________________________________________

mupad [B]  time = 5.26, size = 20, normalized size = 0.83 \begin {gather*} -8\,x-\frac {8\,x-16}{x^4\,\left (\ln \relax (x)-1\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-(16*x + 8*x^5*log(x)^2 - log(x)*(24*x + 16*x^5 - 64) + 8*x^5 - 48)/(x^5*log(x)^2 - 2*x^5*log(x) + x^5),x)

[Out]

- 8*x - (8*x - 16)/(x^4*(log(x) - 1))

________________________________________________________________________________________

sympy [A]  time = 0.12, size = 17, normalized size = 0.71 \begin {gather*} - 8 x + \frac {16 - 8 x}{x^{4} \log {\relax (x )} - x^{4}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-8*x**5*ln(x)**2+(16*x**5+24*x-64)*ln(x)-8*x**5-16*x+48)/(x**5*ln(x)**2-2*x**5*ln(x)+x**5),x)

[Out]

-8*x + (16 - 8*x)/(x**4*log(x) - x**4)

________________________________________________________________________________________