Consider the given equation.
sin2y+cosxy=π
Differentiate both sides with respect to x.
2siny×cosy×dydx−sinxy×(y+xdydx)=0
2sinycosydydx−ysin(xy)−xsin(xy)dydx=0
2sinycosydydx−xsin(xy)dydx=ysin(xy)
(sin2y−xsin(xy))dydx=ysin(xy)
dydx=ysin(xy)sin2y−xsin(xy)
Hence, this is the required result.