How do you find the derivative of #y=x^2-1/2costheta#?