3.86.28 \(\int \frac {-3+x-3 x^2+2 x^3+e^3 (-1+2 x)+e^{2 x} (x+x^2)+e^x (-2 x+2 x^2+x^3+e^3 (1+x))}{10+2 e^6-12 x+2 x^2+2 e^{2 x} x^2-4 x^3+2 x^4+e^3 (-4 x+4 x^2)+e^x (4 e^3 x-4 x^2+4 x^3)} \, dx\) [8528]

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

[Out]

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

________________________________________________________________________________________

Rubi [B] Leaf count is larger than twice the leaf count of optimal. \(70\) vs. \(2(33)=66\).
time = 0.49, antiderivative size = 70, normalized size of antiderivative = 2.12, number of steps used = 3, number of rules used = 3, integrand size = 128, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.023, Rules used = {6873, 12, 6816} \begin {gather*} \frac {1}{4} \log \left (x^4+2 e^x x^3-2 x^3-2 e^x x^2+e^{2 x} x^2+\left (1+2 e^3\right ) x^2+2 e^{x+3} x-2 \left (3+e^3\right ) x+e^6+5\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

Rule 12

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

Rule 6816

Int[(u_)/(y_), x_Symbol] :> With[{q = DerivativeDivides[y, u, x]}, Simp[q*Log[RemoveContent[y, x]], x] /;  !Fa
lseQ[q]]

Rule 6873

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

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]
time = 0.51, size = 61, normalized size = 1.85 \begin {gather*} \frac {1}{4} \log \left (5+e^6-6 x+2 e^{3+x} x+2 e^3 (-1+x) x+x^2+e^{2 x} x^2+2 e^x (-1+x) x^2-2 x^3+x^4\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(63\) vs. \(2(25)=50\).
time = 1.02, size = 64, normalized size = 1.94

method result size
risch \(\frac {\ln \left (x \right )}{2}+\frac {\ln \left ({\mathrm e}^{2 x}+\frac {2 \left (x^{2}+{\mathrm e}^{3}-x \right ) {\mathrm e}^{x}}{x}+\frac {x^{4}+2 x^{2} {\mathrm e}^{3}-2 x^{3}+{\mathrm e}^{6}-2 x \,{\mathrm e}^{3}+x^{2}-6 x +5}{x^{2}}\right )}{4}\) \(64\)
norman \(\frac {\ln \left (4 \,{\mathrm e}^{x} x^{3}+2 x^{4}+4 x \,{\mathrm e}^{3} {\mathrm e}^{x}+4 x^{2} {\mathrm e}^{3}-4 \,{\mathrm e}^{x} x^{2}+2 \,{\mathrm e}^{2 x} x^{2}-4 x^{3}-4 x \,{\mathrm e}^{3}+2 x^{2}+2 \,{\mathrm e}^{6}-12 x +10\right )}{4}\) \(72\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 66 vs. \(2 (24) = 48\).
time = 0.32, size = 66, normalized size = 2.00 \begin {gather*} \frac {1}{2} \, \log \left (x\right ) + \frac {1}{4} \, \log \left (\frac {x^{4} - 2 \, x^{3} + x^{2} {\left (2 \, e^{3} + 1\right )} + x^{2} e^{\left (2 \, x\right )} - 2 \, x {\left (e^{3} + 3\right )} + 2 \, {\left (x^{3} - x^{2} + x e^{3}\right )} e^{x} + e^{6} + 5}{x^{2}}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((x^2+x)*exp(x)^2+((1+x)*exp(3)+x^3+2*x^2-2*x)*exp(x)+(-1+2*x)*exp(3)+2*x^3-3*x^2+x-3)/(2*exp(x)^2*x
^2+(4*x*exp(3)+4*x^3-4*x^2)*exp(x)+2*exp(3)^2+(4*x^2-4*x)*exp(3)+2*x^4-4*x^3+2*x^2-12*x+10),x, algorithm="maxi
ma")

[Out]

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

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 66 vs. \(2 (24) = 48\).
time = 0.44, size = 66, normalized size = 2.00 \begin {gather*} \frac {1}{2} \, \log \left (x\right ) + \frac {1}{4} \, \log \left (\frac {x^{4} - 2 \, x^{3} + x^{2} e^{\left (2 \, x\right )} + x^{2} + 2 \, {\left (x^{2} - x\right )} e^{3} + 2 \, {\left (x^{3} - x^{2} + x e^{3}\right )} e^{x} - 6 \, x + e^{6} + 5}{x^{2}}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((x^2+x)*exp(x)^2+((1+x)*exp(3)+x^3+2*x^2-2*x)*exp(x)+(-1+2*x)*exp(3)+2*x^3-3*x^2+x-3)/(2*exp(x)^2*x
^2+(4*x*exp(3)+4*x^3-4*x^2)*exp(x)+2*exp(3)^2+(4*x^2-4*x)*exp(3)+2*x^4-4*x^3+2*x^2-12*x+10),x, algorithm="fric
as")

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 62 vs. \(2 (24) = 48\).
time = 0.46, size = 62, normalized size = 1.88 \begin {gather*} \frac {1}{4} \, \log \left (x^{4} + 2 \, x^{3} e^{x} - 2 \, x^{3} + 2 \, x^{2} e^{3} + x^{2} e^{\left (2 \, x\right )} - 2 \, x^{2} e^{x} + x^{2} - 2 \, x e^{3} + 2 \, x e^{\left (x + 3\right )} - 6 \, x + e^{6} + 5\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Mupad [B]
time = 5.52, size = 62, normalized size = 1.88 \begin {gather*} \frac {\ln \left ({\mathrm {e}}^6-6\,x+2\,x\,{\mathrm {e}}^{x+3}-2\,x^2\,{\mathrm {e}}^x+2\,x^3\,{\mathrm {e}}^x-2\,x\,{\mathrm {e}}^3+x^2\,{\mathrm {e}}^{2\,x}+2\,x^2\,{\mathrm {e}}^3+x^2-2\,x^3+x^4+5\right )}{4} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x + exp(x)*(exp(3)*(x + 1) - 2*x + 2*x^2 + x^3) + exp(2*x)*(x + x^2) - 3*x^2 + 2*x^3 + exp(3)*(2*x - 1) -
 3)/(2*exp(6) - 12*x - exp(3)*(4*x - 4*x^2) + exp(x)*(4*x*exp(3) - 4*x^2 + 4*x^3) + 2*x^2*exp(2*x) + 2*x^2 - 4
*x^3 + 2*x^4 + 10),x)

[Out]

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

________________________________________________________________________________________