Integrating Factor and Exact Differential Equations
multiply \( [ p(x)y - g(x) ]\,dx + dy = 0 \) by that
Context: A first-order linear differential equation \( \frac{dy}{dx} + p(x)y = g(x) \) can be
written in differential form as \( [p(x)y - g(x)]\,dx + dy = 0 \). Multiplying through by the integrating factor \(
\mu(x) = e^{\int p(x)\,dx} \) transforms it into an exact differential equation.
\[ (\mu p y - \mu g)\,dx + \mu\,dy = 0 \]
\[ \frac{\partial}{\partial y} (\mu p y - \mu g) = \mu p \]
\[
\begin{aligned}
\frac{\partial}{\partial x} (\mu) &= \frac{d}{dx} \left( e^{\int p(x)\,dx} \right) = e^{\int p(x)\,dx}
\frac{d}{dx} \left( \int p(x)\,dx \right) \\
&= \mu p
\end{aligned}
\]
Exactness Criterion: For an equation \( M(x, y)\,dx + N(x, y)\,dy = 0 \) to be exact, we require \(
\frac{\partial M}{\partial y} = \frac{\partial N}{\partial x} \). Here, \( M = \mu p y - \mu g \) and \( N = \mu \).
Differentiating gives \( \frac{\partial M}{\partial y} = \mu p \) and \( \frac{\partial N}{\partial x} = \mu p \).
Because these partial derivatives are equal, the equation is exact.
So, the integrating factor for linear eq. is the
same that makes an eq. exact!