Differential Equations · Undergraduate
Exact Differential Equations and Integrating Factors
Quick answer
An equation M(x, y) dx + N(x, y) dy = 0 is exact when it is the total differential of some function F(x, y), that is, when F_x = M and F_y = N. Then the solutions are the level curves F(x, y) = C. The test is ∂M/∂y = ∂N/∂x, which follows from the equality of mixed partial derivatives. To find F, integrate M with respect to x, add an unknown g(y), and fix g by matching N. Some non-exact equations become exact after multiplying by an integrating factor.
What you'll learn
- Test an equation M dx + N dy = 0 for exactness
- Find the potential function F and write the solution F = C
- Solve an initial value problem for an exact equation
- Make an equation exact with an integrating factor that depends on x
Equations that are a total differential
Write a first-order equation in the form
If some function has and , the left side is the total differential . The equation then says , so is constant along every solution:
Such an equation is called exact, and is its potential function.
Why the test is ∂M/∂y = ∂N/∂x
If exists, then and . For functions with continuous second partial derivatives the two mixed partials are equal, so an exact equation must have . The converse holds on any region with no holes: when , the steps below always produce an . Exactness is a single comparison of two partial derivatives.
Finding F. Integrate with respect to , holding fixed, and add an unknown in place of the constant. Differentiate with respect to , set the result equal to , and solve for .
Worked examples
Common mistakes
Practice problems
-
Solve .
Answer
Full solution
. , and gives .
-
Is exact?
Answer
No
Full solution
but .
-
Solve .
Answer
Full solution
. , and .
-
Solve with .
Answer
Full solution
, and . At , .
-
Find so that is exact.
Answer
Full solution
must equal .
-
Solve .
Answer
Full solution
. , and .
-
Solve .
Answer
Full solution
. , and gives .
-
For Example 1, a student writes the answer . What is missing?
Answer
The term from
Full solution
Check: , not . The missing integrates to .
Frequently asked questions
What is an exact differential equation?
An equation M dx + N dy = 0 for which there is a function F(x, y) with ∂F/∂x = M and ∂F/∂y = N. Its solutions are the curves F(x, y) = C.
How do you test for exactness?
Check whether ∂M/∂y = ∂N/∂x. If they agree (on a region with no holes), the equation is exact.
How do you find F?
Integrate M with respect to x, adding an unknown function g(y). Differentiate the result with respect to y, set it equal to N, and solve for g′(y).
What if the equation is not exact?
If (M_y − N_x)/N depends only on x, multiplying by μ(x) = e^∫(M_y − N_x)/N dx makes the equation exact.
Why is the solution written implicitly?
The level curve F(x, y) = C often cannot be solved for y. The implicit equation is the complete answer.