Method of Solution
To find the solution of the linear homogeneous differential equation wiith constant coefficients $$${{y}}^{{{\left({n}\right)}}}+{a}_{{{n}-{1}}}{{y}}^{{{\left({n}-{1}\right)}}}+\ldots+{a}_{{2}}{y}''+{a}_{{1}}{y}'+{a}_{{0}}={0}$$$, we assume that the solution has the form $$${y}{\left({x}\right)}={{e}}^{{{r}{x}}}$$$.
Plugging this solution into the equation and noting that $$${{y}}^{{{\left({n}\right)}}}={{r}}^{{n}}{{e}}^{{{r}{x}}}$$$ gives
$$${{r}}^{{n}}{{e}}^{{{r}{x}}}+{a}_{{{n}-{1}}}{{r}}^{{{n}-{1}}}{{e}}^{{{r}{x}}}+\ldots+{a}_{{2}}{{r}}^{{2}}{{e}}^{{{r}{x}}}+{a}_{{1}}{r}{{e}}^{{{r}{x}}}+{a}_{{0}}{{e}}^{{{r}{x}}}={0}$$$, or
$$${{r}}^{{n}}+{a}_{{{n}-{1}}}{{r}}^{{{n}-{1}}}+\ldots+{a}_{{2}}{{r}}^{{2}}+{a}_{{1}}{r}+{a}_{{0}}={0}$$$.
This is called the characteristic equation of the differential equation. Solving it, we will find $$${n}$$$ solutions $$${r}_{{1}},{r}_{{2}},\ldots,{r}_{{n}}$$$; so, the solutions of the homogeneous equation are $$${y}_{{1}}{\left({x}\right)}={{e}}^{{{r}_{{1}}{x}}},\ {y}_{{2}}{\left({x}\right)}={{e}}^{{{r}_{{2}}{x}}},\ \ldots,\ {y}_{{n}}{\left({x}\right)}={{e}}^{{{r}_{{n}}{x}}}$$$.
Depending on the roots of the characteristic equation, there are different general solutions.
Case 1. The roots are distinct and real. In this case, $$${y}_{{1}}{\left({x}\right)}={{e}}^{{{r}_{{1}}{x}}},\ {y}_{{2}}{\left({x}\right)}={{e}}^{{{r}_{{2}}{x}}},\ \ldots,\ {y}_{{n}}{\left({x}\right)}={{e}}^{{{r}_{{n}}{x}}}$$$ are all different and thus linearly independent (exponents with different powers are linearly independent); so, the solution can be written as $$${y}={c}_{{1}}{{e}}^{{{r}_{{1}}{x}}}+{c}_{{2}}{{e}}^{{{r}_{{2}}{x}}}+\ldots+{c}_{{n}}{{e}}^{{{r}_{{n}}{x}}}$$$.
Example 1. Solve $$${y}'''-{6}{y}''+{11}{y}'-{6}{y}={0}$$$.
The characteristic equation is $$${{r}}^{{3}}-{6}{{r}}^{{2}}+{11}{r}-{6}={0}$$$, which can be factored into $$${\left({r}-{1}\right)}{\left({r}-{2}\right)}{\left({r}-{3}\right)}={0}$$$. The roots are $$${r}_{{1}}={1}$$$, $$${r}_{{2}}={2}$$$, $$${r}_{{3}}={3}$$$. They are real and distinct; so, the general solution is $$${y}_{{h}}={c}_{{1}}{{e}}^{{x}}+{c}_{{2}}{{e}}^{{{2}{x}}}+{c}_{{3}}{{e}}^{{{3}{x}}}$$$.
Case 2. The roots are complex. Since the coefficients in the differential equation are assumed to be real, there is a complex root $$${a}+{b}{i}$$$ and the corresponding complex conjugate $$${a}-{b}{i}$$$. For this pair of roots, the part of the solution is given by $$${d}_{{1}}{{e}}^{{{\left({a}+{b}{i}\right)}{x}}}+{d}_{{2}}{{e}}^{{{\left({a}-{b}{i}\right)}{x}}}$$$.
Now, using Euler's formula, we can write that $$${{e}}^{{{\left({a}+{b}{i}\right)}{x}}}={{e}}^{{{a}{x}}}{{e}}^{{{b}{i}{x}}}={{e}}^{{{a}{x}}}{\left({\cos{{\left({b}{x}\right)}}}+{i}{\sin{{\left({b}{x}\right)}}}\right)}$$$ and $$${{e}}^{{{\left({a}-{b}{i}\right)}{x}}}={{e}}^{{{a}{x}}}{{e}}^{{-{b}{i}{x}}}={{e}}^{{{a}{x}}}{\left({\cos{{\left({b}{x}\right)}}}-{i}{\sin{{\left({b}{\left({x}\right)}\right)}}}\right.}$$$.
So, $$${d}_{{1}}{{e}}^{{{\left({a}+{b}{i}\right)}{x}}}+{d}_{{2}}{{e}}^{{{\left({a}-{b}{i}\right)}{x}}}={\left({d}_{{1}}+{d}_{{2}}\right)}{{e}}^{{{a}{x}}}{\cos{{\left({b}{x}\right)}}}+{\left({d}_{{1}}-{d}_{{2}}\right)}{i}{{e}}^{{{a}{x}}}{\sin{{\left({b}{x}\right)}}}$$$.
Taking $$${c}_{{1}}={d}_{{1}}+{d}_{{2}}$$$ and $$${c}_{{2}}={\left({d}_{{1}}-{d}_{{2}}\right)}{i}$$$, we can write the solution as $$${c}_{{1}}{{e}}^{{{a}{x}}}{\cos{{\left({b}{x}\right)}}}+{c}_{{2}}{{e}}^{{{a}{x}}}{\sin{{\left({b}{x}\right)}}}$$$.
Example 2. Solve $$${y}''+{2}{y}'+{5}{y}={0}$$$.
The characteristic equation is $$${{r}}^{{2}}+{2}{r}+{5}={0}$$$. This equation has the roots $$${r}_{{1}}=-{1}-{2}{i}$$$ and $$${r}_{{2}}=-{1}+{2}{i}$$$; so, the general solution is
$$${y}={c}_{{1}}{{e}}^{{-{x}}}{\cos{{\left({2}{x}\right)}}}+{c}_{{2}}{{e}}^{{-{x}}}{\sin{{\left({2}{x}\right)}}}$$$.
Case 3. Some roots have the multiplicity $$${p}>{1}$$$ (if the root $$${r}_{{k}}$$$ is of the multiplicity $$${p}$$$, we have that $$${{\left({r}-{r}_{{k}}\right)}}^{{p}}$$$ is a factor of the characteristic equation, but $$${{\left({r}-{r}_{{k}}\right)}}^{{{p}+{1}}}$$$ is not). In this case, some solutions are the same and, therefore, are not linearly independent. Here, the solutions are $$${y}_{{1}}={{e}}^{{{r}_{{k}}{x}}}$$$, $$${y}_{{2}}={x}{{e}}^{{{r}_{{k}}{x}}}$$$, ...,$$${y}_{{p}}={{x}}^{{{p}-{1}}}{{e}}^{{{r}_{{k}}{x}}}$$$.
Example 3. Solve $$${y}'''+{3}{y}''+{3}{y}'+{y}={0}$$$.
The characteristic equation is $$${{r}}^{{3}}+{3}{{r}}^{{2}}+{3}{r}+{1}={0}$$$ or $$${{\left({r}+{1}\right)}}^{{3}}={0}$$$. So, the roots are $$${r}_{{1}}=-{1}$$$, $$${r}_{{2}}=-{1}$$$, $$${r}_{{3}}=-{1}$$$.
Here, one root is of the multiplicity 3; so, the general solution is $$${y}={c}_{{1}}{{e}}^{{-{x}}}+{c}_{{2}}{x}{{e}}^{{-{x}}}+{c}_{{3}}{{x}}^{{2}}{{e}}^{{-{x}}}$$$.
Now, let's do some more work.
Example 4. Solve $$${y}''''+{2}{y}''+{y}={0}$$$.
The characteristic equation is $$${{r}}^{{4}}+{2}{{r}}^{{2}}+{1}={0}$$$, or $$${{\left({{r}}^{{2}}+{1}\right)}}^{{2}}={0}$$$. So, here are the complex roots of the multiplicity 2: $$${r}_{{1}}={i}$$$,$$${r}_{{2}}=-{i}$$$, $$${r}_{{3}}={i}$$$, $$${r}_{{4}}=-{i}$$$.
Hence, the general solution is $$${y}={c}_{{1}}{\cos{{\left({x}\right)}}}+{c}_{{2}}{\sin{{\left({x}\right)}}}+{c}_{{3}}{x}{\cos{{\left({x}\right)}}}+{c}_{{4}}{x}{\sin{{\left({x}\right)}}}$$$.
Note that, in general, there will be some roots of the multiplicity more than one, some roots are complex, and some are real and distinct. In this case, we just combine the corresponding solutions.
Example 5. Solve $$${{y}}^{{{\left({6}\right)}}}-{3}{{y}}^{{{\left({5}\right)}}}-{3}{{y}}^{{{\left({4}\right)}}}+{25}{y}'''-{46}{y}''+{38}{y}'-{12}{y}={0}$$$.
The characteristic equation is $$${{r}}^{{6}}-{3}{{r}}^{{5}}-{3}{{r}}^{{4}}+{25}{{r}}^{{3}}-{46}{{r}}^{{2}}+{38}{r}-{12}={0}$$$. It has the roots $$${r}_{{1}}={1}+{i}$$$, $$${r}_{{2}}={1}-{i}$$$, $$${r}_{{3}}={2}$$$, $$${r}_{{4}}=-{3}$$$, $$${r}_{{5}}={1}$$$, $$${r}_{{6}}={1}$$$.
There are a pair of complex roots, 2 distinct roots, and one root of the multiplicity 2; so, the general solution is $$${y}={c}_{{1}}{{e}}^{{x}}{\cos{{\left({x}\right)}}}+{c}_{{2}}{{e}}^{{x}}{\sin{{\left({x}\right)}}}+{c}_{{3}}{{e}}^{{{2}{x}}}+{c}_{{4}}{{e}}^{{-{3}{x}}}+{c}_{{5}}{{e}}^{{x}}+{c}_{{6}}{x}{{e}}^{{x}}$$$.
In theory, it is always possible to factor the characteristic equation, but in practice this can be extremely difficult, especially for differential equations of higher order. In such cases, one often has to use numerical techniques to approximate the solutions.
Warning: A characteristic equation is valid only for a linear differential equation with constant coefficients. Consider, for example, the equation $$${y}''-{{x}}^{{2}}{y}={0}$$$. The characteristic equation is $$${{r}}^{{2}}-{{x}}^{{2}}={0}$$$; it has the roots $$${r}_{{1}}={x}$$$ and $$${r}_{{2}}=-{x}$$$, but the solution is not $$${y}={c}_{{1}}{{e}}^{{{\left({x}\right)}{x}}}+{c}_{{2}}{{e}}^{{{\left(-{x}\right)}{x}}}={c}_{{1}}{{e}}^{{{{x}}^{{2}}}}+{c}_{{2}}{{e}}^{{-{{x}}^{{2}}}}$$$.