1.8 Exact Equations
Another type of equation that comes up quite often in physics and engineering is an exact equation. Suppose is a function of two variables, which we call the potential function. The naming should suggest potential energy, or electric potential. Exact equations and potential functions appear when there is a conservation law at play, such as conservation of energy. Let us make up a simple example. Let
We are interested in the lines of constant energy, that is lines where the energy is conserved; we want curves where , for some constant . In our example, the curves are circles. See Figure .

We take the total derivative of :
For convenience, we will make use of the notation of and . In our example,
We apply the total derivative to , to find the differential equation . The differential equation we obtain in such a way has the form
An equation of this form is called exact if it was obtained as for some potential function . In our simple example, we obtain the equation
Since we obtained this equation by differentiating , the equation is exact. We often wish to solve for in terms of . In our example,
An interpretation of the setup is that at each point is a vector in the plane, that is, a direction and a magnitude. As and are functions of , we have a vector field. The particular vector field that comes from an exact equation is a so-called conservative vector field, that is, a vector field that comes with a potential function , such that
Let be a path in the plane starting at and ending at . If we think of as force, then the work required to move along isThat is, the work done only depends on endpoints, that is where we start and where we end. For example, suppose is gravitational potential. The derivative of given by is the gravitational force. What we are saying is that the work required to move a heavy box from the ground floor to the roof, only depends on the change in potential energy. That is, the work done is the same no matter what path we took; if we took the stairs or the elevator. Although if we took the elevator, the elevator is doing the work for us. The curves are those where no work need be done, such as the heavy box sliding along without accelerating or breaking on a perfectly flat roof, on a cart with incredibly well oiled wheels.
An exact equation is a conservative vector field, and the implicit solution of this equation is the potential function.
Solving exact equations
Now you, the reader, should ask: Where did we solve a differential equation? Well, in applications we generally know and , but we do not know . That is, we may have just started with , or perhaps even
It is up to us to find some potential that works. Many different will work; adding a constant to does not change the equation. Once we have a potential function , the equation gives an implicit solution of the ODE.
The procedure, once we know that the equation is exact, is:
- Integrate in resulting in .
- Differentiate this in , and set that equal to , so that we may find by integration.
The procedure can also be done by first integrating in and then differentiating in . Pretty easy huh? Let’s try this again.
Is there an easier way to check for the existence of , other than failing in trying to find it? Turns out there is. Suppose and . Then as long as the second derivatives are continuous,
Let us state it as a theorem. Usually this is called the Poincaré Lemma.to the power 1The theorem doesn’t give us a global defined everywhere. In general, we can only find the potential locally, near some initial point. By this time, we have come to expect this from differential equations.
Let us return to Example where and . Notice and , which are clearly not equal. The equation is not exact.
Integrating factors
Sometimes an equation is not exact, but it can be made exact by multiplying with a function . That is, perhaps for some nonzero function ,
is exact. Any solution to this new equation is also a solution to .In fact, a linear equation
is always such an equation. Let be the integrating factor for a linear equation. Multiply the equation by and write it in the form of . Then , so , while , so . In other words, we have an exact equation. Integrating factors for linear functions are just a special case of integrating factors for exact equations.But how do we find the integrating factor ? Well, given an equation
should be a function such that Therefore, At first it may seem we replaced one differential equation by another. True, but all hope is not lost.A strategy that often works is to look for a that is a function of alone, or a function of alone. If is a function of alone, that is , then we write instead of , and is just zero. Then
In particular, ought to be a function of alone (not depend on ). If so, then we have a linear equation Letting , we solve using the standard integrating factor method, to find . The constant in the solution is not relevant, we need any nonzero solution, so we take . Then is the integrating factor.Similarly we could try a function of the form . Then
In particular, ought to be a function of alone. If so, then we have a linear equation Letting , we find . We take . So is the integrating factor.Footnotes
[1] Named for the French polymath Jules Henri Poincaré (1854–1912).
Adapted from Differential Equations for Engineers by Jiří Lebl (Oklahoma State University), hosted on LibreTexts (math.libretexts.org) and licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.