Find the derivative of the following functions (it is to be understood that a,b,c,d,p,q,r and s are fixed non-zero constants and m and n are integers) : \frac{{{x^2}\cos \left( {\frac{\pi }{4}} \right)}}{{\sin x}}.