4.6.4 · D2Ordinary Differential Equations

Visual walkthrough — First-order linear ODEs — integrating factor method (derivation)

1,906 words9 min readBack to topic

Everything starts from a single stubborn equation. Let us meet it.


Step 1 — Meet the equation, and see why it is "stuck"

WHAT. We have an unknown function — a mystery curve. The symbol means "the slope of that curve at each point"; it is how fast rises as moves right. and are known functions of (things we can compute at any ). We want to find the actual .

WHY it is stuck. The left side is two separate pieces added together: a slope piece and a height piece . To "undo" a slope we integrate — but you can only integrate a slope cleanly when the whole left side is the slope of one single thing. Right now it is the slope of one thing plus something else. We cannot integrate the sum directly.

PICTURE. Below, the two pieces are drawn as two separate arrows pulling in different directions. They refuse to combine into one motion — exactly the "two kids who won't hold hands" from the parent note.

Figure — First-order linear ODEs — integrating factor method (derivation)

Step 2 — The wish: what would make it un-stuck?

WHAT. Introduce a brand-new function — read "mu of x", just a name for a helper multiplier we get to choose. Multiply every term of Step 1 by :

WHY multiply? Multiplying does not change the solutions of an equation (as long as ): if two things are equal, times each is still equal. So we are allowed to do it for free, and we will spend that freedom buying ourselves a nicer left side.

PICTURE. is drawn as an amber "coating" wrapped around both pieces — same coating on everyone, so they can finally merge.

Figure — First-order linear ODEs — integrating factor method (derivation)

Step 3 — The tool that merges products: the Product Rule

WHAT. The Product Rule says: the slope of " times " is (first slope of second) plus (slope of first second). Here means "how fast our helper itself changes".

WHY line it up? Set our merged left side beside the Product Rule's right side and compare piece by piece — because if they match, our left side simply is .

our left side (Step 2) Product Rule (Step 3) verdict
already identical ✓
must be forced to match

PICTURE. The first terms overlap perfectly (green tick); the second terms are only shaped the same — both "(something)" — but the "somethings" differ. That mismatch is the one job left.

Figure — First-order linear ODEs — integrating factor method (derivation)

Step 4 — Force the match: a birth of a condition on

WHAT. We are no longer hoping — we are choosing so that its growth rate equals itself times . That single equation is the entire price of admission.

WHY this is progress. Look closely: this is an ODE, but a friendlier one. It contains only and — no at all. And it has the special shape "rate of change (something) current value", which is a separable equation. We traded one hard problem (find ) for one easy problem (find ).

PICTURE. A dial: turning the requirement "second terms equal" collapses into the boxed condition . Notice has vanished from the picture entirely.

Figure — First-order linear ODEs — integrating factor method (derivation)

Step 5 — Solve for by separating variables

WHAT. Gather every on the left, every on the right: Integrate both sides:

WHY the logarithm? The integral of is — that is the one antiderivative that "undoes" a reciprocal. To free from inside a logarithm we apply the exponential , because and are inverse operations:

Where did go? An integration constant would ride along as — a constant multiple of . But multiplying by a constant multiplies every term of Step 2 by the same constant, which cancels out. So we keep the simplest choice .

PICTURE. The separation splits the plane into a "-column" and an "-column"; the exponential curve rises out of the accumulated area .

Figure — First-order linear ODEs — integrating factor method (derivation)

Step 6 — Watch the left side collapse

WHAT. The two stubborn pieces have fused into the slope of a single object . The messy part of the problem is gone.

WHY it worked. Because we forced in Step 4, the Product Rule's two terms now equal our two terms exactly — so their sum equals by definition, not by luck.

PICTURE. The two arrows of Step 1, now both amber-coated, snap together into one bold arrow labelled .

Figure — First-order linear ODEs — integrating factor method (derivation)

Step 7 — Un-slope both sides and solve for

WHAT. Integrate with respect to . Integrating a slope returns the thing itself:

WHY now? This is the first genuine integration of the whole equation, so this is where the single family-labelling constant belongs. (Putting it earlier, inside , would have cancelled — Step 5.)

Final divide. We have , not . Divide by (legal because is never zero — an exponential is always positive):

PICTURE. Integration lifts the single arrow into a family of curves stacked by the value of ; dividing by reshapes them into the actual solution curves .

Figure — First-order linear ODEs — integrating factor method (derivation)

Step 8 — Edge & degenerate cases (the ones that trip people)

Case A — . Then . The equation is already , so you just integrate directly. The method silently reduces to plain integration — nothing breaks.

Case B — both constant. With (a number), . This is the constant-coefficient special case; the same formula produces the familiar shape.

Case C — the coefficient of is not . If you meet , you are not in standard form yet. Divide the whole equation by first. If you skip this, the term you feed as is wrong and the collapse in Step 6 fails.

PICTURE. Three mini-panels: flat , exponential , and a "STANDARDIZE FIRST" gate you must pass through.

Figure — First-order linear ODEs — integrating factor method (derivation)

The one-picture summary

One diagram compresses all eight steps: stuck equation → coat with → match the Product Rule → forced condition → separable solve → exponential → collapse → integrate → divide → solution.

Figure — First-order linear ODEs — integrating factor method (derivation)
Recall Feynman retelling — say it like a story

We started with an equation whose left side was a sum of two unfriendly pieces: a slope and a height. You can't integrate a sum like that in one move. So we invented a magic coating and painted the whole equation with it. Now we demanded that after coating, the left side become the slope of one single lump, . The only rule that turns a slope-of-a-product into two added terms is the Product Rule — so we lined our coated equation up against it and matched piece by piece. The first pieces matched for free; the second pieces matched only if grew at rate . That little demand was itself an easy separable equation whose answer — because "growth proportional to size" always means exponential — is . With that coating on, the two pieces fused, we un-sloped (integrated) to get , dropped in the one constant , and divided by the never-zero to reveal . Every "special" case — , constant coefficients, a non-1 leading coefficient — is just this same story with one knob turned.

Recall Rapid self-test

Why must we integrate rather than just add? ::: The left side is a slope; integration is the operation that recovers a function from its slope. Which single rule forces the whole construction? ::: The Product Rule — it is the only expansion of a product's derivative into two summed terms. Why is dividing by always legal? ::: is an exponential, which is strictly positive, hence never zero. What happens if ? ::: ; the method degenerates to plain direct integration.


Connections

  • Product Rule — the engine of Step 3.
  • Separable ODEs — solves the condition in Step 5.
  • Exact ODEs — where integrating factors generalise.
  • Bernoulli Equations — reduce to this linear form by substitution.
  • Linear Constant-Coefficient ODEs — Case B of Step 8.