Discuss how the function M(x, y) can be found so that each differential equation is exact:
$$M(x,y)dx+(x{e^x}^y+2xy+\frac{1}{x})dy=0$$
I understand well how the method to solve exact differential equations works, but I can not understand this problem.