3.15 \(\int (2 e^x+e^{2 x}+x^2) \, dx\)

Optimal. Leaf size=22 \[ \frac {x^3}{3}+2 e^x+\frac {e^{2 x}}{2} \]

[Out]

2*exp(x)+1/2*exp(2*x)+1/3*x^3

________________________________________________________________________________________

Rubi [A]  time = 0.00, antiderivative size = 22, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 1, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.071, Rules used = {2194} \[ \frac {x^3}{3}+2 e^x+\frac {e^{2 x}}{2} \]

Antiderivative was successfully verified.

[In]

Int[2*E^x + E^(2*x) + x^2,x]

[Out]

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

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]

Rubi steps

\begin {align*} \int \left (2 e^x+e^{2 x}+x^2\right ) \, dx &=\frac {x^3}{3}+2 \int e^x \, dx+\int e^{2 x} \, dx\\ &=2 e^x+\frac {e^{2 x}}{2}+\frac {x^3}{3}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 22, normalized size = 1.00 \[ \frac {x^3}{3}+2 e^x+\frac {e^{2 x}}{2} \]

Antiderivative was successfully verified.

[In]

Integrate[2*E^x + E^(2*x) + x^2,x]

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.42, size = 16, normalized size = 0.73 \[ \frac {1}{3} \, x^{3} + \frac {1}{2} \, e^{\left (2 \, x\right )} + 2 \, e^{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(2*exp(x)+exp(2*x)+x^2,x, algorithm="fricas")

[Out]

1/3*x^3 + 1/2*e^(2*x) + 2*e^x

________________________________________________________________________________________

giac [A]  time = 1.08, size = 16, normalized size = 0.73 \[ \frac {1}{3} \, x^{3} + \frac {1}{2} \, e^{\left (2 \, x\right )} + 2 \, e^{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(2*exp(x)+exp(2*x)+x^2,x, algorithm="giac")

[Out]

1/3*x^3 + 1/2*e^(2*x) + 2*e^x

________________________________________________________________________________________

maple [A]  time = 0.00, size = 17, normalized size = 0.77 \[ \frac {x^{3}}{3}+2 \,{\mathrm e}^{x}+\frac {{\mathrm e}^{2 x}}{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(2*exp(x)+exp(2*x)+x^2,x)

[Out]

2*exp(x)+1/2*exp(2*x)+1/3*x^3

________________________________________________________________________________________

maxima [A]  time = 0.52, size = 16, normalized size = 0.73 \[ \frac {1}{3} \, x^{3} + \frac {1}{2} \, e^{\left (2 \, x\right )} + 2 \, e^{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(2*exp(x)+exp(2*x)+x^2,x, algorithm="maxima")

[Out]

1/3*x^3 + 1/2*e^(2*x) + 2*e^x

________________________________________________________________________________________

mupad [B]  time = 0.05, size = 16, normalized size = 0.73 \[ \frac {{\mathrm {e}}^{2\,x}}{2}+2\,{\mathrm {e}}^x+\frac {x^3}{3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(exp(2*x) + 2*exp(x) + x^2,x)

[Out]

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

________________________________________________________________________________________

sympy [A]  time = 0.09, size = 15, normalized size = 0.68 \[ \frac {x^{3}}{3} + \frac {e^{2 x}}{2} + 2 e^{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(2*exp(x)+exp(2*x)+x**2,x)

[Out]

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

________________________________________________________________________________________