Use the chain rule:
[f(x)]n = n[f(x)]n-1*[f'(x)]
This means; multiply by the power, reduce the power by 1, then multiply by the derivative of the function.
1. sin3x = (sinx)3
d/dx = 3sin2xcosx
2. cos22x = (cos(2x))2
d/dx = 2(cos2x)1*-2sin2x
= -4sin(2x)cos(2x)