One way to solve second-order linear homogeneous ode with constant coefficients is to do the following things: $$a\left(\frac{\mathrm d^2}{\mathrm dx^2}\right)f+b\left(\frac{\mathrm d}{\mathrm dx}\right)f+cf=0$$ $$aD^2f+bDf+cf=0$$ $$(D-\lambda_1I)(D-\lambda_2I)f=0$$ $$\Longrightarrow(D-\lambda_1I)f=0\textrm{ or }(D-\lambda_2I)f=0$$ What's the theoretical basis of the last step? This is equivalent to prove that
$$\ker(T+\lambda I)\oplus\ker(T-\lambda I)=\ker(T^2-\lambda^2I).$$
However that's not generally true, at least when $\lambda=0$, since it becomes $\ker T=\ker T^2$. Is it due to the particularity of $D$ or does this formula hold unless $\lambda=0$?
Difference equations also share similar properties:
$au_{n+2}+bu_{n+1}+cu_{n}=0$
$u_{n}=\left \{ \begin{array}{ccc} k_{1} \alpha^{n}+k_{2} \beta^{n} & , & \alpha \neq \beta \\ (k_{1}+nk_{2})\alpha^{n} & , & \alpha = \beta \end{array} \right.$
where $\alpha, \beta$ are the roots of $ax^{2}+bx+c=0$.
Linear superposition is crucial (proof omitted).
For $a\neq 0$,
$\displaystyle u_{n+2}+\frac{b}{a}u_{n+1}+\frac{c}{a}u_{n}=0$
$u_{n+2}-(\alpha+\beta) u_{n+1}+\alpha \beta u_{n}=0$
$u_{n+2}-\alpha u_{n+1}=\beta (u_{n+1}-\alpha u_{n})$
Let $v_{n}=u_{n+1}-\alpha u_{n}$, the two independent solutions can be written as:
$u_{n+1}=\alpha u_{n} \quad$ or $\quad v_{n+1}=\beta v_{n}$
$u_{n}=u_{0}\alpha^{n} \quad$ or $\quad v_{n}=v_{0}\beta^{n}$
$u_{n}=u_{0}\alpha^{n} \quad$ or $\quad \displaystyle u_{n}= u_{1}\left( \frac{\alpha^{n}-\beta^{n}}{\alpha-\beta} \right)- u_{0}\alpha \beta \left( \frac{\alpha^{n-1}-\beta^{n-1}}{\alpha-\beta} \right)$
In particular, $u_{n}$ reduces to $u_{0} \beta^{n}$ when $u_{1}=\beta u_{0}$.
Take $\; \beta \to \alpha \;$ for double roots.
ODE can be treated in similar manner with $f''-\alpha f'=\beta (f'-\alpha f)$,
therefore $f(x)=e^{\alpha x}$ or $f'-\alpha f=e^{\beta x}$ and so on.