notesonly.in

One notebook for every subject — open it anywhere.

Log in

Integrating Factor Method for Linear ODEs Explained

The integrating factor method is the engine that solves every first-order linear differential equation. Multiplying the equation dy/dx + P(x)y = Q(x) by a cleverly chosen function μ(x) fuses the two left-hand terms into a single exact derivative, (μy)′, which can then be integrated directly.

Understanding why it works, rather than just memorising the formula, matters because the same product-rule reversal appears across mathematics, from exact equations to advanced PDE techniques. The integrating factor is the simplest and most instructive case of turning something non-integrable into something integrable.

Key Concepts

  • The product-rule trick: (μy)′ = μy′ + μ′y. We want μy′ + μPy to match this pattern, which forces μ′ = μP.
  • Solving for μ: μ′/μ = P gives dμ/μ = P dx, so ln|μ| = ∫P dx and μ = e^(∫P(x) dx). Any antiderivative works because additive constants in the exponent become harmless multiplicative constants.
  • μ is never zero: an exponential is always positive, so multiplying by μ never creates or destroys solutions.
  • μ depends only on x: it is built from P(x) alone; Q(x) enters only in the final integration step.
  • Standard form first: the derivation assumes the coefficient of y′ is 1, so always divide through before computing μ.

Formulas

  • Derivation: require (μy)′ = μy′ + μ′y = μy′ + μPy, hence μ′ = Pμ, hence μ = e^(∫P(x) dx).
  • After multiplying: d/dx(μy) = μQ, so μy = ∫μQ dx + C.
  • Final solution: y = (∫μQ dx + C)/μ.

Worked Example

Solve dy/dx − 3y = e^(2x) using the integrating factor method, showing each stage of the reasoning.

  1. Standard form: the coefficient of dy/dx is already 1, with P(x) = −3 and Q(x) = e2x. Note the minus sign is part of P.
  2. Compute μ: ∫P dx = ∫(−3) dx = −3x, so μ = e^(−3x).
  3. Multiply: e^(−3x)·dy/dx − 3e^(−3x)·y = e^(−3x)·e^(2x) = e^(−x). By construction the left side is d/dx(y·e^(−3x)).
  4. Integrate: y·e^(−3x) = ∫e^(−x) dx = −e^(−x) + C.
  5. Divide by μ: y = (−e^(−x) + C)/e^(−3x) = Ce^(3x) − e^(2x).
  6. Verify: y′ = 3Ce^(3x) − 2e^(2x), so y′ − 3y = 3Ce^(3x) − 2e^(2x) − 3Ce^(3x) + 3e^(2x) = e^(2x). Correct.

Common Misconceptions

  • Integrating term by term after multiplying. The whole point is that the left side is one derivative, (μy)′; integrating the two terms separately destroys the trick.
  • Flipping the sign of P. Here P = −3, so μ = e^(−3x); writing e3x is the single most common error with this method.
  • Keeping an extra constant inside μ. Writing μ = e^(−3x + C₁) just multiplies everything by a constant that gets absorbed into C anyway; use the simplest μ.

Real-World Applications

  • Circuit transients: current in an RL circuit with a varying voltage source is found exactly this way.
  • Cooling in changing surroundings: when the ambient temperature itself varies with time, the equation stays linear and the integrating factor still applies.
  • Continuous finance: a bank balance with interest rate r and a varying deposit rate d(t) obeys dA/dt − rA = d(t), solved by this method.
  • Mixing with variable flow: tanks whose inflow rate changes with time still yield linear equations handled by μ.

The integrating factor works by reverse-engineering the product rule: choose μ so that μy′ + μPy becomes (μy)′, integrate once, and divide. Remember that P keeps its sign, the left side is a single derivative, and the final division by μ completes every solution.