An integrating factor is a function that you multiply through a first-order linear ODE to make the left-hand side become an exact derivative. Once it’s an exact derivative, you can integrate directly.
For the standard-form first-order linear ODE:
the integrating factor is
Multiplying both sides by :
The left side is exactly by the product rule (since ). So:
Integrate both sides:
Solve for :
Or, expanded:
Why this works
The key step: choosing makes . Then the left-hand side , which is the product rule expansion of . Once the LHS is a single derivative, the equation is trivially integrable.
The trick of “find a multiplier that makes the LHS an exact derivative” is more general — see Exact equation for the related concept where you find a function that’s constant along solutions.
Why we need an integrating factor in the first place
Plain integration doesn’t work on because of the term — it mixes -dependence (via ) with -dependence. The ODE isn’t separable.
The integrating factor is a clever multiplier that re-bundles the chunk into , removing that mixing.
Worked example 1
, with , .
Integrating factor: .
Multiply through:
Left side is . So:
Integrate: , hence .
Worked example 2
, .
, .
Integrating factor: .
Multiply through:
Left side is :
Integrate:
Solve for :
Apply initial condition :
Final:
When to use it
The integrating factor method works for any first-order linear ODE — that’s its strength. It’s the universal hammer for first-order linear.
It does not work for nonlinear first-order ODEs (no useful exists), and it’s overkill for separable equations (where direct separation is faster).
For first-order ODEs that aren’t linear but are exact, see Exact equation. For higher-order linear ODEs, see Characteristic equation (constant coefficients) and Method of variation of parameters (variable coefficients).