I'm really lost on how to get the derivative of this equation,

x*sin(x*y)=x^2+1

I know that the derivative of a sin is cos, but the problem I am having with this equation is getting the derivative of the xy because I don't know what I'm suppose to do with it.

I know that I'm suppose to use the product rule, but do I also need to use a chain rule or something.... confused...