Exact differential equations
Some first-order ODEs are secretly a total differential of a single function in disguise. Write the equation as and ask whether the left side is exactly for some potential function — if so, the level curves are the solution, with no separation of variables and no integrating trick needed beyond one test. Within the MA10001 Ordinary Differential Equations unit, exact equations sit right after separable equations as the second core technique: many first-order, first-degree ODEs are not separable but are exact, and a huge further class becomes exact once multiplied by the right integrating factor. This article builds the exactness test, the two-step construction of , and the standard integrating-factor shortcuts, then drills both on fully worked examples.
An equation is exact exactly when , and then its solution is the potential function built by partially integrating or and matching the leftover unknown function to the other side.
The core idea
Differential form. Any first-order, first-degree ODE can be rearranged into
where: and are functions of and with continuous first partial derivatives on the region of interest. This is the standard form every exactness discussion starts from — even an equation given as must first be moved to this shape by careful regrouping.
What "exact" means. The equation is exact if some potential function has and as its own partial derivatives:
where: and denote and . When this holds, the total differential is literally , so the original ODE reads , and integrating once gives the implicit solution .
The exactness test. Because mixed partial derivatives of a well-behaved function agree, , exactness is equivalent to a single checkable condition:
where: both sides are ordinary partial derivatives of the given and — no potential function needs to be known in advance to run this test. It is a necessary and sufficient condition (given continuity of the first partials), so a single computation settles the question before any integration is attempted.
Geometric picture. The solution curves are the level curves (contours) of the potential . Moving along one of these curves keeps constant, so there — which is precisely the differential equation. Exactness is the statement that the ODE is the "contour equation" of some hidden surface .
Sometimes it isn't exact — yet. If , multiplying every term by a suitable integrating factor can restore exactness: the modified equation passes the test even though the original did not. Finding a general is hard, but two special cases are routine to check: if depends on only, then ; if depends on only, then .
The goal is to turn the bare exactness condition into an explicit, mechanical recipe that produces the potential function and hence the implicit general solution , using nothing beyond partial integration and matching one unknown function of a single variable.
Step 1. Start from the exactness condition . Treat as a fixed constant and integrate both sides with respect to . Because the "constant" of integration with respect to can still depend on , write
where is an unknown function of alone, not yet determined. This is the one place students most often go wrong: dropping and replacing it by a plain numeric constant throws away part of the solution, because any function of alone differentiates to zero with respect to and is therefore invisible to the integration in this step.
Step 2. Use the second condition, , to pin down . Differentiate the expression for from Step 1 with respect to :
Set this equal to and solve for . Because was already guaranteed by the exactness test, every -dependent term is guaranteed to cancel out in this equation, leaving as a function of only — if an -term survives, an arithmetic slip has occurred somewhere upstream, since consistency is not optional here.
Step 3. Integrate with respect to to recover itself (the numeric constant of this last integration is absorbed into the overall constant later, so it can be dropped). Substitute back into the expression from Step 1 to obtain the complete potential function .
Step 4. State the implicit general solution as , where is an arbitrary constant fixed later by any given initial condition. As a check, differentiate the found partially with respect to and and confirm the results reproduce the original and exactly — this catches nearly every algebra slip made in Steps 1 through 3. The mirror-image route — integrating with respect to first and matching against — works identically and is preferable whenever is easier to integrate than .
Worked example
Solve , and find the particular solution satisfying .
Step 1. Identify and in the standard differential form: and .
Step 2. Test exactness. and . Since , the equation is exact, so the potential-function method applies directly.
Step 3. Integrate with respect to , holding fixed:
Step 4. Differentiate with respect to and match to : , and this must equal , so , giving .
Step 5. Assemble the general solution: . Check: and , as required.
Step 6. Apply the initial condition : , so .
Final answer: the particular solution is .
Competitive stretch
The same family with is worth knowing by heart: here it is faster to integrate with respect to first, giving , then matching to gives , so . The general solution is , and the initial condition forces , so the particular solution is . Recognising which side, or , is quicker to integrate first is a genuine time-saver under exam pressure.
Common traps
- Skipping the exactness test. Running the potential-function procedure on a non-exact equation produces an inconsistent or meaningless result — always confirm before integrating anything.
- Treating as a numeric constant. It is an unknown function of the other variable; dropping it at the first integration step silently discards part of the solution.
- Getting an -term when solving for . If matching to leaves an -dependent piece, that signals an earlier arithmetic error, since already guarantees clean cancellation.
- Sign or regrouping errors converting into . Move every term to one side deliberately before reading off and ; a stray sign flips the whole exactness test.
Ask the tutor: if the two-step construction of feels shaky, or you want more drill on spotting exact equations and integrating factors quickly, ask the AI tutor to walk through the reasoning step by step.
Why does M sub y equal N sub x guarantee exactness instead of just being a convenient coincidence?
It follows from a genuine theorem, not a lucky pattern. If and for some smooth potential , then differentiating the first equation with respect to and the second with respect to gives and . Since mixed partial derivatives of a function with continuous derivatives are always equal, , it must be that . The converse — that is enough to guarantee such a exists — is a standard result proved by actually constructing via the two-step integration, which is exactly the procedure used in the worked examples.
What do I do if M sub y does not equal N sub x?
The equation is not exact as written, but it may become exact after multiplying through by an integrating factor . First check whether depends on alone; if so, works. If instead depends on alone, use . Multiply the whole equation by whichever applies, recheck exactness (it will now hold), and then solve exactly as usual. If neither special case applies, finding in general is a harder problem outside this unit's standard toolkit.
Is checking u by differentiating back really necessary, or is it just extra work?
It is worth the thirty seconds. The construction in Steps 1 to 3 involves two separate integrations and one differentiation, any of which can carry a sign or algebra slip that would otherwise go unnoticed until marks are lost. Differentiating the final partially with respect to and and comparing against the original and catches essentially every such error immediately, because the check must reproduce the two given functions exactly — any mismatch points straight back to where the mistake happened.