Section 2.6 · Differential Equations

Integrating Factors

How to rescue a broken equation by multiplying by exactly the right function — turning chaos into something perfectly differentiable.

What Does "Exact" Mean? The Problem We're Solving

Before we can understand what an integrating factor does, we need to understand the thing it fixes. So let's build up the whole picture from scratch.

Equations in the form \( M\,dx + N\,dy = 0 \)

Almost every first-order ODE can be written as:

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

Think of \(M\) and \(N\) as two ingredients. Together they tell you: "take a tiny step \(dx\) in the \(x\)-direction, and a tiny step \(dy\) in the \(y\)-direction. Combine them with the weights \(M\) and \(N\). Their weighted total is zero."

Geometric picture

Imagine you're walking on a landscape (a surface in \(xy\)-space). The equation \(M\,dx + N\,dy = 0\) says: at every point, the direction you can move is perpendicular to the vector \((M, N)\). The solution curves are the level curves you walk along while staying flat.

When is this equation "exact"?

A beautiful thing happens when \(M\) and \(N\) happen to be the partial derivatives of some single function \(F(x,y)\):

$$ \frac{\partial F}{\partial x} = M \qquad \text{and} \qquad \frac{\partial F}{\partial y} = N $$

If this is true, then \(M\,dx + N\,dy\) is literally the total differential of \(F\):

$$ dF = \frac{\partial F}{\partial x}dx + \frac{\partial F}{\partial y}dy = M\,dx + N\,dy $$

So the equation \(M\,dx + N\,dy = 0\) is just saying \(dF = 0\), which means \(F(x,y) = C\) — a constant. Done. The solution is just a family of level curves of \(F\). This is the ideal situation.

Exactness Test — The Key Theorem

The equation \(M\,dx + N\,dy = 0\) is exact if and only if:

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

Why? If \(F\) exists with \(F_x = M\) and \(F_y = N\), then by Clairaut's theorem (mixed partials commute for smooth functions): \(\frac{\partial M}{\partial y} = F_{xy} = F_{yx} = \frac{\partial N}{\partial x}\). The converse is also true in a simply connected region. So this one equality is the complete test.

The Problem: Most equations are NOT exact

If you check \(\partial M/\partial y\) and \(\partial N/\partial x\) and they're different, the equation is not exact. You can't write \(M\,dx + N\,dy\) as \(dF\). The equation can't be solved by the clean level-curve trick.

But wait — what if we could multiply both sides by some clever function \(\mu(x,y)\) and make it exact? That's the entire game.

The Core Idea — What an Integrating Factor Really Is

Here's the trick, stated plainly: Take your non-exact equation \(M\,dx + N\,dy = 0\). Multiply every term by some function \(\mu(x,y)\):

$$ \mu M\,dx + \mu N\,dy = 0 $$

If we can find \(\mu\) such that this new equation is exact, then:

$$ \frac{\partial(\mu M)}{\partial y} = \frac{\partial(\mu N)}{\partial x} $$

...and we can solve the new equation using the exact-equation method. The function \(\mu\) is called the integrating factor.

The Analogy

Think of a messy fraction like \(\frac{3}{7} + \frac{2}{5}\). You can't add them directly. But multiply through by the LCD (35) and suddenly everything is clean integers you can add. The integrating factor is exactly like the LCD — it clears the "mess" and makes the structure obvious.

Why multiplying doesn't change the solution

This is a subtle point worth making explicit. When we multiply by \(\mu\):

$$ M\,dx + N\,dy = 0 \quad \xrightarrow{\times\,\mu} \quad \mu M\,dx + \mu N\,dy = 0 $$

Any solution \(y(x)\) to the original equation satisfies the original equation, so it also satisfies \(\mu \cdot 0 = 0\), meaning it satisfies the new equation too. Conversely, if \(\mu \neq 0\) everywhere, a solution to the multiplied equation satisfies the original.

Caution — singular points

If \(\mu = 0\) at some point, solutions might be gained or lost there. Always check that your integrating factor is nonzero on the region of interest.

Verifying That a Given Integrating Factor Works

Sometimes you're handed a proposed integrating factor \(\mu\) and asked to confirm it actually makes the equation exact. The procedure is mechanical — just apply the exactness test to the modified equation.

Verification Procedure
01

Multiply through: define \(\tilde{M} = \mu M\) and \(\tilde{N} = \mu N\).

02

Compute \(\dfrac{\partial \tilde{M}}{\partial y}\) using the product rule: \(\dfrac{\partial(\mu M)}{\partial y} = \mu_y M + \mu M_y\).

03

Compute \(\dfrac{\partial \tilde{N}}{\partial x}\) using the product rule: \(\dfrac{\partial(\mu N)}{\partial x} = \mu_x N + \mu N_x\).

04

Check whether \(\dfrac{\partial \tilde{M}}{\partial y} = \dfrac{\partial \tilde{N}}{\partial x}\). If yes, \(\mu\) is a valid integrating factor.

Verification Example

Consider the equation:

$$ (2xy)\,dx + (x^2 + y^2)\,dy = 0 $$

Here \(M = 2xy\) and \(N = x^2 + y^2\). First let's check if it's already exact:

$$ \frac{\partial M}{\partial y} = 2x \qquad \frac{\partial N}{\partial x} = 2x $$

They're equal! Wait — this one is already exact. Let's use a non-exact example instead.

Full Verification Example

Equation: \(\quad (y^2)\,dx + (xy)\,dy = 0\)

Here \(M = y^2\), \(N = xy\). Check exactness:

$$ \frac{\partial M}{\partial y} = 2y \qquad \frac{\partial N}{\partial x} = y $$

Not equal, so not exact. Now suppose someone hands us \(\mu = \frac{1}{y}\) as a proposed integrating factor. Let's verify it.

Step 1 — Multiply through by \(\mu = \frac{1}{y}\):

$$ \tilde{M} = \frac{y^2}{y} = y \qquad \tilde{N} = \frac{xy}{y} = x $$

New equation: \(\quad y\,dx + x\,dy = 0\)

Step 2 — Apply the exactness test:

$$ \frac{\partial \tilde{M}}{\partial y} = 1 \qquad \frac{\partial \tilde{N}}{\partial x} = 1 $$

Equal! So \(\mu = \frac{1}{y}\) is indeed a valid integrating factor. Note: \(y\,dx + x\,dy = d(xy)\), so the solution is \(xy = C\).

Finding the Integrating Factor from Scratch

This is the hardest part. We don't know \(\mu\) yet. We want to find it. The equation we need \(\mu\) to satisfy comes from the exactness condition applied to \(\mu M\,dx + \mu N\,dy = 0\).

Deriving the Master Condition

For \(\mu M\,dx + \mu N\,dy = 0\) to be exact, we need:

$$ \frac{\partial(\mu M)}{\partial y} = \frac{\partial(\mu N)}{\partial x} $$

Expand both sides using the product rule:

$$ \mu_y M + \mu M_y = \mu_x N + \mu N_x $$

Rearrange:

$$ \mu_y M - \mu_x N = \mu(N_x - M_y) $$

This is a partial differential equation for \(\mu\). In full generality, it's just as hard as what we started with. The trick is to try special forms of \(\mu\).

Case 1: \(\mu\) depends only on \(x\)

Assume \(\mu = \mu(x)\). Then \(\mu_y = 0\) and \(\mu_x = \frac{d\mu}{dx}\). The master condition becomes:

$$ 0 - \frac{d\mu}{dx} N = \mu(N_x - M_y) $$

Divide both sides by \(\mu N\) (assuming both are nonzero):

$$ -\frac{1}{\mu}\frac{d\mu}{dx} = \frac{N_x - M_y}{N} $$

Or equivalently:

$$ \frac{1}{\mu}\frac{d\mu}{dx} = \frac{M_y - N_x}{N} $$
Key Result — IF depends only on \(x\)

If the expression \(\dfrac{M_y - N_x}{N}\) is a function of \(x\) alone (no \(y\) in it after simplification), then we can find \(\mu(x)\):

$$ \frac{d\mu}{dx} = \mu \cdot \frac{M_y - N_x}{N} \implies \mu(x) = e^{\int \frac{M_y - N_x}{N}\,dx} $$

This is a separable ODE for \(\mu\): \(\dfrac{d\mu}{\mu} = \dfrac{M_y - N_x}{N}\,dx\), so \(\ln|\mu| = \int \dfrac{M_y - N_x}{N}\,dx\), giving \(\mu = e^{(\cdots)}\).

Case 2: \(\mu\) depends only on \(y\)

Assume \(\mu = \mu(y)\). Then \(\mu_x = 0\) and \(\mu_y = \frac{d\mu}{dy}\). The master condition becomes:

$$ \frac{d\mu}{dy} M = \mu(N_x - M_y) $$

Divide by \(\mu M\):

$$ \frac{1}{\mu}\frac{d\mu}{dy} = \frac{N_x - M_y}{M} $$
Key Result — IF depends only on \(y\)

If the expression \(\dfrac{N_x - M_y}{M}\) is a function of \(y\) alone, then:

$$ \mu(y) = e^{\int \frac{N_x - M_y}{M}\,dy} $$
Full Derivation of the IF Formula — No Steps Skipped

We want \(\mu(x)\) such that \(\mu M\,dx + \mu N\,dy = 0\) is exact. Exactness requires \(\partial_y(\mu M) = \partial_x(\mu N)\).

Left side: Since \(\mu = \mu(x)\) only,

$$ \frac{\partial(\mu M)}{\partial y} = \mu \frac{\partial M}{\partial y} = \mu M_y $$

Right side:

$$ \frac{\partial(\mu N)}{\partial x} = \frac{d\mu}{dx} N + \mu \frac{\partial N}{\partial x} = \mu' N + \mu N_x $$

Setting equal:

$$ \mu M_y = \mu' N + \mu N_x $$

Rearrange to isolate \(\mu'\):

$$ \mu' N = \mu M_y - \mu N_x = \mu(M_y - N_x) $$
$$ \mu' = \mu \cdot \frac{M_y - N_x}{N} $$

This is separable. Write \(\frac{d\mu}{\mu} = \frac{M_y - N_x}{N}\,dx\) and integrate both sides:

$$ \ln|\mu| = \int \frac{M_y - N_x}{N}\,dx $$

Exponentiate:

$$ \boxed{\mu(x) = e^{\displaystyle\int \frac{M_y - N_x}{N}\,dx}} $$

We can drop the absolute value and the \(\pm\) from \(e^{\ln|\mu|}\) since we only need one integrating factor — the constant of integration doesn't matter (any nonzero constant multiple of an IF is still an IF).

How to Detect Which Case Applies

Compute this ratio If it simplifies to... Then the IF is
\(\dfrac{M_y - N_x}{N}\) A function of \(x\) only \(\mu(x) = e^{\int \frac{M_y - N_x}{N}\,dx}\)
\(\dfrac{N_x - M_y}{M}\) A function of \(y\) only \(\mu(y) = e^{\int \frac{N_x - M_y}{M}\,dy}\)
What if neither works?

If \(\dfrac{M_y - N_x}{N}\) depends on both \(x\) and \(y\), and so does \(\dfrac{N_x - M_y}{M}\), then the IF is a function of both variables. Finding it requires solving a PDE, which is generally much harder. In a first course, problems are designed so one of the two simple cases works.

Using the Integrating Factor to Solve the Equation

Once you have \(\mu\), the rest is the standard exact-equation method. Here is the complete end-to-end recipe.

Complete Algorithm
01

Write the equation in the form \(M\,dx + N\,dy = 0\). Identify \(M\) and \(N\).

02

Check exactness: compute \(M_y\) and \(N_x\). If they're equal, skip to step 05 (already exact).

03

Find the IF: Compute \(\dfrac{M_y - N_x}{N}\). If it's a function of \(x\) only, set \(\mu = e^{\int(\cdots)\,dx}\). Otherwise try \(\dfrac{N_x - M_y}{M}\) and set \(\mu = e^{\int(\cdots)\,dy}\).

04

Multiply through: Replace \(M \to \mu M\) and \(N \to \mu N\). (Optionally re-verify exactness.)

05

Find \(F\) by integration: Integrate \(F_x = \mu M\) with respect to \(x\), keeping \(y\) constant. This gives \(F = \int \mu M\,dx + g(y)\).

06

Determine \(g(y)\): Differentiate \(F\) with respect to \(y\) and set it equal to \(\mu N\). Solve for \(g'(y)\), then integrate to get \(g(y)\).

07

Write the solution: \(F(x,y) = C\). Apply initial conditions if given.

Why the Exact Method Works — A Quick Proof

After multiplying by \(\mu\), we have an exact equation \(\tilde{M}\,dx + \tilde{N}\,dy = 0\) with \(\tilde{M}_y = \tilde{N}_x\). By the converse of the exactness theorem (Green's theorem in disguise), there exists a function \(F(x,y)\) with \(F_x = \tilde{M}\) and \(F_y = \tilde{N}\). Therefore the equation is:

$$ F_x\,dx + F_y\,dy = dF = 0 $$

Integrating: \(F(x,y) = C\). Every solution of the ODE lies on a level curve of \(F\).

The Two-Stage Integration Trick

When you integrate \(F_x = \tilde{M}\) in step 05, you integrate with respect to \(x\) while treating \(y\) as constant. This is only a partial antiderivative — it can miss any function of \(y\) alone. That's why we write \(g(y)\): it's the unknown \(y\)-only part. We pin it down in step 06 using the condition \(F_y = \tilde{N}\).

The "Lost Information" Intuition

When you differentiate \(F\) with respect to \(x\), all purely-\(y\) terms vanish. So integrating back recovers \(F\) but leaves a \(g(y)\)-shaped hole. The second equation (\(F_y = \tilde{N}\)) plugs that hole. Think of it as two clues pointing at the same hidden \(F\).

Worked Examples — Start to Finish

Example 1 — IF depends on \(x\) only

Problem: Solve \(\quad (y + 2)\,dx - x\,dy = 0\)

Step 1 — Identify M and N

$$ M = y+2, \qquad N = -x $$

Step 2 — Check exactness

$$ M_y = \frac{\partial(y+2)}{\partial y} = 1 \qquad N_x = \frac{\partial(-x)}{\partial x} = -1 $$

Since \(1 \neq -1\), the equation is not exact.

Step 3 — Find the IF

Compute the ratio:

$$ \frac{M_y - N_x}{N} = \frac{1 - (-1)}{-x} = \frac{2}{-x} = -\frac{2}{x} $$

This is a function of \(x\) only. So the IF is:

$$ \mu(x) = e^{\int -\frac{2}{x}\,dx} = e^{-2\ln|x|} = e^{\ln x^{-2}} = x^{-2} = \frac{1}{x^2} $$

Step 4 — Multiply through by \(\mu = \frac{1}{x^2}\)

$$ \tilde{M} = \frac{y+2}{x^2}, \qquad \tilde{N} = \frac{-x}{x^2} = -\frac{1}{x} $$

Verify exactness (optional check):

$$ \frac{\partial \tilde{M}}{\partial y} = \frac{1}{x^2}, \qquad \frac{\partial \tilde{N}}{\partial x} = \frac{1}{x^2} \checkmark $$

Step 5 — Integrate \(F_x = \tilde{M}\)

$$ F = \int \frac{y+2}{x^2}\,dx = (y+2)\int x^{-2}\,dx = (y+2)\left(-\frac{1}{x}\right) + g(y) = -\frac{y+2}{x} + g(y) $$

Step 6 — Use \(F_y = \tilde{N}\) to find \(g(y)\)

$$ F_y = -\frac{1}{x} + g'(y) = \tilde{N} = -\frac{1}{x} $$
$$ g'(y) = 0 \implies g(y) = \text{constant} $$

The constant is absorbed into \(C\).

Step 7 — Write the solution

$$ F(x,y) = -\frac{y+2}{x} = C $$

Equivalently, multiply both sides by \(-x\): \(\quad y + 2 = -Cx\), or \(\quad y = Ax - 2\) (where \(A = -C\) is an arbitrary constant). These are lines with slope \(A\) shifted down by 2.

Example 2 — IF depends on \(y\) only

Problem: Solve \(\quad x\,dx + (x^2y - 1)\,dy = 0\)

Step 1 — Identify M and N

$$ M = x, \qquad N = x^2 y - 1 $$

Step 2 — Check exactness

$$ M_y = 0 \qquad N_x = 2xy $$

Since \(0 \neq 2xy\) in general, not exact.

Step 3 — Try \(\mu(x)\) first

$$ \frac{M_y - N_x}{N} = \frac{0 - 2xy}{x^2y - 1} = \frac{-2xy}{x^2 y - 1} $$

This depends on both \(x\) and \(y\). So we can't use \(\mu(x)\). Try \(\mu(y)\):

$$ \frac{N_x - M_y}{M} = \frac{2xy - 0}{x} = 2y $$

This is a function of \(y\) only! So:

$$ \mu(y) = e^{\int 2y\,dy} = e^{y^2} $$

Step 4 — Multiply through by \(\mu = e^{y^2}\)

$$ \tilde{M} = x e^{y^2}, \qquad \tilde{N} = (x^2 y - 1)e^{y^2} $$

Verify exactness:

$$ \frac{\partial \tilde{M}}{\partial y} = x \cdot 2y e^{y^2} = 2xye^{y^2} $$ $$ \frac{\partial \tilde{N}}{\partial x} = 2x e^{y^2} \cdot \frac{\partial}{\partial x}(x) = 2xe^{y^2} $$

Wait — let me recheck \(\tilde{N}_x\):

$$ \tilde{N} = (x^2 y - 1)e^{y^2} \implies \frac{\partial \tilde{N}}{\partial x} = 2xy\,e^{y^2} \checkmark $$

Step 5 — Integrate \(F_x = \tilde{M} = xe^{y^2}\)

$$ F = \int x e^{y^2}\,dx = e^{y^2} \cdot \frac{x^2}{2} + g(y) = \frac{x^2 e^{y^2}}{2} + g(y) $$

Step 6 — Use \(F_y = \tilde{N}\)

$$ F_y = \frac{x^2}{2} \cdot 2y e^{y^2} + g'(y) = x^2 y e^{y^2} + g'(y) $$

Set equal to \(\tilde{N} = (x^2y - 1)e^{y^2}\):

$$ x^2 y e^{y^2} + g'(y) = x^2 y e^{y^2} - e^{y^2} $$
$$ g'(y) = -e^{y^2} $$

Hmm — \(\int -e^{y^2}\,dy\) has no elementary closed form. This suggests either the equation must remain in implicit form, or we made an error. Let's note: the solution is written implicitly as \(F = C\):

$$ \frac{x^2 e^{y^2}}{2} + g(y) = C \qquad \text{where } g'(y) = -e^{y^2} $$

This is acceptable as an implicit solution — not all equations have elementary explicit forms. This example shows that the method is still valid even when integrals aren't clean.

Example 3 — Clean Full Solution with IVP

Problem: Solve \(\quad (2y - 6x)\,dx + (3x - 4x^2/y)\,dy = 0\) ...

Actually, let's do a cleaner IVP example:

Problem: Solve \(\quad (3xy + y^2)\,dx + (x^2 + xy)\,dy = 0, \quad y(1) = 1\)

Step 1 — Identify M and N

$$ M = 3xy + y^2, \qquad N = x^2 + xy $$

Step 2 — Check exactness

$$ M_y = 3x + 2y \qquad N_x = 2x + y $$

Not equal, so not exact.

Step 3 — Find the IF

$$ \frac{M_y - N_x}{N} = \frac{(3x+2y)-(2x+y)}{x^2+xy} = \frac{x+y}{x(x+y)} = \frac{1}{x} $$

This is a function of \(x\) only:

$$ \mu(x) = e^{\int \frac{1}{x}\,dx} = e^{\ln x} = x $$

Step 4 — Multiply through by \(\mu = x\)

$$ \tilde{M} = x(3xy + y^2) = 3x^2 y + xy^2 $$ $$ \tilde{N} = x(x^2 + xy) = x^3 + x^2 y $$

Verify:

$$ \tilde{M}_y = 3x^2 + 2xy \qquad \tilde{N}_x = 3x^2 + 2xy \checkmark $$

Step 5 — Integrate \(F_x = \tilde{M} = 3x^2y + xy^2\)

$$ F = \int (3x^2y + xy^2)\,dx = x^3 y + \frac{x^2 y^2}{2} + g(y) $$

Step 6 — Find \(g(y)\)

$$ F_y = x^3 + x^2 y + g'(y) = \tilde{N} = x^3 + x^2 y $$
$$ g'(y) = 0 \implies g(y) = K \text{ (absorbed into C)} $$

Step 7 — General solution

$$ x^3 y + \frac{x^2 y^2}{2} = C $$

Apply IC: \(y(1) = 1\)

$$ (1)^3(1) + \frac{(1)^2(1)^2}{2} = 1 + \frac{1}{2} = \frac{3}{2} $$
$$ \boxed{x^3 y + \frac{x^2 y^2}{2} = \frac{3}{2}} $$

Self-Check Questions

Q1 — Is \((3x^2y + 2y)\,dx + (x^3 + 2x)\,dy = 0\) already exact? If so, solve it.

Identify \(M = 3x^2 y + 2y\), \(N = x^3 + 2x\).

$$ M_y = 3x^2 + 2 \qquad N_x = 3x^2 + 2 $$

Equal! So the equation is already exact. Integrate \(F_x = M\):

$$ F = \int (3x^2y + 2y)\,dx = x^3 y + 2xy + g(y) $$

Now \(F_y = x^3 + 2x + g'(y) = N = x^3 + 2x\), so \(g'(y) = 0\).

$$ \boxed{x^3 y + 2xy = C} $$
Q2 — Find an integrating factor for \((y^2)\,dx + (2xy + y^3)\,dy = 0\).

\(M = y^2\), \(N = 2xy + y^3\).

$$ M_y = 2y \qquad N_x = 2y $$

Wait — they're equal! This equation is already exact. Let's solve it:

$$ F = \int y^2\,dx = xy^2 + g(y) $$ $$ F_y = 2xy + g'(y) = 2xy + y^3 \implies g'(y) = y^3 \implies g(y) = \frac{y^4}{4} $$
$$ \boxed{xy^2 + \frac{y^4}{4} = C} $$
Q3 — Find \(\mu(x)\) for \((y)\,dx + (2x - ye^y)\,dy = 0\) and explain what happens.

\(M = y\), \(N = 2x - ye^y\).

$$ M_y = 1 \qquad N_x = 2 $$

Not exact. Try \(\mu(x)\):

$$ \frac{M_y - N_x}{N} = \frac{1-2}{2x - ye^y} = \frac{-1}{2x - ye^y} $$

This depends on \(y\). Try \(\mu(y)\):

$$ \frac{N_x - M_y}{M} = \frac{2 - 1}{y} = \frac{1}{y} $$

Function of \(y\) only! So:

$$ \mu(y) = e^{\int \frac{1}{y}\,dy} = e^{\ln y} = y $$

Multiply through: \(\tilde{M} = y^2\), \(\tilde{N} = 2xy - y^2e^y\). Verify exactness:

$$ \tilde{M}_y = 2y \qquad \tilde{N}_x = 2y \checkmark $$

Now integrate: \(F = \int y^2\,dx = xy^2 + g(y)\). Then:

$$ F_y = 2xy + g'(y) = 2xy - y^2 e^y \implies g'(y) = -y^2 e^y $$

Integrate by parts twice: \(\int y^2 e^y\,dy = y^2 e^y - 2ye^y + 2e^y\). So:

$$ \boxed{xy^2 - y^2 e^y + 2ye^y - 2e^y = C} $$
Q4 — Conceptual: Why does the integrating factor method work in general?

The core insight: exactness means the left-hand side \(M\,dx + N\,dy\) is a perfect total differential \(dF\). If it isn't, we can't integrate it directly.

An integrating factor \(\mu\) reshapes \(M\) and \(N\) by scaling them, so that the new combination \(\mu M\,dx + \mu N\,dy\) becomes a total differential \(dF\). The equation then says \(dF = 0\), whose solutions are the level curves \(F = C\).

The existence of such a \(\mu\) is guaranteed in general (for smooth \(M, N\)), though finding it explicitly requires special structure (like \(\mu\) depending only on \(x\) or only on \(y\)). This is analogous to an integrating factor in linear first-order ODEs, which is just the special case \(M = p(x)y - q(x)\), \(N = 1\), where the IF formula gives \(\mu = e^{\int p\,dx}\).

Q5 — How does this connect to linear first-order ODEs?

A linear first-order ODE is:

$$ y' + p(x)y = q(x) \quad \Longleftrightarrow \quad [p(x)y - q(x)]\,dx + dy = 0 $$

Here \(M = p(x)y - q(x)\) and \(N = 1\).

$$ M_y = p(x) \qquad N_x = 0 $$
$$ \frac{M_y - N_x}{N} = \frac{p(x)}{1} = p(x) $$

So the integrating factor is:

$$ \mu(x) = e^{\int p(x)\,dx} $$

This is exactly the same formula you use to solve linear ODEs! The integrating factor method from Section 2.6 is the general framework that unifies all these cases. Linear ODEs are just the special case where \(N = 1\) and the IF is always a function of \(x\) alone.