3

Integrate $$\int e^x\cdot\frac{1+\sin x}{1+\cos x}\,dx$$

My try;

First step: I let $$\frac{1+\sin x}{1+\cos x} = u$$ $$e^x = v$$ and then I applied integration by parts: $$\frac{1+\sin x}{1+\cos x}=u \implies du=\frac{\sin x+\cos x+1}{(1+\cos x)^2}dx$$ $$v = e^x \implies dv = e^x$$ and $$\int e^x\cdot\frac{1+\sin x}{1+\cos x}\,dx=e^x\cdot\frac{1+\sin x}{1+\cos x}-\int e^x\cdot\frac{\sin x+\cos x+1}{(1+\cos x)^2}dx$$

AugSB
  • 5,007

2 Answers2

3

Use $\sin x=2\sin\frac{x}{2}\cos\frac{x}{2},1+\cos x=2\cos^2\frac{x}{2}$. The integrand becomes $e^x\tan\frac{x}{2}+\frac{1}{2}e^x\sec^2\frac{x}{2}$.

Since the derivative of $\tan\frac{x}{2}$ is $\frac{1}{2}\sec^2\frac{x}{2}$ we can integrate immediately to get $e^x\tan\frac{x}{2}+C$.

almagest
  • 18,380
1

$$\int e^x\cdot\dfrac{1+\sin x}{1+\cos x}\,dx = \int e^x\cdot\dfrac{1+2\sin\left(\frac{x}{2}\right)\cos\left(\frac{x}{2}\right)}{2\cos^2\left(\frac{x}{2}\right)}\,dx\\=\int e^x\cdot\left(\frac{1}{2}\sec^2\frac{x}{2} + \tan\frac{x}{2}\right)dx$$
Expand,
$$\int e^x\cdot\frac{1}{2}\sec^2\frac{x}{2}\,dx + \int e^x\cdot\tan\frac{x}{2}\,dx$$ Integrate by parts, the integral: $$\int e^x\cdot\tan\frac{x}{2} dx$$ You should get the final answer as
$$ e^x\cdot\tan\frac{x}{2} + c$$

KoA
  • 1,379