We now hold the two great methods of optimal control: Pontryagin's
Seeing PMP and HJB laid out side by side — ODEs versus a PDE, necessary versus sufficient, open-loop versus feedback — it is tempting to read them as competing theories, as though you had to pick which one is "right" and might get a different optimal answer depending on which you trust. That is not what is going on. For well-behaved problems the two are provably consistent: the bridge derived below shows the PMP costate is exactly the gradient of the HJB value function along the optimal path, so a trajectory that solves one correctly solves the other. Choosing between them is a computational decision — which machinery is tractable for this problem's size and structure — never a question of which method is more correct.
The claim is that, evaluated along the optimal trajectory, the maximum principle's costate is exactly the gradient of the HJB value function. Let us define it that way and watch the costate equation fall out of HJB.
Step 1 — define the costate as the value gradient. Along the optimal path
Step 2 — differentiate it in time. By the chain rule, with
where
Step 3 — differentiate HJB in
Step 4 — use
Step 5 — combine. Substitute
This is precisely the costate equation of the maximum principle. Pontryagin's
adjoint dynamics are HJB differentiated along the optimal path — the costate
Because they compute different things, the choice is practical, not philosophical.
Take the worked HJB example again:
Think of