\(\int \frac {1875-3 e+e^{2 x} (1252-2 e-4 x)}{390625+e^2-2500 x+4 x^2+e (-1250+4 x)} \, dx\) [1390]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [A] (verification not implemented)
   Maxima [F]
   Giac [A] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 42, antiderivative size = 20 \[ \int \frac {1875-3 e+e^{2 x} (1252-2 e-4 x)}{390625+e^2-2500 x+4 x^2+e (-1250+4 x)} \, dx=\frac {-e^{2 x}-3 x}{-625+e+2 x} \]

[Out]

(-3*x-exp(2*x))/(exp(1)-625+2*x)

Rubi [A] (verified)

Time = 0.14 (sec) , antiderivative size = 36, normalized size of antiderivative = 1.80, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {6873, 27, 6874, 2228} \[ \int \frac {1875-3 e+e^{2 x} (1252-2 e-4 x)}{390625+e^2-2500 x+4 x^2+e (-1250+4 x)} \, dx=\frac {e^{2 x}}{-2 x-e+625}+\frac {3 (625-e)}{2 (-2 x-e+625)} \]

[In]

Int[(1875 - 3*E + E^(2*x)*(1252 - 2*E - 4*x))/(390625 + E^2 - 2500*x + 4*x^2 + E*(-1250 + 4*x)),x]

[Out]

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

Rule 27

Int[(u_.)*((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[u*Cancel[(b/2 + c*x)^(2*p)/c^p], x] /; Fr
eeQ[{a, b, c}, x] && EqQ[b^2 - 4*a*c, 0] && IntegerQ[p]

Rule 2228

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
]

Rule 6873

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

Rule 6874

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

Rubi steps \begin{align*} \text {integral}& = \int \frac {1875 \left (1-\frac {e}{625}\right )+e^{2 x} (1252-2 e-4 x)}{(-625+e)^2-4 (625-e) x+4 x^2} \, dx \\ & = \int \frac {1875 \left (1-\frac {e}{625}\right )+e^{2 x} (1252-2 e-4 x)}{(-625+e+2 x)^2} \, dx \\ & = \int \left (-\frac {3 (-625+e)}{(-625+e+2 x)^2}-\frac {2 e^{2 x} (-626+e+2 x)}{(-625+e+2 x)^2}\right ) \, dx \\ & = \frac {3 (625-e)}{2 (625-e-2 x)}-2 \int \frac {e^{2 x} (-626+e+2 x)}{(-625+e+2 x)^2} \, dx \\ & = \frac {3 (625-e)}{2 (625-e-2 x)}+\frac {e^{2 x}}{625-e-2 x} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.64 (sec) , antiderivative size = 23, normalized size of antiderivative = 1.15 \[ \int \frac {1875-3 e+e^{2 x} (1252-2 e-4 x)}{390625+e^2-2500 x+4 x^2+e (-1250+4 x)} \, dx=\frac {1875-3 e+2 e^{2 x}}{1250-2 e-4 x} \]

[In]

Integrate[(1875 - 3*E + E^(2*x)*(1252 - 2*E - 4*x))/(390625 + E^2 - 2500*x + 4*x^2 + E*(-1250 + 4*x)),x]

[Out]

(1875 - 3*E + 2*E^(2*x))/(1250 - 2*E - 4*x)

Maple [A] (verified)

Time = 0.34 (sec) , antiderivative size = 23, normalized size of antiderivative = 1.15

method result size
norman \(\frac {-{\mathrm e}^{2 x}-\frac {1875}{2}+\frac {3 \,{\mathrm e}}{2}}{{\mathrm e}-625+2 x}\) \(23\)
parallelrisch \(\frac {3 \,{\mathrm e}-1875-2 \,{\mathrm e}^{2 x}}{2 \,{\mathrm e}-1250+4 x}\) \(24\)
risch \(-\frac {1875}{2 \left ({\mathrm e}-625+2 x \right )}+\frac {3 \,{\mathrm e}}{2 \left ({\mathrm e}-625+2 x \right )}-\frac {{\mathrm e}^{2 x}}{{\mathrm e}-625+2 x}\) \(41\)
parts \(\frac {-\frac {1875}{2}+\frac {3 \,{\mathrm e}}{2}}{{\mathrm e}-625+2 x}-\frac {{\mathrm e}^{2 x} \left ({\mathrm e}-625\right )}{{\mathrm e}-625+2 x}+\left (-{\mathrm e}+626\right ) {\mathrm e}^{-{\mathrm e}+625} \operatorname {Ei}_{1}\left (-{\mathrm e}-2 x +625\right )-{\mathrm e} \left (-\frac {{\mathrm e}^{2 x}}{{\mathrm e}-625+2 x}-{\mathrm e}^{-{\mathrm e}+625} \operatorname {Ei}_{1}\left (-{\mathrm e}-2 x +625\right )\right )-\frac {626 \,{\mathrm e}^{2 x}}{{\mathrm e}-625+2 x}-626 \,{\mathrm e}^{-{\mathrm e}+625} \operatorname {Ei}_{1}\left (-{\mathrm e}-2 x +625\right )\) \(137\)
derivativedivides \(-\frac {1875}{2 \left ({\mathrm e}-625+2 x \right )}+\frac {3 \,{\mathrm e}}{2 \left ({\mathrm e}-625+2 x \right )}-\frac {626 \,{\mathrm e}^{2 x}}{{\mathrm e}-625+2 x}-626 \,{\mathrm e}^{-{\mathrm e}+625} \operatorname {Ei}_{1}\left (-{\mathrm e}-2 x +625\right )-\frac {{\mathrm e}^{2 x} \left ({\mathrm e}-625\right )}{{\mathrm e}-625+2 x}+\left (-{\mathrm e}+626\right ) {\mathrm e}^{-{\mathrm e}+625} \operatorname {Ei}_{1}\left (-{\mathrm e}-2 x +625\right )-{\mathrm e} \left (-\frac {{\mathrm e}^{2 x}}{{\mathrm e}-625+2 x}-{\mathrm e}^{-{\mathrm e}+625} \operatorname {Ei}_{1}\left (-{\mathrm e}-2 x +625\right )\right )\) \(145\)
default \(-\frac {1875}{2 \left ({\mathrm e}-625+2 x \right )}+\frac {3 \,{\mathrm e}}{2 \left ({\mathrm e}-625+2 x \right )}-\frac {626 \,{\mathrm e}^{2 x}}{{\mathrm e}-625+2 x}-626 \,{\mathrm e}^{-{\mathrm e}+625} \operatorname {Ei}_{1}\left (-{\mathrm e}-2 x +625\right )-\frac {{\mathrm e}^{2 x} \left ({\mathrm e}-625\right )}{{\mathrm e}-625+2 x}+\left (-{\mathrm e}+626\right ) {\mathrm e}^{-{\mathrm e}+625} \operatorname {Ei}_{1}\left (-{\mathrm e}-2 x +625\right )-{\mathrm e} \left (-\frac {{\mathrm e}^{2 x}}{{\mathrm e}-625+2 x}-{\mathrm e}^{-{\mathrm e}+625} \operatorname {Ei}_{1}\left (-{\mathrm e}-2 x +625\right )\right )\) \(145\)

[In]

int(((-2*exp(1)-4*x+1252)*exp(2*x)-3*exp(1)+1875)/(exp(1)^2+(4*x-1250)*exp(1)+4*x^2-2500*x+390625),x,method=_R
ETURNVERBOSE)

[Out]

(-exp(2*x)-1875/2+3/2*exp(1))/(exp(1)-625+2*x)

Fricas [A] (verification not implemented)

none

Time = 0.24 (sec) , antiderivative size = 23, normalized size of antiderivative = 1.15 \[ \int \frac {1875-3 e+e^{2 x} (1252-2 e-4 x)}{390625+e^2-2500 x+4 x^2+e (-1250+4 x)} \, dx=\frac {3 \, e - 2 \, e^{\left (2 \, x\right )} - 1875}{2 \, {\left (2 \, x + e - 625\right )}} \]

[In]

integrate(((-2*exp(1)-4*x+1252)*exp(2*x)-3*exp(1)+1875)/(exp(1)^2+(4*x-1250)*exp(1)+4*x^2-2500*x+390625),x, al
gorithm="fricas")

[Out]

1/2*(3*e - 2*e^(2*x) - 1875)/(2*x + e - 625)

Sympy [A] (verification not implemented)

Time = 0.12 (sec) , antiderivative size = 31, normalized size of antiderivative = 1.55 \[ \int \frac {1875-3 e+e^{2 x} (1252-2 e-4 x)}{390625+e^2-2500 x+4 x^2+e (-1250+4 x)} \, dx=- \frac {1875 - 3 e}{4 x - 1250 + 2 e} - \frac {e^{2 x}}{2 x - 625 + e} \]

[In]

integrate(((-2*exp(1)-4*x+1252)*exp(2*x)-3*exp(1)+1875)/(exp(1)**2+(4*x-1250)*exp(1)+4*x**2-2500*x+390625),x)

[Out]

-(1875 - 3*E)/(4*x - 1250 + 2*E) - exp(2*x)/(2*x - 625 + E)

Maxima [F]

\[ \int \frac {1875-3 e+e^{2 x} (1252-2 e-4 x)}{390625+e^2-2500 x+4 x^2+e (-1250+4 x)} \, dx=\int { -\frac {2 \, {\left (2 \, x + e - 626\right )} e^{\left (2 \, x\right )} + 3 \, e - 1875}{4 \, x^{2} + 2 \, {\left (2 \, x - 625\right )} e - 2500 \, x + e^{2} + 390625} \,d x } \]

[In]

integrate(((-2*exp(1)-4*x+1252)*exp(2*x)-3*exp(1)+1875)/(exp(1)^2+(4*x-1250)*exp(1)+4*x^2-2500*x+390625),x, al
gorithm="maxima")

[Out]

-2*x*e^(2*x)/(4*x^2 + 4*x*(e - 625) + e^2 - 1250*e + 390625) - 626*e^(-e + 625)*exp_integral_e(2, -2*x - e + 6
25)/(2*x + e - 625) + 3/2*e/(2*x + e - 625) - 1875/2/(2*x + e - 625) - integrate(2*(2*x*(e + 1) + e^2 - 626*e
+ 625)*e^(2*x)/(8*x^3 + 12*x^2*(e - 625) + 6*x*(e^2 - 1250*e + 390625) + e^3 - 1875*e^2 + 1171875*e - 24414062
5), x)

Giac [A] (verification not implemented)

none

Time = 0.27 (sec) , antiderivative size = 23, normalized size of antiderivative = 1.15 \[ \int \frac {1875-3 e+e^{2 x} (1252-2 e-4 x)}{390625+e^2-2500 x+4 x^2+e (-1250+4 x)} \, dx=\frac {3 \, e - 2 \, e^{\left (2 \, x\right )} - 1875}{2 \, {\left (2 \, x + e - 625\right )}} \]

[In]

integrate(((-2*exp(1)-4*x+1252)*exp(2*x)-3*exp(1)+1875)/(exp(1)^2+(4*x-1250)*exp(1)+4*x^2-2500*x+390625),x, al
gorithm="giac")

[Out]

1/2*(3*e - 2*e^(2*x) - 1875)/(2*x + e - 625)

Mupad [B] (verification not implemented)

Time = 0.15 (sec) , antiderivative size = 19, normalized size of antiderivative = 0.95 \[ \int \frac {1875-3 e+e^{2 x} (1252-2 e-4 x)}{390625+e^2-2500 x+4 x^2+e (-1250+4 x)} \, dx=-\frac {3\,x+{\mathrm {e}}^{2\,x}}{2\,x+\mathrm {e}-625} \]

[In]

int(-(3*exp(1) + exp(2*x)*(4*x + 2*exp(1) - 1252) - 1875)/(exp(2) - 2500*x + 4*x^2 + exp(1)*(4*x - 1250) + 390
625),x)

[Out]

-(3*x + exp(2*x))/(2*x + exp(1) - 625)