3.4.39 \(\int \frac {e^{6-2 e^x x+2 x \log (25-x)} ((50-2 x+2 x^2) \log (2)+e^x (50 x+48 x^2-2 x^3) \log (2)+(-50 x+2 x^2) \log (2) \log (25-x))}{-25 x^3+x^4} \, dx\)

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

________________________________________________________________________________________

Rubi [B]  time = 8.07, antiderivative size = 102, normalized size of antiderivative = 3.09, number of steps used = 4, number of rules used = 4, integrand size = 83, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.048, Rules used = {1593, 6741, 12, 2288} \begin {gather*} \frac {e^{2 \left (3-e^x x\right )} (25-x)^{2 x-1} \log (2) \left (-e^x x^3+24 e^x x^2+x^2+x^2 \log (25-x)+25 e^x x-25 x \log (25-x)\right )}{x^3 \left (e^x x+\frac {x}{25-x}+e^x-\log (25-x)\right )} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(E^(6 - 2*E^x*x + 2*x*Log[25 - x])*((50 - 2*x + 2*x^2)*Log[2] + E^x*(50*x + 48*x^2 - 2*x^3)*Log[2] + (-50*
x + 2*x^2)*Log[2]*Log[25 - x]))/(-25*x^3 + x^4),x]

[Out]

(E^(2*(3 - E^x*x))*(25 - x)^(-1 + 2*x)*Log[2]*(25*E^x*x + x^2 + 24*E^x*x^2 - E^x*x^3 - 25*x*Log[25 - x] + x^2*
Log[25 - x]))/(x^3*(E^x + E^x*x + x/(25 - x) - Log[25 - 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 1593

Int[(u_.)*((a_.)*(x_)^(p_.) + (b_.)*(x_)^(q_.))^(n_.), x_Symbol] :> Int[u*x^(n*p)*(a + b*x^(q - p))^n, x] /; F
reeQ[{a, b, p, q}, x] && IntegerQ[n] && PosQ[q - p]

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 6741

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

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 5.08, size = 25, normalized size = 0.76 \begin {gather*} \frac {e^{6-2 e^x x} (25-x)^{2 x} \log (2)}{x^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(E^(6 - 2*E^x*x + 2*x*Log[25 - x])*((50 - 2*x + 2*x^2)*Log[2] + E^x*(50*x + 48*x^2 - 2*x^3)*Log[2] +
 (-50*x + 2*x^2)*Log[2]*Log[25 - x]))/(-25*x^3 + x^4),x]

[Out]

(E^(6 - 2*E^x*x)*(25 - x)^(2*x)*Log[2])/x^2

________________________________________________________________________________________

fricas [A]  time = 0.82, size = 23, normalized size = 0.70 \begin {gather*} \frac {e^{\left (-2 \, x e^{x} + 2 \, x \log \left (-x + 25\right ) + 6\right )} \log \relax (2)}{x^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((2*x^2-50*x)*log(2)*log(-x+25)+(-2*x^3+48*x^2+50*x)*log(2)*exp(x)+(2*x^2-2*x+50)*log(2))*exp(x*log(
-x+25)-exp(x)*x+3)^2/(x^4-25*x^3),x, algorithm="fricas")

[Out]

e^(-2*x*e^x + 2*x*log(-x + 25) + 6)*log(2)/x^2

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int -\frac {2 \, {\left ({\left (x^{3} - 24 \, x^{2} - 25 \, x\right )} e^{x} \log \relax (2) - {\left (x^{2} - 25 \, x\right )} \log \relax (2) \log \left (-x + 25\right ) - {\left (x^{2} - x + 25\right )} \log \relax (2)\right )} e^{\left (-2 \, x e^{x} + 2 \, x \log \left (-x + 25\right ) + 6\right )}}{x^{4} - 25 \, x^{3}}\,{d x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((2*x^2-50*x)*log(2)*log(-x+25)+(-2*x^3+48*x^2+50*x)*log(2)*exp(x)+(2*x^2-2*x+50)*log(2))*exp(x*log(
-x+25)-exp(x)*x+3)^2/(x^4-25*x^3),x, algorithm="giac")

[Out]

integrate(-2*((x^3 - 24*x^2 - 25*x)*e^x*log(2) - (x^2 - 25*x)*log(2)*log(-x + 25) - (x^2 - x + 25)*log(2))*e^(
-2*x*e^x + 2*x*log(-x + 25) + 6)/(x^4 - 25*x^3), x)

________________________________________________________________________________________

maple [A]  time = 0.28, size = 24, normalized size = 0.73




method result size



risch \(\frac {\ln \relax (2) \left (-x +25\right )^{2 x} {\mathrm e}^{-2 \,{\mathrm e}^{x} x +6}}{x^{2}}\) \(24\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((2*x^2-50*x)*ln(2)*ln(-x+25)+(-2*x^3+48*x^2+50*x)*ln(2)*exp(x)+(2*x^2-2*x+50)*ln(2))*exp(x*ln(-x+25)-exp(
x)*x+3)^2/(x^4-25*x^3),x,method=_RETURNVERBOSE)

[Out]

1/x^2*ln(2)*((-x+25)^x)^2*exp(-2*exp(x)*x+6)

________________________________________________________________________________________

maxima [A]  time = 0.77, size = 23, normalized size = 0.70 \begin {gather*} \frac {e^{\left (-2 \, x e^{x} + 2 \, x \log \left (-x + 25\right ) + 6\right )} \log \relax (2)}{x^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((2*x^2-50*x)*log(2)*log(-x+25)+(-2*x^3+48*x^2+50*x)*log(2)*exp(x)+(2*x^2-2*x+50)*log(2))*exp(x*log(
-x+25)-exp(x)*x+3)^2/(x^4-25*x^3),x, algorithm="maxima")

[Out]

e^(-2*x*e^x + 2*x*log(-x + 25) + 6)*log(2)/x^2

________________________________________________________________________________________

mupad [B]  time = 0.79, size = 23, normalized size = 0.70 \begin {gather*} \frac {{\mathrm {e}}^{-2\,x\,{\mathrm {e}}^x}\,{\mathrm {e}}^6\,\ln \relax (2)\,{\left (25-x\right )}^{2\,x}}{x^2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-(exp(2*x*log(25 - x) - 2*x*exp(x) + 6)*(log(2)*(2*x^2 - 2*x + 50) + exp(x)*log(2)*(50*x + 48*x^2 - 2*x^3)
 - log(2)*log(25 - x)*(50*x - 2*x^2)))/(25*x^3 - x^4),x)

[Out]

(exp(-2*x*exp(x))*exp(6)*log(2)*(25 - x)^(2*x))/x^2

________________________________________________________________________________________

sympy [A]  time = 0.51, size = 24, normalized size = 0.73 \begin {gather*} \frac {e^{- 2 x e^{x} + 2 x \log {\left (25 - x \right )} + 6} \log {\relax (2 )}}{x^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((2*x**2-50*x)*ln(2)*ln(-x+25)+(-2*x**3+48*x**2+50*x)*ln(2)*exp(x)+(2*x**2-2*x+50)*ln(2))*exp(x*ln(-
x+25)-exp(x)*x+3)**2/(x**4-25*x**3),x)

[Out]

exp(-2*x*exp(x) + 2*x*log(25 - x) + 6)*log(2)/x**2

________________________________________________________________________________________