3.12 \(\int (e^x+\sin (x)) \, dx\)

Optimal. Leaf size=8 \[ e^x-\cos (x) \]

[Out]

exp(x)-cos(x)

________________________________________________________________________________________

Rubi [A]  time = 0.00, antiderivative size = 8, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {2194, 2638} \[ e^x-\cos (x) \]

Antiderivative was successfully verified.

[In]

Int[E^x + Sin[x],x]

[Out]

E^x - Cos[x]

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 2638

Int[sin[(c_.) + (d_.)*(x_)], x_Symbol] :> -Simp[Cos[c + d*x]/d, x] /; FreeQ[{c, d}, x]

Rubi steps

\begin {align*} \int \left (e^x+\sin (x)\right ) \, dx &=\int e^x \, dx+\int \sin (x) \, dx\\ &=e^x-\cos (x)\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 8, normalized size = 1.00 \[ e^x-\cos (x) \]

Antiderivative was successfully verified.

[In]

Integrate[E^x + Sin[x],x]

[Out]

E^x - Cos[x]

________________________________________________________________________________________

fricas [A]  time = 0.43, size = 7, normalized size = 0.88 \[ -\cos \relax (x) + e^{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x)+sin(x),x, algorithm="fricas")

[Out]

-cos(x) + e^x

________________________________________________________________________________________

giac [A]  time = 1.08, size = 7, normalized size = 0.88 \[ -\cos \relax (x) + e^{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x)+sin(x),x, algorithm="giac")

[Out]

-cos(x) + e^x

________________________________________________________________________________________

maple [A]  time = 0.00, size = 8, normalized size = 1.00 \[ -\cos \relax (x )+{\mathrm e}^{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(exp(x)+sin(x),x)

[Out]

exp(x)-cos(x)

________________________________________________________________________________________

maxima [A]  time = 0.48, size = 7, normalized size = 0.88 \[ -\cos \relax (x) + e^{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x)+sin(x),x, algorithm="maxima")

[Out]

-cos(x) + e^x

________________________________________________________________________________________

mupad [B]  time = 0.04, size = 7, normalized size = 0.88 \[ {\mathrm {e}}^x-\cos \relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(exp(x) + sin(x),x)

[Out]

exp(x) - cos(x)

________________________________________________________________________________________

sympy [A]  time = 0.08, size = 5, normalized size = 0.62 \[ e^{x} - \cos {\relax (x )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x)+sin(x),x)

[Out]

exp(x) - cos(x)

________________________________________________________________________________________