Difference equation (source code)

= Difference equation
{title2=$z_{n+1}=F(z_n)$}

A difference equation relates <sequence> values at different indices. A first-order autonomous system is
$$
z_{n+1}=F(z_n),
$$
with a scalar or vector state; equivalently $z_{n+1}-z_n=F(z_n)-z_n$. A <fixed point> $z_*$ satisfies $F(z_*)=z_*$, and a <differentiable> update has linearized errors $e_{n+1}=DF(z_*)e_n+o(\|e_n\|)$.

In finite dimensions, if every <eigenvalue> of the <Jacobian matrix> has <modulus> below one, the <fixed point> is locally <asymptotically stable>. An <eigenvalue> outside the <unit circle> implies instability. An <eigenvalue> on the <unit circle> leaves nonlinear terms relevant. For example, $F_-(x)=x-x^3$ and $F_+(x)=x+x^3$ both have derivative one at zero. For $0<|x|<1$, iteration by $F_-$ decreases $|x|$ to zero; iteration by $F_+$ increases a nonzero positive input until it leaves any sufficiently small neighborhood. Their identical linearization does not determine their different stability.

For a continuous-time <ordinary differential equation>, the corresponding linear test uses real parts of <eigenvalues>, with a similar need for higher-order analysis at marginal eigenvalues.