Course contentsShow
← Mathematics
Lesson 2328 of 3,12148. Ordinary Differential EquationsFree lesson

Exact Differential Equations: Definition and Test

Learn what makes a first-order ODE exact and how to test for exactness using partial derivatives.

Exact Differential Equations: Definition and Test

What you'll learn: You'll discover how to recognize whether a first-order ODE can be solved by identifying it as the total differential of some function.

The Core Idea

Not all first-order ODEs are separable or linear—some have a special structure that makes them exact. An exact differential equation can be written in the form:

M(x,y) dx+N(x,y) dy=0M(x, y)\,dx + N(x, y)\,dy = 0

This equation is exact if there exists a function F(x,y)F(x, y) such that:

∂F∂x=Mand∂F∂y=N\frac{\partial F}{\partial x} = M \quad \text{and} \quad \frac{\partial F}{\partial y} = N

When this happens, the left side is simply dF=0dF = 0, meaning F(x,y)=CF(x, y) = C (constant) is the solution.

Analogy: Think of hiking on a hill. If you know the height function F(x,y)F(x, y), then staying at constant height means dF=0dF = 0. An exact equation tells you that the ODE describes movement along a level curve of some hidden function FF.

The Exactness Test

How do you check if an equation is exact? Use mixed partial derivatives. If FF exists with the properties above, then by Clairaut's theorem (equality of mixed partials):

∂M∂y=∂∂y(∂F∂x)=∂2F∂y∂x=∂2F∂x∂y=∂∂x(∂F∂y)=∂N∂x\frac{\partial M}{\partial y} = \frac{\partial}{\partial y}\left(\frac{\partial F}{\partial x}\right) = \frac{\partial^2 F}{\partial y \partial x} = \frac{\partial^2 F}{\partial x \partial y} = \frac{\partial}{\partial x}\left(\frac{\partial F}{\partial y}\right) = \frac{\partial N}{\partial x}

Test for exactness: The equation M dx+N dy=0M\,dx + N\,dy = 0 is exact if and only if:

∂M∂y=∂N∂x\frac{\partial M}{\partial y} = \frac{\partial N}{\partial x}

This simple test using partial derivatives tells you immediately whether the equation has the exact structure.

Key Takeaway: A first-order ODE in the form M dx+N dy=0M\,dx + N\,dy = 0 is exact when ∂M∂y=∂N∂x\frac{\partial M}{\partial y} = \frac{\partial N}{\partial x}, indicating it represents the total differential of some function F(x,y)F(x, y).