How do you find the derivative of #sin^2x+cosx#?