1 / | | x | e *cos(x) dx | / 0
Integral(exp(x)*cos(x), (x, 0, 1))
Use integration by parts, noting that the integrand eventually repeats itself.
For the integrand :
Let and let .
Then .
For the integrand :
Let and let .
Then .
Notice that the integrand has repeated itself, so move it to one side:
Therefore,
Now simplify:
Add the constant of integration:
The answer is:
/ | x x | x cos(x)*e e *sin(x) | e *cos(x) dx = C + --------- + --------- | 2 2 /
1 E*cos(1) E*sin(1) - - + -------- + -------- 2 2 2
=
1 E*cos(1) E*sin(1) - - + -------- + -------- 2 2 2
-1/2 + E*cos(1)/2 + E*sin(1)/2
Use the examples entering the upper and lower limits of integration.