Solving Exact
Differential Equations
Learn to identify and solve DEs of the form \( M\,dx + N\,dy = 0 \) by finding potential functions through the exactness condition.
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:
In other words, the left side of the equation is the total differential \( dF \) of some unknown function \( F \). Finding \( F \) solves the equation.
The Total Differential Connection
Why Exact DEs Matter
The Exactness Condition
This comes from the equality of mixed partials: if \( F_{xy} = F_{yx} \), then \( M_y = F_{xy} = F_{yx} = N_x \). This single check tells you whether the equation is exact.
Geometric Meaning
Exact vs. Non-Exact
| Exact | Non-Exact | |
|---|---|---|
| Condition | \( 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 |
| Example | \( 2xy\,dx + x^2\,dy = 0 \) | \( y\,dx - x\,dy = 0 \) |
| Vector Field | Conservative (gradient) | Non-conservative |
Step-by-Step Method
Example 1: Basic
Example 1: Solution Curves
Example 2: Intermediate
Example 3: Trig & IVP
Alternative: Integrate \( N \) First
You can also start by integrating \( N \) with respect to \( y \) instead. This is useful when integrating \( M \) w.r.t. \( x \) looks harder than integrating \( N \) w.r.t. \( y \).
Common Mistakes
Summary Checklist
| Step | Action | Result |
|---|---|---|
| 1 | Write as \( M\,dx + N\,dy = 0 \) | Standard form |
| 2 | Verify \( M_y = N_x \) | Confirms exactness |
| 3 | Integrate \( M \) w.r.t. \( x \) | \( F = \cdots + g(y) \) |
| 4 | Set \( F_y = N \), solve for \( g'(y) \) | Determines \( g(y) \) |
| 5 | Write \( F(x,y) = C \) | General solution |
| 6 | Apply initial condition (if given) | Particular solution |
Question 1 of 5
Which condition must hold for \( M\,dx + N\,dy = 0 \) to be exact?
Question 2 of 5
Is the equation \( (3x^2 + y)\,dx + (x - 2y)\,dy = 0 \) exact?
Question 3 of 5
Given the exact equation \( 2xy\,dx + x^2\,dy = 0 \), after integrating \( M = 2xy \) w.r.t. \( x \), what is \( F \)?
Question 4 of 5
After finding \( F = x^2 y + 3x + g(y) \) from \( M = 2xy + 3 \), you set \( F_y = N = x^2 - 1 \). What is \( g(y) \)?
Question 5 of 5
What is the general solution of the exact DE \( e^x \sin y\,dx + e^x \cos y\,dy = 0 \)?