Worked examples — Integrating factors for non-exact equations
This page is the "shooting range" for Integrating factors for non-exact equations. We fire every kind of problem at you — clean -factors, clean -factors, the trap where you must switch mid-solve, an already-exact equation (the degenerate case), a limiting/undefined case, a word problem, and an exam twist — and we work each to the finish, then verify.
Before we start: everything here rests on one test and two formulas from the parent note. Let me restate them in plain words so no symbol appears un-earned.
Recall The three tools we lean on
The exactness test. Write the equation as . Here is "the stuff multiplying a tiny step to the right" and is "the stuff multiplying a tiny step upward". The equation is exact when — read "the -slope of equals the -slope of ". ( means: freeze , ask how fast changes as grows.) -factor test: if has no left in it, call it and set . -factor test: if has no left in it, call it and set . A picture of what " fixes" is coming in the first figure.
The scenario matrix
Every problem this topic can throw at you falls into one of these cells. The worked examples below are tagged with the cell they hit, and together they cover all of them.
| # | Cell (scenario class) | What makes it special | Example |
|---|---|---|---|
| A | Already exact () | degenerate case: , no fixing needed | Ex 1 |
| B | Clean -factor | ratio loses its | Ex 2 |
| C | Clean -factor | first ratio still has ; switch and win | Ex 3 |
| D | Sign trap in the -numerator | vs — must not carry old sign | Ex 4 |
| E | Neither pure- nor pure- (limiting/failure) | both ratios keep both letters — what to do | Ex 5 |
| F | Word problem (real units) | model → identify → solve → check units | Ex 6 |
| G | Linear ODE in disguise | is a special -factor | Ex 7 |
| H | Exam twist: negative/zero regions | sign of , domain where undefined | Ex 8 |

Cell A — already exact (the degenerate case)
Cell B — clean -factor
Cell C — first ratio has , switch and win
Cell D — the sign trap
Cell E — neither pure- nor pure- (the limiting/failure case)
with a single-variable factor. Forecast: do you expect or to exist? Predict "neither" and see why.
Step 1 — test. , . , . Not exact.
Step 2 — -test. — has BOTH letters. ✗ -test. — the survives. ✗ Why does this happen? Neither ratio collapses to one variable, so no single-variable exists. This is Cell E, the honest failure case.
Step 3 — what to do instead. You must either guess a factor of the form or a more general shape, or fall back on a different method entirely. Why mention it? So you never grind forever on a formula that cannot apply. Recognising failure fast is a skill.
Escape route (bonus). Rewrite as — not our topic, but a homogeneous-type substitution handles it. The lesson stays: Cell E means the parent's two formulas legitimately give nothing.
Verify (that both ratios really keep both letters): at the -ratio is but at it is — the value changed with at fixed , proving it is not a function of alone. ✓
Cell F — a word problem with real units
, where (metres) is a position coordinate and (metres) is a second position coordinate of a particle tracing an equipotential. Find the family of curves and check dimensional consistency. Forecast: exact or not? Peek at the two slopes.
Step 1 — name and test. , . , . Already exact (Cell A pattern inside a word problem). Why this step? Real models are often built exact on purpose; always test before reaching for .
Step 2 — build . .
Step 3 — dimensional check (done right). With both and in metres, the term has units and has units — they match, so the sum is dimensionally sound with in . Why this matters: if the two terms of had different units you would know an algebra slip occurred — a free error-catcher. (This is why I chose both variables in metres rather than mixing seconds and degrees, which would force artificial rescaling.)
Verify: . ✓
Cell G — a linear ODE in disguise
using an integrating factor, and see it as a special -factor. Forecast: a first-order linear ODE always has . Guess before computing.
Step 1 — put in differential form. Move everything to one side: . So , . Why this step? To use the machinery we need the layout.
Step 2 — -test. , . — pure . ✓ Why it's guaranteed: for linear this ratio is always exactly , so the -factor formula reproduces . See Linear first-order ODEs.
Step 3 — .
Step 4 — multiply, re-test. , . . ✓
Step 5 — . .
Verify: with , ; then . ✓ (matches )
Cell H — exam twist: monomial factor, signs, zeros
, then state where the integrating factor is undefined or zero. Forecast: both single-variable tests will fail — so we look for a monomial . Guess before reading.
Step 1 — test. , . , . Not exact.
Step 2 — single-variable tests both fail. (has ); (has ). Both fail → try . Why this step? When both single-variable tests fail (Cell E symptom), a monomial guess often rescues an exam problem.
Step 3 — systematic matching for . With , write , and impose exactness . Compute: Now match like power-terms (the parser of the equation): the terms and the terms must separately agree. Why "match like terms"? Two polynomials are equal only if every matching monomial's coefficient is equal — this turns one exactness equation into a small linear system.
Step 4 — solve the system. From the first: . From the second: . Solve: multiply first by , second by : and ; subtract: , then . So — no guessing, the equations forced it.
Step 5 — multiply, re-test. , . , . Equal ✓
Step 6 — build . .
Step 7 — where dies. is zero on the axes and . On those lines multiplying by destroys information (we multiplied by zero), so any solution branch lying on an axis must be checked separately — the exam's hidden marks.
Verify: . ✓
Coverage check
Cell A — already exact / degenerate ::: Ex 1 (and Ex 6, an exact word problem) Cell B — clean -factor, ratio loses its ::: Ex 2 () Cell C — first ratio keeps , switch to the -test ::: Ex 3 () Cell D — sign trap in the -numerator ::: Ex 4 () Cell E — no single-variable exists (failure case) ::: Ex 5 Cell F — word problem with a genuine units check ::: Ex 6 Cell G — linear ODE as a special -factor ::: Ex 7 (), links Linear first-order ODEs Cell H — monomial factor and axes where ::: Ex 8 ()
All eight cells of the scenario matrix now have a fully worked, verified example. ✓
Connections
- Integrating factors for non-exact equations — the parent method these examples drill
- Exact differential equations — Cell A is this, unchanged
- Total differentials and potential functions — every "build " step
- Linear first-order ODEs — Ex 7's
- Separable equations — the fallback in Cell E
- Mixed partial derivatives (Clairaut's theorem) — why the exactness test works
- Conservative vector fields — is the conservative-field picture