3.17.78 \(\int (-4 e^x+2 e^{2 x}+\log (\frac {5 x}{2})) \, dx\) [1678]

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

[Out]

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

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 22, normalized size of antiderivative = 1.10, number of steps used = 4, number of rules used = 2, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {2225, 2332} \begin {gather*} -x-4 e^x+e^{2 x}+x \log \left (\frac {5 x}{2}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

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]

Rule 2332

Int[Log[(c_.)*(x_)^(n_.)], x_Symbol] :> Simp[x*Log[c*x^n], x] - Simp[n*x, x] /; FreeQ[{c, n}, x]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 21, normalized size = 1.05 \begin {gather*} e^x \left (-4+e^x\right )-x+x \log \left (\frac {5 x}{2}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

Maple [A]
time = 0.06, size = 19, normalized size = 0.95

method result size
default \({\mathrm e}^{2 x}-4 \,{\mathrm e}^{x}+\ln \left (\frac {5 x}{2}\right ) x -x\) \(19\)
norman \({\mathrm e}^{2 x}-4 \,{\mathrm e}^{x}+\ln \left (\frac {5 x}{2}\right ) x -x\) \(19\)
risch \({\mathrm e}^{2 x}-4 \,{\mathrm e}^{x}+\ln \left (\frac {5 x}{2}\right ) x -x\) \(19\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Maxima [A]
time = 0.28, size = 18, normalized size = 0.90 \begin {gather*} x \log \left (\frac {5}{2} \, x\right ) - x + e^{\left (2 \, x\right )} - 4 \, e^{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Fricas [A]
time = 0.33, size = 18, normalized size = 0.90 \begin {gather*} x \log \left (\frac {5}{2} \, x\right ) - x + e^{\left (2 \, x\right )} - 4 \, e^{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Sympy [A]
time = 0.05, size = 19, normalized size = 0.95 \begin {gather*} x \log {\left (\frac {5 x}{2} \right )} - x + e^{2 x} - 4 e^{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(ln(5/2*x)+2*exp(x)**2-4*exp(x),x)

[Out]

x*log(5*x/2) - x + exp(2*x) - 4*exp(x)

________________________________________________________________________________________

Giac [A]
time = 0.39, size = 18, normalized size = 0.90 \begin {gather*} x \log \left (\frac {5}{2} \, x\right ) - x + e^{\left (2 \, x\right )} - 4 \, e^{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Mupad [B]
time = 1.12, size = 17, normalized size = 0.85 \begin {gather*} {\mathrm {e}}^{2\,x}-4\,{\mathrm {e}}^x+x\,\left (\ln \left (\frac {5\,x}{2}\right )-1\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(2*exp(2*x) + log((5*x)/2) - 4*exp(x),x)

[Out]

exp(2*x) - 4*exp(x) + x*(log((5*x)/2) - 1)

________________________________________________________________________________________