3.86.85 \(\int \frac {90-60 x+15 x^2+e^{e^x+x} (60-60 x+15 x^2)}{4-4 x+x^2} \, dx\)

Optimal. Leaf size=30 \[ 15 \left (-1-e^{e^{e^{e^5}}}+e^{e^x}+x+\frac {x}{2-x}\right ) \]

________________________________________________________________________________________

Rubi [A]  time = 0.12, antiderivative size = 20, normalized size of antiderivative = 0.67, number of steps used = 7, number of rules used = 5, integrand size = 39, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.128, Rules used = {27, 6742, 2282, 2194, 683} \begin {gather*} 15 x+15 e^{e^x}+\frac {30}{2-x} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(90 - 60*x + 15*x^2 + E^(E^x + x)*(60 - 60*x + 15*x^2))/(4 - 4*x + x^2),x]

[Out]

15*E^E^x + 30/(2 - x) + 15*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 683

Int[((d_.) + (e_.)*(x_))^(m_)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[ExpandIntegrand[(d +
 e*x)^m*(a + b*x + c*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, m}, x] && NeQ[b^2 - 4*a*c, 0] && EqQ[2*c*d - b*e,
 0] && IGtQ[p, 0] &&  !(EqQ[m, 3] && NeQ[p, 1])

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 2282

Int[u_, x_Symbol] :> With[{v = FunctionOfExponential[u, x]}, Dist[v/D[v, x], Subst[Int[FunctionOfExponentialFu
nction[u, x]/x, x], x, v], x]] /; FunctionOfExponentialQ[u, x] &&  !MatchQ[u, (w_)*((a_.)*(v_)^(n_))^(m_) /; F
reeQ[{a, m, n}, x] && IntegerQ[m*n]] &&  !MatchQ[u, E^((c_.)*((a_.) + (b_.)*x))*(F_)[v_] /; FreeQ[{a, b, c}, x
] && InverseFunctionQ[F[x]]]

Rule 6742

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

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {90-60 x+15 x^2+e^{e^x+x} \left (60-60 x+15 x^2\right )}{(-2+x)^2} \, dx\\ &=\int \left (15 e^{e^x+x}+\frac {15 \left (6-4 x+x^2\right )}{(-2+x)^2}\right ) \, dx\\ &=15 \int e^{e^x+x} \, dx+15 \int \frac {6-4 x+x^2}{(-2+x)^2} \, dx\\ &=15 \int \left (1+\frac {2}{(-2+x)^2}\right ) \, dx+15 \operatorname {Subst}\left (\int e^x \, dx,x,e^x\right )\\ &=15 e^{e^x}+\frac {30}{2-x}+15 x\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]  time = 0.05, size = 18, normalized size = 0.60 \begin {gather*} 15 \left (e^{e^x}+\frac {2}{2-x}+x\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(90 - 60*x + 15*x^2 + E^(E^x + x)*(60 - 60*x + 15*x^2))/(4 - 4*x + x^2),x]

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.66, size = 32, normalized size = 1.07 \begin {gather*} \frac {15 \, {\left ({\left (x - 2\right )} e^{\left (x + e^{x}\right )} + {\left (x^{2} - 2 \, x - 2\right )} e^{x}\right )} e^{\left (-x\right )}}{x - 2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((15*x^2-60*x+60)*exp(x)*exp(exp(x))+15*x^2-60*x+90)/(x^2-4*x+4),x, algorithm="fricas")

[Out]

15*((x - 2)*e^(x + e^x) + (x^2 - 2*x - 2)*e^x)*e^(-x)/(x - 2)

________________________________________________________________________________________

giac [A]  time = 0.21, size = 43, normalized size = 1.43 \begin {gather*} \frac {15 \, {\left (x^{2} e^{x} + x e^{\left (x + e^{x}\right )} - 2 \, x e^{x} - 2 \, e^{\left (x + e^{x}\right )} - 2 \, e^{x}\right )}}{x e^{x} - 2 \, e^{x}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((15*x^2-60*x+60)*exp(x)*exp(exp(x))+15*x^2-60*x+90)/(x^2-4*x+4),x, algorithm="giac")

[Out]

15*(x^2*e^x + x*e^(x + e^x) - 2*x*e^x - 2*e^(x + e^x) - 2*e^x)/(x*e^x - 2*e^x)

________________________________________________________________________________________

maple [A]  time = 0.44, size = 17, normalized size = 0.57




method result size



risch \(-\frac {30}{x -2}+15 x +15 \,{\mathrm e}^{{\mathrm e}^{x}}\) \(17\)
norman \(\frac {15 x^{2}+15 x \,{\mathrm e}^{{\mathrm e}^{x}}-30 \,{\mathrm e}^{{\mathrm e}^{x}}-90}{x -2}\) \(25\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((15*x^2-60*x+60)*exp(x)*exp(exp(x))+15*x^2-60*x+90)/(x^2-4*x+4),x,method=_RETURNVERBOSE)

[Out]

-30/(x-2)+15*x+15*exp(exp(x))

________________________________________________________________________________________

maxima [A]  time = 0.41, size = 16, normalized size = 0.53 \begin {gather*} 15 \, x - \frac {30}{x - 2} + 15 \, e^{\left (e^{x}\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((15*x^2-60*x+60)*exp(x)*exp(exp(x))+15*x^2-60*x+90)/(x^2-4*x+4),x, algorithm="maxima")

[Out]

15*x - 30/(x - 2) + 15*e^(e^x)

________________________________________________________________________________________

mupad [B]  time = 0.18, size = 16, normalized size = 0.53 \begin {gather*} 15\,x+15\,{\mathrm {e}}^{{\mathrm {e}}^x}-\frac {30}{x-2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((15*x^2 - 60*x + exp(exp(x))*exp(x)*(15*x^2 - 60*x + 60) + 90)/(x^2 - 4*x + 4),x)

[Out]

15*x + 15*exp(exp(x)) - 30/(x - 2)

________________________________________________________________________________________

sympy [A]  time = 0.16, size = 14, normalized size = 0.47 \begin {gather*} 15 x + 15 e^{e^{x}} - \frac {30}{x - 2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((15*x**2-60*x+60)*exp(x)*exp(exp(x))+15*x**2-60*x+90)/(x**2-4*x+4),x)

[Out]

15*x + 15*exp(exp(x)) - 30/(x - 2)

________________________________________________________________________________________