3.18.85 \(\int \frac {-5+2 x^2+(x+4 x^2) \log (\frac {-4 e x+5 x \log (3)}{e})}{x} \, dx\) [1785]

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

[Out]

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

________________________________________________________________________________________

Rubi [A]
time = 0.02, antiderivative size = 41, normalized size of antiderivative = 1.24, number of steps used = 6, number of rules used = 2, integrand size = 34, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.059, Rules used = {14, 2350} \begin {gather*} 2 x^2 \log \left (-x \left (4-\frac {5 \log (3)}{e}\right )\right )-x+x \log \left (-x \left (4-\frac {5 \log (3)}{e}\right )\right )-5 \log (x) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

Rule 14

Int[(u_)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*u, x], x] /; FreeQ[{c, m}, x] && SumQ[u]
 &&  !LinearQ[u, x] &&  !MatchQ[u, (a_) + (b_.)*(v_) /; FreeQ[{a, b}, x] && InverseFunctionQ[v]]

Rule 2350

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

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 39, normalized size = 1.18 \begin {gather*} -x-5 \log (x)+x \log \left (x \left (-4+\frac {5 \log (3)}{e}\right )\right )+2 x^2 \log \left (x \left (-4+\frac {5 \log (3)}{e}\right )\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(307\) vs. \(2(31)=62\).
time = 0.17, size = 308, normalized size = 9.33

method result size
risch \(\left (2 x^{2}+x \right ) \ln \left (\left (5 x \ln \left (3\right )-4 x \,{\mathrm e}\right ) {\mathrm e}^{-1}\right )-x -5 \ln \left (x \right )\) \(32\)
norman \(x \ln \left (\left (5 x \ln \left (3\right )-4 x \,{\mathrm e}\right ) {\mathrm e}^{-1}\right )-5 \ln \left (\left (5 x \ln \left (3\right )-4 x \,{\mathrm e}\right ) {\mathrm e}^{-1}\right )-x +2 x^{2} \ln \left (\left (5 x \ln \left (3\right )-4 x \,{\mathrm e}\right ) {\mathrm e}^{-1}\right )\) \(65\)
derivativedivides \(\frac {4 \,{\mathrm e}^{2} \left (\frac {x^{2} \left (5 \ln \left (3\right )-4 \,{\mathrm e}\right )^{2} {\mathrm e}^{-2} \ln \left (x \left (5 \ln \left (3\right )-4 \,{\mathrm e}\right ) {\mathrm e}^{-1}\right )}{2}-\frac {x^{2} \left (5 \ln \left (3\right )-4 \,{\mathrm e}\right )^{2} {\mathrm e}^{-2}}{4}\right )}{\left (5 \ln \left (3\right )-4 \,{\mathrm e}\right )^{2}}+\frac {5 \ln \left (3\right ) {\mathrm e} \left (x \left (5 \ln \left (3\right )-4 \,{\mathrm e}\right ) {\mathrm e}^{-1} \ln \left (x \left (5 \ln \left (3\right )-4 \,{\mathrm e}\right ) {\mathrm e}^{-1}\right )-x \left (5 \ln \left (3\right )-4 \,{\mathrm e}\right ) {\mathrm e}^{-1}\right )}{\left (5 \ln \left (3\right )-4 \,{\mathrm e}\right )^{2}}-\frac {4 \,{\mathrm e}^{2} \left (x \left (5 \ln \left (3\right )-4 \,{\mathrm e}\right ) {\mathrm e}^{-1} \ln \left (x \left (5 \ln \left (3\right )-4 \,{\mathrm e}\right ) {\mathrm e}^{-1}\right )-x \left (5 \ln \left (3\right )-4 \,{\mathrm e}\right ) {\mathrm e}^{-1}\right )}{\left (5 \ln \left (3\right )-4 \,{\mathrm e}\right )^{2}}+x^{2}-\frac {125 \ln \left (3\right )^{2} \ln \left (x \left (5 \ln \left (3\right )-4 \,{\mathrm e}\right ) {\mathrm e}^{-1}\right )}{\left (5 \ln \left (3\right )-4 \,{\mathrm e}\right )^{2}}+\frac {200 \ln \left (3\right ) {\mathrm e} \ln \left (x \left (5 \ln \left (3\right )-4 \,{\mathrm e}\right ) {\mathrm e}^{-1}\right )}{\left (5 \ln \left (3\right )-4 \,{\mathrm e}\right )^{2}}-\frac {80 \,{\mathrm e}^{2} \ln \left (x \left (5 \ln \left (3\right )-4 \,{\mathrm e}\right ) {\mathrm e}^{-1}\right )}{\left (5 \ln \left (3\right )-4 \,{\mathrm e}\right )^{2}}\) \(308\)
default \(\frac {4 \,{\mathrm e}^{2} \left (\frac {x^{2} \left (5 \ln \left (3\right )-4 \,{\mathrm e}\right )^{2} {\mathrm e}^{-2} \ln \left (x \left (5 \ln \left (3\right )-4 \,{\mathrm e}\right ) {\mathrm e}^{-1}\right )}{2}-\frac {x^{2} \left (5 \ln \left (3\right )-4 \,{\mathrm e}\right )^{2} {\mathrm e}^{-2}}{4}\right )}{\left (5 \ln \left (3\right )-4 \,{\mathrm e}\right )^{2}}+\frac {5 \ln \left (3\right ) {\mathrm e} \left (x \left (5 \ln \left (3\right )-4 \,{\mathrm e}\right ) {\mathrm e}^{-1} \ln \left (x \left (5 \ln \left (3\right )-4 \,{\mathrm e}\right ) {\mathrm e}^{-1}\right )-x \left (5 \ln \left (3\right )-4 \,{\mathrm e}\right ) {\mathrm e}^{-1}\right )}{\left (5 \ln \left (3\right )-4 \,{\mathrm e}\right )^{2}}-\frac {4 \,{\mathrm e}^{2} \left (x \left (5 \ln \left (3\right )-4 \,{\mathrm e}\right ) {\mathrm e}^{-1} \ln \left (x \left (5 \ln \left (3\right )-4 \,{\mathrm e}\right ) {\mathrm e}^{-1}\right )-x \left (5 \ln \left (3\right )-4 \,{\mathrm e}\right ) {\mathrm e}^{-1}\right )}{\left (5 \ln \left (3\right )-4 \,{\mathrm e}\right )^{2}}+x^{2}-\frac {125 \ln \left (3\right )^{2} \ln \left (x \left (5 \ln \left (3\right )-4 \,{\mathrm e}\right ) {\mathrm e}^{-1}\right )}{\left (5 \ln \left (3\right )-4 \,{\mathrm e}\right )^{2}}+\frac {200 \ln \left (3\right ) {\mathrm e} \ln \left (x \left (5 \ln \left (3\right )-4 \,{\mathrm e}\right ) {\mathrm e}^{-1}\right )}{\left (5 \ln \left (3\right )-4 \,{\mathrm e}\right )^{2}}-\frac {80 \,{\mathrm e}^{2} \ln \left (x \left (5 \ln \left (3\right )-4 \,{\mathrm e}\right ) {\mathrm e}^{-1}\right )}{\left (5 \ln \left (3\right )-4 \,{\mathrm e}\right )^{2}}\) \(308\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

4/(5*ln(3)-4*exp(1))^2*exp(1)^2*(1/2*x^2*(5*ln(3)-4*exp(1))^2/exp(1)^2*ln(x*(5*ln(3)-4*exp(1))/exp(1))-1/4*x^2
*(5*ln(3)-4*exp(1))^2/exp(1)^2)+5/(5*ln(3)-4*exp(1))^2*ln(3)*exp(1)*(x*(5*ln(3)-4*exp(1))/exp(1)*ln(x*(5*ln(3)
-4*exp(1))/exp(1))-x*(5*ln(3)-4*exp(1))/exp(1))-4/(5*ln(3)-4*exp(1))^2*exp(1)^2*(x*(5*ln(3)-4*exp(1))/exp(1)*l
n(x*(5*ln(3)-4*exp(1))/exp(1))-x*(5*ln(3)-4*exp(1))/exp(1))+x^2-125/(5*ln(3)-4*exp(1))^2*ln(3)^2*ln(x*(5*ln(3)
-4*exp(1))/exp(1))+200/(5*ln(3)-4*exp(1))^2*ln(3)*exp(1)*ln(x*(5*ln(3)-4*exp(1))/exp(1))-80/(5*ln(3)-4*exp(1))
^2*exp(1)^2*ln(x*(5*ln(3)-4*exp(1))/exp(1))

________________________________________________________________________________________

Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 98 vs. \(2 (26) = 52\).
time = 0.27, size = 98, normalized size = 2.97 \begin {gather*} \frac {{\left (5 \, e^{\left (-1\right )} \log \left (3\right ) - 4\right )} x^{2} e}{4 \, e - 5 \, \log \left (3\right )} + 2 \, x^{2} \log \left (5 \, x e^{\left (-1\right )} \log \left (3\right ) - 4 \, x\right ) + x^{2} - \frac {5 \, x e^{\left (-1\right )} \log \left (3\right ) - {\left (5 \, x e^{\left (-1\right )} \log \left (3\right ) - 4 \, x\right )} \log \left (5 \, x e^{\left (-1\right )} \log \left (3\right ) - 4 \, x\right ) - 4 \, x}{5 \, e^{\left (-1\right )} \log \left (3\right ) - 4} - 5 \, \log \left (x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Fricas [A]
time = 0.36, size = 29, normalized size = 0.88 \begin {gather*} {\left (2 \, x^{2} + x - 5\right )} \log \left (-{\left (4 \, x e - 5 \, x \log \left (3\right )\right )} e^{\left (-1\right )}\right ) - x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Sympy [A]
time = 0.07, size = 31, normalized size = 0.94 \begin {gather*} - x + \left (2 x^{2} + x\right ) \log {\left (\frac {- 4 e x + 5 x \log {\left (3 \right )}}{e} \right )} - 5 \log {\left (x \right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Mupad [B]
time = 1.18, size = 39, normalized size = 1.18 \begin {gather*} x\,\ln \left (5\,x\,{\mathrm {e}}^{-1}\,\ln \left (3\right )-4\,x\right )-5\,\ln \left (x\right )-x+2\,x^2\,\ln \left (5\,x\,{\mathrm {e}}^{-1}\,\ln \left (3\right )-4\,x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________