Phase-space action (source code)

= Phase-space action
{title2=$I=\int dt\,(p_I\dot q^I-H)$}

A phase-space <action> treats <canonical variables> as independent fields. Varying them gives <Hamilton's equations>; <Lagrange multipliers> can impose constraints.