If z=cos(xy)+sin(xy),
∂u∂x=−sin(xy)(1y)+cos(xy)1y∂u∂y=−sin(xy)(−xy2)+cos(xy)(−xy2)x∂u∂x+y∂u∂y=−sin(xy)xy+cos(xy)(xy)−cos(xy)(xy)=0