Learn Without Walls
← Lesson 2 Lesson 3 of 4 Next Lesson →

Lesson 3: Exact Equations

Estimated time: 35-40 minutes

Learning Objectives

The Idea Behind Exact Equations

If there exists a function F(x,y) such that dF = M dx + N dy, then the equation M dx + N dy = 0 is simply dF = 0, whose solution is F(x,y) = C. Such an equation is called exact.

Exact Equation: M(x,y) dx + N(x,y) dy = 0 is exact if there exists F(x,y) with:

∂F/∂x = M   and   ∂F/∂y = N

Exactness Test: The equation is exact if and only if ∂M/∂y = ∂N/∂x (assuming continuous partials).

Solving Procedure

  1. Write the ODE as M dx + N dy = 0.
  2. Check: does ∂M/∂y = ∂N/∂x?
  3. If yes, integrate M with respect to x: F = ∫M dx + g(y).
  4. Differentiate F with respect to y and set equal to N to find g'(y).
  5. Integrate g'(y) to get g(y). The solution is F(x,y) = C.

Example 1: Solve (2xy + 3) dx + (x² + 4y) dy = 0

Step 1: M = 2xy + 3, N = x² + 4y.

Step 2: ∂M/∂y = 2x. ∂N/∂x = 2x. Equal! The equation is exact.

Step 3: F = ∫(2xy + 3) dx = x²y + 3x + g(y).

Step 4: ∂F/∂y = x² + g'(y). Set equal to N: x² + g'(y) = x² + 4y. So g'(y) = 4y.

Step 5: g(y) = 2y².

Solution: x²y + 3x + 2y² = C.

Example 2: Solve (yexy + 2x) dx + (xexy - 1) dy = 0

M = yexy + 2x, N = xexy - 1.

∂M/∂y = exy + xyexy. ∂N/∂x = exy + xyexy. Equal -- exact!

F = ∫(yexy + 2x) dx = exy + x² + g(y).

∂F/∂y = xexy + g'(y) = xexy - 1. So g'(y) = -1, g(y) = -y.

Solution: exy + x² - y = C.

Example 3: Not Exact

Is (y + 1) dx + (2x) dy = 0 exact?

M = y + 1, N = 2x. ∂M/∂y = 1, ∂N/∂x = 2. Not equal -- not exact.

This equation requires an integrating factor or a different method.

Check Your Understanding

1. Test for exactness: (3x² + y) dx + (x + 2y) dy = 0.

∂M/∂y = 1. ∂N/∂x = 1. Exact.

2. Solve the equation from Problem 1.

F = ∫(3x²+y)dx = x³ + xy + g(y). ∂F/∂y = x + g'(y) = x + 2y. So g'(y)=2y, g(y)=y². Solution: x³ + xy + y² = C.

3. Is (2y) dx + (x) dy = 0 exact?

∂M/∂y = 2, ∂N/∂x = 1. Not equal. Not exact.

4. Solve (cos y) dx + (-x sin y + 1) dy = 0.

∂M/∂y = -sin y = ∂N/∂x. Exact. F = ∫cos y dx = x cos y + g(y). ∂F/∂y = -x sin y + g'(y) = -x sin y + 1. g'(y) = 1, g(y) = y. Solution: x cos y + y = C.

5. What does the exactness condition ∂M/∂y = ∂N/∂x mean geometrically?

It means the vector field (M, N) is conservative -- it is the gradient of some potential function F. The solution curves F(x,y) = C are the level curves of F.

Key Takeaways

Next Lesson

Substitution methods for Bernoulli and homogeneous equations.

Lesson 4

Module Home

Module 2