The function is
.
Apply derivative on each side with respect to
.

Sum rule of derivatives :
.

Apply power rule of derivative :
.

Derivative of sine function :
.
Derivative of cosine function :
.
To find the critical numbers of
, equate
to zero.

For 

is not in the region
, hence it is not considered.
For 

is not in the region
.
The function have critical numbers at
.
Critical numbers :
.