4.6.4 · D3Ordinary Differential Equations

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

2,741 words12 min readBack to topic

This page is a stress test of the method from the parent derivation. We will not just repeat the recipe — we will deliberately hit every kind of situation a first-order linear ODE can throw at you: the friendly ones, the ones where signs flip, the ones where a coefficient is zero, the ones that secretly aren't linear until you rearrange them, and a real-world word problem.

Before touching a single example, we lay out the map of all cases so you can see, at every moment, exactly which corner of the territory we are standing in.


The scenario matrix

Each row below is one class of problem. The whole point of this page is that no cell is left empty — every example is tagged with the cell it fills.

Cell What makes it distinct Where it bites Example
A. Constant and are plain numbers trivial Ex 1
B. Non-standard leading coefficient equation starts as must divide first or method breaks Ex 2
C. Negative sign of flips the exponent $\mu = e^{-\int P
D. produces / power gives absolute values, domain vs Ex 4
E. Degenerate: no term at all method still works but reduces to plain integration Ex 5
F. Initial-value problem (IVP) a condition pins apply IC only at the end Ex 6
G. Real-world word problem mixing / cooling — you must build the ODE translating words to Ex 7
H. Exam twist — looks non-linear appears "wrongly"; swap roles of treat as the unknown function Ex 8

Cell A — Constant coefficients


Cell B — Non-standard leading coefficient


Cell C — Negative (the sign flips the growth)


Cell D — : power-law integrating factors and the domain question

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

Cell E — Degenerate case:


Cell F — Initial-value problem (integration by parts inside)


Cell G — Real-world word problem (mixing tank)

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

Cell H — Exam twist: looks non-linear in , swap the roles

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

Active Recall

Recall Which cell needed the sign kept in the exponent, and why?

Cell C (): the integrating factor is . Dropping the minus solves a different ODE. ::: Keep the sign of inside .

Recall What is

when , and what does the method reduce to? ; the method degrades to ordinary direct integration (Cell E). :::

Recall In the mixing problem, why was the tank concentration

? Inflow and outflow rates were equal ( L/min), so the volume stayed constant at L. :::

Recall Exam twist: what tells you to solve for

instead of ? The equation is non-linear in but becomes linear once you reciprocate to get . :::


Connections

  • Separable ODEs — Cell E collapses to this; also used to solve for itself.
  • Product Rule — the collapse seen directly in Cell B ().
  • Exact ODEs — the "swap roles" move in Cell H is close in spirit to finding integrating factors that make equations exact.
  • Bernoulli Equations — the next level of "looks non-linear, becomes linear" via .
  • Linear Constant-Coefficient ODEs — Cell A is exactly this special case.

Scenario Map

check y power

check y power

reciprocate

now linear in x

normalize

mu equals one

Any first-order equation

Linear in y

Non-linear in y

Standard form dy/dx + Py = Q

P is zero

P constant

P depends on x

Flip to dx/dy

Compute mu = exp integral P

Integrate and divide by mu