Based on the above, answer the folowing
(i) Find the intervals on which the \(f(x)\) is increasing or decreasing, \(x\in[0,\pi]\). (2 marks)
(ii) Verify, whether each critical point when \(x\in[0,\pi]\) is a point of local maximum or local minimum or a point of inflexion. (2 marks)