Derivative of $\int_{\sin x}^{x^2} \cos (t)dt$

How should I take the derivative of

$$f(x)=\int_{\sin x}^{x^2} \cos (t)dt?$$

Answer

Answers can be viewed only if
  1. The questioner was satisfied and accepted the answer, or
  2. The answer was disputed, but the judge evaluated it as 100% correct.
View the answer
The answer is accepted.