# Delay differential equation

In mathematics, delay differential equations (DDEs) are a type of differential equation in which the derivative of the unknown function at a certain time is given in terms of the values of the function at previous times.

A general form of the time-delay differential equation for $x(t)\in \mathbb{R}^n$ is

$\frac{\rm d}{{\rm d}t}x(t)=f(t,x(t),x_t),$

where $x_t=\{x(\tau):\tau\leq t\}$ represents the trajectory of the solution in the past. In this equation, $f$ is a functional operator from $\mathbb{R}\times \mathbb{R}^n\times C^1(\mathbb{R}, \mathbb{R}^n)$ to $\mathbb{R}^n.\,$

## Examples

• Continuous delay
$\frac{\rm d}{{\rm d}t}x(t)=f\left(t,x(t),\int_{-\infty}^0x(t+\tau)\,{\rm d}\mu(\tau)\right)$
• Discrete delay
$\frac{\rm d}{{\rm d}t}x(t)=f(t,x(t),x(t-\tau_1),\dotsc,x(t-\tau_m))$ for $\tau_1>\dotsb>\tau_m\geq 0$.
• Linear with discrete delay
$\frac{\rm d}{{\rm d}t}x(t)=A_0x(t)+A_1x(t-\tau_1)+\dotsb+A_mx(t-\tau_m)$
where $A_0,\dotsc,A_m\in \mathbb{R}^{n\times n}$.
• Pantograph equation
$\frac{\rm d}{{\rm d}t}x(t) = ax(t) + bx(\lambda t),$
where a, b and λ are constants and 0 < λ < 1. This equation and some more general forms are named after the pantographs on trains.

## Solving DDEs

DDEs are mostly solved in a stepwise fashion with a principle called the method of steps. For instance, consider the DDE with a single delay

$\frac{\rm d}{{\rm d}t}x(t)=f(x(t),x(t-\tau))$

with given initial condition $\phi\colon [-\tau,0]\rightarrow \mathbb{R}^n$. Then the solution on the interval $[0,\tau]$ is given by $\psi(t)$ which is the solution to the inhomogeneous initial value problem

$\frac{\rm d}{{\rm d}t}\psi(t)=f(\psi(t),\phi(t-\tau))$,

with $\psi(0)=\phi(0)$. This can be continued for the successive intervals by using the solution to the previous interval as inhomogeneous term. In practice, the initial value problem is often solved numerically.

### Example

Suppose $f(x(t),x(t-\tau))=ax(t-\tau)$ and $\phi(t)=1$. Then the initial value problem can be solved with integration,

$x(t)=a\int_{s=0}^t \phi(s-\tau)\,{\rm d}s+C$,

i.e., $x(t)=at+1$, where we picked $C=1$ to fit the initial condition $x(0)=\phi(0)$. Similarly, for the interval $t\in[\tau,2\tau]$ we integrate and fit the initial condition to find that $x(t)=at^2/2+t+D$ where $D=(a-1)\tau+1-a\tau^2/2$.

## Reduction to ODE

In some cases, delay differential equations are equivalent to a system of non-delay differential equations.

• Example 1 Consider an equation
$\frac{\rm d}{{\rm d}t}x(t)=f\left(t,x(t),\int_{-\infty}^0x(t+\tau)e^{\lambda\tau}\,{\rm d}\tau\right).$
Introduce $y(t)=\int_{-\infty}^0x(t+\tau)e^{\lambda\tau}\,{\rm d}\tau$ to get a system of ODEs
$\frac{\rm d}{{\rm d}t}x(t)=f(t,x,y),\quad \frac{\rm d}{{\rm d}t}y(t)=x-\lambda y.$
• Example 2 An equation
$\frac{\rm d}{{\rm d}t}x(t)=f\left(t,x(t),\int_{-\infty}^0x(t+\tau)\cos(\alpha\tau+\beta)\,{\rm d}\tau\right)$
is equivalent to
$\frac{\rm d}{{\rm d}t}x(t)=f(t,x,y),\quad \frac{\rm d}{{\rm d}t}y(t)=\cos(\beta)x+\alpha z,\quad \frac{\rm d}{{\rm d}t}z(t)=\sin(\beta) x-\alpha y,$
where
$y=\int_{-\infty}^0x(t+\tau)\cos(\alpha\tau+\beta)\,{\rm d}\tau,\quad z=\int_{-\infty}^0x(t+\tau)\sin(\alpha\tau+\beta)\,{\rm d}\tau.$

## The characteristic equation

Similar to ODEs, many properties of linear DDEs can be characterized and analyzed using the characteristic equation.[1] The characteristic equation associated with the linear DDE with discrete delays

$\frac{\rm d}{{\rm d}t}x(t)=A_0x(t)+A_1x(t-\tau_1)+\dotsb+A_mx(t-\tau_m)$

is

${\rm det}(-\lambda I+A_0+A_1e^{-\tau_1\lambda}+\dotsb+A_me^{-\tau_m\lambda})=0$.

The roots λ of the characteristic equation are called characteristic roots or eigenvalues and the solution set is often referred to as the spectrum. Because of the exponential in the characteristic equation, the DDE has, unlike the ODE case, an infinite number of eigenvalues, making a spectral analysis more involved. The spectrum does however have a some properties which can be exploited in the analysis. For instance, even though there are an infinite number of eigenvalues, there are only a finite number of eigenvalues to the right of any vertical line in the complex plane.[citation needed]

This characteristic equation is a nonlinear eigenproblem and there are many methods to compute the spectrum numerically.[2] In some special situations it is possible to solve the characteristic equation explicitly. Consider, for example, the following DDE:

$\frac{\rm d}{{\rm d}t}x(t)=-x(t-1).$

The characteristic equation is

$-\lambda-e^{-\lambda}=0.\,$

There are an infinite number of solutions to this equation for complex λ. They are given by

$\lambda=W_k(-1)$,

where Wk is the kth branch of the Lambert W function.

## Software

In MATLAB, the function dde23 can be used to numerically solve delay differential equations.[3]

## Notes

1. ^ Michiels, Niculescu, 2007 Chapter 1
2. ^ Michiels, Niculescu, 2007Chapter 2
3. ^ Shampine, L. F.; Thompson, S. (2001). "Solving DDEs in Matlab". Applied Numerical Mathematics 37 (4): 441. doi:10.1016/S0168-9274(00)00055-6. edit

## References

• Bellman, Richard; Cooke, Kenneth L. (1963). Differential-difference equations. New York-London: Academic Press. ISBN 978-0-12-084850-8.
• Driver, Rodney D. (1977). Ordinary and Delay Differential Equations. New York: Springer Verlag. ISBN 0-387-90231-7.
• Michiels, Wim and Niculescu, Silviu-Iulian (2007). Stability and stabilization of time-delay systems. An eigenvalue based approach. ISBN 978-0-89871-632-0.