Classification

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. force))
  • The derivative represents a rate of change (e.g. acceleration, the rate of change in velocity)
  • The differential equation represents the relationship between the two.
  • For example, Newton’s second law for a particle of mass \(m\):

\[\begin{equation} F(t,x,v) = m\frac{dv}{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} F(t,x,v) = m\frac{dv}{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

There is a difference in notation - for ODEs we use \(d\) whilst for PDEs we use \(\partial\).

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.

Warning

\(\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.

Keypoints
  • 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

Test your understanding

Describe the following differential equations. Are they - - an ODE or PDE? - first order or higher? - linear or non-linear? - heterogeneous or homogeneous? - separable or non-separable?

  1. The oscillation of a non-linear driven pendulum,

\[\begin{equation} \frac{\mathrm{d}^2\theta}{\mathrm{d}t^2} = -\frac{g}{l}\sin(\theta) + C\cos(\theta)\sin(\sigma t), \end{equation}\]

where \(l\) and \(\sigma\) are constant parameters and \(g\) is the acceleration due to gravity.

  1. The one dimensional diffusion equation,

\[\begin{equation} \frac{\partial T}{\partial t} = D\frac{\partial ^2 T}{\partial x^2}. \end{equation}\]

  1. This equation is a second order, linear, heterogeneous, non-separable ODE.

  2. This equation is a second order, linear, homogeneous PDE. A linear, homogeneous PDE is separable and can be solved using the Separation of Variables.