# Introduction to differential equations

## Contents

# Introduction to differential equations#

Mathematics Methods 1 Mathematics Methods 2 Mathematics for Scientists and Engineers 2

Physical phenomena are described by functions that tell us about how the observables change in time, in space and with respect to other parameters of the observed system. That means that the equations which connect such functions and their changes will often contain derivatives. A **differential equation** is an equation involving derivatives of functions. For example, Newton’s second law is a differential equation:

where \(\mathbf{r(t)}\) is a function of \(t\). We refer to \(\mathbf{r}\) as the **dependent variable** and \(t\) as the **independent variable**.

## Notation#

Let \(f \equiv f(x)\) be a function of one variable. We can denote the first derivative of \(f\) as

which are the Leibniz’s, Lagrange’s, and Euler’s notation, respectively. \(D\) is the differential operator (sometimes called D operator) with which we can also explicitly state w.r.t. which variable differentiation is being done, e.g. \( D_x \). We write the second derivative of \(f\) as:

and any \(n\)-th derivative as:

**Time derivatives** are often denoted with a dot above:

Now let \(f \equiv f(x, y)\) be a function of two variables. We may want to take **partial derivatives** which we distinguish from ordinary derivatives by replacing the differential operator \(d\) (and \(D\) in Euler notation) with \(\partial\). A partial derivative of \(f\) w.r.t. \(x\) (meaning \(y\) is treated as a constant) can be represented as:

Mixed partial derivatives:

A very important differential operator is \(\nabla\), called *del* or *nabla*. It is defined in vector form as

## Classification#

There are many ways to classify differential equations and it is important to be able to classify them as this can help inform the choice of approach to a solution.

By number of independent variables:

**Ordinary differential equations (ODEs)**involve derivatives with respect to*only one*independent variable. An example of an ODE is Newton’s second law of motion.**Partial differential equations (PDEs)**involve more than one independent variable. For example, the 1-D wave equation:

\[ u_{tt} = c^2 u_{xx} \]Linearity

**Linear DEs**are linear in the dependent variables and their derivatives (including boundary and initial conditions).**Non-linear DEs**The following equation is non-linear because of the \(yy'\) term:

\[ y'' + yy' = \sin x \]Order: The order of a differential equation is the order of the highest derivative in the equation. For example, the following equations are first, second and third order, respectively:

## Solution#

A differential equation may have no, one or multiple solutions.

A **general solution** contains an arbitrary function or constant while a **particular solution** does not. A particular solution might be obtained from a general solution from initial or boundary conditions.