How do you take the derivative of #y = sin x cos x - cos^2x#?