use implicit differentiation. note that you will need the product rule when differentiating xy. whenever you differentiate a y-term, attach y' to it (y' is another notation that means dy/dx in this context). try it (of course, you should also be aware that you are going to differentiate sin(xy) using the chain rule)