Exercises — Optimal guidance — ZEM - ZEV formulation
Before we start, one shared cheat-sheet so no symbol appears un-earned.
Here "coast" means: switch the engine off, let only the known gravity act. Everything below is arithmetic on those four boxes plus the double-integrator model .
Level 1 — Recognition
L1.1 — Read off time-to-go and coast position
A vehicle at s must reach its target at s. Right now m, m/s, and m/s² (Earth, straight down). Find and the coast position (where you'd land with thrust off).
Recall Solution
WHAT: is just remaining time. WHY: every formula uses it, so compute it first. Check the domain rule: , so the law is well-defined. Coast position — put in , , , : The negative number means: coast unpowered and you crash 1053.6 m below the target level — gravity dragged you way past. That is exactly the kind of error ZEM will measure.
L1.2 — Which law?
For each mission, say whether you use the soft law or the intercept law: (a) a missile hitting an aircraft, (b) a Moon lander touching down at zero speed, (c) docking with a station, (d) a shell trying only to reach a map coordinate.
Recall Solution
The rule: do you care about the final velocity? If yes → soft law (both terms). If you only care about being there → intercept law. (a) intercept () — just hit. (b) soft — must arrive at zero speed. (c) soft — must match the station's velocity, see Powered Descent Guidance (Apollo E-Guidance) for the same idea in landing. (d) intercept.
Level 2 — Application
L2.1 — Full 1-D soft-landing command
A Mars lander: altitude m, velocity m/s (down), target , , m/s², s. Compute ZEM, ZEV, and the commanded acceleration .
Recall Solution
Step 1 — ZEM (where would we land coasting?). Why first: the command needs it. Step 2 — ZEV (how wrong would our speed be?). Step 3 — Command (apply the soft law). This is the acceleration above gravity (gravity is already inside ZEM/ZEV). The upward braking thrust must supply plus fight gravity.
L2.2 — 2-D intercept command
An interceptor computes m with s. Find and its magnitude.
Recall Solution
Position-only (intercept) law — why: we only want to hit. Magnitude: This law is Proportional Navigation with navigation ratio — same physics, ZEM-flavoured.
Level 3 — Analysis
L3.1 — Sign of the ZEV term
In L2.1 the ZEM term gave and the ZEV term gave . Explain why the ZEV term subtracts, and what would happen physically if you (wrongly) added it. Recompute with a sign and interpret.
Recall Solution
Why it subtracts: ZEM says "you'll overshoot upward-of-target by 238.7 m worth of coast error, so push to cut that," while ZEV says "you'll arrive 69.7 m/s too fast, so you must brake — i.e. accelerate the opposite way to the position push near the end." The Lagrange solution (Step 4 of the parent derivation) encodes this as opposite signs. Wrong () version: That is about 8× the correct command . Physically you'd be adding braking-hunger to position-hunger, over-decelerate, stop short and high, then fall — a failed landing. The minus sign is what makes "arrive gently" different from "arrive hard."
L3.2 — The blow-up
For the soft law, treat and as fixed small residuals m, m/s. Tabulate at s. What does this show about when you must kill the errors?
Recall Solution
| (s) | (m/s²) | ||
|---|---|---|---|
| 5 | 0.24 | 0.20 | 0.04 |
| 1 | 6 | 1 | 5 |
| 0.5 | 24 | 2 | 22 |
| 0.1 | 600 | 10 | 590 |
As the term dominates and explodes. Lesson: a residual that is harmless at demands a monstrous, thruster-saturating command at . So you must drive ZEM/ZEV to zero while is still large — which is exactly why ZEM/ZEV is run as continuous feedback.
Read the figure below like this: the magenta curve is ; the four violet dots are the table rows. Sweep your eye right to left (that is the direction time actually runs). Notice the curve is nearly flat and tiny for , then hooks sharply upward as it approaches the left axis — the orange arrow marks that blow-up. The message is visual: all the danger lives in the last fraction of a second, where a saturation ceiling (a horizontal cap you can imagine drawn across the top) would be smashed through.

Level 4 — Synthesis
L4.1 — Forecast then verify (intercept self-shrinking)
An interceptor is on a perfect collision course. At s its m. Forecast: if it is truly on track, should at s be larger or smaller? Verify by assuming the residual scales like the ideal on-track relation (which holds when the applied command exactly equals and no new disturbance appears), and recompute at .
Recall Solution
Forecast: on track, closing the gap, ZEM should shrink. Guess: smaller. Verify: with , halving from 6 to 3 quarters ZEM: New command: Interpretation: the command magnitude is the same as it was at (there too). On an ideal course ZEM/ZEV self-consistently keeps the command constant and bounded — no blow-up. The shrink in ZEM exactly cancels the growth in the coefficient. This is the healthy counterpart to L3.2.
L4.2 — Combine gravity + full vector soft law
A lunar lander, all in one horizontal-vertical frame: m, m/s, target , , m/s², s. Compute the full 2-D command .
Recall Solution
Work each axis; gravity only acts on . ZEM:
- : m.
- : m.
- m.
ZEV:
- : m/s.
- : m/s.
- m/s.
Command with , :
- : m/s².
- : m/s².
- The -command is negative — it brakes the sideways drift so we don't land off-pad; the -command is a mild upward push, softened (as always) by the subtracted ZEV term.
Read the figure below like this: the navy dot is where we are now, ; the orange star is the target at the origin. The magenta arrow is the ZEM vector — it points from the coasting-landing spot (magenta dot, down-and-left) back up to the target, showing the miss we must erase. The violet arrow at our current position is the command (drawn scaled-up so it is visible). Look at its direction: it tilts up-and-to-the-left — the leftward tilt is the -brake killing the m/s sideways drift, exactly the sign we computed.

Level 5 — Mastery
L5.1 — Re-derive the interception coefficient
Starting from the two moment equations (with constant and ), derive the position-only command . (For intercept there is no velocity constraint, so set the ZEV equation aside and instead require the effort-minimizing profile to have , i.e. the affine control is purely .) The command applied now is .
Recall Solution
WHY : with only one constraint (ZEM), you only need one price — one multiplier. The velocity constraint that produced is dropped, so the optimal control from Calculus of Variations & Pontryagin's Minimum Principle is . Use the ZEM moment equation with : Command now (): That is the navigation ratio of PN — earned, not memorised.
L5.2 — Solve the full for the soft coefficients
Solve the same two moment equations with both kept, then form and confirm you get .
Recall Solution
Each axis is identical, so drop the bold and treat as scalars. Let for brevity. The two moment equations are
Step A — isolate from the simpler (second) equation. Why this one: it is linear in with the smallest powers, so solving it for costs least algebra.
Step B — substitute into the first equation. Why: this eliminates and leaves one equation in the single unknown . Expand the bracket term by term: and So
Step C — group the terms. Why: collecting like terms lets us read off . Combine the fractions with common denominator :
Step D — clear the denominator to get . Why: multiply both sides by to leave alone.
Step E — back-substitute to get . Why: Step A already gave in terms of ; plug the result in.
Step F — form the command applied now, . Why: the control profile is , and "now" means . Group the terms: Group the terms: Therefore There it is: the , the , and the crucial minus sign — all falling straight out of the two-price Lagrange solution.
Recall Self-test cloze
The intercept law coefficient is ::: (navigation ratio ) The soft law subtracts the ZEV term with coefficient ::: As with fixed residuals, the command ::: blows up like , so kill errors early On an ideal intercept course ZEM scales like ::: , keeping the command bounded Gravity enters ZEM as ::: and ZEV as The law is only valid for ::: ; at freeze the command or re-plan, and always clip to