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

Optimal. Leaf size=25 \[ \frac {-e^5-\frac {1}{7} e^{e^3} (-1+x)}{\log (-3+x)} \]

________________________________________________________________________________________

Rubi [A]  time = 0.53, antiderivative size = 44, normalized size of antiderivative = 1.76, number of steps used = 11, number of rules used = 8, integrand size = 44, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {6742, 2411, 2353, 2297, 2298, 2302, 30, 2389} \begin {gather*} \frac {e^{e^3} (3-x)}{7 \log (x-3)}-\frac {7 e^5+2 e^{e^3}}{7 \log (x-3)} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

Rule 30

Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]

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 2302

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)/(x_), x_Symbol] :> Dist[1/(b*n), Subst[Int[x^p, x], x, a + b*L
og[c*x^n]], x] /; FreeQ[{a, b, c, n, p}, x]

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 2389

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.), x_Symbol] :> Dist[1/e, Subst[Int[(a + b*Log[c*
x^n])^p, x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, n, p}, x]

Rule 2411

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_.) + (g_.)*(x_))^(q_.)*((h_.) + (i_.)*(x_))
^(r_.), x_Symbol] :> Dist[1/e, Subst[Int[((g*x)/e)^q*((e*h - d*i)/e + (i*x)/e)^r*(a + b*Log[c*x^n])^p, x], x,
d + e*x], x] /; FreeQ[{a, b, c, d, e, f, g, h, i, n, p, q, r}, x] && EqQ[e*f - d*g, 0] && (IGtQ[p, 0] || IGtQ[
r, 0]) && IntegerQ[2*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} &=\int \left (\frac {7 e^5-e^{e^3}+e^{e^3} x}{7 (-3+x) \log ^2(-3+x)}-\frac {e^{e^3}}{7 \log (-3+x)}\right ) \, dx\\ &=\frac {1}{7} \int \frac {7 e^5-e^{e^3}+e^{e^3} x}{(-3+x) \log ^2(-3+x)} \, dx-\frac {1}{7} e^{e^3} \int \frac {1}{\log (-3+x)} \, dx\\ &=\frac {1}{7} \operatorname {Subst}\left (\int \frac {7 e^5+2 e^{e^3}+e^{e^3} x}{x \log ^2(x)} \, dx,x,-3+x\right )-\frac {1}{7} e^{e^3} \operatorname {Subst}\left (\int \frac {1}{\log (x)} \, dx,x,-3+x\right )\\ &=-\frac {1}{7} e^{e^3} \text {li}(-3+x)+\frac {1}{7} \operatorname {Subst}\left (\int \left (\frac {e^{e^3}}{\log ^2(x)}+\frac {7 e^5+2 e^{e^3}}{x \log ^2(x)}\right ) \, dx,x,-3+x\right )\\ &=-\frac {1}{7} e^{e^3} \text {li}(-3+x)+\frac {1}{7} e^{e^3} \operatorname {Subst}\left (\int \frac {1}{\log ^2(x)} \, dx,x,-3+x\right )+\frac {1}{7} \left (7 e^5+2 e^{e^3}\right ) \operatorname {Subst}\left (\int \frac {1}{x \log ^2(x)} \, dx,x,-3+x\right )\\ &=\frac {e^{e^3} (3-x)}{7 \log (-3+x)}-\frac {1}{7} e^{e^3} \text {li}(-3+x)+\frac {1}{7} e^{e^3} \operatorname {Subst}\left (\int \frac {1}{\log (x)} \, dx,x,-3+x\right )+\frac {1}{7} \left (7 e^5+2 e^{e^3}\right ) \operatorname {Subst}\left (\int \frac {1}{x^2} \, dx,x,\log (-3+x)\right )\\ &=-\frac {7 e^5+2 e^{e^3}}{7 \log (-3+x)}+\frac {e^{e^3} (3-x)}{7 \log (-3+x)}\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]  time = 0.12, size = 25, normalized size = 1.00 \begin {gather*} -\frac {7 e^5+e^{e^3} (-1+x)}{7 \log (-3+x)} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.92, size = 20, normalized size = 0.80 \begin {gather*} -\frac {{\left (x - 1\right )} e^{\left (e^{3}\right )} + 7 \, e^{5}}{7 \, \log \left (x - 3\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

giac [A]  time = 0.18, size = 23, normalized size = 0.92 \begin {gather*} -\frac {x e^{\left (e^{3}\right )} + 7 \, e^{5} - e^{\left (e^{3}\right )}}{7 \, \log \left (x - 3\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.33, size = 24, normalized size = 0.96




method result size



norman \(\frac {-\frac {x \,{\mathrm e}^{{\mathrm e}^{3}}}{7}+\frac {{\mathrm e}^{{\mathrm e}^{3}}}{7}-{\mathrm e}^{5}}{\ln \left (x -3\right )}\) \(24\)
risch \(-\frac {7 \,{\mathrm e}^{5}+x \,{\mathrm e}^{{\mathrm e}^{3}}-{\mathrm e}^{{\mathrm e}^{3}}}{7 \ln \left (x -3\right )}\) \(24\)
derivativedivides \(\frac {{\mathrm e}^{{\mathrm e}^{3}} \expIntegralEi \left (1, -\ln \left (x -3\right )\right )}{7}+\frac {{\mathrm e}^{{\mathrm e}^{3}} \left (-\frac {x -3}{\ln \left (x -3\right )}-\expIntegralEi \left (1, -\ln \left (x -3\right )\right )\right )}{7}-\frac {{\mathrm e}^{5}}{\ln \left (x -3\right )}-\frac {2 \,{\mathrm e}^{{\mathrm e}^{3}}}{7 \ln \left (x -3\right )}\) \(63\)
default \(\frac {{\mathrm e}^{{\mathrm e}^{3}} \expIntegralEi \left (1, -\ln \left (x -3\right )\right )}{7}+\frac {{\mathrm e}^{{\mathrm e}^{3}} \left (-\frac {x -3}{\ln \left (x -3\right )}-\expIntegralEi \left (1, -\ln \left (x -3\right )\right )\right )}{7}-\frac {{\mathrm e}^{5}}{\ln \left (x -3\right )}-\frac {2 \,{\mathrm e}^{{\mathrm e}^{3}}}{7 \ln \left (x -3\right )}\) \(63\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maxima [A]  time = 0.46, size = 39, normalized size = 1.56 \begin {gather*} -\frac {x e^{\left (e^{3}\right )}}{7 \, \log \left (x - 3\right )} - \frac {e^{5}}{\log \left (x - 3\right )} + \frac {e^{\left (e^{3}\right )}}{7 \, \log \left (x - 3\right )} - \frac {3}{7} \, e^{\left (e^{3}\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 1.20, size = 23, normalized size = 0.92 \begin {gather*} -\frac {7\,{\mathrm {e}}^5-{\mathrm {e}}^{{\mathrm {e}}^3}+x\,{\mathrm {e}}^{{\mathrm {e}}^3}}{7\,\ln \left (x-3\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

sympy [A]  time = 0.11, size = 22, normalized size = 0.88 \begin {gather*} \frac {- x e^{e^{3}} - 7 e^{5} + e^{e^{3}}}{7 \log {\left (x - 3 \right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________