3.97.43 \(\int \frac {-5-x^2+(5+3 x^2) \log (x)+e^7 (1-2 x) \log ^2(x)}{e^7 \log ^2(x)} \, dx\)

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

________________________________________________________________________________________

Rubi [A]  time = 0.17, antiderivative size = 33, normalized size of antiderivative = 1.50, number of steps used = 15, number of rules used = 8, integrand size = 38, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.210, Rules used = {12, 6742, 2330, 2297, 2298, 2306, 2309, 2178} \begin {gather*} \frac {x^3}{e^7 \log (x)}-\frac {1}{4} (1-2 x)^2+\frac {5 x}{e^7 \log (x)} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

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

Rule 2298

Int[Log[(c_.)*(x_)]^(-1), x_Symbol] :> Simp[LogIntegral[c*x]/c, x] /; FreeQ[c, x]

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 2330

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((d_) + (e_.)*(x_)^(r_.))^(q_.), x_Symbol] :> With[{u = Expand
Integrand[(a + b*Log[c*x^n])^p, (d + e*x^r)^q, x]}, Int[u, x] /; SumQ[u]] /; FreeQ[{a, b, c, d, e, n, p, q, r}
, x] && IntegerQ[q] && (GtQ[q, 0] || (IGtQ[p, 0] && IntegerQ[r]))

Rule 6742

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

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.07, size = 24, normalized size = 1.09 \begin {gather*} \frac {x \left (5+x^2-e^7 (-1+x) \log (x)\right )}{e^7 \log (x)} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.57, size = 27, normalized size = 1.23 \begin {gather*} \frac {{\left (x^{3} - {\left (x^{2} - x\right )} e^{7} \log \relax (x) + 5 \, x\right )} e^{\left (-7\right )}}{\log \relax (x)} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-(x^2*e^7 - x*e^7 - x^3/log(x) - 5*x/log(x))*e^(-7)

________________________________________________________________________________________

maple [A]  time = 0.05, size = 21, normalized size = 0.95




method result size



risch \(-x \left (x -1\right )+\frac {\left (x^{2}+5\right ) x \,{\mathrm e}^{-7}}{\ln \relax (x )}\) \(21\)
default \({\mathrm e}^{-7} \left (-x^{2} {\mathrm e}^{7}+x \,{\mathrm e}^{7}+\frac {x^{3}}{\ln \relax (x )}+\frac {5 x}{\ln \relax (x )}\right )\) \(33\)
norman \(\frac {x \ln \relax (x )+{\mathrm e}^{-7} x^{3}-x^{2} \ln \relax (x )+5 \,{\mathrm e}^{-7} x}{\ln \relax (x )}\) \(33\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maxima [C]  time = 0.38, size = 44, normalized size = 2.00 \begin {gather*} -{\left (x^{2} e^{7} - x e^{7} - 3 \, {\rm Ei}\left (3 \, \log \relax (x)\right ) - 5 \, {\rm Ei}\left (\log \relax (x)\right ) + 5 \, \Gamma \left (-1, -\log \relax (x)\right ) + 3 \, \Gamma \left (-1, -3 \, \log \relax (x)\right )\right )} e^{\left (-7\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-(x^2*e^7 - x*e^7 - 3*Ei(3*log(x)) - 5*Ei(log(x)) + 5*gamma(-1, -log(x)) + 3*gamma(-1, -3*log(x)))*e^(-7)

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

sympy [A]  time = 0.10, size = 17, normalized size = 0.77 \begin {gather*} - x^{2} + x + \frac {x^{3} + 5 x}{e^{7} \log {\relax (x )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________