3.77.86 \(\int \frac {1}{3} (3+e^3-e^{1+x}-2 e x+e^3 \log (\frac {x}{4})) \, dx\)

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

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 50, normalized size of antiderivative = 1.52, number of steps used = 4, number of rules used = 3, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {12, 2194, 2295} \begin {gather*} -\frac {e x^2}{3}+\frac {1}{3} \left (3+e^3\right ) x-\frac {e^3 x}{3}-\frac {e^{x+1}}{3}+\frac {1}{3} e^3 x \log \left (\frac {x}{4}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

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 2295

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

________________________________________________________________________________________

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

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.71, size = 24, normalized size = 0.73 \begin {gather*} -\frac {1}{3} \, x^{2} e + \frac {1}{3} \, x e^{3} \log \left (\frac {1}{4} \, x\right ) + x - \frac {1}{3} \, e^{\left (x + 1\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

giac [A]  time = 0.23, size = 34, normalized size = 1.03 \begin {gather*} -\frac {1}{3} \, x^{2} e + \frac {1}{3} \, {\left (x \log \left (\frac {1}{4} \, x\right ) - x\right )} e^{3} + \frac {1}{3} \, x e^{3} + x - \frac {1}{3} \, e^{\left (x + 1\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.04, size = 25, normalized size = 0.76




method result size



risch \(\frac {{\mathrm e}^{3} x \ln \left (\frac {x}{4}\right )}{3}-\frac {{\mathrm e}^{x +1}}{3}-\frac {x^{2} {\mathrm e}}{3}+x\) \(25\)
default \(x -\frac {x^{2} {\mathrm e}}{3}-\frac {{\mathrm e} \,{\mathrm e}^{x}}{3}+\frac {{\mathrm e}^{2} {\mathrm e} \ln \left (\frac {x}{4}\right ) x}{3}\) \(27\)
norman \(x -\frac {x^{2} {\mathrm e}}{3}-\frac {{\mathrm e} \,{\mathrm e}^{x}}{3}+\frac {{\mathrm e}^{2} {\mathrm e} \ln \left (\frac {x}{4}\right ) x}{3}\) \(27\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maxima [A]  time = 0.37, size = 34, normalized size = 1.03 \begin {gather*} -\frac {1}{3} \, x^{2} e + \frac {1}{3} \, {\left (x \log \left (\frac {1}{4} \, x\right ) - x\right )} e^{3} + \frac {1}{3} \, x e^{3} + x - \frac {1}{3} \, e^{\left (x + 1\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 5.08, size = 29, normalized size = 0.88 \begin {gather*} x-\frac {{\mathrm {e}}^{x+1}}{3}-\frac {x^2\,\mathrm {e}}{3}+\frac {x\,{\mathrm {e}}^3\,\ln \relax (x)}{3}-\frac {2\,x\,{\mathrm {e}}^3\,\ln \relax (2)}{3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x - exp(x + 1)/3 - (x^2*exp(1))/3 + (x*exp(3)*log(x))/3 - (2*x*exp(3)*log(2))/3

________________________________________________________________________________________

sympy [A]  time = 0.27, size = 29, normalized size = 0.88 \begin {gather*} - \frac {e x^{2}}{3} + \frac {x e^{3} \log {\left (\frac {x}{4} \right )}}{3} + x - \frac {e e^{x}}{3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-E*x**2/3 + x*exp(3)*log(x/4)/3 + x - E*exp(x)/3

________________________________________________________________________________________