6. Exact DE Solver
Solve \(M(x,y)\,dx + N(x,y)\,dy = 0\) when \(\partial M/\partial y = \partial N/\partial x\) by finding a potential \(\Phi(x,y)\) such that \(\Phi_x=M,\ \Phi_y=N\), hence \(\Phi(x,y)=C\).
Math Calculus • Differential Equations
Solve \(M(x,y)\,dx + N(x,y)\,dy = 0\) when \(\partial M/\partial y = \partial N/\partial x\) by finding a potential \(\Phi(x,y)\) such that \(\Phi_x=M,\ \Phi_y=N\), hence \(\Phi(x,y)=C\).
An equation M(x,y) dx + N(x,y) dy = 0 is exact if there exists a potential function Phi(x,y) such that Phi_x = M and Phi_y = N. The solution is given implicitly by Phi(x,y) = C.
A common test is comparing the mixed partials: dM/dy and dN/dx. If they are equal on a region where M and N have continuous first partial derivatives, the equation is exact.
Integrate M(x,y) with respect to x to get Phi(x,y) = integral M dx + g(y), then differentiate with respect to y and match N(x,y) to determine g(y).
After finding Phi(x,y), substitute the point (x0,y0) into Phi(x,y) = C to get C = Phi(x0,y0). This selects the specific level curve passing through the given point.
If dM/dy and dN/dx are not equal, the differential form is not exact under the standard test. In some cases an integrating factor depending only on x or only on y can make it exact, but that requires additional analysis beyond the basic exactness condition.