We introduce how to classify various properties of differential 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 , since represents the energy of the system. In our example, the curves are circles. See Normally a reference to a previous figure goes here..

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

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 in the plane is a vector, 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

This is something that you may have seen in your Calculus 3 course, and if so, the process for solving exact equations is basically identical to the process of finding a potential function for a conservative vector field. The physical interpretation of conservative vector fields is as follows. 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 is

That 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. Effectively, 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.

Solution: If we know that this is an exact equation, we start looking for a potential function . We have and . If exists, it must be such that . Integrate in the variable to find

for some function . The function is the “constant of integration”, though it is only constant as far as is concerned, and may still depend on . Now differentiate (eq:exact:fint) in and set it equal to , which is what is supposed to be: Integrating, we find . We could add a constant of integration if we wanted to, but there is no need. We found . Next for a constant , we solve for in terms of . In this case, we obtain as we did before.

___

Why did we not need to add a constant of integration when integrating ? Add a constant of integration, say , and see what you get. What is the difference from what we got above, and why does it not matter?

In the previous example, you may have also noticed that the equation is separable, and we could have solved it via that method as well. This is not a coincidence, as every separable equation is exact (see ex:separableExact for the details) but there are many exact equations that are not separable, which we will see throughout the examples here.

The procedure, once we know that the equation is exact, is:

(a)
Integrate in resulting in .
(b)
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.

Solution: OK, so and . We try to proceed as before. Suppose exists. Then . We integrate:

for some function . Differentiate in and set equal to : But there is no way to satisfy this requirement! The function cannot be written as plus a function of . The equation is not exact; no potential function exists.

___

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 .

The 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 the example above where and . Notice and , which are clearly not equal. The equation is not exact.

Solution: We write the equation as

so and . Then The equation is exact. Integrating in , we find Differentiating in and setting to , we find So , and will work. Take . We wish to solve . First let us find . As then . Therefore , so . Now we solve for to get

__

Solution: We leave to the reader to check that .

This vector field is not conservative if considered as a vector field of the entire plane minus the origin. The problem is that if the curve is a circle around the origin, say starting at and ending at going counterclockwise, then if existed we would expect

That is nonsense! We leave the computation of the path integral to the interested reader, or you can consult your multivariable calculus textbook. So there is no potential function defined everywhere outside the origin .

If we think back to the theorem, it does not guarantee such a function anyway. It only guarantees a potential function locally, that is only in some region near the initial point. As we start at the point . Considering and integrating in or in , we find

The implicit solution is . Solving, . That is, the solution is a straight line. Solving gives us that , and so is the desired solution. See Normally a reference to a previous figure goes here., and note that the solution only exists for .
picture picture

___

Solution: The reader should check that this equation is exact. Let and . We follow the procedure for exact equations

and Therefore or and . We try to solve . We easily solve for and then just take the square root: When , the term in front of vanishes. You can also see that our solution is not valid in that case. However, one could in that case try to solve for in terms of starting from the implicit solution . The solution is somewhat messy and we leave it as implicit.

___

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.

Solution: Let and . Compute

As this is not zero, the equation is not exact. We notice is a function of alone. We compute the integrating factor Assuming that we want to look at , we multiply our given equation by to obtain which is an exact equation that we solved in Normally a reference to a previous example goes here.. The solution was If, instead, we had wanted a solution with , we would have needed to multiply by , which would have given a very similar result.

___

Solution: First compute

As this is not zero, the equation is not exact. We observe is a function of alone. We compute the integrating factor Therefore we look at the exact equation The reader should double check that this equation is exact. We follow the procedure for exact equations and Consequently or . Thus . It is not possible to solve for in terms of elementary functions, so let us be content with the implicit solution: We are looking for the general solution and we divided by above. We should check what happens when , as the equation itself makes perfect sense in that case. We plug in to find the equation is satisfied. So is also a solution.

___