A.1 Ordinary Differential Equations

ODEs are characterized by the fact that they have only 1 independent variable. For example

\begin{align} \frac{d^2y}{dx^2} + a(x) \frac{dy}{dx} = b(x) \tag{A.1}\end{align}

is called a second order ODE. The order of the ODE is given by its highest derivative (in this case, we have a second order derivative). Generally, the goal is to solve for the function \(y(x)\).

Any order ODE can be reduced to a coupled-system of first order ODEs, by introducing a variable substitution. The above equation can be re-written by introducing a new function \(z(x)\):

\begin{align} z(x)&\equiv\frac{dy}{dx} \\ \frac{dz}{dx}&= b(x)-a(x)z(x) \tag{A.2}\end{align}

More generally, the problems can be reduced to solving a set of coupled first order equations of the form:

\begin{align} \frac{dy_i}{dx} = f_i(x, y_1,y_2,\ldots ) \tag{A.3}\end{align}