1. Express the integral of the derivative from part (a)
From (a), dxd[ex(1+cosx)]=ex(1+cosx−sinx).
Integrating both sides with respect to x:
∫ex(1+cosx−sinx)dx=ex(1+cosx)+c1
2. Split the integral to isolate the required term
∫(ex+ex(cosx−sinx))dx=ex(1+cosx)+c1
∫exdx+∫ex(cosx−sinx)dx=ex(1+cosx)+c1
3. Evaluate the standard integral and rearrange to find the final answer
ex+∫ex(cosx−sinx)dx=ex(1+cosx)+c1
∫ex(cosx−sinx)dx=ex(1+cosx)−ex+c
答案ex(1+cosx)−ex+c