Evaluate the integral: ∫ex(cosx-sinx) dx
(3)
Ans. excosx+C
Explanation :
The given integral is,
I=∫ex(cosx-sinx) dx
Let, f(x)=cosx
Differentiating f(x),
f'(x)=-sinx
Substitute f(x) for cosx and f'(x) for -sinx in the given integral.
=∫ex{f(x)+f'(x)} dx
We know that
∫ex{f(x)+f'(x)} dx=exf(x)+C
∴ I=excosx+C