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

Optimal. Leaf size=25 \[ -7-\frac {e^2}{4}-\frac {e^{2 x}}{x}-3 x+x^2 \]

________________________________________________________________________________________

Rubi [A]  time = 0.04, antiderivative size = 17, normalized size of antiderivative = 0.68, number of steps used = 3, number of rules used = 2, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.074, Rules used = {14, 2197} \begin {gather*} x^2-3 x-\frac {e^{2 x}}{x} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

-(E^(2*x)/x) - 3*x + x^2

Rule 14

Int[(u_)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*u, x], x] /; FreeQ[{c, m}, x] && SumQ[u]
 &&  !LinearQ[u, x] &&  !MatchQ[u, (a_) + (b_.)*(v_) /; FreeQ[{a, b}, x] && InverseFunctionQ[v]]

Rule 2197

Int[(F_)^((c_.)*(v_))*(u_)^(m_.)*(w_), x_Symbol] :> With[{b = Coefficient[v, x, 1], d = Coefficient[u, x, 0],
e = Coefficient[u, x, 1], f = Coefficient[w, x, 0], g = Coefficient[w, x, 1]}, Simp[(g*u^(m + 1)*F^(c*v))/(b*c
*e*Log[F]), x] /; EqQ[e*g*(m + 1) - b*c*(e*f - d*g)*Log[F], 0]] /; FreeQ[{F, c, m}, x] && LinearQ[{u, v, w}, x
]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 17, normalized size = 0.68 \begin {gather*} -\frac {e^{2 x}}{x}-3 x+x^2 \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

-(E^(2*x)/x) - 3*x + x^2

________________________________________________________________________________________

fricas [A]  time = 0.57, size = 18, normalized size = 0.72 \begin {gather*} x^{2} - 3 \, x - e^{\left (2 \, x - \log \relax (x)\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x^2 - 3*x - e^(2*x - log(x))

________________________________________________________________________________________

giac [A]  time = 0.20, size = 19, normalized size = 0.76 \begin {gather*} \frac {x^{3} - 3 \, x^{2} - e^{\left (2 \, x\right )}}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

(x^3 - 3*x^2 - e^(2*x))/x

________________________________________________________________________________________

maple [A]  time = 0.04, size = 17, normalized size = 0.68




method result size



default \(x^{2}-3 x -\frac {{\mathrm e}^{2 x}}{x}\) \(17\)
risch \(x^{2}-3 x -\frac {{\mathrm e}^{2 x}}{x}\) \(17\)
norman \(x^{2}-3 x -{\mathrm e}^{2 x -\ln \relax (x )}\) \(19\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x^2-3*x-exp(2*x)/x

________________________________________________________________________________________

maxima [C]  time = 0.49, size = 20, normalized size = 0.80 \begin {gather*} x^{2} - 3 \, x - 2 \, {\rm Ei}\left (2 \, x\right ) + 2 \, \Gamma \left (-1, -2 \, x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x^2 - 3*x - 2*Ei(2*x) + 2*gamma(-1, -2*x)

________________________________________________________________________________________

mupad [B]  time = 4.30, size = 15, normalized size = 0.60 \begin {gather*} x\,\left (x-3\right )-\frac {{\mathrm {e}}^{2\,x}}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x*(x - 3) - exp(2*x)/x

________________________________________________________________________________________

sympy [A]  time = 0.09, size = 12, normalized size = 0.48 \begin {gather*} x^{2} - 3 x - \frac {e^{2 x}}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x**2 - 3*x - exp(2*x)/x

________________________________________________________________________________________