Second order linear ODE

From Rice Wiki

Second order linear ODEs are in the following form:

Important types of second order linear ODEs include

  • Homogeneous
  • Constant coefficients (where p and q are constants)

Initial value problem

There are two arbitrary constants in the solution of a second order linear ODE, so we need two initial conditions.

Solutions

Constant coefficient, homogeneous

Whatever derived usually also works for variable coefficients.

These are the simplest kind. They have the general form

We can guess the form of the solution to be exponential, since exponential functions has the property of being the same after many differentiation.

We substitute in the guess and obtain the characteristic equation

Depending on the constants, it will give us anywhere from zero to two solutions: and

There are three cases: 2 real roots, complex conjugates, and repeated roots, depending on the discriminant.

For 2 real roots, the two solutions are always independent so we get general solution easy.

For complex conjugates,

For repeated roots,

Fundamental set of solutions

Given that two linearly independent solutions are given, the general solution is of the following form

The independence of the solutions can be checked using the Wronskian. The two solutions are called a fundamental set of solutions.

This fundamental set always exists according to the General existence theorem.