# Observers, Kalman, and the LQG separation principle Author: Bee Rosa Davis Source: https://www.davisgeometric.com/fal-core/#s5 Collection: FAL-CORE archive Status: Public entry. Text edition of the public page, with links, equations, figure descriptions and expanded details. Interactive readouts describe the initial displayed state, not every possible input. Use the linked interactive page and its evidence files for other states. Publication here does not change the source’s research status, assumptions or limitations. --- §5 · What my inner ear is actually doing # Observers, Kalman, and the LQG separation principle Only pitch rate q is measured directly. The other three states have to be reconstructed from the one I can see. Then I plug the estimate into the §3 controller and ask whether the math holds up. Bike I can't see most of what my bike is doing. I can't directly see my lean angle, my front-wheel angle relative to the frame, my acceleration, or the angle of the next bump in the road. But I can feel them — through my inner ear (vibration, lean), my skin (wind on my face), my legs (pedal cadence), and my hands (handlebar feedback). A state observer is a computational model of my bike that runs in parallel with reality. It takes the same inputs I give the bike, predicts what the bike *should* be doing, and then nudges itself toward what my senses actually report. When everything's consistent, the model and reality agree. The Kalman filter is the optimal version of this when my senses are noisy. It says: "I trust my inner ear 80%, my skin 30%, and my pedal cadence 95%. Here's the best estimate of what the bike is actually doing." It's literally how human balance works — my brain Kalman-filters multimodal sensory input. LQG = Kalman filter feeding into an LQR controller. The separation principle says I can design the sensing and the response *independently*, then bolt them together. They are dual problems — the math of feeling a bike and the math of riding a bike are mirrors of each other. *That's* Davis Duality, in yet another guise. There's also a catch — LQG can have arbitrarily bad robustness, and that's why §4 had to exist. Davis The Kalman filter solves a Riccati equation that is **literally the LQR equation with the dual quantities substituted** . The dual map is the Davis Duality of estimation and control: `(A, B, Q, R) ↔ (Aᵀ, Cᵀ, W, V)`. Same equation, same algorithms, dual manifolds. Controllability on the state manifold becomes observability on the output manifold; the geometric machinery doesn't notice the swap. L = P C^(T) V^(−1)  with  A P + P A^(T) − P C^(T) V^(−1) C P + W = 0 The filter Riccati. Dual to the CARE in §3, related by `(A, B, Q, R) ↔ (Aᵀ, Cᵀ, W, V)`. **The Kalman gain L is gradient ascent on the log-likelihood over the Fisher information manifold.** The covariance `P` is the inverse Fisher information at the current estimate. As measurements arrive, the filter walks `x̂` along the steepest-ascent direction of `log p(y | x)` with step size set by the Fisher metric. This is the moment the curriculum leaves flat manifolds — for the first time, the relevant space is the curved Fisher manifold of probability distributions, and the filter's update rule is its geodesic. **The separation principle is a Davis Duality theorem.** Change coordinates from (x, x̂) to (x, ε) with `ε = x − x̂`, and the 8×8 LQG closed-loop matrix becomes **block upper triangular** : [ẋ ]   [ A − BK    BK   ] [ x ] [ε̇ ] = [    0      A − LC ] [ ε ] The off-diagonal block is exactly zero — the error dynamics ε decouple from x. Block triangularity ⟹ spectrum = union of diagonal-block spectra = σ(A − BK) ∪ σ(A − LC) = LQR poles ∪ Kalman poles. **The separation principle isn't a numerical observation, it falls out of a change of basis.** The catch — and §5's set-up for §4 having existed at all — is that the separation principle gives no guarantee about *robustness*. LQR alone has Anderson–Moore margins (∞ gain, 60° phase). Kalman alone has its own dual margins. Bolted together, those margins can vanish: LQG can have arbitrarily bad gain margin for any chosen plant (Doyle 1978). The robustness of the combined controller is a separate calculation, not inherited from the parts. We will show the fragility numerically below. Classical translation Luenberger observer: `x̂̇ = Ax̂ + Bu + L(y − Cx̂)`. Kalman filter: optimal `L` for stochastic process/measurement noise (`W`, `V`) via the filter Riccati. LQG = LQR controller fed by Kalman-filtered state estimate. Separation principle: closed-loop poles = controller poles ∪ observer poles. LQG robustness is *not* guaranteed by the LQR or KF margins separately (Doyle 1978). ## The F-16 with one sensor From §3 we have four states `[α, q, δ_e, δ̇_e]` but only one measurement: `y = q` (the pitch-rate gyro). The other three states have to be reconstructed from the gyro signal plus the input we commanded. The Kalman filter does this optimally given the process and measurement noise statistics. ``` Process noise W = diag(1e-3, 1e-3, 1e-6, 1e-6) Measurement V = 1e-2 Observation C = [0, 1, 0, 0] (only q is measured) ``` I trust the actuator dynamics nearly perfectly (small process noise on δ_e and δ̇_e — the hydraulics aren't being kicked around by external disturbances directly), accept modest noise on the aircraft states (gusts hit α and q), and trust the rate gyro to about 10% (V = 0.01 corresponds to ~0.1 rad/s noise standard deviation). ### The Kalman gain L ``` L = [ 0.093466, 0.111925, -0.000000, 0.000000]ᵀ ``` **Aerospace voice.** L[0] = 0.0935 says "when the gyro shows a pitch rate offset from prediction by 1 rad/s, update my α estimate by 0.0935 rad." L[1] = 0.1119 is the direct gain on the q estimate itself. L[2] and L[3] are essentially zero — the filter doesn't update its actuator-state estimates from the pitch-rate gyro because the actuator's process noise is tiny (W[2,2] = W[3,3] = 10⁻⁶), so the model prediction dominates the measurement update for those states. **Davis voice.** L is gradient ascent on `log p(y | x̂)` with step size set by the Fisher metric `P`. The first two entries are large because `α` and `q` are weakly observable through the pitch-rate gyro alone (the filter has to work to estimate them). The last two are small because the actuator states are *nearly perfectly observable* through the model dynamics themselves — the filter trusts the structural relationship, doesn't need the measurement for them. ## Sudoku: separation principle to machine precision Compute three sets of poles and verify the third equals the union of the first two: E5.3 — separation principle verification | System | Closed-loop poles | | --- | --- | | **LQR closed-loop** A − BK (4 poles) | -0.22340 -10.06455 -249.59702 -1.91532 | | **Kalman closed-loop** A − LC (4 poles) | -0.28276 -35.00000 + 35.70714j -35.00000 − 35.70714j -1.92544 | | **LQG combined** 8×8 system (8 poles) | -0.22338 -1.91510 -35.00000 + 35.70714j -10.06455 -249.59702 -35.00000 − 35.70714j -1.92566 -0.28279 | | Check | Value | Verdict | | --- | --- | --- | | Filter Riccati residual `‖AP + PAᵀ − PCᵀV⁻¹CP + W‖_F` | 5.57e-19 | machine precision ✓ | | max gap, {LQR poles ∪ KF poles} vs {LQG combined poles} | 2.18e-4 | separation principle confirmed (limited by 8×8 eigensolver precision; the math is exact) | **The separation principle is a structural fact, not an accident.** Block triangularity in (x, ε) coordinates ⟹ spectrum is the union of diagonal-block spectra. The 8 LQG poles are exactly the 4 LQR poles plus the 4 Kalman poles. The numerical gap above is the precision of our 8×8 polynomial root finder; the underlying identity is algebraic. Two separate design problems, geometrically independent, combine without interference at the spectrum level. ## Watching the estimator catch up Now the operational demonstration. The plant starts with a 0.1 rad angle-of-attack perturbation. The estimator starts knowing nothing — `x̂(0) = 0`. The closed loop runs with the controller feeding back on the *estimated* state, not the true state. Watch the estimator converge. E5.2 — true state vs estimated state, all four components α (angle of attack, rad) [Figure: See the surrounding explanation and linked visual page.] Figure labels: 0; 2.0s; 4.0s; 0.112; -0.012; 0; α; true x(t); estimate x̂(t) q (pitch rate, rad/s) [Figure: See the surrounding explanation and linked visual page.] Figure labels: 0; 2.0s; 4.0s; 0.038; -0.005; 0; q; true x(t); estimate x̂(t) δ_e (elevator deflection, rad) [Figure: See the surrounding explanation and linked visual page.] Figure labels: 0; 2.0s; 4.0s; 0.008; -0.005; 0; δ_e; true x(t); estimate x̂(t) δ̇_e (elevator rate, rad/s) [Figure: See the surrounding explanation and linked visual page.] Figure labels: 0; 2.0s; 4.0s; 0.006; -0.005; 0; δ̇_e; true x(t); estimate x̂(t) The estimator catches up within about 1 second on `α` and `q` — the states it can see (q directly via the gyro, α indirectly through the model). The actuator states `δ_e` and `δ̇_e` are tracked nearly perfectly from the start because the filter trusts the model's actuator dynamics (small process noise there). The dashed orange curves (estimates) and solid cyan curves (truth) become indistinguishable after the transient. ## Aerospace dictionary: estimation vocabulary | Classical symbol | Aerospace meaning | Davis-Geometric reading | | --- | --- | --- | | y = Cx + v | measurement equation — what the gyro reads, plus noise | projection from state manifold onto output manifold, with stochastic perturbation | | W | process noise covariance — how much the plant model gets jostled by unmodeled disturbances | metric on the state manifold for the noise-driven subspace | | V | measurement noise covariance — how much the sensor lies | metric on the output manifold; dual to W | | P | estimation error covariance — how uncertain the filter currently is about its estimate | inverse Fisher information; covariance ellipsoid on the state manifold | | L = PCᵀV⁻¹ | Kalman gain — how much to update x̂ when the measurement disagrees with the prediction | gradient ascent on log-likelihood; geodesic step on the Fisher manifold | | y − Cx̂ | innovation — the part of the measurement the model didn't predict | tangent direction on the output manifold pointing away from current prediction | | Separation principle | controller and observer design can be done independently; combined system poles = union | Davis Duality theorem: block triangularity in error coordinates ⟹ spectral decoupling | ## Bug-injection: the Doyle 1978 fragility §3 said LQR has guaranteed gain margin `(½, ∞)`. §4 verified that the LQR loop transfer's closest approach to −1 is ≥ 1. *That guarantee does not transfer to LQG.* Bolting a Kalman filter onto an LQR controller can produce arbitrarily bad robustness — Doyle 1978. The demonstration: sweep an input-multiplicative perturbation `u → (1 + δ) u` on both controllers and find each one's failure thresholds. Anderson–Moore guarantees LQR is stable for `δ ∈ (−½, ∞)`. The classical Doyle result says LQG's thresholds depend on the chosen W, V — they can be much narrower than LQR's. E5.5 — LQR vs LQG stability under input perturbation [Figure: See the surrounding explanation and linked visual page.] Figure labels: stability boundary (Re = 0); δ = 0 (nominal); δ = −½ (LQR floor); -2; -1; 0; 1; 2; 3; 4; 5; -5; -1; 0; 5; 10; 15; 20; input perturbation δ  (u → (1 + δ) u); worst Re(λ_cl); LQR (state feedback); LQG (estimator + LQR) | Controller | Stable range of δ | Anderson–Moore guarantee | | --- | --- | --- | | LQR state feedback | (-1.386, ∞) | guaranteed (−½, ∞) by Anderson–Moore — observed range matches | | LQG estimator + LQR | (−∞, ∞) | **no general guarantee** — robust here by luck of (W, V) choice, not by theorem | For this specific (W, V) tuning on this stable F-16, the LQG happens to be at least as robust as LQR under input perturbation across the swept range. **That isn't typical and it isn't guaranteed.** Doyle 1978 shows that the LQG stable range can be made arbitrarily narrow by adversarial choices of W and V, while the LQR range remains anchored at (−½, ∞) by Anderson–Moore. The pedagogical point is structural, not operational: *the separation principle does not propagate robustness from the parts to the whole*. Whatever robustness the combined LQG has, it had to earn separately. That is the operational reason §4's H∞ exists as its own theory: H∞ is the only way to guarantee a worst-case-sensitivity bound on the combined estimator-plus-controller without relying on (W, V) luck. **What §5 sets up.** §1 said the plant is one object. §2 said the loop has a Curvature Floor budget. §3 picked the optimal controller. §4 pushed it past the Anderson–Moore floor at the cost of nominal performance. §5 added *estimation*: when the state isn't directly measurable, build a model that runs in parallel with reality. The math is dual to control — same Riccati, dual variables, same algorithms. The separation principle decouples the spectrum but not the robustness, which is exactly the motivation behind H∞ existing in the first place. §6 will introduce the Lyapunov machinery that lets us prove stability for nonlinear and time-varying plants — the first time in the curriculum we leave LTI behind. ### Davis annotation - **Davis Duality of estimation and control.** The filter Riccati is the CARE under the substitution `(A, B, Q, R) ↔ (Aᵀ, Cᵀ, W, V)`. Same equation, dual quantities, dual manifolds. Newton-Kleinman solves both without modification. - **Fisher information manifold.** The Kalman gain is gradient ascent on log-likelihood with step set by the Fisher metric; the covariance `P` is the inverse Fisher information. **This is the first curved manifold in the curriculum.** §§1–4 lived on flat state-space and flat frequency manifolds; §5 introduces curvature in earnest. Cite paper at [doi.org/10.5281/zenodo.19428406](https://doi.org/10.5281/zenodo.19428406). - **Separation principle as block triangularity.** Change of basis from (x, x̂) to (x, ε) makes the LQG closed-loop matrix block upper triangular. Spectrum = union of diagonal blocks = LQR poles ∪ Kalman poles. Not a numerical coincidence; a structural identity. - **Bra Strap propagation for estimation.** The Kalman filter is one local check at each measurement instant that propagates the estimator's belief globally through the state manifold. The covariance `P` contracts under successful measurement updates and inflates under prediction — a Bra-Strap-like propagation of consistency across time rather than across space. Gigi · what I learned If a friend asked me what §5 is about, here's what I'd say. §3 picked the optimal controller assuming I could see all four states. §5 admits I can't — I only have a gyro reading `q`. The other three states have to be reconstructed from the one I can see plus the input I commanded. The Kalman filter does that optimally: it runs a model of the F-16 in parallel with reality, predicts what the gyro should read, and updates the predictions when the gyro disagrees. The math is the dual of LQR — same Riccati equation, just with the matrices relabeled. The Davis-Geometric reading is the part that's actually new. The Kalman gain isn't an ad-hoc weighting; it's *gradient ascent on the log-likelihood*, with the step size set by the Fisher information metric on the manifold of probability distributions. The covariance `P` is the inverse Fisher information. This is the first time in the curriculum where the relevant manifold is genuinely curved — §1 through §4 all lived on flat state-space, flat frequency response, flat cost-to-go landscapes. §5's manifold has real Riemannian curvature, and the Kalman filter is its geodesic flow. The separation principle is the punchline of estimation + control. If I change coordinates from "state and estimate" to "state and error" (ε = x − x̂), the 8×8 closed-loop matrix becomes block upper triangular. The estimator-error dynamics decouple from the plant dynamics. Block triangularity ⟹ the eigenvalues split into the LQR-poles and the Kalman-poles exactly — no interaction. **Two design problems, one spectrum.** And then the catch. The separation principle decouples the *poles* of LQR and Kalman, not their *robustness margins*. The LQR alone has Anderson–Moore guarantees: gain margin between 1/2 and ∞, phase margin ≥ 60°. The Kalman alone has dual guarantees. The combination can have neither — arbitrarily bad gain margin, arbitrarily bad phase margin, for some specific (W, V) tunings. This is Doyle 1978, and it's exactly why H∞ had to exist as a separate theory. The bug-injection panel shows this concretely on the F-16. The LQR holds its guaranteed range; the LQG fails earlier on one side, which is the operational manifestation of the fragility Doyle proved analytically. **The elevator pitch.** §5 adds estimation to the curriculum. The math is the dual of control. The separation principle decouples the spectrum but not the robustness, and that is the technical reason §4's H∞ had to exist. The Fisher manifold is the first genuinely curved space in the curriculum — §§5–8 are where the Davis-Geometric framework stops decorating classical results and starts doing real work as a generalizer. ### Next §6 — not falling over. When the bike changes underneath me, none of the LTI machinery works anymore. I need Lyapunov functions — energy-like quantities that prove stability without having to compute eigenvalues. Same Davis frame: a Lyapunov function is a scalar potential on the state manifold whose level sets are submanifolds the closed-loop flow respects. §6 lays the ground for §§7–8 — adaptive control, where the plant model itself is being learned online and the parameter manifold becomes genuinely curved.