[Math] Exact Differential Equations

calculusordinary differential equations

I was revising differential equations and came across the topic of exact differential equations. I have a doubt concerning it. Suppose the differential equation $M(x,y)dx + N(x,y)dy=0$ is exact. Then the solution is given by:
$\int Mdx +\int (N-\frac{\partial}{\partial y}\int Mdx)dy = c$. I understand that the integrand in the second term is a function of y alone and also understand the derivation of this solution. What I don't understand is the following paragraph:

My book then says "Since all the terms of the solution that contain x must appear in $\int Mdx$, its derivative w.r.t. y must have all the terms of N that contain x. Hence the general rule to be followed is: Integrate $\int Mdx$ as if y were constant. Also integrate the terms of N that do not contain x w.r.t. y. Equate the sum of these integrals to a constant."

I don't understand the justification that is provided for the general rule. Can someone please explain this?

Best Answer

There seemed to be a misunderstanding as people tried to explain to me why $\int Mdx +\int (N-\frac{\partial}{\partial y}\int Mdx)dy = c$ is the solution of the exact ODE, something which I had already understood perfectly. My problem was with the next statement in the book which gave a working rule that essentially said that the solution could be expressed as $\int M dx $ (y constant) $ + \int N' dy = c$ (N' are the terms of N not containing x) is the solution. After some online searches I have hence discovered the solution. The book is wrong. The rule it quotes works so often in practice that people adopt it but there are cases when it fails and we have to take recourse to $\int Mdx +\int (N-\frac{\partial}{\partial y}\int Mdx)dy = c$ to write the solution. For example the ODE $\frac{dx}{\sqrt{x^2+y^2}} +(\frac{1}{y}-\frac{x}{y\sqrt{x^2+y^2}})dy=0$ would give a wrong answer on applying the working rule and we have to take recourse to directly computing $\int Mdx +\int (N-\frac{\partial}{\partial y}\int Mdx)dy = c$.

Related Question