MathorynMathematical Formula Database

Differential Equations

Integrating Factor (Linear First-Order ODE)

A linear first-order equation becomes an exact derivative (μy)′=μQ(\mu y)'=\mu Q after multiplying by the integrating factor μ\mu. It is used to solve mixing problems, cooling-type models and any first-order linear ODE.

y′+P(x)y=Q(x),μ=e∫P dx,y=1μ(∫μQ dx+C)y'+P(x)y=Q(x),\quad \mu=e^{\int P\,dx},\quad y=\frac{1}{\mu}\left(\int\mu Q\,dx+C\right)
LaTeXy'+P(x)y=Q(x),\quad \mu=e^{\int P\,dx},\quad y=\frac{1}{\mu}\left(\int\mu Q\,dx+C\right)

Variables

P(x), Q(x)P(x),\ Q(x)
coefficient functions
μ\mu
integrating factor
CC
constant fixed by an initial condition

Example

Solve y′+2y=4y'+2y=4, y(0)=0y(0)=0, and find y(1)y(1).

  1. μ=e2x\mu=e^{2x}, so (e2xy)′=4e2x(e^{2x}y)'=4e^{2x}.
  2. e2xy=2e2x+Ce^{2x}y=2e^{2x}+C; y(0)=0y(0)=0 gives C=−2C=-2.
  3. y=2−2e−2xy=2-2e^{-2x}, y(1)=2−2e−2y(1)=2-2e^{-2}.

Answer: y(1)≈1.7293y(1)\approx1.7293.

Related formulas