I am working on exact differential equations and I just cannot seem to understand them and was hoping to have my method checked and please provide feedback on that.
$$ (18xy^2 - \sin(x))dx + (8 + 18x^2y)dy = 0;\,\, y(0) = 1 $$ I first calculated the crossed partial derivatives for both terms to check they were equal which I found they both came out to be 36xy.
Then I have said that $$\frac{\partial u}{\partial x} = 18xy^2 - sin(x)$$ and therefore $$u = 9y^2 x^2 + cos(x) + h(y)$$
Now I have said that $$\frac{\partial u}{\partial y} = 18yx^2 + h'(y) = 8 + 18yx^2$$ which I believe is not a problem.
This says that h'(y) = 8 which I have then integrated with respect to y and found h(y) = 8y + C
I believe this means my final result for the answer which in our notes is always denoted as $$u(x,y) = 36xy + 8y + C$$
So far I cannot understand how these exact differential equations work and have been told my answer is wrong. I am yet to find the exact solution using the initial condition as I am unsure how to do that as well because I am confused by a few things with these problems however if possible could we please discuss the method how to solve these types of DEs and check to see if my answer is correct.
Thank you very much,
Michael