Super hard differentiation of trig function problem solving question

This is one of the hardest questions you will ever do that involves the derivative of trigonometric functions and finding the maximum / minimum. Have fun with it!