Integrating Factors
Non-Exact Equations
Learn how to transform non-exact differential equations into exact ones using a powerful multiplicative technique called the integrating factor.
What is an Exact Equation?
A first-order ODE written as \( M(x,y)\,dx + N(x,y)\,dy = 0 \) is called exact if there exists a function \( F(x,y) \) such that:
When the Test Fails
Consider \( (2xy + 3)\,dx + (x^2 + 4y)\,dy = 0 \). Here \( M = 2xy + 3 \) and \( N = x^2 + 4y \). Compute the partials:
The Big Idea: Multiply to Fix It
If \( M\,dx + N\,dy = 0 \) is not exact, we look for a function \( \mu \) (called the integrating factor) such that multiplying through makes it exact:
Exact vs Non-Exact: A Visual
The arrow shows the strategy: multiply the non-exact equation by \( \mu \) to transform it into an exact equation you can solve.
The Integrating Factor Formula
For \( M\,dx + N\,dy = 0 \), the exactness condition after multiplying by \( \mu \) yields a PDE. In two special cases, \( \mu \) depends on only one variable:
Why Does This Work?
If we multiply by \( \mu(x) \), exactness requires \( (\mu M)_y = (\mu N)_x \). Since \( \mu \) depends only on \( x \):
Rearranging for \( \mu'/\mu \):
\( \mu(x) \) vs \( \mu(y) \): Which to Use?
| \( \mu(x) \) | \( \mu(y) \) | |
|---|---|---|
| Test expression | \( \frac{M_y - N_x}{N} \) | \( \frac{N_x - M_y}{M} \) |
| Must depend only on | \( x \) alone | \( y \) alone |
| Formula | \( e^{\int (\cdots)\,dx} \) | \( e^{\int (\cdots)\,dy} \) |
| Numerator sign | \( M_y - N_x \) | \( N_x - M_y \) |
Step-by-Step Method
Example 1: Finding \( \mu(x) \)
Solve: \( (2y)\,dx + (3x)\,dy = 0 \)
Example 1: Computing \( \mu \)
From the test: \( \frac{M_y - N_x}{N} = -\frac{1}{3x} \). Integrate:
Now multiply the original equation by \( x^{-1/3} \):
Example 2: Testing Both Cases
Solve: \( (3xy + y^2)\,dx + (x^2 + xy)\,dy = 0 \)
Example 2: Solving After Multiplying
Multiply through by \( \mu = x \):
Verify: \( M^*_y = 3x^2 + 2xy \) and \( N^*_x = 3x^2 + 2xy \). Exact ✓. Now solve: integrate \( M^* \) with respect to \( x \):
Example 3: A Linear ODE Connection
Consider the linear ODE \( \frac{dy}{dx} + \frac{2}{x}y = x^3 \). Rewrite as:
Here \( M = \frac{2y}{x} - x^3 \), \( N = 1 \). Partials: \( M_y = \frac{2}{x} \), \( N_x = 0 \).
Common Mistakes to Avoid
Summary Comparison
| Exact | Non-Exact | After \( \mu \) | |
|---|---|---|---|
| Condition | \( M_y = N_x \) | \( M_y \neq N_x \) | \( (\mu M)_y = (\mu N)_x \) |
| Strategy | Solve directly | Find \( \mu \) | Solve as exact |
| Difficulty | Moderate | N/A | Moderate |
| Key step | Integrate \( M \) or \( N \) | Compute test ratio | Multiply then integrate |
Question 1 of 5
Given \( M\,dx + N\,dy = 0 \), the equation is exact if and only if:
Question 2 of 5
For the equation \( (y)\,dx + (2x)\,dy = 0 \), what is \( \frac{M_y - N_x}{N} \)?
Question 3 of 5
If \( \frac{M_y - N_x}{N} = \frac{3}{x} \), what is the integrating factor \( \mu(x) \)?
Question 4 of 5
When testing for \( \mu(y) \), the correct test expression is:
Question 5 of 5
After finding \( \mu \) and multiplying the equation, what should you do before solving?