The exterior algebra of a vector space is , whose degree- elements are alternating -linear forms. Its exterior product satisfies for degrees . For example, one-forms anticommute, so . A differential form of degree on a smooth manifold is a smooth section of ; in coordinates it is an alternating sum of products of coordinate one-forms. Its exterior derivative increases degree by one, satisfies , and obeys
The coordinate definition and pullback of a differential form are compatible, making differential forms suitable for coordinate-independent integration.
An orientation and a nondegenerate metric tensor define the Hodge star operator by for equal-degree forms. It maps degree to degree . If the metric has negative directions, its square is . Thus Hodge duality turns antisymmetric tensors into complementary-degree tensors, using the metric and orientation rather than merely the underlying vector space. The Generalized Stokes theorem says , with the induced boundary orientation, for appropriate smooth forms and compactness or support assumptions. It generalizes the fundamental theorem of calculus, circulation version of Stokes theorem, and divergence theorem.
For the field calculation, choose signature and a fixed orientation on Minkowski spacetime. Write , so . Symmetry of the metric pairing and the Hodge star operator gives . Applying the exterior derivative product rule,
Since , variation of the action is
Fix the boundary data or use compactly supported variations. Arbitrary interior one-forms then imply the bulk field equation
With , the Lorentzian Hodge star operator squares to on both one- and two-forms, hence . Thus the Maxwell–Chern–Simons one-form equation becomes
These two displayed equations are equivalent. Also gives . For the latter follows from applying to the field equation; for it must be retained as the identity inherited from . Using the opposite metric-sign convention changes the corresponding sign; the signature-independent equation is .
Under the Abelian gauge transformation , the curvature and the one-form are unchanged because . The field equation is therefore exactly gauge-invariant. The kinetic term is unchanged, while the other term changes by
The last equality uses and the Generalized Stokes theorem. Thus the action density changes by a total derivative and the integrated action can change on a boundary. The source's statement that the action is not invariant needs this qualification: on a boundaryless spacetime, or when the boundary integral vanishes, the integrated action is invariant too. No such boundary restriction is needed for invariance of the bulk field equation.