3.5.35 · D4Guidance, Navigation & Control (GNC)

Exercises — Linear Quadratic Regulator (LQR) — Riccati equation, optimal gains

2,159 words10 min readBack to topic

Before we start, one picture fixes the whole vocabulary you need.


Level 1 — Recognition

L1.1

State the continuous-time Algebraic Riccati Equation (CARE) and identify which single term makes it nonlinear in .

Recall Solution

The term is quadratic in (it contains twice), so the equation is nonlinear. Every other term (, , ) is linear or constant in .

L1.2

You are told , , and the solved . Write the formula for and identify the size (rows × columns) of .

Recall Solution

. Here is , is , is . But wait — is so there is one control input, so must be to be conformable. The stated is inconsistent; the correct recognition is: with control and states, is .

The point of the exercise: always check dimensions. , , so forces to be . Here .

L1.3

Which of these is the optimal LQR control law? (a) (b) (c) (d) .

Recall Solution

(b) . It is linear in (rules out (a)), uses the state not its derivative (rules out (c)), and the sign is negative — you push against the offset to drive (rules out (d), which would push you away and destabilize).


Level 2 — Application

L2.1 (scalar CARE)

Plant (so ), weights . Find , the gain , and the closed-loop pole .

Recall Solution

Scalar CARE: Closed loop: Stable — even though the open loop () was unstable.

L2.2 (double integrator gain)

Using the parent's double-integrator result , compute for .

Recall Solution

And , so Notice: bigger (heavier control penalty) shrank both gains — softer pushing.

L2.3 (cost-to-go value)

For L2.1 you found . If the satellite starts at , what is the total optimal cost ?

Recall Solution

The value function is the remaining cost if you steer optimally from here on — no integral needed once is known.


Level 3 — Analysis

L3.1 (only the ratio matters)

Show that scaling both weights, and for , leaves the gain unchanged.

Recall Solution

CARE with scaled weights: Try (guess the solution scales too). Substitute: The bracket is the original CARE, so is the original solution and . Then The 's cancel — is unchanged. Only the ratio sets the controller.

L3.2 (which knob makes it aggressive?)

In the scalar case (rewrite of ). Analyse: does the pole move left (faster) as grows or as grows?

Recall Solution

. As , (larger in the CARE forces larger ), so , so becomes more negative → pole moves left → faster/aggressive. As with fixed: the penalty on control grows, shrinks, moves toward (right) → slower/gentler. Verdict: big = aggressive, big = lazy.

L3.3 (closed-loop poles of the double integrator)

For , . Find the closed-loop matrix and its eigenvalues; state the damping ratio.

Recall Solution

Characteristic polynomial: Comparing with : Nicely damped — no overshoot ringing to speak of.

The poles for varying trace a curve — see the figure.


Level 4 — Synthesis

L4.1 (LQR is PD control)

The double-integrator gain gives . Explain, term by term, why this is exactly a spring–damper (PD) controller, and for give the and hence natural frequency and damping.

Recall Solution

= position, = velocity. So :

  • = a spring pulling position back to zero (proportional term, the "P").
  • = a damper opposing velocity (derivative term, the "D"). That is precisely a PD controller — see PID Controllers. LQR derived it as optimal. For : . Closed loop , i.e. ,

L4.2 (connect to stability certificate)

The value function with is also a Lyapunov function for the closed loop. Verify along using the CARE, and name what this proves.

Recall Solution

With , expand . Use CARE (): So , and it is whenever . This proves asymptotic stability of the closed loop — see Lyapunov Stability. The optimal cost-to-go is a ready-made Lyapunov function.

L4.3 (why controllability is required)

The parent lists controllable as a condition for a stabilizing LQR solution. Give a example where an uncontrollable, unstable mode makes LQR fail, and explain why.

Recall Solution

Take , . The controllability matrix is rank 1, so the system is uncontrollable (see Controllability and Observability). The mode with eigenvalue (first state) has no -coupling — control never touches . So grows unboundedly no matter what does. No can stabilize it; LQR's stabilizing solution does not exist. Fix requires: every unstable mode must be reachable from (that is exactly stabilizability).


Level 5 — Mastery

L5.1 (full design from scratch)

A reaction wheel drives an attitude angle: . Design an LQR with (penalize angle heavily, ignore rate), . Find , the closed-loop poles, and the settling behaviour.

Recall Solution

This is the double integrator with . Redo CARE with , :

  • Closed loop Numerically . , . Reading it: heavier (9 vs 1) pushed the poles further left ( up from 1 to ) — faster response, same damping. Exactly the " = aggressive" story from L3.

L5.2 (prove the closed loop is always stable in the scalar case)

Prove that for any real (including unstable ), the scalar LQR closed-loop pole is strictly negative, given .

Recall Solution

and , so Since , the radicand , so the whole expression is strictly negative for every . LQR always stabilizes a controllable () scalar plant.

L5.3 (synthesis with the estimator — pointer)

You can only measure position, not velocity. Explain in words how you still run this LQR, and name the combined design.

Recall Solution

Feed the measurement into a Kalman Filter to produce an estimate of the full state (position and velocity), then apply . The separation principle says you may design (LQR) and the estimator independently; the combination is LQG Control (Linear-Quadratic-Gaussian). The LQR gain from this page is used unchanged — you just feed it instead of .


Recall One-line recap of the whole page

Riccati ; = aggressive, = lazy, only ratio matters; the same is a PD controller (L4.1), a Lyapunov certificate (L4.2), and slots into LQG Control with an estimator (L5.3).