DIFFERENTIAL EQUATIONS • FIRST-ORDER DIFFERENTIAL EQUATIONS

Identifying Exact DEs — Identifying Exact Differential Equations

Learn to recognize when a differential equation is secretly the derivative of a single function.

Historical Context & Motivation

Differential equations have been at the heart of mathematics and science for centuries. When scientists and mathematicians first tried to describe how things change — the motion of planets, the flow of heat, the growth of populations — they needed a way to relate a function to its own rate of change. The study of differential equations grew directly out of this need.

Among the earliest classes of differential equations that mathematicians learned to solve were exact differential equations. These are equations that can be traced back to a single underlying function, much like recognizing that scattered puzzle pieces all belong to the same picture. The concept of exactness ties together ideas from calculus — particularly partial derivatives — and gives us a clean test for solvability.

1676
Leibniz Develops the Calculus of Differentials
Gottfried Wilhelm Leibniz introduces the notation dx and dy, laying the groundwork for writing equations in the differential form M dx + N dy = 0.
1734
Euler Formalizes Exact Equations
Leonhard Euler systematically studies conditions under which M dx + N dy = 0 can be derived from a single potential function F(x, y), creating a formal test for exactness.
1760s
Clairaut's Theorem on Mixed Partials
Alexis Clairaut proves that for well-behaved functions, the order of partial differentiation does not matter: ∂²F/∂x∂y = ∂²F/∂y∂x. This theorem becomes the backbone of the exactness test.
1800s
Integrating Factors Extend the Method
Mathematicians discover that non-exact equations can sometimes be multiplied by a special function — an integrating factor — to make them exact, greatly expanding the usefulness of exact equation techniques.

The central question that motivated all of this work is deceptively simple: given an expression like M(x, y) dx + N(x, y) dy = 0, how can we tell whether this expression is really just the total differential of some function F(x, y)? If it is, solving the equation becomes much easier. Learning to identify these exact equations is the skill we will build in this lesson.

Core Principles & Definitions

Before we can identify exact differential equations, we need to understand what the word "exact" actually means in this context. The idea rests on a connection between a differential equation and the total differential of a function of two variables. If you have a function F(x, y), its total differential is dF = (∂F/∂x) dx + (∂F/∂y) dy. When a differential equation happens to match this form, we call it exact.

1

Total Differential

For a function F(x, y), the total differential is dF = (∂F/∂x) dx + (∂F/∂y) dy. It captures how F changes when both x and y change simultaneously.
2

Exact Equation Form

A first-order DE written as M(x, y) dx + N(x, y) dy = 0 is exact if there exists a function F such that ∂F/∂x = M and ∂F/∂y = N.
3

The Exactness Test

The equation M dx + N dy = 0 is exact if and only if ∂M/∂y = ∂N/∂x. This single condition is all you need to check.
4

Potential Function

The function F(x, y) whose total differential equals M dx + N dy is called the potential function. The solution to the exact DE is F(x, y) = C, where C is a constant.
KEY TAKEAWAY
Think of an exact differential equation like a recipe in reverse. Imagine someone hands you a list of ingredients (M and N) and asks: "Could these have come from one complete dish (the function F)?" The exactness test — checking whether ∂M/∂y equals ∂N/∂x — is like verifying that the ingredients are compatible. If they match, you know a single recipe (potential function) exists, and you can reconstruct it.

Why does the test ∂M/∂y = ∂N/∂x work? It comes from Clairaut's theorem. If F(x, y) exists with ∂F/∂x = M and ∂F/∂y = N, then ∂M/∂y = ∂²F/∂y∂x and ∂N/∂x = ∂²F/∂x∂y. Clairaut's theorem guarantees these mixed partial derivatives are equal (as long as they are continuous), so the condition ∂M/∂y = ∂N/∂x must hold. Conversely, if the condition holds, a potential function F can be found.

Visual Explanation

The diagram below illustrates the logical flow of identifying an exact differential equation. Starting with a general first-order DE, you first rewrite it in the differential form M dx + N dy = 0, then apply the exactness test by computing partial derivatives.

Flowchart showing how to identify an exact differential equation. Start by rewriting the DE in the form M dx + N dy = 0, compute the partial derivatives ∂M/∂y and ∂N/∂x, then compare. If they are equal, the equation is exact.

As the flowchart shows, the entire identification process boils down to one comparison. Once you write the equation in the standard form M dx + N dy = 0, you take the partial derivative of M with respect to y and the partial derivative of N with respect to x. If those two results are identical, you have an exact equation and can proceed to find the potential function F(x, y). If they differ, the equation is not exact in its current form, and you'll need a different strategy.

Mathematical Framework

Let's formalize the mathematics behind exact differential equations. We begin with the standard form of a first-order DE written using differentials, and then develop the exactness condition step by step.

STANDARD DIFFERENTIAL FORM
M(x, y) dx + N(x, y) dy = 0
Here M(x, y) is the coefficient of dx and N(x, y) is the coefficient of dy. Both are functions of x and y.
TOTAL DIFFERENTIAL OF F
dF = (∂F/∂x) dx + (∂F/∂y) dy
If a potential function F(x, y) exists, then M = ∂F/∂x and N = ∂F/∂y. The original equation becomes dF = 0, which means F(x, y) = C for some constant C.
EXACTNESS CONDITION
∂M/∂y = ∂N/∂x
This is the key test. Take the partial derivative of M with respect to y (treating x as constant) and the partial derivative of N with respect to x (treating y as constant). If they are equal, the equation is exact.

The reason this condition works is rooted in Clairaut's theorem from multivariable calculus. If F(x, y) has continuous second-order partial derivatives, then ∂²F/∂y∂x = ∂²F/∂x∂y. Since M = ∂F/∂x, we get ∂M/∂y = ∂²F/∂y∂x. Since N = ∂F/∂y, we get ∂N/∂x = ∂²F/∂x∂y. Setting them equal gives the exactness condition.

📌 Remember
When computing ∂M/∂y, you treat x as a constant and differentiate M with respect to y only. When computing ∂N/∂x, you treat y as a constant and differentiate N with respect to x only. These are partial derivatives, not ordinary derivatives.

Detailed Breakdown & Common Patterns

When you encounter a first-order DE on a test or in homework, you'll need to decide whether it's exact before choosing a solution method. The following table and diagram illustrate common patterns you'll see and how to handle each.

Common first-order DEs and their exactness classification
Equation FormM(x, y)N(x, y)Exact?
(2xy + 3) dx + (x² − 1) dy = 02xy + 3x² − 1Yes: ∂M/∂y = 2x, ∂N/∂x = 2x ✓
(y² + x) dx + (2xy) dy = 0y² + x2xyYes: ∂M/∂y = 2y, ∂N/∂x = 2y ✓
(x + y) dx + (x − y) dy = 0x + yx − yYes: ∂M/∂y = 1, ∂N/∂x = 1 ✓
(2xy) dx + (x² + y²) dy = 02xyx² + y²Yes: ∂M/∂y = 2x, ∂N/∂x = 2x ✓
(y) dx + (x²) dy = 0yNo: ∂M/∂y = 1, ∂N/∂x = 2x ✗
Side-by-side comparison of an exact and a non-exact equation, along with a four-step checklist for applying the exactness test.

Notice in the table and diagram that the test always comes down to comparing two expressions. When the equation involves polynomials, the partial derivatives are usually straightforward to compute. Watch out for equations that include trigonometric or exponential functions — the same test applies, but the calculus can be trickier. The important thing is to always correctly identify M and N before computing any derivatives.

Worked Example

Let's walk through a complete example of identifying whether a differential equation is exact, step by step.

Determine whether the DE is exact: (3x²y + eˣ) dx + (x³ + cos y) dy = 0
1
Step 1 — Identify M and NThe equation is already in the standard form M dx + N dy = 0. We identify the coefficients: M(x, y) = 3x²y + eˣ and N(x, y) = x³ + cos y.
M = 3x²y + eˣ, N = x³ + cos y
2
Step 2 — Compute ∂M/∂yTake the partial derivative of M with respect to y, treating x as a constant. The derivative of 3x²y with respect to y is 3x² (since x² is treated as a constant coefficient). The derivative of eˣ with respect to y is 0 (since eˣ does not contain y).
∂M/∂y = 3x²
3
Step 3 — Compute ∂N/∂xTake the partial derivative of N with respect to x, treating y as a constant. The derivative of x³ with respect to x is 3x². The derivative of cos y with respect to x is 0 (since cos y does not contain x).
∂N/∂x = 3x²
4
Step 4 — Compare the ResultsWe found ∂M/∂y = 3x² and ∂N/∂x = 3x². Since these two expressions are equal for all values of x and y, the equation satisfies the exactness condition.
∂M/∂y = ∂N/∂x = 3x² → The equation is EXACT ✓
⚠️ Common Mistake Alert
Students sometimes mix up which derivative to take. Remember: you differentiate M (the coefficient of dx) with respect to y, and you differentiate N (the coefficient of dy) with respect to x. A handy way to remember: you always differentiate with respect to the other variable — the one that does NOT appear in the differential attached to that coefficient.

Exact vs. Non-Exact: Strengths & Limitations

Identifying whether a DE is exact is powerful, but it's important to understand both the strengths and limitations of the exactness approach. Not every first-order DE is exact, and knowing when the method applies — and when it doesn't — will save you time and confusion.

Strengths and limitations of the exact DE identification method
AspectStrengthsLimitations
IdentificationSimple test: just compute two partial derivatives and compare.Requires the equation to be in M dx + N dy = 0 form first; rearranging can be tricky.
ApplicabilityWorks for a wide variety of first-order DEs including polynomials, exponentials, and trig functions.Many common DEs (like y dx + x² dy = 0) fail the exactness test and cannot be solved directly.
Solution QualityYields an implicit solution F(x, y) = C, which is often a clean, closed-form expression.The implicit form may be difficult to solve for y explicitly.
ExtensibilityNon-exact equations can sometimes be made exact using an integrating factor.Finding the right integrating factor can be challenging and is not always possible.
KEY TAKEAWAY
Think of the exactness test as a quick "compatibility check" — like scanning a QR code to see if a coupon is valid. If it scans (∂M/∂y = ∂N/∂x), you proceed to the reward (solving the DE using a potential function). If it doesn't scan, you need a different approach, such as finding an integrating factor, using separation of variables, or applying another first-order method. The test itself is never wasted effort, because it only takes a minute and immediately tells you which path to take.

Connection to Advanced Theory

The concept of exact differential equations is not an isolated technique — it connects to deeper ideas in mathematics that you'll encounter later. Understanding these connections gives you a preview of where this topic leads.

How exact DEs connect to advanced mathematics
This LessonAdvanced Extension
The exactness condition ∂M/∂y = ∂N/∂xIn multivariable calculus, this becomes the condition for a vector field ⟨M, N⟩ to be conservative — meaning it has a potential function.
Finding the potential function F(x, y)This is equivalent to finding a scalar potential for a gradient field, a concept central to physics (e.g., gravitational and electric potential).
Integrating factors for non-exact DEsLeads to the study of Lie symmetry methods and systematic ways to transform DEs, used in advanced applied mathematics.
The solution F(x, y) = C defines level curvesIn topology and differential geometry, these level curves are integral curves of the DE, connecting to the geometry of solution spaces.

If you go on to study multivariable calculus or physics, you'll encounter conservative vector fields and line integrals. The exactness test you learned here is essentially the same as testing whether a force field is conservative — a concept that appears in work-energy problems in physics. The mathematics carries over directly, so mastering it now will pay off later.

Practice Problems

PROBLEM 1CONCEPTUAL
In your own words, explain what it means for a differential equation M dx + N dy = 0 to be "exact." Why is Clairaut's theorem relevant to the exactness test?
PROBLEM 2BASIC CALCULATION
Determine whether the following DE is exact: (2xy − 3) dx + (x² + 4y) dy = 0.
PROBLEM 3INTERMEDIATE
Determine whether the following DE is exact: (sin y + y cos x) dx + (x cos y + sin x) dy = 0.
PROBLEM 4APPLIED
A physics student encounters the equation (2x + y²eˣʸ) dx + (2xyeˣʸ + 1) dy = 0 while modeling a system. Determine whether this DE is exact. Show all partial derivative calculations.
PROBLEM 5CRITICAL THINKING
Consider the general equation (ay² + bx) dx + (cxy + d) dy = 0, where a, b, c, and d are constants. Find the relationship between a and c that makes this equation exact. Then choose specific values that satisfy this condition and verify your answer.

Lesson Summary

An exact differential equation is one that can be written as M(x, y) dx + N(x, y) dy = 0 where M and N are the partial derivatives of a single potential function F(x, y). The key to identification is the exactness test: compute ∂M/∂y and ∂N/∂x, and if they are equal, the equation is exact. This test is grounded in Clairaut's theorem on the equality of mixed partial derivatives.

When the equation is exact, its solution takes the form F(x, y) = C. When it is not exact, other methods such as integrating factors or separation of variables may be needed. The concept connects forward to conservative vector fields in multivariable calculus and physics, making it a foundational tool in the study of differential equations.

Varsity Tutors • Differential Equations • Identifying Exact DEs — Identifying Exact Differential Equations