Definition
A homogeneous linear differential equation with constant coefficients, which can also be thought of as a linear differential equation that is simultaneously an autonomous differential equation, is a differential equation of the form:
 
where  are all constants (i.e., real numbers). Here
 are all constants (i.e., real numbers). Here  is the dependent variable and
 is the dependent variable and  (which does not appear explicitly above) is the independent variable with respect to which the differentiations occur.
 (which does not appear explicitly above) is the independent variable with respect to which the differentiations occur.
Solution method
Consider the following polynomial:
 
This polynomial is called the characteristic polynomial of the differential equation. We consider various cases:
| Case | Solution in that case | 
| The polynomial has pairwise distinct real roots  | The solution space has basis  . In other words, the general solution is  where  are freely varying real parameters. | 
| The polynomial splits completely into linear factors over the reals, but with possible repetitions.  occurs  times,  occurs  times, and so on till  , which occurs  times. We have  . | The solution space has basis all functions of the form  where  with  an integer. Thus, for each  , there are  basis vectors corresponding to  . We get a total of  basis vectors. | 
| The polynomial splits completely over the complex numbers into distinct linear factors, but some of the roots are not real | For any real root  , use  as a basis vector. Non-real roots occur in complex conjugate pairs. For a pair  , choose the vectors  and  . Combining, we get a basis of  vectors. | 
| The general case | For a real root  of multiplicity  , the  basis vectors are  . For a pair of complex conjugates  of multiplicity  , the  basis vectors are  and  . | 
Examples
Examples with distinct real roots
Consider the differential equation:
 
The characteristic polynomial is:
 
We want to find the roots of this polynomial. The roots are  . Thus, the general solution is:
. Thus, the general solution is:
 
Here is another example:
 
The characteristic polynomial is:
 
The roots are  . The general solution is thus:
. The general solution is thus:
 
Examples with repeated real roots
Consider the differential equation:
 
First, we bring everything to one side, to get:
 
The characteristic polynomial is:
 
This factors as  , so it has a root 3 with multiplicity 2. The general solution is thus:
, so it has a root 3 with multiplicity 2. The general solution is thus:
 
Examples with real and complex roots without repetitions
Consider the differential equation:
 
First, we bring everything to one side, to get:
 
The characteristic polynomial is:
 
The only real root is 1, corresponding to a solution basis element  . The complex roots are the roots of
. The complex roots are the roots of  , and they are complex conjugates:
, and they are complex conjugates:
 
The basis solutions for this pair are thus  and
 and  . The general solution is thus:
. The general solution is thus:
