3.54.86 \(\int \frac {-160+100 x+e^5 (-6+4 x)+(-50-2 e^5) \log (3)+e^x (50+50 x+e^5 (2+2 x)+(-50-2 e^5) \log (3))}{25+e^5} \, dx\) [5386]

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

[Out]

-2*(-ln(3)+x)*(3+5/(exp(5)+25)-exp(x)-x)

________________________________________________________________________________________

Rubi [B] Leaf count is larger than twice the leaf count of optimal. \(66\) vs. \(2(27)=54\).
time = 0.07, antiderivative size = 66, normalized size of antiderivative = 2.44, number of steps used = 5, number of rules used = 4, integrand size = 60, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.067, Rules used = {12, 2218, 2207, 2225} \begin {gather*} \frac {50 x^2}{25+e^5}+\frac {e^5 (3-2 x)^2}{2 \left (25+e^5\right )}-2 e^x+2 e^x (x+1-\log (3))-2 x \left (\frac {80}{25+e^5}+\log (3)\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 2207

Int[((b_.)*(F_)^((g_.)*((e_.) + (f_.)*(x_))))^(n_.)*((c_.) + (d_.)*(x_))^(m_.), x_Symbol] :> Simp[(c + d*x)^m*
((b*F^(g*(e + f*x)))^n/(f*g*n*Log[F])), x] - Dist[d*(m/(f*g*n*Log[F])), Int[(c + d*x)^(m - 1)*(b*F^(g*(e + f*x
)))^n, x], x] /; FreeQ[{F, b, c, d, e, f, g, n}, x] && GtQ[m, 0] && IntegerQ[2*m] &&  !TrueQ[$UseGamma]

Rule 2218

Int[((a_.) + (b_.)*((F_)^((g_.)*(v_)))^(n_.))^(p_.)*(u_)^(m_.), x_Symbol] :> Int[NormalizePowerOfLinear[u, x]^
m*(a + b*(F^(g*ExpandToSum[v, x]))^n)^p, x] /; FreeQ[{F, a, b, g, n, p}, x] && LinearQ[v, x] && PowerOfLinearQ
[u, x] &&  !(LinearMatchQ[v, x] && PowerOfLinearMatchQ[u, x]) && IntegerQ[m]

Rule 2225

Int[((F_)^((c_.)*((a_.) + (b_.)*(x_))))^(n_.), x_Symbol] :> Simp[(F^(c*(a + b*x)))^n/(b*c*n*Log[F]), x] /; Fre
eQ[{F, a, b, c, n}, x]

Rubi steps

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

________________________________________________________________________________________

Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(64\) vs. \(2(27)=54\).
time = 0.04, size = 64, normalized size = 2.37 \begin {gather*} \frac {2 \left (-80 x+25 x^2+e^5 x^2+e^5 x (-3-\log (3))+25 e^x (x-\log (3))+e^{5+x} (x-\log (3))-25 x \log (3)\right )}{25+e^5} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

(2*(-80*x + 25*x^2 + E^5*x^2 + E^5*x*(-3 - Log[3]) + 25*E^x*(x - Log[3]) + E^(5 + x)*(x - Log[3]) - 25*x*Log[3
]))/(25 + E^5)

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(66\) vs. \(2(25)=50\).
time = 0.28, size = 67, normalized size = 2.48

method result size
norman \(2 x^{2}+2 \,{\mathrm e}^{x} x -2 \ln \left (3\right ) {\mathrm e}^{x}-\frac {2 \left ({\mathrm e}^{5} \ln \left (3\right )+3 \,{\mathrm e}^{5}+25 \ln \left (3\right )+80\right ) x}{{\mathrm e}^{5}+25}\) \(42\)
default \(\frac {-160 x +{\mathrm e}^{5} \left (2 x^{2}-6 x \right )-2 x \,{\mathrm e}^{5} \ln \left (3\right )-50 x \ln \left (3\right )+50 \,{\mathrm e}^{x} x -50 \ln \left (3\right ) {\mathrm e}^{x}+2 x \,{\mathrm e}^{5} {\mathrm e}^{x}-2 \,{\mathrm e}^{5} {\mathrm e}^{x} \ln \left (3\right )+50 x^{2}}{{\mathrm e}^{5}+25}\) \(67\)
risch \(-\frac {2 x \,{\mathrm e}^{5} \ln \left (3\right )}{{\mathrm e}^{5}+25}+\frac {2 x^{2} {\mathrm e}^{5}}{{\mathrm e}^{5}+25}-\frac {6 x \,{\mathrm e}^{5}}{{\mathrm e}^{5}+25}-\frac {50 x \ln \left (3\right )}{{\mathrm e}^{5}+25}+\frac {50 x^{2}}{{\mathrm e}^{5}+25}-\frac {160 x}{{\mathrm e}^{5}+25}+\frac {\left (-2 \,{\mathrm e}^{5} \ln \left (3\right )+2 x \,{\mathrm e}^{5}-50 \ln \left (3\right )+50 x \right ) {\mathrm e}^{x}}{{\mathrm e}^{5}+25}\) \(98\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((((-2*exp(5)-50)*ln(3)+(2*x+2)*exp(5)+50*x+50)*exp(x)+(-2*exp(5)-50)*ln(3)+(4*x-6)*exp(5)+100*x-160)/(exp(
5)+25),x,method=_RETURNVERBOSE)

[Out]

1/(exp(5)+25)*(-160*x+exp(5)*(2*x^2-6*x)-2*x*exp(5)*ln(3)-50*x*ln(3)+50*exp(x)*x-50*ln(3)*exp(x)+2*x*exp(5)*ex
p(x)-2*exp(5)*exp(x)*ln(3)+50*x^2)

________________________________________________________________________________________

Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 57 vs. \(2 (21) = 42\).
time = 0.47, size = 57, normalized size = 2.11 \begin {gather*} -\frac {2 \, {\left (x {\left (e^{5} + 25\right )} \log \left (3\right ) - 25 \, x^{2} - {\left (x^{2} - 3 \, x\right )} e^{5} - {\left (x {\left (e^{5} + 25\right )} - e^{5} \log \left (3\right ) - 25 \, \log \left (3\right )\right )} e^{x} + 80 \, x\right )}}{e^{5} + 25} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((-2*exp(5)-50)*log(3)+(2+2*x)*exp(5)+50*x+50)*exp(x)+(-2*exp(5)-50)*log(3)+(4*x-6)*exp(5)+100*x-16
0)/(exp(5)+25),x, algorithm="maxima")

[Out]

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

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 58 vs. \(2 (21) = 42\).
time = 0.35, size = 58, normalized size = 2.15 \begin {gather*} \frac {2 \, {\left (25 \, x^{2} + {\left (x^{2} - 3 \, x\right )} e^{5} + {\left (x e^{5} - {\left (e^{5} + 25\right )} \log \left (3\right ) + 25 \, x\right )} e^{x} - {\left (x e^{5} + 25 \, x\right )} \log \left (3\right ) - 80 \, x\right )}}{e^{5} + 25} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((-2*exp(5)-50)*log(3)+(2+2*x)*exp(5)+50*x+50)*exp(x)+(-2*exp(5)-50)*log(3)+(4*x-6)*exp(5)+100*x-16
0)/(exp(5)+25),x, algorithm="fricas")

[Out]

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

________________________________________________________________________________________

Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 44 vs. \(2 (20) = 40\).
time = 0.08, size = 44, normalized size = 1.63 \begin {gather*} 2 x^{2} + \frac {x \left (- 6 e^{5} - 2 e^{5} \log {\left (3 \right )} - 160 - 50 \log {\left (3 \right )}\right )}{25 + e^{5}} + \left (2 x - 2 \log {\left (3 \right )}\right ) e^{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((-2*exp(5)-50)*ln(3)+(2+2*x)*exp(5)+50*x+50)*exp(x)+(-2*exp(5)-50)*ln(3)+(4*x-6)*exp(5)+100*x-160)
/(exp(5)+25),x)

[Out]

2*x**2 + x*(-6*exp(5) - 2*exp(5)*log(3) - 160 - 50*log(3))/(25 + exp(5)) + (2*x - 2*log(3))*exp(x)

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 58 vs. \(2 (21) = 42\).
time = 0.39, size = 58, normalized size = 2.15 \begin {gather*} -\frac {2 \, {\left (x {\left (e^{5} + 25\right )} \log \left (3\right ) - 25 \, x^{2} - {\left (x^{2} - 3 \, x\right )} e^{5} - {\left (x - \log \left (3\right )\right )} e^{\left (x + 5\right )} - 25 \, {\left (x - \log \left (3\right )\right )} e^{x} + 80 \, x\right )}}{e^{5} + 25} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((-2*exp(5)-50)*log(3)+(2+2*x)*exp(5)+50*x+50)*exp(x)+(-2*exp(5)-50)*log(3)+(4*x-6)*exp(5)+100*x-16
0)/(exp(5)+25),x, algorithm="giac")

[Out]

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

________________________________________________________________________________________

Mupad [B]
time = 0.10, size = 57, normalized size = 2.11 \begin {gather*} \frac {x^2\,\left (2\,{\mathrm {e}}^5+50\right )-x\,\left (6\,{\mathrm {e}}^5+50\,\ln \left (3\right )+2\,{\mathrm {e}}^5\,\ln \left (3\right )+160\right )-2\,{\mathrm {e}}^x\,\ln \left (3\right )\,\left ({\mathrm {e}}^5+25\right )+x\,{\mathrm {e}}^x\,\left (2\,{\mathrm {e}}^5+50\right )}{{\mathrm {e}}^5+25} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((100*x + exp(x)*(50*x - log(3)*(2*exp(5) + 50) + exp(5)*(2*x + 2) + 50) - log(3)*(2*exp(5) + 50) + exp(5)*
(4*x - 6) - 160)/(exp(5) + 25),x)

[Out]

(x^2*(2*exp(5) + 50) - x*(6*exp(5) + 50*log(3) + 2*exp(5)*log(3) + 160) - 2*exp(x)*log(3)*(exp(5) + 25) + x*ex
p(x)*(2*exp(5) + 50))/(exp(5) + 25)

________________________________________________________________________________________