A Morse function is a smooth real-valued function all of whose critical points have nonsingular Hessian matrices. We use the descending convention for a gradient-like vector field : away from critical points, , and near a critical point of Morse index , in Morse lemma coordinates , the field can be chosen as .
For its flow , define the unstable manifold and the stable manifold . Their dimensions are and . The Morse-Smale transversality condition is
For a closed manifold, this lets us form the Morse-Smale complex over . Orient each unstable manifold and take
The transverse intersection for an index difference of one is one-dimensional; quotienting by flow time gives a finite set of trajectories, and counts them with orientation signs. Compactifying the one-dimensional spaces of trajectories for an index difference of two adds broken trajectories. Their oriented boundary count is zero, giving . The descending cells are the unstable manifolds, and these counts are the incidence numbers of the corresponding cellular chain complex, so the homology of this complex is . Ambient orientability is unnecessary: orientations of the unstable cells provide the requisite coorientations and trajectory signs.
For the Klein bottle, use the quotient of by and . A model of the standard four-critical-point height function is
It is well defined under both identifications. Its critical points, their Morse indices, and critical values are
The Hessian matrix is diagonal with entries and , so each point is nondegenerate. The flat quotient metric gives descending equations , . Their saddle separatrices are the coordinate lines; the two saddle-to-saddle intersections are empty, and all remaining stable and unstable intersections are transverse. This is a Morse-Smale gradient flow. If one insists on the exact local-model version of a gradient-like vector field above, change the two coordinate speeds near the critical points to the standard quadratic-model speeds. This preserves the separatrices, signs and transversality.
Both branches of either saddle flow to the minimum with opposite endpoint signs, so . From the maximum to , the two trajectories lie on and approach from opposite directions. The identification in is a translation, so their incidence signs are opposite and cancel. The two trajectories to lie on and approach from opposite directions. The identification in reverses the transverse -coordinate, reversing one additional orientation sign. These two contributions consequently have the same sign. Choosing the orientation of gives .
One can check the coefficient directly from the cell attachment of the top cell: its boundary word is , with exponent sums zero on the base loop and two on the fiber loop . Thus the integral Morse complex of the Klein bottle is
and
Counting trajectories without signs, or working only modulo two, would miss the order-two class.