How do you find the integral of #(cosx)(e^x)#?
3 Answers
Explanation:
Let:
# I = int \ cosx \ e^x \ dx #
We can use integration by parts:
Let
# { (u,=cosx, => (du)/dx=-sinx), ((dv)/dx,=e^x, => v=e^x ) :}#
Then plugging into the IBP formula:
# int \ (u)((dv)/dx) \ dx = (u)(v) - int \ (v)((du)/dx) \ dx #
gives us
# int \ (cosx)(e^x) \ dx = (cosx)(e^x) - int \ (e^x)(-sinx) \ dx #
# :. I = e^xcosx + int \ e^x \ sinx \ dx # .... [A]
At first it appears as if we have made no progress, as now the second integral is similar to
Let
# { (u,=sinx, => (du)/dx=cosx), ((dv)/dx,=e^x, => v=e^x ) :}#
Then plugging into the IBP formula, gives us:
# int \ (sinx)(e^x) \ dx = (sinx)(e^x) - int \ (e^x)(cosx) \ dx #
# :. int \ e^x \ sinx \ dx = e^xsinx - I #
Inserting this result into [A] we get:
# I = e^xcosx + e^xsinx - I + A #
# :. 2I = e^xcosx + e^xsinx + A #
# :. I = 1/2(e^xcosx + e^xsinx) + C #
Explanation:
Integrate by parts:
Now integrate again by parts:
Substituting this equality in the first one we have:
The integral now appears on both sides of the equation and we can now solve for it:
and finally:
Recursively use integration by parts.
After 2 iterations, the negative of the integral will be on the right.
Subtract form to both sides and divide by 2.
Explanation:
Integration by parts:
let
Substitute into the formula:
Integration by parts:
let
Substitute into the formula:
Substitute into equation [1]:
Add
Divide by 2:
Don't forget the constant: