3.91.77 \(\int \frac {2+e^x (-25 e^4-2 x)+50 e^4 x+4 x^2}{25 e^4+2 x} \, dx\)

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

________________________________________________________________________________________

Rubi [A]  time = 0.11, antiderivative size = 19, normalized size of antiderivative = 0.79, number of steps used = 5, number of rules used = 3, integrand size = 38, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.079, Rules used = {6742, 2194, 698} \begin {gather*} x^2-e^x+\log \left (2 x+25 e^4\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(2 + E^x*(-25*E^4 - 2*x) + 50*E^4*x + 4*x^2)/(25*E^4 + 2*x),x]

[Out]

-E^x + x^2 + Log[25*E^4 + 2*x]

Rule 698

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] && NeQ[c*d^2 - b*d*
e + a*e^2, 0] && NeQ[2*c*d - b*e, 0] && IntegerQ[p] && (GtQ[p, 0] || (EqQ[a, 0] && IntegerQ[m]))

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 6742

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

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.05, size = 19, normalized size = 0.79 \begin {gather*} -e^x+x^2+\log \left (25 e^4+2 x\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(2 + E^x*(-25*E^4 - 2*x) + 50*E^4*x + 4*x^2)/(25*E^4 + 2*x),x]

[Out]

-E^x + x^2 + Log[25*E^4 + 2*x]

________________________________________________________________________________________

fricas [A]  time = 0.58, size = 17, normalized size = 0.71 \begin {gather*} x^{2} - e^{x} + \log \left (2 \, x + 25 \, e^{4}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((-25*exp(4)-2*x)*exp(x)+50*x*exp(4)+4*x^2+2)/(25*exp(4)+2*x),x, algorithm="fricas")

[Out]

x^2 - e^x + log(2*x + 25*e^4)

________________________________________________________________________________________

giac [A]  time = 0.12, size = 17, normalized size = 0.71 \begin {gather*} x^{2} - e^{x} + \log \left (2 \, x + 25 \, e^{4}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((-25*exp(4)-2*x)*exp(x)+50*x*exp(4)+4*x^2+2)/(25*exp(4)+2*x),x, algorithm="giac")

[Out]

x^2 - e^x + log(2*x + 25*e^4)

________________________________________________________________________________________

maple [A]  time = 0.49, size = 18, normalized size = 0.75




method result size



norman \(-{\mathrm e}^{x}+x^{2}+\ln \left (25 \,{\mathrm e}^{4}+2 x \right )\) \(18\)
risch \(-{\mathrm e}^{x}+x^{2}+\ln \left (25 \,{\mathrm e}^{4}+2 x \right )\) \(18\)
default \(-{\mathrm e}^{x}+x^{2}+\ln \left (25 \,{\mathrm e}^{4}+2 x \right )\) \(46\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((-25*exp(4)-2*x)*exp(x)+50*x*exp(4)+4*x^2+2)/(25*exp(4)+2*x),x,method=_RETURNVERBOSE)

[Out]

-exp(x)+x^2+ln(25*exp(4)+2*x)

________________________________________________________________________________________

maxima [B]  time = 0.37, size = 56, normalized size = 2.33 \begin {gather*} x^{2} - \frac {25}{2} \, {\left (25 \, e^{4} \log \left (2 \, x + 25 \, e^{4}\right ) - 2 \, x\right )} e^{4} - 25 \, x e^{4} + \frac {625}{2} \, e^{8} \log \left (2 \, x + 25 \, e^{4}\right ) - e^{x} + \log \left (2 \, x + 25 \, e^{4}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((-25*exp(4)-2*x)*exp(x)+50*x*exp(4)+4*x^2+2)/(25*exp(4)+2*x),x, algorithm="maxima")

[Out]

x^2 - 25/2*(25*e^4*log(2*x + 25*e^4) - 2*x)*e^4 - 25*x*e^4 + 625/2*e^8*log(2*x + 25*e^4) - e^x + log(2*x + 25*
e^4)

________________________________________________________________________________________

mupad [B]  time = 7.83, size = 15, normalized size = 0.62 \begin {gather*} \ln \left (x+\frac {25\,{\mathrm {e}}^4}{2}\right )-{\mathrm {e}}^x+x^2 \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((50*x*exp(4) - exp(x)*(2*x + 25*exp(4)) + 4*x^2 + 2)/(2*x + 25*exp(4)),x)

[Out]

log(x + (25*exp(4))/2) - exp(x) + x^2

________________________________________________________________________________________

sympy [A]  time = 0.14, size = 15, normalized size = 0.62 \begin {gather*} x^{2} - e^{x} + \log {\left (2 x + 25 e^{4} \right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((-25*exp(4)-2*x)*exp(x)+50*x*exp(4)+4*x**2+2)/(25*exp(4)+2*x),x)

[Out]

x**2 - exp(x) + log(2*x + 25*exp(4))

________________________________________________________________________________________