Questions:

  • What is a differential equation?
  • What is the difference between an ordinary (ODE) and partial (PDE) differential equation?
  • How do I classify the different types of differential equations?


Objectives:

  • Identify the dependent and independent variables in a differential equation
  • Distinguish between and ODE and PDE
  • Identify the order of a differential equation
  • Distinguish between linear and non-linear equations
  • Distinguish between heterogeneous and homogeneous equations
  • Identify a separable equation

A differential equation is an equation that relates one or more functions and their derivatives

  • The functions usually represent physical quantities (e.g. $\mathbf{F}$))
  • The derivative represents a rate of change (e.g. acceleration)
  • The differential equation represents the relationship between the two.
  • For example, Newton's second law for $n$ particles of mass $m$:
\begin{equation} \mathbf{F}(t,\mathbf{x},\mathbf{v}) = m\frac{d\mathbf{v}}{dt} \end{equation}

An independent variable is... a quantity that varies independently...

  • An independent variable does not depend on other variables
  • A dependent variable depends on the independent variable
\begin{equation} \mathbf{F}(t,\mathbf{x},\mathbf{v}) = m\frac{d\mathbf{v}}{dt} \end{equation}
  • $t$ is an independent variable
  • $x$ and $v$ are dependent variables
  • Writing $x = x(t)$ makes this relationship clear.

Differential equations can be classified in a variety of ways

There are several ways to describe and classify differential equations. There are standard solution methods for each type, so it is useful to understand the classifications.

Once you can cook a single piece of spaghetti, you can cook all pieces of spaghetti!

An ODE contains differentials with respect to only one variable

For example, the following equations are ODEs:

\begin{equation} \frac{d x}{d t} = at \end{equation}\begin{equation} \frac{d^3 x}{d t^3} + \frac{x}{t} = b \end{equation}

As in each case the differentials are with respect to the single variable $t$.

Partial differential equations (PDE) contain differentials with respect to several independent variables.

An example of a PDE is:

\begin{equation} \frac{\partial x}{\partial t} = \frac{\partial x}{\partial y} \end{equation}

As there is one differential with respect to $t$ and one differential with respect to $y$.

Note also the difference in notation - for ODEs we use $d$ whilst for PDEs we use $\partial$.

Note: the equations in this notebook are formatted using LaTeX.

The order of a differential equation is the highest order of any differential contained in it.

For example:

$\frac{d x}{d t} = at$ is first order.

$\frac{d^3 x}{d t^3} + \frac{x}{t} = b$ is third order.

Important: $\frac{d^3 x}{d t^3}$ does not equal $\left(\frac{d x}{d t}\right)^3$!

Linear equations do not contain higher powers of either the dependent variable or its differentials

For example:

$\frac{d^3 x}{d t^3} = at$ and $\frac{\partial x}{\partial t} = \frac{\partial x}{\partial y} $ are linear.

$(\frac{d x}{d t})^3 = at$ and $\frac{d^3 x}{d t^3} = x^2$ are non-linear.

Non-linear equations can be particularly nasty to solve analytically, and so are often tackled numerically.

Homogeneous equations do not contain any non-differential terms

For example:

$\frac{\partial x}{\partial t} = \frac{\partial x}{\partial y}$ is a homogeneous equation.

$\frac{\partial x}{\partial t} - \frac{\partial x}{\partial y}=a$ is a heterogeneous equation (unless $a=0$!).

Separable equations can be written as a product of two functions of different variables

A separable first-order one-variable differential equation takes the form

\begin{equation} f(x)\frac{d x}{d t} = g(t) \end{equation}

Separable equations are some of the easiest to solve as we can split the equation into two independent parts with fewer variables, and solve each in turn - we will see an example of this in the next lesson.


Summary:

  • An independent variable is a quantity that varies independently
  • Differential equations can be classified in a variety of ways
  • An ODE contains differentials with respect to only one variable
  • The order is the highest order of any differential contained in it
  • Linear equations do not contain higher powers of either the dependent variable or its differentials
  • Homogeneous equations do not contain any non-differential terms