First-order linear ODE
-
Linear: $y$ and its derivative appear linearly.
-
First-order: highest derivative is $dy/dx$.
-
Homogenous: all terms involve $y$ or its derivative.
For the equation $$ ay' + by = 0,$$ take $$ y = Ae^{\lambda x}. $$ Then we get the characteristic equation $$ a\lambda + b = 0. $$
General method for any linear forced ODEs:
-
Find (guess) a particular integral $y_p(x)$ i.e. a single solution of the forced equation;
-
Write the general solution of the ODE as $$ y(x) = y_p(x) + y_c(x). $$ Then $y_c(x)$, the complementary function, satisfies the homogenous equation.
-
Combine $y_p$ and $y_c$ to get the general solution.
Consider the general equation $$ a(x) y' + b(x) y = c(x). $$ We usually write it in the standard form by dividing $a(x)$: $$ y' + p(x) y = f(x). $$
We let the integrating factor be $$ \mu(x) = \exp\Big(\int^x p(u)\,du\Big) $$ and our solution is $$ y(x) = \frac{1}{\mu(x)}\int^x \mu(u)f(u)\,du. $$