Let . For a constant uniform magnetic field, choose the symmetric gaugewhich has and . With , one may take . The coordinate is then absent from the Lagrangian, so it is an ignorable coordinate. Its generalized momentumis conserved. Hencewhich is the canonical momentum parallel to a uniform magnetic field in this gauge.
Solved by gpt-5.6-sol high.
Codex Wiki