How to integrate #int e^x sinx cosx dx# ?
2 Answers
Explanation:
First we can use the identity:
which gives:
Now we can use integration by parts. The formula is:
I will let
Now we can apply integration by parts once more, this time with
Now we have the integral on both sides of the equality, so we can solve it like an equation. First, we add 2 times the integral to both sides:
Since we wanted a half as the coefficient on the original integral, we divide both sides by
# int \ e^x \ sinxcosx \ dx = 1/10{e^x \ sin2x -2\ e^x \ cos2x} + C #
Explanation:
We seek:
# I = int \ e^x \ sinxcosx \ dx #
Which using the identity:
# sin 2x -= 2sinxcosx #
We can write as:
# I = 1/2 \ int \ e^x \ sin2x \ dx #
# I = 1/2 \ I_S #
Where for convenience we denote:
# I_S = int \ e^x \ sin2x \ dx # , and# I_C = int \ e^x \ cos2x \ dx #
We can apply integration by parts. Typically when assigning values of
In fact, we see it doesn't really matter which we choose for
Let
# { (u,=e^x, => (du)/dx,=e^x), ((dv)/dx,=sin2x, => v,=-1/2 cos2x ) :}#
Then plugging into the IBP formula:
# int \ (u)((dv)/dx) \ dx = (u)(v) - int \ (v)((du)/dx) \ dx #
We get:
# int \ (e^x)(sin2x) \ dx = (e^x)(-1/2cos2x) - int \ (-1/2cos2x)(e^x) \ dx #
# :. I_S = -1/2 \ e^x \ cos2x + 1/2 int \ e^x \ cos2x \ dx #
# :. I_S = -1/2 \ e^x \ cos2x + 1/2 I_C # ..... [A]
Now, we perform integration by parts once more.
Let
# { (u,=e^x, => (du)/dx,=e^x), ((dv)/dx,=cos2x, => v,=1/2 sin2x ) :}#
Then plugging into the IBP formula we get:
# int \ (e^x)(cos2x) \ dx = (e^x)(1/2cos2x) - int \ (1/2sin2x)(e^x) \ dx #
# :. I_C = 1/2 \ e^x \ sin2x - 1/2 \ int e^x \ sin2x \ dx #
# :. I_C = 1/2 \ e^x \ sin2x - 1/2 I_S # ..... [B}
Now, we have two simultaneous equation in two unknowns
# I_S = -1/2 \ e^x \ cos2x + 1/2 {1/2 \ e^x \ sin2x - 1/2 I_S} #
# \ \ \ = -1/2 \ e^x \ cos2x + 1/4 \ e^x \ sin2x - 1/4 I_S #
# :. 5/4I_S = 1/4 \ e^x \ sin2x -1/2 \ e^x \ cos2x #
# :. I_S = 4/5{1/4 \ e^x \ sin2x -1/2 \ e^x \ cos2x} #
Leading to:
# I = 1/2 \ I_S + C #
# \ \ = 2/5{1/4 \ e^x \ sin2x -1/2 \ e^x \ cos2x} + C #
# \ \ = 1/10{e^x \ sin2x -2\ e^x \ cos2x} + C #