3.5.31Guidance, Navigation & Control (GNC)

Lyapunov stability — Lyapunov function, positive definiteness

2,370 words11 min readdifficulty · medium3 backlinks

1. Setting the stage: what are we analyzing?

We study an autonomous nonlinear system: x˙=f(x),xRn,f(0)=0\dot{\mathbf{x}} = \mathbf{f}(\mathbf{x}), \qquad \mathbf{x}\in\mathbb{R}^n, \quad \mathbf{f}(\mathbf{0}) = \mathbf{0}

The point x=0\mathbf{x}=\mathbf{0} is an equilibrium (if you start there with zero velocity, you stay). We shift coordinates so the equilibrium of interest sits at the origin — always allowed.

WHY the ε\varepsilonδ\delta phrasing? "Stable" must mean small kick ⟹ small response, forever. The nested-ball definition captures exactly that without needing a solution formula.


2. Positive definiteness — the "bowl" property

Before we can pick an energy function, we need to know what makes something bowl-shaped.

HOW to test PD for a quadratic form V=xPxV = \mathbf{x}^\top P \mathbf{x} with P=PP=P^\top: VV is PD     \iff ==PP is a positive-definite matrix==     \iff all eigenvalues of PP are >0>0     \iff all leading principal minors are >0>0 (Sylvester's criterion).


3. The Lyapunov function and the main theorem

The crucial object is the orbital derivative — how VV changes as you flow along the actual dynamics. By the chain rule: V˙(x)=ddtV(x(t))=iVxix˙i=V(x)f(x).\dot V(\mathbf{x}) = \frac{d}{dt}V(\mathbf{x}(t)) = \sum_{i}\frac{\partial V}{\partial x_i}\dot x_i = \nabla V(\mathbf{x})^\top \mathbf{f}(\mathbf{x}).

WHY the chain rule and not V/t\partial V/\partial t? VV has no explicit time dependence; all time-variation comes through x(t)\mathbf{x}(t), whose derivative the dynamics f\mathbf f supply. This is the whole trick: V˙\dot V is computable without solving for x(t)\mathbf x(t).


4. Worked examples


5. Common mistakes (steel-manned)


Recall Feynman: explain to a 12-year-old

Think of a marble in a mixing bowl. Wherever you drop it, it rolls to the bottom and stops. Now imagine you had a magic number-machine: you point it at the marble and it tells you the marble's "height" in the bowl. If that number keeps getting smaller and smaller as the marble moves, you know the marble is heading for the bottom — even if you never watched it roll! Lyapunov's idea is: build such a number-machine for a spacecraft or robot. If the number always shrinks, the machine is safely returning to where it should be. You never had to predict the whole journey — you just watched the number go down.


Connections

  • LaSalle's Invariance Principle — upgrades V˙0\dot V\le0 to asymptotic stability.
  • Lyapunov Equation A^TP+PA=-Q — the linear-system machinery from Example 3.
  • Positive Definite Matrices & Sylvester's Criterion — the PD test.
  • Backstepping Control & Sliding Mode Control — designed by construction to make V˙<0\dot V<0.
  • Spacecraft Attitude Control (Quaternion Feedback) — real GNC use of Lyapunov certificates.
  • Chetaev's Instability Theorem — the correct converse tool.
  • Region of Attraction Estimation — from sublevel sets {Vc}\{V\le c\}.

Flashcards

What is a positive definite function V(x)V(\mathbf x)?
V(0)=0V(\mathbf 0)=0 and V(x)>0V(\mathbf x)>0 for all x0\mathbf x\neq\mathbf 0 in the region.
How do you compute V˙\dot V along trajectories without solving the ODE?
V˙=V(x)f(x)\dot V = \nabla V(\mathbf x)^\top \mathbf f(\mathbf x) (chain rule; substitute the dynamics x˙=f\dot{\mathbf x}=\mathbf f).
Lyapunov condition for stability vs asymptotic stability?
Stability: VV PD and V˙0\dot V\le0. Asymptotic: VV PD and V˙<0\dot V<0 (strictly, for x0\mathbf x\neq\mathbf 0).
For V=xPxV=\mathbf x^\top P\mathbf x (PP symmetric), when is it PD?
When all eigenvalues of PP are positive     \iff all leading principal minors positive (Sylvester).
Why is xPx>0    \mathbf x^\top P\mathbf x>0 \iff all λi(P)>0\lambda_i(P)>0?
Diagonalize P=QΛQP=Q\Lambda Q^\top; with y=Qx\mathbf y=Q^\top\mathbf x, the form becomes λiyi2\sum\lambda_i y_i^2, positive iff each λi>0\lambda_i>0.
If you cannot find a valid Lyapunov function, is the system unstable?
No — the theorem is sufficient, not necessary. Failing to find VV proves nothing; use Chetaev's theorem to prove instability.
Derive V˙\dot V for x˙=Ax\dot{\mathbf x}=A\mathbf x, V=xPxV=\mathbf x^\top P\mathbf x.
V˙=x(AP+PA)x\dot V=\mathbf x^\top(A^\top P+PA)\mathbf x; set =xQx=-\mathbf x^\top Q\mathbf x (Lyapunov equation).
For the damped oscillator, why does V˙=bx22\dot V=-bx_2^2?
Spring cross-terms kx1x2kx_1x_2 cancel; only damper dissipates ⟹ energy loss \propto velocity2^2.
Difference between positive definite and positive semi-definite?
PD: V>0V>0 for all nonzero x\mathbf x. PSD: V0V\ge0 (can be zero at nonzero points — "flat channels").
What geometric object does a valid Lyapunov function represent?
A "bowl" (positive walls, bottom at equilibrium) whose height decreases along trajectories.

Concept Map

has

analyzed via

eps-delta definition

stronger form

proven without solving ODE by

must be

must

weaker case

quadratic form

PD iff

equivalent test

application

Nonlinear system x-dot equals f of x

Equilibrium at origin

Lyapunov stability

Small kick small response forever

Asymptotic stability x goes to 0

Lyapunov function V of x

Positive definite bowl shape

Decrease along trajectories

Positive semi-definite

V equals x-transpose P x

All eigenvalues of P positive

Sylvester leading minors positive

Spacecraft and missile control certificate

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Socho ek ball ko bowl (katori) mein daala — chahe kahin se bhi chhodo, wo ghoomte ghoomte bottom pe aakar ruk jaata hai. Kyun? Kyunki uski energy har time kam hoti jaati hai. Lyapunov ka genius idea yahi hai: system ki equations solve kiye bina, agar hum koi bhi "energy jaisa" scalar function V(x)V(\mathbf x) dhoondh lein jo trajectory ke saath ghatta jaata hai, to hum prove kar sakte hain ki system stable hai. GNC mein — jaise spacecraft attitude control ya missile autopilot — nonlinear equations solve karna almost impossible hota hai, isliye Lyapunov method ek "stability certificate" de deta hai bina kuch integrate kiye.

Do cheezein zaroori hain. Pehli: VV positive definite ho — matlab origin (equilibrium) pe zero, aur baaki har jagah strictly positive. Yeh hi "bowl" shape deta hai. Test simple hai: agar V=xPxV=\mathbf x^\top P\mathbf x hai to PP ke saare eigenvalues positive hone chahiye. Doosri cheez: VV ka time derivative trajectory ke saath — jise hum orbital derivative kehte hain — nikaalo chain rule se: V˙=Vf\dot V=\nabla V^\top \mathbf f. Yahan magic hai — f\mathbf f dynamics hai, to V˙\dot V bina solve kiye mil jaata hai.

Rule yaad rakho: agar VV PD hai aur V˙0\dot V\le 0, to system stable hai (bounded rahega). Agar V˙<0\dot V<0 strictly hai, to asymptotically stable — ghar (origin) wapas pahunch jaayega. Damped spring-mass example mein V˙=bx22\dot V=-bx_2^2 nikalta hai — spring ke cross terms cancel ho jaate hain, sirf damper energy nikaalta hai, bilkul physics ke hisaab se.

Ek badi galti se bacho: agar tumhe koi valid VV nahi milta, iska matlab system unstable hai — galat! Theorem sirf sufficient hai, necessary nahi. Shaayad tumne galat VV choose kiya. Aur "PD bowl, downhill roll" mantra yaad rakhna — bowl positive definite, aur ball hamesha neeche jaaye to stable. Bas itna samajh lo to Lyapunov ka poora concept clear hai.

Go deeper — visual, from zero

Test yourself — Guidance, Navigation & Control (GNC)

Connections