A homogeneous linear differential equation has
constant coefficients if it has the form a_0y + a_1y' + a_2y'' + \cdots + a_n y^{(n)} = 0 where are (real or complex) numbers. In other words, it has constant coefficients if it is defined by a linear operator with constant coefficients. The study of these differential equations with constant coefficients dates back to
Leonhard Euler, who introduced the
exponential function e^{x} , which is the unique solution of the equation f' = f , such that f(0) = 1 . It follows that the th derivative of e^{cx} is c^ne^{cx} , and this allows solving homogeneous linear differential equations rather easily. Let a_0y + a_1y' + a_2y'' + \cdots + a_ny^{(n)} = 0 be a homogeneous linear differential equation with constant coefficients (that is are real or complex numbers). Searching for solutions of this equation that have the form is equivalent to searching the constants such that a_0e^{\alpha x} + a_1\alpha e^{\alpha x} + a_2\alpha^2 e^{\alpha x}+\cdots + a_n\alpha^n e^{\alpha x} = 0. Factoring out (which is never zero), shows that must be a root of the
characteristic polynomial a_0 + a_1t + a_2 t^2 + \cdots + a_nt^n of the differential equation, which is the left-hand side of the
characteristic equation a_0 + a_1t + a_2 t^2 + \cdots + a_nt^n = 0. When these roots are all
distinct, one has distinct solutions that are not necessarily real, even if the coefficients of the equation are real. These solutions can be shown to be
linearly independent, by considering the
Vandermonde determinant of the values of these solutions at . Together they form a
basis of the
vector space of solutions of the differential equation (that is, the kernel of the differential operator). In the case where the characteristic polynomial has only
simple roots, the preceding provides a complete basis of the solutions vector space. In the case of
multiple roots, more linearly independent solutions are needed for having a basis. These have the form x^ke^{\alpha x}, where is a nonnegative integer, is a root of the characteristic polynomial of multiplicity , and . For proving that these functions are solutions, one may remark that if is a root of the characteristic polynomial of multiplicity , the characteristic polynomial may be factored as . Thus, applying the differential operator of the equation is equivalent with applying first times the operator {{nowrap| \frac{d}{dx} - \alpha ,}} and then the operator that has as characteristic polynomial. By the
exponential shift theorem, \left(\frac{d}{dx}-\alpha\right)\left(x^ke^{\alpha x}\right)= kx^{k-1}e^{\alpha x}, and thus one gets zero after application of {{nowrap|1= \frac{d}{dx} - \alpha .}} As, by the
fundamental theorem of algebra, the sum of the multiplicities of the roots of a polynomial equals the degree of the polynomial, the number of above solutions equals the order of the differential equation, and these solutions form a basis of the vector space of the solutions. In the common case where the coefficients of the equation are real, it is generally more convenient to have a basis of the solutions consisting of
real-valued functions. Such a basis may be obtained from the preceding basis by remarking that, if is a root of the characteristic polynomial, then is also a root, of the same multiplicity. Thus a real basis is obtained by using
Euler's formula, and replacing x^ke^{(a+ib)x} and x^ke^{(a-ib)x} by x^ke^{ax} \cos(bx) and x^ke^{ax} \sin(bx).
Second-order case A homogeneous linear differential equation of the second order may be written y'' + ay' + by = 0, and its characteristic polynomial is r^2 + ar + b. If and are
real, there are three cases for the solutions, depending on the discriminant . In all three cases, the general solution depends on two arbitrary constants and . • If , the characteristic polynomial has two distinct real roots , and . In this case, the general solution is c_1 e^{\alpha x} + c_2 e^{\beta x}. • If , the characteristic polynomial has a double root , and the general solution is (c_1 + c_2 x) e^{-ax/2}. • If , the characteristic polynomial has two
complex conjugate roots , and the general solution is c_1 e^{(\alpha + \beta i)x} + c_2 e^{(\alpha - \beta i)x}, which may be rewritten in real terms, using
Euler's formula as e^{\alpha x} (c_1\cos(\beta x) + c_2 \sin(\beta x)). Finding the solution satisfying and , one equates the values of the above general solution at and its derivative there to and , respectively. This results in a linear system of two linear equations in the two unknowns and . Solving this system gives the solution for a so-called
Cauchy problem, in which the values at for the solution of the DEQ and its derivative are specified. ==Non-homogeneous equation with constant coefficients==