Exact Equations
When a differential equation is secretly a total derivative
The Hidden Structure
Some differential equations are more structured than they first appear. Consider an equation in the form:
At first glance, this looks like any other first-order equation. But sometimes, the left side is secretly the total differential of some function . When that happens, the equation is simply saying , which means is constant along solutions.
This is the essence of an exact equation: a differential equation that is really just in disguise.
Total Differentials from Multivariable Calculus
Recall from multivariable calculus that if is a function of two variables, its total differential is:
The total differential captures how changes when both and change by small amounts. If a particle moves along a curve where changes by and changes by , then changes by approximately .
Now here is the key insight. If we have an equation and there exists a function such that:
then the equation becomes . This means is constant along any solution curve.
Interactive: Total Differential and Level Curves
The purple curve is the level curve through the current point.
The gradient (blue arrow) is always perpendicular to level curves.
The surface shows . The level curves are where is constant. When we set , we are asking: which curves in the -plane keep unchanged? The answer is precisely the level curves of .
The Exactness Test
How do we know if an equation is exact? We need to check whether there exists a function with and .
Here is where a beautiful fact from calculus comes to the rescue. If has continuous second partial derivatives, then the mixed partials are equal:
This means , or equivalently:
This is the exactness test. If the equation is exact, these partial derivatives must be equal. Conversely, in a simply connected region, if these partials are equal, the equation is exact.
Interactive: Test for Exactness
M(x, y)
N(x, y)
Exactness Test:
Exact
The classic example from the text
Enter any functions and . The checker computes the partial derivatives and tells you whether the equation is exact. When , a potential function exists.
Why Does This Test Work?
The logic is elegant. If exists with and , then:
The equality of mixed partials guarantees that the exactness test passes. Going the other direction (proving existence when the test passes) requires a theorem about conservative vector fields, but the practical upshot is simple: check if the cross-partials match.
Finding the Potential Function
Once we know an equation is exact, we need to find the function such that and . The method has two steps.
Step 1: Integrate with respect to one variable.
Start with and integrate with respect to :
The "constant" of integration is actually a function because when we differentiate with respect to , any function of alone would vanish.
Step 2: Determine the unknown function.
Now use the condition . Differentiate our expression for with respect to :
This lets us solve for , and then integrate to find .
Interactive: Step-by-Step Potential Finding
We identify M = 2xy + 3 and N = x² + 4y
Follow along as the method unfolds step by step. Enter an exact equation and watch the integration process reveal the potential function .
Solutions Are Level Curves
Once we have , the general solution to is:
where is an arbitrary constant. Each choice of gives a different solution curve, and together they form a family of level curves of .
This is geometrically beautiful. The solution curves are the contours of the potential function. They never cross (except at singular points), and they tile the plane into nested families.
Interactive: Family of Solution Curves
The purple curve is the solution .
Each level curve is a separate solution to the differential equation.
Explore how different values of trace out different solution curves. The gradient is always perpendicular to the level curves, which connects to the fact that the direction field is tangent to solutions.
A Worked Example
Consider the equation:
Check exactness: Here and .
They are equal, so the equation is exact.
Find F: Integrate with respect to :
Differentiate with respect to :
Set this equal to :
So the potential function is , and the general solution is:
When Equations Are Not Exact: Integrating Factors
What if ? All is not lost. Sometimes we can multiply the entire equation by a function called an integrating factor to make it exact.
The modified equation is exact if:
Finding in general is as hard as solving the original equation. But there are special cases:
If depends only on : The condition becomes
If the right side depends only on , we can find by integration.
If depends only on : The condition becomes
If the right side depends only on , we can find by integration.
This technique extends the reach of the exact equation method significantly.
Connection to Physics
Exact equations arise naturally in physics and engineering. When is exact, the vector field is conservative. The function is the potential energy, and solutions follow paths of constant energy.
In thermodynamics, exact differentials appear as state functions. The internal energy of a system satisfies , but only certain combinations form exact differentials. Recognizing exactness tells us which quantities are true state functions, independent of the path taken.
In fluid mechanics, stream functions and velocity potentials satisfy exact equations. The level curves of a stream function are streamlines along which fluid particles travel.
Key Takeaways
- An exact equation is secretly the total differential of some potential function
- The exactness test: check if (equality of mixed partials)
- To find : integrate with respect to , then use to determine the unknown function of
- Solutions are level curves , forming a family of contours of the potential function
- Non-exact equations can sometimes be made exact by multiplying by an integrating factor
- Exact equations connect to conservative vector fields, potential energy, and state functions in physics