3.59.50 \(\int \frac {-1+7 x-x^2-x \log (4 e^{-x} x)}{4 x-8 x^2+4 x^3} \, dx\)

Optimal. Leaf size=20 \[ \frac {-5+\log \left (4 e^{-x} x\right )}{4 (-1+x)} \]

________________________________________________________________________________________

Rubi [A]  time = 0.20, antiderivative size = 32, normalized size of antiderivative = 1.60, number of steps used = 9, number of rules used = 7, integrand size = 39, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.180, Rules used = {1594, 27, 12, 6742, 893, 2551, 29} \begin {gather*} \frac {5}{4 (1-x)}-\frac {\log \left (4 e^{-x} x\right )}{4 (1-x)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(-1 + 7*x - x^2 - x*Log[(4*x)/E^x])/(4*x - 8*x^2 + 4*x^3),x]

[Out]

5/(4*(1 - x)) - Log[(4*x)/E^x]/(4*(1 - 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 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 29

Int[(x_)^(-1), x_Symbol] :> Simp[Log[x], x]

Rule 893

Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))^(n_)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :
> Int[ExpandIntegrand[(d + e*x)^m*(f + g*x)^n*(a + b*x + c*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, f, g}, x] &
& NeQ[e*f - d*g, 0] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - b*d*e + a*e^2, 0] && IntegerQ[p] && ((EqQ[p, 1] && I
ntegersQ[m, n]) || (ILtQ[m, 0] && ILtQ[n, 0]))

Rule 1594

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 2551

Int[Log[u_]*((a_.) + (b_.)*(x_))^(m_.), x_Symbol] :> Simp[((a + b*x)^(m + 1)*Log[u])/(b*(m + 1)), x] - Dist[1/
(b*(m + 1)), Int[SimplifyIntegrand[((a + b*x)^(m + 1)*D[u, x])/u, x], x], x] /; FreeQ[{a, b, m}, x] && Inverse
FunctionFreeQ[u, x] && NeQ[m, -1]

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 {-1+7 x-x^2-x \log \left (4 e^{-x} x\right )}{x \left (4-8 x+4 x^2\right )} \, dx\\ &=\int \frac {-1+7 x-x^2-x \log \left (4 e^{-x} x\right )}{4 (-1+x)^2 x} \, dx\\ &=\frac {1}{4} \int \frac {-1+7 x-x^2-x \log \left (4 e^{-x} x\right )}{(-1+x)^2 x} \, dx\\ &=\frac {1}{4} \int \left (\frac {-1+7 x-x^2}{(-1+x)^2 x}-\frac {\log \left (4 e^{-x} x\right )}{(-1+x)^2}\right ) \, dx\\ &=\frac {1}{4} \int \frac {-1+7 x-x^2}{(-1+x)^2 x} \, dx-\frac {1}{4} \int \frac {\log \left (4 e^{-x} x\right )}{(-1+x)^2} \, dx\\ &=-\frac {\log \left (4 e^{-x} x\right )}{4 (1-x)}+\frac {1}{4} \int \left (\frac {5}{(-1+x)^2}-\frac {1}{x}\right ) \, dx+\frac {1}{4} \int \frac {1}{x} \, dx\\ &=\frac {5}{4 (1-x)}-\frac {\log \left (4 e^{-x} x\right )}{4 (1-x)}\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]  time = 0.04, size = 22, normalized size = 1.10 \begin {gather*} -\frac {5-\log \left (4 e^{-x} x\right )}{4 (-1+x)} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(-1 + 7*x - x^2 - x*Log[(4*x)/E^x])/(4*x - 8*x^2 + 4*x^3),x]

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.54, size = 17, normalized size = 0.85 \begin {gather*} \frac {\log \left (4 \, x e^{\left (-x\right )}\right ) - 5}{4 \, {\left (x - 1\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-x*log(4*x/exp(x))-x^2+7*x-1)/(4*x^3-8*x^2+4*x),x, algorithm="fricas")

[Out]

1/4*(log(4*x*e^(-x)) - 5)/(x - 1)

________________________________________________________________________________________

giac [A]  time = 0.13, size = 21, normalized size = 1.05 \begin {gather*} \frac {\log \relax (2) - 3}{2 \, {\left (x - 1\right )}} + \frac {\log \relax (x)}{4 \, {\left (x - 1\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-x*log(4*x/exp(x))-x^2+7*x-1)/(4*x^3-8*x^2+4*x),x, algorithm="giac")

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.12, size = 19, normalized size = 0.95




method result size



norman \(\frac {\frac {\ln \left (4 x \,{\mathrm e}^{-x}\right )}{4}-\frac {5}{4}}{x -1}\) \(19\)
default \(\frac {\ln \left (4 x \,{\mathrm e}^{-x}\right )}{4 x -4}-\frac {5}{4 \left (x -1\right )}\) \(24\)
risch \(-\frac {\ln \left ({\mathrm e}^{x}\right )}{4 \left (x -1\right )}+\frac {-10-i \pi \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i {\mathrm e}^{-x}\right ) \mathrm {csgn}\left (i x \,{\mathrm e}^{-x}\right )+i \pi \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i x \,{\mathrm e}^{-x}\right )^{2}+i \pi \,\mathrm {csgn}\left (i {\mathrm e}^{-x}\right ) \mathrm {csgn}\left (i x \,{\mathrm e}^{-x}\right )^{2}-i \pi \mathrm {csgn}\left (i x \,{\mathrm e}^{-x}\right )^{3}+4 \ln \relax (2)+2 \ln \relax (x )}{8 x -8}\) \(113\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int((-x*ln(4*x/exp(x))-x^2+7*x-1)/(4*x^3-8*x^2+4*x),x,method=_RETURNVERBOSE)

[Out]

(1/4*ln(4*x/exp(x))-5/4)/(x-1)

________________________________________________________________________________________

maxima [A]  time = 0.36, size = 23, normalized size = 1.15 \begin {gather*} \frac {\log \left (4 \, x e^{\left (-x\right )}\right )}{4 \, {\left (x - 1\right )}} - \frac {5}{4 \, {\left (x - 1\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-x*log(4*x/exp(x))-x^2+7*x-1)/(4*x^3-8*x^2+4*x),x, algorithm="maxima")

[Out]

1/4*log(4*x*e^(-x))/(x - 1) - 5/4/(x - 1)

________________________________________________________________________________________

mupad [B]  time = 4.08, size = 18, normalized size = 0.90 \begin {gather*} \frac {2\,\ln \relax (2)-6\,x+\ln \relax (x)}{4\,\left (x-1\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-(x*log(4*x*exp(-x)) - 7*x + x^2 + 1)/(4*x - 8*x^2 + 4*x^3),x)

[Out]

(2*log(2) - 6*x + log(x))/(4*(x - 1))

________________________________________________________________________________________

sympy [A]  time = 0.18, size = 19, normalized size = 0.95 \begin {gather*} \frac {\log {\left (4 x e^{- x} \right )}}{4 x - 4} - \frac {5}{4 x - 4} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-x*ln(4*x/exp(x))-x**2+7*x-1)/(4*x**3-8*x**2+4*x),x)

[Out]

log(4*x*exp(-x))/(4*x - 4) - 5/(4*x - 4)

________________________________________________________________________________________