This is just the chain rule:

constant stays out front, sin -> cos then find the derivative of what is inside of sin

And simplify

Just look at it like this, c is the constant coefficient. f(x) is sin(x) and g(x) is then you are taking the derivative of which is

If any of that was confusing, I can explain it in more detail.