What Are Exact Differential Equations?
Exact Differential Equations are first-order equations written in the differential form
that arise as the total differential of one function . Recall that the total differential of is
If the equation matches this pattern, meaning and for some potential function , then the equation is simply . A quantity whose differential is zero does not change, so for a constant . That constant family of level curves is the general solution.
The catch is that most equations you meet are not handed to you as a tidy . So the first job is a test that decides, before any integrating, whether a hidden exists at all.
The exactness test. Assuming and have continuous first partial derivatives on a rectangle, the equation is exact if and only if
The reason the test works is the equality of mixed partial derivatives. If exists, then and , and for a well-behaved those two mixed partials are equal. So is forced. The converse (that the condition is enough to build ) holds on any simply connected region and is the practical half you will use.
How Do You Test Whether An Equation Is Exact?
Testing is mechanical and takes one line. Read off as everything multiplying , read off as everything multiplying , then compare two partial derivatives.
Differentiate with respect to , treating as a constant, to get .
Differentiate with respect to , treating as a constant, to get .
If the two match, the equation is exact and a potential exists. If they differ, it is not exact, and you either look for an integrating factor or use another method entirely.
Do this test first, every time. Skipping it is the most common way students lose the whole problem, because the potential-function method below only works once exactness is confirmed.
How Do You Solve An Exact Differential Equation?
Once the test passes, you reconstruct the hidden from its two partial derivatives. The reliable route integrates with respect to , then uses to pin down the part that integration missed.
Integrate with respect to . Because , integrate in while holding fixed. The "constant" of this integration is not a number; it is an unknown function , since any function of alone has zero -derivative. This gives .
Differentiate that with respect to . This produces in terms of , , and the unknown .
Match to . Set the expression from step 2 equal to . The -terms cancel, leaving a plain equation for in only.
Integrate to recover , then write the solution as .
The geometry keeps the algebra honest: is a surface sitting above the -plane, and are its contour lines. The differential form is the gradient of that surface written out, so an exact equation is exactly the statement "move along a direction that keeps height constant." The solution curves are the contours, the same picture as walking a hillside without going up or down.
What Is A Worked Example Of An Exact Differential Equation?
Example 1: Solve .
Read off and . Test for exactness:
They agree, so the equation is exact and a potential exists. Integrate with respect to , holding fixed:
Differentiate this with respect to and set it equal to :
The terms cancel, leaving , so . Assemble and set it to a constant:
Verify by back-substitution: and . Both partials return the original coefficients, so the potential is correct.
Final answer: .
Example 2: Solve .
Here and . Test for exactness:
They match, so the equation is exact. Integrate with respect to :
Differentiate with respect to and match :
Everything in cancels, leaving , so . The solution is:
Verify: and . Both check out.
Final answer: .
What If The Equation Is Not Exact? Integrating Factors
Most differential forms fail the test. When , the equation is not exact as written, but it can often be made exact by multiplying through by a well-chosen function called an integrating factor. After multiplying, is exact, and the same potential-function method applies.
Two shortcuts cover most textbook cases:
If is a function of alone, then depends only on , and .
If is a function of alone, then depends only on , found by the matching integral in .
The integrating-factor method is also the engine behind solving a first-order linear differential equation, where the factor turns the equation into an exact one you can integrate directly.
Why Do Exact Differential Equations Work?
The method can feel like a lucky trick the first time. It is not; it is vector calculus in disguise.
The pair is a gradient. Saying and is saying that the vector field is the gradient of some scalar . A field that is a gradient is called conservative, and the exactness test is precisely the condition for a field to be conservative on a simply connected region.
The solution rides the level curves. Along any solution, , so never changes. Curves of constant are its level curves, which is why the answer always takes the shape rather than an isolated formula for .
The term is not optional. Integrating in recovers every -dependence of but is blind to any part of that depends on alone. That missing piece is , and step 3 is the only place it gets restored. Drop it and the potential is wrong.
Seen this way, an exact equation and a conservative field are the same object. Physics students meet the identical idea as potential energy: a force is conservative when it is the gradient of a potential, and the exactness condition is the mathematical fingerprint of that fact.
Who Discovered Exact Differential Equations?
The exactness condition arrived in the same decade from two of the eighteenth century's most productive mathematicians, working the young subject of differential equations into a system of rules.
Two named figures anchor the story:
Alexis Claude Clairaut (1713–1765, France) stated the exactness condition while integrating the differential equations of celestial mechanics and geodesy.
Leonhard Euler (1707–1783, Switzerland) arrived at the same criterion independently and made integrating factors a general tool, extending the reach of the method to equations that are not exact on sight.
Where Are Exact Differential Equations Used In The Real World?
Because an exact equation is a conservative field with a potential, it appears wherever a system is governed by a quantity that depends only on state, not on the path taken to reach it.
Thermodynamics: state functions such as internal energy and entropy have exact differentials, and the test is how engineers decide whether a proposed quantity is a genuine state function or a path-dependent one like heat.
Mechanics and potential energy: a conservative force is the gradient of a potential, so the work it does is path-independent, and the exactness condition is the check that a force field has a potential at all.
Fluid flow and electrostatics: velocity potentials and electric potentials are the of an exact form, and the field lines are the gradients crossing the level curves at right angles.
Economics: when a marginal-cost or utility relationship is path-independent, it is modelled by an exact form whose potential recovers the underlying cost or utility surface.
One test decides whether a two-variable rate law hides a single governing quantity, which is why the same criterion turns up across heat, force, flow, and price.
What Are The Most Common Mistakes With Exact Differential Equations?
These three errors account for most lost marks, and each matches a question real students ask on r/learnmath and in course common-error handouts from Purdue, Johns Hopkins, and Michigan State.
Not checking exactness before solving.
Where it slips in:
A student jumps straight to integrating and building without first comparing and .
Don't do this:
Do not assume the equation is exact. If , no potential exists, and the whole method produces a contradiction at step 3.
The correct way:
Compute and first and confirm they are equal. Only then reconstruct ; if they differ, reach for an integrating factor instead.
Forgetting the -only function .
Where it slips in:
After integrating with respect to , a student adds a numerical constant instead of the unknown function , so the -only part of is lost.
Don't do this:
Do not treat the constant of a partial integration as a number. Any function of alone vanishes under , so the "constant" can be a full function .
The correct way:
Write , then recover by matching to . In Example 1 this step is what produced the term.
Mixing up which variable to integrate.
Where it slips in:
A student integrates with respect to , or integrates with respect to , crossing the two roles.
Don't do this:
Do not integrate against the wrong variable. Since , the term is integrated in ; since , the matching partial is taken in .
The correct way:
Keep the pairing fixed: integrate with respect to to build , then differentiate that with respect to and set it equal to . Starting from instead is valid too, but then you integrate in and match ; never split the pairing.
Practice Problems On Exact Differential Equations
Test each for exactness first, then solve. Answers are verified by back-substitution.
Solve .
(Answer: , exact; .)Solve .
(Answer: , exact; .)Solve .
(Answer: , exact; .)Solve .
(Answer: , exact; .)Is exact?
(Answer: but , so not exact; it needs an integrating factor.)Solve .
(Answer: , exact; .)
Where Should You Go Next After Exact Differential Equations?
Exact equations sit in the middle of the first-order toolkit, and several natural doors open from here.
Integrating-factor method. The direct sequel: how to rescue an equation that fails the exactness test by multiplying it into an exact one.
Separable differential equations. The simplest first-order type, and the one exact methods generalise.
Ordinary differential equations. Step back to see where exact equations fit among first-order and higher-order ODEs.
If your child is meeting Exact Differential Equations for the first time, a live Bhanzu trainer teaches the exactness test and the potential-function method from the conservative-field picture up, in the Bhanzu math program.
Was this article helpful?
Your feedback helps us write better content
