Homogeneous linear equations of order n with constant coefficients

As happen with the linear systems of order 1, one ODE of order n has n linearly independent solutions in such a way that any solution to an homogeneous ODE will be a linear combination of these linearly independent solutions. Therefore, to solve the ODE will consist in finding these n functions.

The ODE we consider is any(n)(x)+an1y(n1)++a1y+a0y=0 where ai are constants.

Example

An example of a honogenous ODE of order n would be:y+y=0

Then we define the characteristical polynomial of the ODE as: anλn+an1λn1++a1λ+a0=0 and we look at its n roots.

The characteristical polynomial is easy to write, it is just necessary to change y for λ and to raise it to the corresponding order of the derivative.

Example

For example, in the ODE that we have given, the associated characteristic polynomial is: λ2+1=0.

This polynomial has two combined complex roots: λ1=i, λ2=i

Then

  • If λ are real and simple the solution is of the form: eλx
  • If λ are real of multiplicity m the solutions are of the form:eλx,xeλx,x2eλx,,xm1eλx
  • If λ=a+bi are complex and simple, the two solutions are of the form: eaxcos(bx),eaxsin(bx) (there are two solutions because whenever a complex root exists the conjugate also appears)
  • If λ=a+bi are complex of multiplicity m, the two solutions are of the form: eaxcos(bx),xeaxcos(bx),,xm1eaxcos(bx)eaxsin(bx),xeaxsin(bx),,xm1eaxsin(bx)

Then, once we find these n solutions, the general solution of the ODE will be a linear combination of these n solutions.

Example

Let's come back to the example at the beginning. As our polynomial took two (simple) combined complex roots we are in case 3. Therefore the solution is: y(x)=c1cosx+c2sinx where the constants will be determined by the initial conditions (in the event that we would know them).