Differential Equations Day 8 -- Exact Differential Equations
Overview
Our final type of first order differential equation that we will see an algebraic method for solution is called an exact differential equation. The bad news is that the hardest part of engaging with this topic is identification of a differential equation as exact. The good news is that after a differential equation has been identified as exact, the algebraic process of obtaining a general solution and/or a specific solution (to match an initial condition) is less sophisticated than that of linear differential equation, and uses the fun new concept of a partial derivative and partial integral.
An excellent textbook treatment of exact equations can be found here: https://tutorial.math.lamar.edu/classes/de/exact.aspx. The example in this activity is due to the aforementioned link.
At the end of this activity we'll take a look at the conceptual understanding of why the class of exact differential equations is important, and why the method works.
Definition
A first order differential equation is exact if it can be put in the following standard (exact) form
and if
Note: The slope-field form of an exact differential equation is
Understanding the Definition and Partial Derivatives
The notation and indicate what is known as a "partial derivative" and I expect that it may be a new concept for many of you. The short description of a partial derivative is that it is a derivative in which you only treat one variable as independent, and any other variable is treated as if it were a constant.
For instance
and
It's normal to need some time to get accustomed to partial derivatives and come to realize that they are just a slight twist on the concept of a derivative with which you are familiar from Calc 1. I encourage you to dust off your knowledge of procedurally calculating derivatives (perhaps with the Monkey Rules) from Calc 1 to get accustomed to this new concept
The other point worth emphasizing is that the definition of an exact differential equation is a two part condition. A differential equation is only exact if it can both be put in standard (exact) form and the partial derivatives of the M and N are equal as described in the definition.
Example of Identifying a Differential Equation as Exact
Let's check that the following differential equation is in fact exact.
First, let's attempt to put this in standard (exact) form with some algebraic massage
With this massage complete, and . Notice the importance of incorporating the negative sign inside the parentheses in enabling this identification.
Note we have not yet identified the equation as exact. We still must check the condition regarding the partial derivatives of N and M.
Because these are the same, we can now confirm that the differential equation is in fact exact.
The Algebraic Method for Solving Exact Differential Equations
The algebraic process for solving an exact differential equation involves a rather fun pair of partial integrals, and then a reconciliation. Before you begin though, be sure the exact equation is in standard form and the condition on the partial derivatives, , has been checked.
With that out of the way:
- Calculate but rather than a constant of integration, add a function of integration
- Calculate but rather than a constant of integration, add a function of integration
- Determine and by reconciling and which are the same function (but viewed from two different perspectives). Call the result
- Replace the symbol with a single constant of integration c.
- Solve the resulting equation for y to obtain the general solution with y as the independent variable, and x as the dependent variable. [Warning: this can be some pretty tricky Algebra 2!]
- If an initial condition is present, then use it to solve for c and obtain a specific solution.
An Example of the Algebraic Method for Solving Exact Differential Equations
Let's return to the differential equation from above
which we saw was exact, and had standard (exact) form
and in which the component functions are and .
Let's follow the steps for solving this exact differential equation.
- This step often sounds hard, but rarely is. By comparing and we see that and and so
- Solving the equation in step 4 for y, and therefore obtaining the explicit general solution, is actually the hardest part of the process. It's not differential equations fault though: it's algebra 2's fault. It turns out the equation in step 4 is quadratic in y, but the coefficients of the quadratic involve x. The quadratic formula still is the key to unlocking the solution. I'll be more specific below.
- There was no initial condition present, so we do not need to find a specific solution.
Why Exact Equations are Important and Why the Algebraic Method Works (optional conceptual discussion)
The algebraic method for solving exact equations is one of the more fun methods of the semester. I particularly enjoy using the "partial integral" and the reconciliation of and . That said, whatever your reaction is to the algebraic method, a reasonable question is: why does this work, why did anyone study exact equations in the first place, and how did anyone come up with this technique?
To get a sense of the answers to these questions, it's important to take a step back and examine the "big picture" of the method. To do that, let's take a look at the function from the algebraic process, and which I'll call . All the calculus is complete once has been calculated; so in some sense, the solution to an exact differential equation is . So let's take a closer look at this function.
The function is a function of two variables which means it can be visualized as a surface above the x-y plane. The function is plotted below as a purple plane.
Adjust the slider for c and pay attention to various intersections of and the plane z=c. Notice that the intersections of and c are the same as the solutions GenSol_1 and GenSol_2 above.
The mathematical way of summarizing what we observe above is that the "contours" of (i.e. curves on of equal elevation above the x-y plane) are the solutions to the exact differential equation. When you replace with c this amounts to selecting a particular contour line, which is also a particular solution fo the exact differential equation. In other words: a topographic map of the purple surface is a set of all the solutions of the exact differential equation.
But why is this true, you might ask?
The reason why the intersection of the surface and the plane z=c are the same as the solutions takes a little thought about how we came to discover , what its relationship is to the exact differential equation that this all started with, and a little bit of content knowledge from Calculus 3.
Looking back at the algebraic method for solving exact differential equations reveals that was gotten by partial integration of M and N (and reconciliation of the functions of integration). Therefore, the flip side of the fact that is a partial integral of M and N is that M and N are partial derivatives of . In particular
and
In other words, to use some terminology from Calculus 3 (it's ok if you haven't taken Calc 3) the pair, (M,N) is the gradient of . That means that if we think of (M,N) as a vector field (a field of arrows), the vector field points in the direction of steepest ascent, and in Calculus 3 you learn that this direction is always perpendicular to the contour lines of . Furthermore, also from Calc 3, you learn that (-N,M) is perpendicular to the gradient, and points in a direction parallel to the contour lines of .
In other words a slope field which is everywhere equal to -M/N will point in the direction of the contours of . But if you go back to the definition of an exact equation, you'll see that the slope field form of an exact equation is precisely
In other words, an exact differential equation will necessarily have the contours of as its solutions. And this is the geometry behind why the method works.
One last thing to notice is that the other condition on the partial derivatives of M and N, , is our way of checking that the partial integrals of M and N will return us back "up" to the same function . This is a critical component of knowing that the geometrical/Calc 3 way of thinking about this will in fact hold.
Sometimes I like to think of the following picture which organizes the various pieces and parts of an exact equation, and their relationships with each other.
Conclusion
It's A-OK if this is over your head. I recognize that many people have not encountered Calculus 3 yet, and so the terms "gradient", "perpendicular" and so on are new to you. You do NOT need to understand why the method works in order to use it to solve exact differential equations.
If you understand nothing else though, know that the contours of are the solutions of the exact differential equation from which was gotten.