Exact equations
Recognize an exact equation M dx + N dy = 0 by the test ∂M/∂y = ∂N/∂x, find its potential ψ, and use an integrating factor when the test fails.
It opens on
The slope dy/dx = −(2x + y)/(x + 2y) will not separate. Yet every solution curve is closed. What function stays constant along them?
Why it matters
Exact equations are the first-order equations whose solutions are level curves of one function, the idea behind conserved energy and potential functions in physics.
Good to know first
- Logistic models with differential equations: solving a first-order equation by separation and an initial condition
- partial derivatives: ∂f/∂x holds y fixed
- the gradient ∇f is perpendicular to the level curves of f
Step by step
Solutions as level curves
See that the level curves of ψ(x, y) solve ψₓ dx + ψᵧ dy = 0.
At (1, 1) the equation's slope is −(2 + 1)/(1 + 2) = −1, the slope of the drawn tangent.
A common mix-up
An equation that does not separate cannot be solved exactly.
In fact: An exact one is solved by its potential's level curves, with no separation.
Test for exactness, then integrate
Apply the test ∂M/∂y = ∂N/∂x and recover ψ by integrating M in x and matching ψᵧ to N.
For (2xy + 3) dx + (x² − 1) dy = 0: ∂M/∂y = 2x and ∂N/∂x = 2x, so it is exact.
A common mix-up
The constant of integration when integrating M in x is a number.
In fact: It can be any function h(y), since y was held fixed.
An integrating factor
Find an integrating factor μ(x) when (∂M/∂y − ∂N/∂x)/N depends on x alone, and solve the exact equation it gives.
For (3xy + y²) dx + (x² + xy) dy = 0, ∂M/∂y = 3x + 2y and ∂N/∂x = 2x + y: not equal, so not exact.
A common mix-up
An integrating factor changes the solutions.
In fact: It rescales M and N together, so the slope −M/N and the solution curves stay the same where μ ≠ 0.
Try it
Which equation has the circles x² + y² = C as solutions?Answer
2x dx + 2y dy = 0, that is x dx + y dy = 0
Hint: Take ψₓ and ψᵧ of x² + y²
Solve (y cos x + 2x) dx + (sin x + 1) dy = 0.Answer
y sin x + x² + y = C
Hint: ∂M/∂y = cos x = ∂N/∂x
Find an integrating factor for y dx + (2x − yeʸ) dy = 0.Answer
μ = y, since (∂N/∂x − ∂M/∂y)/M = (2 − 1)/y = 1/y
Hint: Try the version that depends on y alone
Along a level curve ψ(x, y) = C, what is dψ?Answer
Zero, since ψ does not change along it.
Differentiate ψ = x²y + 3x + h(y) in y and match it to N = x² − 1. What is h'(y)?Answer
x² + h'(y) = x² − 1, so h'(y) = −1 and h(y) = −y.
