Lec 6 (Part 1). Exact ODE
Xinwen Ding
May 25, 2026
Last Time
1
2
Error of Euler’s Method
(we’ll use the slides last time)
Autonomous ODE
Plan for Today
1
Exact ODE
2
Existence & Uniqueness theorem
Objective
We will study ODEs that can be written as
M(x, y ) dx + N(x, y ) dy = 0.
The main idea is:
Solve the ODE by finding Φ(x, y ) such that Φ(x, y ) = C .
That is, the solution curves are level curves of a function Φ.
Motivation
Suppose that Φ(x, y ) is a function of two variables, and y (x) is a function
of x that satisfies:
Φ(x, y (x)) = c
for some constant c.
A) Differentiate this equation.
B) Write a differential equation that y (x) satisfies.
Clairaut’s Theorem
Theorem
Suppose that Φ(x, y ) is a function of two variables and is twice
continuously differentiable. Then
∂ ∂Φ
∂ ∂Φ
=
.
∂x ∂y
∂y ∂x
Exact ODEs
Definition
An ODE of the form
M(x, y ) dx + N(x, y ) dy = 0
is called exact if
∂N
∂M
=
.
∂y
∂x
Solving Exact ODEs
If we have an exact ODE
M(x, y ) dx + N(x, y ) dy = 0,
then solving this ODE amounts to finding a potential function Φ(x, y )
such that
∂Φ
∂Φ
M(x, y ) =
,
N(x, y ) =
.
∂x
∂y
Exercise: Determine Exactness
Determine what value of a makes the following equation exact:
(2x + ay ) dx + (3x − 2y ) dy = 0.
Solving Exact ODEs
1. Suppose that M(x, y ) is a function and we know that M(x, y ) = ∂Φ
∂x .
What is Φ(x, y )?
2. Suppose that we have functions M(x, y ) and N(x, y ), and we know
∂Φ
that M(x, y ) = ∂Φ
,
N(x,
y
)
=
∂x
∂y . What is Φ(x, y )?
Example
Find the solution of the ODE:
(2x + 3y ) dx + (3x − 2y ) dy = 0
with y (2) = 4