Re-write the function as
Consider u = 1+sin(x) ⇒ sin(x) = u - 1
Apply derivative on each side,
du = cos(x) dx
Substitute u = 1+sin(x)
Therefore .