How do you differentiate y = e^(xy) - 2x?

$\frac{\mathrm{dy}}{\mathrm{dx}} = \frac{y {e}^{x y} - 2}{1 - x {e}^{x} y}$