01 / 20

Identifying
Exact Differential Equations

Learn to recognize when a differential equation \( M\,dx + N\,dy = 0 \) is exact and discover the elegant cross-partial test that makes identification effortless.

Differential Equations

What Is an Exact Differential Equation?

A first-order ODE written as \( M(x,y)\,dx + N(x,y)\,dy = 0 \) is called exact if there exists a function \( F(x,y) \) such that:

$$ dF = \frac{\partial F}{\partial x}\,dx + \frac{\partial F}{\partial y}\,dy = M\,dx + N\,dy $$

The Total Differential Idea

Recall from multivariable calculus: for any smooth function \( F(x,y) \), the total differential is:

$$ dF = F_x\,dx + F_y\,dy $$

If the left side of our DE \( M\,dx + N\,dy \) happens to equal \( dF \), then the equation is just \( dF = 0 \), which means:

Why Does Exactness Matter?

Direct Solution
Exact DEs can be solved by integration alone: no guessing, no special tricks.
Level Curves
Solutions are level curves \( F(x,y) = C \), connecting DEs to gradient fields.
Gateway Skill
If a DE is not exact, you may use an integrating factor to make it exact.

The Exactness Theorem

$$ M(x,y)\,dx + N(x,y)\,dy = 0 \;\text{ is exact} \iff \frac{\partial M}{\partial y} = \frac{\partial N}{\partial x} $$

This is the cross-partial test. It works provided \( M \), \( N \), \( M_y \), and \( N_x \) are continuous on a simply connected region.

Visualizing the Cross-Partial Test

\( F(x, y) \)
\( \frac{\partial}{\partial x} \)
\( \frac{\partial}{\partial y} \)
\( M = F_x \)
\( N = F_y \)
\( \frac{\partial}{\partial y} \)
\( \frac{\partial}{\partial x} \)
\( M_y = F_{xy} \)
\( N_x = F_{yx} \)
Must be equal!

Exact vs. Non-Exact

Exact Non-Exact
Test Result \( M_y = N_x \) \( M_y \neq N_x \)
Potential \( F \) Exists directly Does not exist as-is
Solution Method Integrate to find \( F \) Need integrating factor first
Solution Form \( F(x,y) = C \) Varies by method

Step-by-Step Identification

1
Write in standard form. Rearrange the DE into \( M(x,y)\,dx + N(x,y)\,dy = 0 \).
2
Identify \( M \) and \( N \). \( M \) is the coefficient of \( dx \), \( N \) is the coefficient of \( dy \).
3
Compute partial derivatives. Find \( \frac{\partial M}{\partial y} \) and \( \frac{\partial N}{\partial x} \).
4
Compare. If \( M_y = N_x \), the equation is exact. If not, it is not exact.

Example 1: An Exact Equation

$$ (2xy + 3)\,dx + (x^2 - 1)\,dy = 0 $$
1
Identify: \( M = 2xy + 3 \), \( N = x^2 - 1 \).
2
Compute \( M_y \): \( \frac{\partial}{\partial y}(2xy + 3) = \) \( 2x \).
3
Compute \( N_x \): \( \frac{\partial}{\partial x}(x^2 - 1) = \) \( 2x \).
4
Compare: \( M_y = 2x = N_x \) ✓ Exact!

Example 2: A Non-Exact Equation

$$ (y^2 + x)\,dx + (2y - x)\,dy = 0 $$
1
Identify: \( M = y^2 + x \), \( N = 2y - x \).
2
Compute \( M_y \): \( \frac{\partial}{\partial y}(y^2 + x) = \) \( 2y \).
3
Compute \( N_x \): \( \frac{\partial}{\partial x}(2y - x) = \) \( -1 \).
4
Compare: \( 2y \) \( \neq \) \( -1 \). ✕ Not exact.

Example 3: Trig Functions

$$ (e^y \sin x)\,dx + (e^y \cos x + 1)\,dy = 0 $$
1
Identify: \( M = e^y \sin x \), \( N = e^y \cos x + 1 \).
2
Compute \( M_y \): \( \frac{\partial}{\partial y}(e^y \sin x) = \) \( e^y \sin x \).
3
Compute \( N_x \): \( \frac{\partial}{\partial x}(e^y \cos x + 1) = \) \( -e^y \sin x \).
4
Compare: \( e^y \sin x \) \( \neq \) \( -e^y \sin x \). ✕ Not exact.

Example 4: Exact with \( e^y \)

$$ (e^y \cos x)\,dx + (e^y \sin x + 2y)\,dy = 0 $$
1
Identify: \( M = e^y \cos x \), \( N = e^y \sin x + 2y \).
2
\( M_y \): \( \frac{\partial}{\partial y}(e^y \cos x) = \) \( e^y \cos x \).
3
\( N_x \): \( \frac{\partial}{\partial x}(e^y \sin x + 2y) = \) \( e^y \cos x \).
4
Result: \( M_y = N_x = e^y \cos x \). ✓ Exact!

Common Mistakes to Avoid

✕ Swapping Partials
Computing \( M_x \) and \( N_y \) instead of \( M_y \) and \( N_x \). Remember: differentiate across variables.
✕ Wrong Standard Form
Forgetting to move all terms to one side. The equation must be \( M\,dx + N\,dy = 0 \), not \( M\,dx = N\,dy \).
✕ Sign Errors
Dropping negatives when differentiating. A single sign mistake turns an exact equation into a non-exact one or vice versa.

Connection to Gradient Fields

An exact equation \( M\,dx + N\,dy = 0 \) is equivalent to saying the vector field \( \vec{F} = \langle M, N \rangle \) is a conservative (gradient) field:

$$ \vec{F} = \nabla F = \left\langle \frac{\partial F}{\partial x},\, \frac{\partial F}{\partial y} \right\rangle $$

Quick Reference Summary

Step Action Result
1 Write as \( M\,dx + N\,dy = 0 \) Standard form
2 Find \( M_y \) and \( N_x \) Two expressions
3 Compare \( M_y \) vs \( N_x \) Equal or not
4a If equal: integrate to find \( F \) \( F(x,y) = C \)
4b If not equal: find integrating factor Then re-test

Question 1 of 5

Is the equation \( (3x^2 y + 2)\,dx + (x^3 + 4y)\,dy = 0 \) exact?

Question 2 of 5

For the equation \( (y \cos x + 1)\,dx + (\sin x)\,dy = 0 \), what are \( M_y \) and \( N_x \)?

Question 3 of 5

Which condition must hold for \( M\,dx + N\,dy = 0 \) to be exact?

Question 4 of 5

Given \( (2xy + e^x)\,dx + (x^2 + \cos y)\,dy = 0 \), is this equation exact?

Question 5 of 5

The equation \( (3y)\,dx + (2x)\,dy = 0 \) is: