4.6.24Ordinary Differential Equations

Linearization of nonlinear systems

1,821 words8 min readdifficulty · medium2 backlinks

What we are studying


HOW we linearize — derive from scratch

We want to know how a small disturbance behaves. Let u=xx,v=yyu = x - x^*, \qquad v = y - y^* be tiny displacements from the equilibrium. Then u˙=x˙=f(x,y)\dot u = \dot x = f(x,y).

Taylor expand ff about (x,y)(x^*,y^*) (this is the whole trick): f(x,y)=f(x,y)=0+fxu+fyv+12fxxu2+higher orderf(x,y) = \underbrace{f(x^*,y^*)}_{=0} + f_x\,u + f_y\,v + \underbrace{\tfrac12 f_{xx}u^2+\dots}_{\text{higher order}}

  • Why is the first term 0? Because (x,y)(x^*,y^*) is an equilibrium — by definition f(x,y)=0f(x^*,y^*)=0.
  • Why drop the quadratic terms? Near equilibrium u,vu,v are small, so u2,uv,v2u^2, uv, v^2 are tiny-squared — negligible compared to the linear terms. This is the 80/20 move: keep the part that dominates.

Doing the same for gg:

Figure — Linearization of nonlinear systems

Classifying the equilibrium

Solve det(JλI)=0\det(J-\lambda I)=0 for eigenvalues λ1,2\lambda_{1,2}. With trace τ=fx+gy\tau = f_x+g_y and determinant Δ=fxgyfygx\Delta = f_xg_y - f_yg_x: λ=τ±τ24Δ2\lambda = \frac{\tau \pm \sqrt{\tau^2 - 4\Delta}}{2}

Eigenvalues Type Stability
real, both <0<0 stable node stable
real, both >0>0 unstable node unstable
real, opposite signs saddle unstable
complex, Re<0\mathrm{Re}<0 stable spiral stable
complex, Re>0\mathrm{Re}>0 unstable spiral unstable
pure imaginary center linearization inconclusive

Worked Example 1 — a simple nonlinear pair

System: x˙=xx2xy,y˙=y+xy\dot x = x - x^2 - xy,\quad \dot y = -y + xy (a Lotka–Volterra-style model).

Step 1 — find equilibria. Set both to 0.

  • Why? Equilibria are where the analysis lives. x(1xy)=0x(1-x-y)=0 and y(1+x)=0y(-1+x)=0. From the 2nd: y=0y=0 or x=1x=1.
  • y=0y=0: first gives x(1x)=0(0,0),(1,0)x(1-x)=0 \Rightarrow (0,0),(1,0).
  • x=1x=1: first gives 11y=0y=01-1-y=0\Rightarrow y=0 (already have it). So equilibria: (0,0)(0,0) and (1,0)(1,0).

Step 2 — Jacobian (general). J=(12xyxy1+x)J=\begin{pmatrix}1-2x-y & -x\\ y & -1+x\end{pmatrix} Why these entries? fx=x(xx2xy)=12xyf_x=\partial_x(x-x^2-xy)=1-2x-y, etc.

Step 3 — evaluate at (0,0)(0,0). J=(1001)λ=1,1.J=\begin{pmatrix}1&0\\0&-1\end{pmatrix}\Rightarrow \lambda=1,\,-1. Opposite signs → saddle (unstable). Why? One mode grows (ete^{t}), one decays.

Step 4 — evaluate at (1,0)(1,0). J=(1100)λ=1,0.J=\begin{pmatrix}-1&-1\\0&0\end{pmatrix}\Rightarrow \lambda=-1,\,0. A zero eigenvalue → non-hyperbolic, linearization inconclusive (steel-man flag below).


Worked Example 2 — the pendulum

θ¨+sinθ=0\ddot\theta + \sin\theta = 0. Write as a system with x=θ, y=θ˙x=\theta,\ y=\dot\theta: x˙=y,y˙=sinx.\dot x = y,\qquad \dot y = -\sin x.

Step 1 — equilibria. y=0y=0 and sinx=0x=nπ\sin x=0\Rightarrow x=n\pi. Two physical cases: (0,0)(0,0) = hanging down, (π,0)(\pi,0) = balanced upright.

Step 2 — Jacobian. J=(01cosx0)J=\begin{pmatrix}0&1\\-\cos x&0\end{pmatrix} Why cosx-\cos x? x(sinx)=cosx\partial_x(-\sin x)=-\cos x.

Step 3 — bottom (0,0)(0,0): J=(0110)J=\begin{pmatrix}0&1\\-1&0\end{pmatrix}, λ=±i\lambda=\pm i. Pure imaginary → center (predicted oscillation). Physically right! But formally linearization is inconclusive — energy conservation confirms it really is a center.

Step 4 — top (π,0)(\pi,0): cosπ=1\cos\pi=-1, so J=(0110)J=\begin{pmatrix}0&1\\1&0\end{pmatrix}, λ=±1\lambda=\pm1. Saddle → unstable. Of course: balancing a pendulum upright is unstable. ✔


Common mistakes (Steel-man + fix)


Recall Feynman: explain to a 12-year-old

Imagine a marble in a bumpy landscape. The whole landscape is complicated, but right at the bottom of a bowl (or the top of a hill), the ground near you looks like a simple flat slope. Linearization is zooming in so close to a resting spot that the bumpy ground looks like a simple ramp. If the ramp tilts so the marble rolls back → it's a stable spot. If it rolls away → unstable. The Jacobian is just a number that measures "which way does the ground tilt around here?"


Active-recall flashcards

What defines an equilibrium point of x˙=f,y˙=g\dot x=f,\dot y=g?
A point where f=g=0f=g=0 (nothing moves).
Why can we drop quadratic terms when linearizing?
Near equilibrium displacements are small, so u2,uv,v2u^2,uv,v^2 are negligible vs linear terms.
What matrix linearizes a nonlinear system?
The Jacobian (fxfygxgy)\begin{pmatrix}f_x&f_y\\g_x&g_y\end{pmatrix} evaluated at the equilibrium.
Eigenvalues real with opposite signs → which type?
Saddle (unstable).
Eigenvalues complex with negative real part → ?
Stable spiral.
What does Hartman–Grobman require and guarantee?
Requires no eigenvalue with zero real part (hyperbolic); guarantees nonlinear flow ≈ linear flow topologically near the point.
When is linearization inconclusive?
When an eigenvalue has zero real part (centers, pure imaginary, zero eigenvalue).
For the pendulum, what type is the upright equilibrium (π,0)(\pi,0)?
Saddle (unstable), eigenvalues ±1\pm1.
Trace and determinant of JJ relate to eigenvalues how?
λ=τ±τ24Δ2\lambda=\tfrac{\tau\pm\sqrt{\tau^2-4\Delta}}{2} with τ=\tau=trace, Δ=\Delta=det.

Connections

Concept Map

find where nothing moves

define offsets

apply

first term is 0

linear terms give

constant coefficients

solve

tau, delta

determine

sign and type

infers

Nonlinear system
x dot=f, y dot=g

Equilibrium point
f=g=0

Small displacements
u=x-x*, v=y-y*

Taylor expansion
about equilibrium

Drop higher-order
u^2, uv, v^2

Jacobian J
at equilibrium

Linear system
u dot = J u

Eigenvalues lambda
from det J-lambda I

Trace and determinant

Classify type
node, saddle, spiral

Stability verdict

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, asli duniya ke systems mostly nonlinear hote hain — pendulum, predator-prey, chemical reactions. Inko exact solve karna almost impossible hai. Toh trick yeh hai: hum system ke equilibrium point ke bilkul paas zoom-in karte hain. Jaise koi curved zameen bhi bahut paas se dekho toh flat ramp jaisi lagti hai. Wahi flat ramp ka slope humein Jacobian matrix deta hai. Yeh Jacobian ek constant linear system bana deta hai jo hum eigenvalues se easily solve kar sakte hain.

Kaam ka tarika simple hai (mnemonic JEEPS): pehle Jacobian banao, fir use equilibrium par evaluate karo (yahan log galti karte hain — symbolic chhod dete hain, mat karo!), fir characteristic polynomial se eigenvalues nikalo, aur unke real part ke sign dekho. Agar real part negative hai → disturbance mar jaata hai → stable. Koi bhi positive hua → unstable. Opposite sign real eigenvalues matlab saddle, complex matlab spiral.

Ek important warning: jab eigenvalue ka real part zero ho (jaise pure imaginary = center), tab linearization jhooth bol sakta hai — chhote quadratic terms balance bigaad dete hain. Tab Hartman-Grobman theorem apply nahi hota, aur tumhe Lyapunov function ya energy use karni padti hai. Isliye pendulum ke neeche wale point ko hum "center" toh bolte hain par formally inconclusive maante hain, jabki upright point clearly saddle (unstable) hai — jaisa physically expected hai.

Yeh topic isliye matter karta hai kyunki without solving the equation, hum poora stability picture nikaal lete hain. Yeh 80/20 ka best example hai: thoda sa Taylor expansion karke pura system ka behaviour samajh aa jaata hai.

Go deeper — visual, from zero

Test yourself — Ordinary Differential Equations

Connections