3.77.67 \(\int \frac {e^{39-e^3-x} (1+x)+(e^{39-e^3-x}+x) \log (\frac {x}{e^{39-e^3-x}+x})}{e^{39-e^3-x}+x} \, dx\)

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

________________________________________________________________________________________

Rubi [A]  time = 0.33, antiderivative size = 21, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 4, integrand size = 68, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.059, Rules used = {6688, 6742, 2548, 12} \begin {gather*} x \log \left (\frac {x}{x+e^{-x-e^3+39}}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

x*Log[x/(E^(39 - E^3 - x) + 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 2548

Int[Log[u_], x_Symbol] :> Simp[x*Log[u], x] - Int[SimplifyIntegrand[(x*D[u, x])/u, x], x] /; InverseFunctionFr
eeQ[u, x]

Rule 6688

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

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

________________________________________________________________________________________

Mathematica [A]  time = 0.26, size = 21, normalized size = 1.00 \begin {gather*} x \log \left (\frac {x}{e^{39-e^3-x}+x}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

x*Log[x/(E^(39 - E^3 - x) + x)]

________________________________________________________________________________________

fricas [A]  time = 1.00, size = 19, normalized size = 0.90 \begin {gather*} x \log \left (\frac {x}{x + e^{\left (-x - e^{3} + 39\right )}}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((exp(-exp(3)-x+39)+x)*log(x/(exp(-exp(3)-x+39)+x))+(x+1)*exp(-exp(3)-x+39))/(exp(-exp(3)-x+39)+x),x
, algorithm="fricas")

[Out]

x*log(x/(x + e^(-x - e^3 + 39)))

________________________________________________________________________________________

giac [A]  time = 0.19, size = 21, normalized size = 1.00 \begin {gather*} -x \log \left (x + e^{\left (-x - e^{3} + 39\right )}\right ) + x \log \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((exp(-exp(3)-x+39)+x)*log(x/(exp(-exp(3)-x+39)+x))+(x+1)*exp(-exp(3)-x+39))/(exp(-exp(3)-x+39)+x),x
, algorithm="giac")

[Out]

-x*log(x + e^(-x - e^3 + 39)) + x*log(x)

________________________________________________________________________________________

maple [A]  time = 0.09, size = 20, normalized size = 0.95




method result size



norman \(x \ln \left (\frac {x}{{\mathrm e}^{-{\mathrm e}^{3}-x +39}+x}\right )\) \(20\)
risch \(-x \ln \left ({\mathrm e}^{-{\mathrm e}^{3}-x +39}+x \right )+x \ln \relax (x )+\frac {i x \pi \,\mathrm {csgn}\left (\frac {i}{{\mathrm e}^{-{\mathrm e}^{3}-x +39}+x}\right ) \mathrm {csgn}\left (\frac {i x}{{\mathrm e}^{-{\mathrm e}^{3}-x +39}+x}\right )^{2}}{2}-\frac {i x \pi \,\mathrm {csgn}\left (\frac {i}{{\mathrm e}^{-{\mathrm e}^{3}-x +39}+x}\right ) \mathrm {csgn}\left (\frac {i x}{{\mathrm e}^{-{\mathrm e}^{3}-x +39}+x}\right ) \mathrm {csgn}\left (i x \right )}{2}-\frac {i x \pi \mathrm {csgn}\left (\frac {i x}{{\mathrm e}^{-{\mathrm e}^{3}-x +39}+x}\right )^{3}}{2}+\frac {i x \pi \mathrm {csgn}\left (\frac {i x}{{\mathrm e}^{-{\mathrm e}^{3}-x +39}+x}\right )^{2} \mathrm {csgn}\left (i x \right )}{2}\) \(170\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((exp(-exp(3)-x+39)+x)*ln(x/(exp(-exp(3)-x+39)+x))+(x+1)*exp(-exp(3)-x+39))/(exp(-exp(3)-x+39)+x),x,method
=_RETURNVERBOSE)

[Out]

x*ln(x/(exp(-exp(3)-x+39)+x))

________________________________________________________________________________________

maxima [A]  time = 0.40, size = 26, normalized size = 1.24 \begin {gather*} x^{2} + x e^{3} - x \log \left (x e^{\left (x + e^{3}\right )} + e^{39}\right ) + x \log \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((exp(-exp(3)-x+39)+x)*log(x/(exp(-exp(3)-x+39)+x))+(x+1)*exp(-exp(3)-x+39))/(exp(-exp(3)-x+39)+x),x
, algorithm="maxima")

[Out]

x^2 + x*e^3 - x*log(x*e^(x + e^3) + e^39) + x*log(x)

________________________________________________________________________________________

mupad [B]  time = 5.09, size = 21, normalized size = 1.00 \begin {gather*} x\,\ln \left (\frac {x}{x+{\mathrm {e}}^{-{\mathrm {e}}^3}\,{\mathrm {e}}^{-x}\,{\mathrm {e}}^{39}}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((log(x/(x + exp(39 - exp(3) - x)))*(x + exp(39 - exp(3) - x)) + exp(39 - exp(3) - x)*(x + 1))/(x + exp(39
- exp(3) - x)),x)

[Out]

x*log(x/(x + exp(-exp(3))*exp(-x)*exp(39)))

________________________________________________________________________________________

sympy [A]  time = 0.34, size = 14, normalized size = 0.67 \begin {gather*} x \log {\left (\frac {x}{x + e^{- x - e^{3} + 39}} \right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((exp(-exp(3)-x+39)+x)*ln(x/(exp(-exp(3)-x+39)+x))+(x+1)*exp(-exp(3)-x+39))/(exp(-exp(3)-x+39)+x),x)

[Out]

x*log(x/(x + exp(-x - exp(3) + 39)))

________________________________________________________________________________________