Integrating Factor Method
Problem
Solve dy/dx + (1/x) y = x using the integrating factor mu(x) = x. Animate the multiplication step that collapses the left side into a single derivative.
Explanation
The idea in one sentence
The integrating factor is a clever multiplier that turns the left side of a first-order linear ODE into an exact derivative — a single — so you can integrate once and be done.
This is the same machinery as problem #174, but here we'll derive from scratch rather than just applying it.
Why works
We want to make the left side collapse:
Matching the coefficient of on both sides forces
No integration constant is needed — any non-zero that satisfies does the job, and the simplest choice is the one with constant of integration zero.
The given equation
Here and .
Step-by-step solution
Step 1 — Compute the integrating factor.
Working on an interval where (e.g. ), take .
Step 2 — Multiply through by .
Step 3 — Recognize the collapse. The left side is exactly by the product rule:
So the equation becomes
This is the whole point of the method — the left side is now a single derivative.
Step 4 — Integrate both sides with respect to .
Step 5 — Solve for .
Structure of the solution
Two pieces again, like every first-order linear ODE:
- Particular piece: . One specific solution of the full equation (no free constant).
- Homogeneous piece: . The general solution of — these are the solutions you can add without breaking the equality, because the equation is linear.
General solution = particular + homogeneous: .
Verification
Plug into the left side :
Initial value problem
Say . Plug in:
The full recipe (memorize this)
For :
- Multiply:
- Integrate:
- Divide:
Three common choices of :
- (constant) → .
- → (or for ).
- → (integral of is ).
Knowing these by heart will speed you up on exams.
Common mistakes
- Not putting the equation in standard form first. If it's , divide by before reading : , so , not .
- Adding a constant when computing . You don't need one — any non-zero works, and the clean choice has .
- Forgetting to divide by at the end. Easy to leave the answer as and call it done.
- Domain slip with . Choose a side of and stick with it; solutions rarely cross anyway because is singular there.
Try it in the visualization
Animate the multiplication : watch the left side of the equation physically collapse into a single derivative panel. Sweep the initial condition to see the tail change sign and magnitude.
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.