First, we need to change the variable from x to u. The derivative of u can be calculated as follows:
dxdu=−sin(x)⇒dx=−sin(x)du
Next, we substitute into the integral:
∫02πecos(x)+1sin(x)dx=∫12eu(−du)
Changing the limits of integration when x=0, u=cos(0)+1=2, and when x=2π, u=cos(2π)+1=1. Therefore the integral becomes:
−∫21eudu=∫12eudu