βxβQβ=cosy,βyβPβ=cosy We have the following system of differential equations to find the function u(x,y)
u=β«(x+siny)dx=2x2β+xsiny+Ο(y)
βyβuβ=xcosy+Οβ²(y)
xcosy+Οβ²(y)=y2+xcosy
Οβ²(y)=y2
Ο(y)=3y3ββCSo that the general solution of the exact differential equation is given by
2x2β+xsiny+3y3β=C