Why the derivative of cos(ax) is −a·sin(ax)
Use the chain rule with the inner function u = ax, so du/dx = a.
d/dx[cos(u)] = −sin(u) · du/dx = −sin(ax) · a = −a·sin(ax).
Examples
d/dx[cos(3x)] = −3·sin(3x)
d/dx[cos(x/2)] = −½·sin(x/2)
d/dx[cos(πx)] = −π·sin(πx)


