Determine the derivative of f(x)=x^2In(cosx)

use the product rule

f'(s) = x^2(-sinx/cosx) + 2x(cosx)
= -x^2(tanx) + 2x(cosx)