Initial history of delayed feedback (source code)

= Initial history of delayed feedback
{title2=$x(t)=\phi(t),\quad -\tau\le t\le0$}

For positive <feedback delay> $\tau$, an <initial condition> at a single instant is insufficient. Prescribe a <continuous function> $\phi$ throughout $[-\tau,0]$: for $0\le t\le\tau$, the <derivative> depends on $x(t-\tau)=\phi(t-\tau)$. A right <derivative> at $t=0$ is understood; the earlier history need not itself obey the subsequent control law. Once this first interval is computed, it supplies the delayed values for the next interval. This successive integration is the method of steps for a <delay differential equation>. https://math1um.github.io/Teaching/cain-reynolds-odes.pdf#page=174[John W. Cain and Angela M. Reynolds, Ordinary and Partial Differential Equations, sections 6.1 and 6.2: history and the method of steps]{ref}

For the constant <initial history of delayed feedback> $\phi(t)=1$, direct <integration> gives
$$
x(t)=1-kt\quad(0\le t\le\tau),\qquad
x(t)=1-kt+\frac{k^2}{2}(t-\tau)^2\quad(\tau\le t\le2\tau).
$$
For $k=1$, $\tau=1.2$, the <plant output> crosses zero at $t=1$, while its <measured output> remains positive until $t=2.2$. At $t=1.4$, the delayed command therefore increases the magnitude of the actual deviation. This short exact calculation explains the first diagram without relying on a numerical approximation.