Use Integration by Parts to find $\int \cos x\cdot e^x\;dx$.
How is this done? Please, feel sorry for me and help me out. Today has been a very bad day and I can't concentrate very much on this problem because my cat died. Can you help me?
Use Integration by Parts to find $\int \cos x\cdot e^x\;dx$.
How is this done? Please, feel sorry for me and help me out. Today has been a very bad day and I can't concentrate very much on this problem because my cat died. Can you help me?
In integration by parts
$$\int f(x)g'(x)\text{d}x=f(x)g(x)-\int f'(x)g(x)\text{d}x$$
there is a factor $g'(x)$ which we integrate to $g(x)$ and a factor $f(x)$ which we differentiate to $f'(x)$.
Let's take $g'(x)=e^x$ and therefore $g(x)=e^x$ and for the role of $f(x)$ we take first $\cos(x)$ and latter $\sin(x)$ for a second application of integration by parts.
$$\int\cos(x)e^x\text{d}x=\cos(x)e^x+\int\sin(x)e^x\text{d}x=\cos(x)e^x+\left(\sin(x)e^x-\int\cos(x)e^x\text{d}x\right)$$
Therefore
$$\int\cos(x)e^x\text{d}x=\frac{\cos(x)e^x+\sin(x)e^x}{2}$$