Homogenous solution of second-order ODE with constant coefficient
$$ a\frac{d^2y}{dx^2} + b\frac{dy}{dx} + cy = 0. $$ Solution has the form $y(x) = e^{\lambda x}$, so the characteristic equation is $$ a\lambda^2 + b\lambda + c = 0. $$
-
If the roots $\lambda_1 \neq \lambda_2$, then $$ y(x) = Ae^{\lambda_1 x} + Be^{\lambda_2 x}. $$
-
If the roots $\lambda_1 = \lambda_2 = \lambda$, then $$ y(x) = (A + Bx)e^{\lambda x}. $$