First-order linear differential equations
In this post, we'll see how we solve first-order linear differential equations. Consider the following first-order homogeneous linear differential equation \[y' +p(x)y = 0. \tag{Eq:homdiff}\] By separating variables, we have \[\frac{dy}{y} = -p(x)dx.\] Integrating both sides gives \[\log|y| = -\int p(x)dx + c\] so that \[y = Ce^{-\int p(x)dx}\tag{Eq:homsol}\] where \(C\) is a constant. Example . Let's solve \[y' + 2y = 0.\] By separating variables, we have \[\frac{dy}{y} = -2dx.\] Integrating both sides, \[\log|y| = -2x + c.\] Exponentiating both sides, we have \[y = Ce^{-2x}.\] where \(C\) is a constant. □ Method of variation of parameters Next, consider the inhomogeneous differential equation \[y' + p(x)y + q(x) = 0. \tag{Eq:inhomdiff}\] As we have learned in a previous post, we need to find one special solution to construct the general solution. How do we find a special solution? See also : Linear differential equations: Introduction Here's one way. This is