3.563 \(\int \frac {e^x (1-\cos (x))}{1+\sin (x)} \, dx\)

Optimal. Leaf size=13 \[ -\frac {e^x \cos (x)}{\sin (x)+1} \]

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 13, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.062, Rules used = {2288} \[ -\frac {e^x \cos (x)}{\sin (x)+1} \]

Antiderivative was successfully verified.

[In]

Int[(E^x*(1 - Cos[x]))/(1 + Sin[x]),x]

[Out]

-((E^x*Cos[x])/(1 + Sin[x]))

Rule 2288

Int[(y_.)*(F_)^(u_)*((v_) + (w_)), x_Symbol] :> With[{z = (v*y)/(Log[F]*D[u, x])}, Simp[F^u*z, x] /; EqQ[D[z,
x], w*y]] /; FreeQ[F, x]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.07, size = 23, normalized size = 1.77 \[ -\frac {e^x \left (\cot \left (\frac {x}{2}\right )-1\right )}{\cot \left (\frac {x}{2}\right )+1} \]

Antiderivative was successfully verified.

[In]

Integrate[(E^x*(1 - Cos[x]))/(1 + Sin[x]),x]

[Out]

-((E^x*(-1 + Cot[x/2]))/(1 + Cot[x/2]))

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {e^x (1-\cos (x))}{1+\sin (x)} \, dx \]

Verification is Not applicable to the result.

[In]

IntegrateAlgebraic[(E^x*(1 - Cos[x]))/(1 + Sin[x]),x]

[Out]

Could not integrate

________________________________________________________________________________________

fricas [A]  time = 1.30, size = 24, normalized size = 1.85 \[ -\frac {{\left (\cos \relax (x) + 1\right )} e^{x} - e^{x} \sin \relax (x)}{\cos \relax (x) + \sin \relax (x) + 1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x)*(1-cos(x))/(1+sin(x)),x, algorithm="fricas")

[Out]

-((cos(x) + 1)*e^x - e^x*sin(x))/(cos(x) + sin(x) + 1)

________________________________________________________________________________________

giac [A]  time = 0.63, size = 21, normalized size = 1.62 \[ \frac {e^{x} \tan \left (\frac {1}{2} \, x\right ) - e^{x}}{\tan \left (\frac {1}{2} \, x\right ) + 1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x)*(1-cos(x))/(1+sin(x)),x, algorithm="giac")

[Out]

(e^x*tan(1/2*x) - e^x)/(tan(1/2*x) + 1)

________________________________________________________________________________________

maple [C]  time = 0.11, size = 21, normalized size = 1.62




method result size



risch \(-i {\mathrm e}^{x}-\frac {2 \,{\mathrm e}^{x}}{{\mathrm e}^{i x}+i}\) \(21\)
norman \(\frac {{\mathrm e}^{x} \tan \left (\frac {x}{2}\right )+{\mathrm e}^{x} \left (\tan ^{3}\left (\frac {x}{2}\right )\right )-{\mathrm e}^{x} \left (\tan ^{2}\left (\frac {x}{2}\right )\right )-{\mathrm e}^{x}}{\left (1+\tan ^{2}\left (\frac {x}{2}\right )\right ) \left (\tan \left (\frac {x}{2}\right )+1\right )}\) \(51\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int(exp(x)*(1-cos(x))/(1+sin(x)),x,method=_RETURNVERBOSE)

[Out]

-I*exp(x)-2*exp(x)/(exp(I*x)+I)

________________________________________________________________________________________

maxima [A]  time = 0.72, size = 22, normalized size = 1.69 \[ -\frac {2 \, \cos \relax (x) e^{x}}{\cos \relax (x)^{2} + \sin \relax (x)^{2} + 2 \, \sin \relax (x) + 1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x)*(1-cos(x))/(1+sin(x)),x, algorithm="maxima")

[Out]

-2*cos(x)*e^x/(cos(x)^2 + sin(x)^2 + 2*sin(x) + 1)

________________________________________________________________________________________

mupad [B]  time = 0.42, size = 20, normalized size = 1.54 \[ -{\mathrm {e}}^x\,1{}\mathrm {i}-\frac {2\,{\mathrm {e}}^x}{{\mathrm {e}}^{x\,1{}\mathrm {i}}+1{}\mathrm {i}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-(exp(x)*(cos(x) - 1))/(sin(x) + 1),x)

[Out]

- exp(x)*1i - (2*exp(x))/(exp(x*1i) + 1i)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ - \int \left (- \frac {e^{x}}{\sin {\relax (x )} + 1}\right )\, dx - \int \frac {e^{x} \cos {\relax (x )}}{\sin {\relax (x )} + 1}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x)*(1-cos(x))/(1+sin(x)),x)

[Out]

-Integral(-exp(x)/(sin(x) + 1), x) - Integral(exp(x)*cos(x)/(sin(x) + 1), x)

________________________________________________________________________________________