3.65.73 \(\int \frac {5 e^{5-x}+(5+e^{5-x} (-5-5 x)) \log (x)+(5-5 \log (x)) \log (5 x)}{2 x^2} \, dx\)

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

________________________________________________________________________________________

Rubi [A]  time = 0.12, antiderivative size = 30, normalized size of antiderivative = 1.43, number of steps used = 9, number of rules used = 6, integrand size = 46, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {12, 14, 2288, 2304, 2303, 2366} \begin {gather*} \frac {5 \log (5 x) \log (x)}{2 x}+\frac {5 e^{5-x} \log (x)}{2 x} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

(5*E^(5 - x)*Log[x])/(2*x) + (5*Log[x]*Log[5*x])/(2*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 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 2288

Int[(y_.)*(F_)^(u_)*((v_) + (w_)), x_Symbol] :> With[{z = (v*y)/(Log[F]*D[u, x])}, Simp[F^u*z, x] /; EqQ[D[z,
x], w*y]] /; FreeQ[F, x]

Rule 2303

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

Rule 2304

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 2366

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((d_.) + Log[(f_.)*(x_)^(r_.)]*(e_.))*((g_.)*(x_))^(m_.), x_Sy
mbol] :> With[{u = IntHide[(g*x)^m*(a + b*Log[c*x^n])^p, x]}, Dist[d + e*Log[f*x^r], u, x] - Dist[e*r, Int[Sim
plifyIntegrand[u/x, x], x], x]] /; FreeQ[{a, b, c, d, e, f, g, m, n, p, r}, x] &&  !(EqQ[p, 1] && EqQ[a, 0] &&
 NeQ[d, 0])

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.92, size = 26, normalized size = 1.24 \begin {gather*} \frac {5 e^{-x} \log (x) \left (e^5+e^x \log (5 x)\right )}{2 x} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.65, size = 22, normalized size = 1.05 \begin {gather*} \frac {5 \, {\left ({\left (e^{\left (-x + 5\right )} + \log \relax (5)\right )} \log \relax (x) + \log \relax (x)^{2}\right )}}{2 \, x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

giac [A]  time = 0.14, size = 24, normalized size = 1.14 \begin {gather*} \frac {5 \, {\left (e^{\left (-x + 5\right )} \log \relax (x) + \log \relax (5) \log \relax (x) + \log \relax (x)^{2}\right )}}{2 \, x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.11, size = 31, normalized size = 1.48




method result size



risch \(\frac {5 \ln \relax (x )^{2}}{2 x}+\frac {5 \left (2 \ln \relax (5)+2 \,{\mathrm e}^{5-x}\right ) \ln \relax (x )}{4 x}\) \(31\)
default \(\frac {5 \ln \relax (x ) \ln \relax (5)}{2 x}+\frac {5 \ln \relax (5)}{2 x}+\frac {5 \ln \relax (x )^{2}}{2 x}+\frac {5 \ln \relax (x )}{2 x}+\frac {5 \ln \relax (x ) {\mathrm e}^{5-x}}{2 x}-\frac {5 \ln \left (5 x \right )}{2 x}\) \(56\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} -\frac {5}{2} \, e^{5} \Gamma \left (-1, x\right ) + \frac {5 \, {\left ({\left (\log \relax (5) + 1\right )} \log \relax (x) + e^{\left (-x + 5\right )} \log \relax (x) + \log \relax (x)^{2} + 1\right )}}{2 \, x} - \frac {5 \, \log \relax (x)}{2 \, x} - \frac {5}{2 \, x} - \frac {5}{2} \, \int \frac {e^{\left (-x + 5\right )}}{x^{2}}\,{d x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-5/2*e^5*gamma(-1, x) + 5/2*((log(5) + 1)*log(x) + e^(-x + 5)*log(x) + log(x)^2 + 1)/x - 5/2*log(x)/x - 5/2/x
- 5/2*integrate(e^(-x + 5)/x^2, x)

________________________________________________________________________________________

mupad [B]  time = 4.15, size = 24, normalized size = 1.14 \begin {gather*} \frac {5\,{\mathrm {e}}^{-x}\,\ln \relax (x)\,\left ({\mathrm {e}}^5+{\mathrm {e}}^x\,\ln \relax (x)+{\mathrm {e}}^x\,\ln \relax (5)\right )}{2\,x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

(5*exp(-x)*log(x)*(exp(5) + exp(x)*log(x) + exp(x)*log(5)))/(2*x)

________________________________________________________________________________________

sympy [A]  time = 0.34, size = 34, normalized size = 1.62 \begin {gather*} \frac {5 e^{5 - x} \log {\relax (x )}}{2 x} + \frac {5 \log {\relax (x )}^{2}}{2 x} + \frac {5 \log {\relax (5 )} \log {\relax (x )}}{2 x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

5*exp(5 - x)*log(x)/(2*x) + 5*log(x)**2/(2*x) + 5*log(5)*log(x)/(2*x)

________________________________________________________________________________________