3.98.1 \(\int \frac {1}{4} (109+e^{2 x} x^2 (105+70 x)) \, dx\) [9701]

Optimal. Leaf size=19 \[ x \left (1+\frac {35}{4} \left (3+e^{2 x} x^2\right )\right ) \]

[Out]

x*(109/4+35/4*exp(ln(x^2)+2*x))

________________________________________________________________________________________

Rubi [A]
time = 0.09, antiderivative size = 18, normalized size of antiderivative = 0.95, number of steps used = 11, number of rules used = 4, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {12, 2227, 2207, 2225} \begin {gather*} \frac {35}{4} e^{2 x} x^3+\frac {109 x}{4} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(109 + E^(2*x)*x^2*(105 + 70*x))/4,x]

[Out]

(109*x)/4 + (35*E^(2*x)*x^3)/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 2207

Int[((b_.)*(F_)^((g_.)*((e_.) + (f_.)*(x_))))^(n_.)*((c_.) + (d_.)*(x_))^(m_.), x_Symbol] :> Simp[(c + d*x)^m*
((b*F^(g*(e + f*x)))^n/(f*g*n*Log[F])), x] - Dist[d*(m/(f*g*n*Log[F])), Int[(c + d*x)^(m - 1)*(b*F^(g*(e + f*x
)))^n, x], x] /; FreeQ[{F, b, c, d, e, f, g, n}, x] && GtQ[m, 0] && IntegerQ[2*m] &&  !TrueQ[$UseGamma]

Rule 2225

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 2227

Int[(F_)^((c_.)*(v_))*(u_), x_Symbol] :> Int[ExpandIntegrand[F^(c*ExpandToSum[v, x]), u, x], x] /; FreeQ[{F, c
}, x] && PolynomialQ[u, x] && LinearQ[v, x] &&  !TrueQ[$UseGamma]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]
time = 0.03, size = 18, normalized size = 0.95 \begin {gather*} \frac {1}{4} \left (109 x+35 e^{2 x} x^3\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(109 + E^(2*x)*x^2*(105 + 70*x))/4,x]

[Out]

(109*x + 35*E^(2*x)*x^3)/4

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(192\) vs. \(2(15)=30\).
time = 0.03, size = 193, normalized size = 10.16

method result size
risch \(\frac {109 x}{4}+\frac {35 \,{\mathrm e}^{2 x} x^{3}}{4}\) \(14\)
norman \(\frac {109 x}{4}+\frac {35 \,{\mathrm e}^{\ln \left (x^{2}\right )+2 x} x}{4}\) \(17\)
default \(\frac {109 x}{4}+\frac {35 \,{\mathrm e}^{\ln \left (x^{2}\right )-2 \ln \left (x \right )+2 x} x^{3}}{4}+\frac {35 \,{\mathrm e}^{\ln \left (x^{2}\right )-2 \ln \left (x \right )+2 x} x^{2}}{8}-\frac {35 \,{\mathrm e}^{\ln \left (x^{2}\right )-2 \ln \left (x \right )+2 x} x}{4}+\frac {35 \left (\ln \left (x^{2}\right )-2 \ln \left (x \right )\right ) \left (\frac {{\mathrm e}^{\ln \left (x^{2}\right )-2 \ln \left (x \right )+2 x} \left (\ln \left (x^{2}\right )-2 \ln \left (x \right )+2 x \right )}{2}-{\mathrm e}^{\ln \left (x^{2}\right )-2 \ln \left (x \right )+2 x}\right )}{8}-\frac {35 \,{\mathrm e}^{\ln \left (x^{2}\right )-2 \ln \left (x \right )+2 x} \left (\ln \left (x^{2}\right )-2 \ln \left (x \right )\right )^{2}}{32}+\frac {35 \,{\mathrm e}^{\ln \left (x^{2}\right )-2 \ln \left (x \right )+2 x} \left (\ln \left (x^{2}\right )-2 \ln \left (x \right )+2 x \right )}{8}-\frac {35 \,{\mathrm e}^{\ln \left (x^{2}\right )-2 \ln \left (x \right )+2 x} \left (\ln \left (x^{2}\right )-2 \ln \left (x \right )+2 x \right )^{2}}{32}\) \(193\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/4*(70*x+105)*exp(ln(x^2)+2*x)+109/4,x,method=_RETURNVERBOSE)

[Out]

109/4*x+35/4*exp(ln(x^2)-2*ln(x)+2*x)*x^3+35/8*exp(ln(x^2)-2*ln(x)+2*x)*x^2-35/4*exp(ln(x^2)-2*ln(x)+2*x)*x+35
/8*(ln(x^2)-2*ln(x))*(1/2*exp(ln(x^2)-2*ln(x)+2*x)*(ln(x^2)-2*ln(x)+2*x)-exp(ln(x^2)-2*ln(x)+2*x))-35/32*exp(l
n(x^2)-2*ln(x)+2*x)*(ln(x^2)-2*ln(x))^2+35/8*exp(ln(x^2)-2*ln(x)+2*x)*(ln(x^2)-2*ln(x)+2*x)-35/32*exp(ln(x^2)-
2*ln(x)+2*x)*(ln(x^2)-2*ln(x)+2*x)^2

________________________________________________________________________________________

Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 41 vs. \(2 (16) = 32\).
time = 0.26, size = 41, normalized size = 2.16 \begin {gather*} \frac {35}{16} \, {\left (4 \, x^{3} - 6 \, x^{2} + 6 \, x - 3\right )} e^{\left (2 \, x\right )} + \frac {105}{16} \, {\left (2 \, x^{2} - 2 \, x + 1\right )} e^{\left (2 \, x\right )} + \frac {109}{4} \, x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/4*(70*x+105)*exp(log(x^2)+2*x)+109/4,x, algorithm="maxima")

[Out]

35/16*(4*x^3 - 6*x^2 + 6*x - 3)*e^(2*x) + 105/16*(2*x^2 - 2*x + 1)*e^(2*x) + 109/4*x

________________________________________________________________________________________

Fricas [A]
time = 0.43, size = 16, normalized size = 0.84 \begin {gather*} \frac {35}{4} \, x e^{\left (2 \, x + \log \left (x^{2}\right )\right )} + \frac {109}{4} \, x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/4*(70*x+105)*exp(log(x^2)+2*x)+109/4,x, algorithm="fricas")

[Out]

35/4*x*e^(2*x + log(x^2)) + 109/4*x

________________________________________________________________________________________

Sympy [A]
time = 0.04, size = 15, normalized size = 0.79 \begin {gather*} \frac {35 x^{3} e^{2 x}}{4} + \frac {109 x}{4} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/4*(70*x+105)*exp(ln(x**2)+2*x)+109/4,x)

[Out]

35*x**3*exp(2*x)/4 + 109*x/4

________________________________________________________________________________________

Giac [A]
time = 0.41, size = 13, normalized size = 0.68 \begin {gather*} \frac {35}{4} \, x^{3} e^{\left (2 \, x\right )} + \frac {109}{4} \, x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/4*(70*x+105)*exp(log(x^2)+2*x)+109/4,x, algorithm="giac")

[Out]

35/4*x^3*e^(2*x) + 109/4*x

________________________________________________________________________________________

Mupad [B]
time = 5.71, size = 13, normalized size = 0.68 \begin {gather*} \frac {109\,x}{4}+\frac {35\,x^3\,{\mathrm {e}}^{2\,x}}{4} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((exp(2*x + log(x^2))*(70*x + 105))/4 + 109/4,x)

[Out]

(109*x)/4 + (35*x^3*exp(2*x))/4

________________________________________________________________________________________