For the graph embedding , pull back the symplectic form in Darboux coordinates:
The coordinate two-forms are linearly independent. The graph has dimension , so it is a Lagrangian submanifold exactly when this pullback vanishes, equivalently when its displayed coefficient matrix is symmetric.
Let . Then , so the same condition says that is a closed differential form. On a sufficiently small contractible coordinate neighborhood the Poincaré lemma supplies with . Consequently
One explicit primitive on a star-shaped neighborhood of is . Differentiate it and use to recognize the derivative of ; the result is . Conversely has symmetric mixed derivatives and gives a Lagrangian graph. This construction requires the local projection to the coordinates to be nonsingular. A general Lagrangian submanifold need not be such a graph in a preassigned chart, and a closed one-form on a larger domain need not be globally exact.