3.5.36 · D1Guidance, Navigation & Control (GNC)

Foundations — LQG — LQR + Kalman filter, separation principle

2,793 words13 min readBack to topic

This page assumes you have seen none of the notation in the parent note. We build every letter, arrow, and squiggle from the ground up, in an order where each rung of the ladder rests on the one below it. If you have read the parent LQG topic and hit a symbol you couldn't parse, this is the page that fixes it.


0 — What is "a system" and why the arrows?

Before any letters, picture the object we control.

Figure — LQG — LQR + Kalman filter, separation principle

1 — The state : "everything you'd need to know to predict the future"

Picture: in figure s01, we draw the two-number state as a single dot in a state plane — one axis is position, the other is velocity. The dot's location is the state; the axes are not the room, they are the two state coordinates.

Why the topic needs it: everything in LQG — steering, estimating, cost — is measured relative to the state. Our whole goal will be "drive to zero" (bring the dot to the target at the origin).


2 — Vectors and the transpose

Why we ever need : to build a single number out of a vector's size we compute — the sum of squares, i.e. how far the dot is from the origin, squared. A row times a column collapses a whole vector into one honest number. That single number is what we will try to make small.


3 — Matrices : "machines that reshape a vector"

Picture: a matrix is an arrow-bender. Give it the arrow ; it hands back a different arrow .

Figure — LQG — LQR + Kalman filter, separation principle

The three named grids each need one more symbol first — the control (what you push with) and the noises , — so we introduce those now, before writing any equation that uses them.

Now the three named grids, each answering one physical question:

Why the topic needs them: they are the rules of the room. Every equation in LQG is these three grids plus noise. See State-space Representation.


4 — : the dot over a symbol means "rate of change"

Why this notation and not, say, ""? Because the machine changes continuously, not in jumps. The overdot is the derivative — the instantaneous rate — which is the only honest way to describe smooth motion. It answers "where is the dot heading this very instant?"

Putting §3 and §4 together (with , , already named) gives the state and measurement equations: Read the first in plain words: the velocity of the dot is: its natural drift plus the effect of my push plus a random shove . The second says: what the sensor reports is the clean projection of the truth plus sensor error .


5 — , , : look, guess, and how wrong we are

was defined in §3; the measurement appeared just above. Here we name what we build from .

Figure — LQG — LQR + Kalman filter, separation principle

6 — The size of the noise: and

We named and in §3; now we say precisely how big they are.

Why "0"? If noise had an average other than zero it would be a known drift, and we'd fold it into or . True noise averages out — hence centred at 0.


7 — , and "penalise = square it"

The cost we minimise is

The two ordering constraints you'll meet:

  • ("positive semidefinite"): badness is never negative — you can be neutral about some directions.
  • ("positive definite"): every push costs something — you can't get free control.

8 — , , and , : the answers the maths hands back

These four are outputs — you don't choose them, you solve for them.

Both are squeezed out of Riccati equations (see Riccati Equation) — one for the controller (), one dual copy for the filter (). That duality is the engine behind the separation principle.


9 — Two hidden prerequisites the parent leans on


The prerequisite map

Vectors and transpose

Matrices A B C

Quadratic cost x Q x

State equation x-dot = Ax + Bu + w

Derivative x-dot

Gaussian noise w and v

Estimate x-hat and error e

LQR gain K via Riccati

Kalman gain L via Riccati

Controllability and Observability

Separation Principle

Eigenvalues and stability

LQG controller


Equipment checklist

Cover the right side and answer aloud; reveal to check.

What does compute, and is it a number or a matrix?
The sum of squares of 's entries — the squared length. It is a single number (scalar).
What does the overdot in mean?
The instantaneous rate of change of (its derivative / velocity).
In , name each of , , , .
= natural drift/dynamics, = how the control acts, = the control you choose, = random process noise.
Why can't we just steer using the measurement directly?
shows only part of the state () and is corrupted by noise (); we must reconstruct first.
What is , in one phrase?
The estimation error — how wrong our guess is.
What do and tell you about and ?
Both are Gaussian, unbiased (mean 0); and describe the spread/size of the process and measurement noise respectively.
Why is the cost quadratic ()?
Squaring keeps badness positive and punishes large errors and efforts disproportionately, and it makes the optimal law linear.
Difference between and ?
may be flat in some directions (); must curve up in every direction ( for nonzero ) so all control costs something.
What is the value function and how does appear in it?
is the cheapest total future cost from state ; for LQ it equals , so is the cost-to-go bowl.
What do the gains and each do?
turns the estimate into a control action ; turns the innovation/surprise into a correction of the estimate.
Eigenvector vs eigenvalue — which is the direction and which the number?
The eigenvector is the direction the matrix only stretches; the eigenvalue is the scalar telling by how much.
What must be true of a matrix's eigenvalues for stability?
Every eigenvalue must have a negative real part, so all motions decay to zero.
Which two structural properties must the system have for and to exist?
Controllability (pushes reach every state) and observability (sensor reveals every state).