Your derivative is correct.

The second derivative also correct.

Notice though, that if you set the derivative equal to zero, that means

where

where .

Now you need to do the second derivative test on each of these values. Luckily, the periodicity of the sine function will mean that will have the same value as any of its multiples, as will .