Exact Differential Equations
Problem
Verify that (2xy + 3) dx + (x^2 + 4y) dy = 0 is exact, then find the potential function F(x, y) so that dF = 0 along every solution.
Explanation
What does "exact" mean?
Write a first-order ODE in differential form:
It is exact if its left side is the total differential of some scalar function — that is, there is a "potential" with
When that happens, the ODE reduces to , so solutions are simply the level curves
No integration by separation, no integrating factor — the work is already done, you just have to discover .
The exactness test
If exists, then and . Equality of mixed partials () forces
This is both necessary and (on a simply connected domain) sufficient. Check it first — if it fails, the equation is not exact and you need an integrating factor.
The given equation
So and .
Step 1 — Test for exactness
Equal. The equation is exact. ✓
Step 2 — Recover by integrating with respect to
Since , integrate with respect to (treating as a constant):
The "constant" of integration is actually a function because was held fixed — any term depending only on would vanish under .
Step 3 — Determine by matching
Differentiate with respect to :
This must equal :
(Constant of integration can be absorbed into the level-curve constant at the end.)
Step 4 — Assemble and write the solution
Every solution satisfies the implicit equation
This is a one-parameter family of level curves.
Verification
Or, take the total derivative along a solution curve:
An alternative route — integrate with respect to instead
Equally valid and sometimes easier when is simpler than : Match : . So — the same answer.
Initial value problem
If , plug in to get :
You usually cannot solve for explicitly — implicit form is often the final answer for exact equations.
When the test fails — integrating factor for exactness
If , look for or making exact:
- depends on only , satisfying .
- depends on only .
Geometric picture
Think of as a height function. The ODE says solutions stay at constant height — they are contour lines of the surface. The differential form is the gradient's action, and exactness says that form is conservative.
Common mistakes
- Skipping the exactness test. If the potential doesn't exist and every step below is nonsense.
- Treating as a constant instead of a function of when integrating with respect to . The whole method hinges on keeping the "constant" general enough to depend on the other variable.
- Double-counting terms that appear in both integrations. When you integrate w.r.t. you've already captured all terms with an in them; when you then compute and compare with , only the pure- terms should remain to determine .
- Forgetting the = C. The answer is an implicit family, not a function.
Try it in the visualization
Draw the level curves as contour lines, with the vector field shown as arrows. Watch that the arrows stay tangent to the level curves — that's the exactness condition visualized.
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.