An integrating factor is a function you multiply through a first-order linear ODE to turn the left-hand side into an exact derivative. Once it’s an exact derivative, you 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, 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 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: 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. A nonlinear first-order ODE that happens to be exact goes to Exact equation instead.

For higher-order linear ODEs, see Characteristic equation (constant coefficients) and Method of variation of parameters (variable coefficients).