General formula. Let ri=rank∂i, with r0=rm+1=0.
Rank–nullity for ∂i:Ci→Ci−1 gives dimker∂i=ni−ri, and
bi=dimker∂i−dimim∂i+1=ni−ri−ri+1. Hence
i∑(−1)ibi=i∑(−1)ini−i∑(−1)iri−i∑(−1)iri+1.
Reindexing the last sum, ∑i(−1)iri+1=−∑j(−1)jrj (the boundary terms
r0 and rm+1 vanish), so the two rank sums cancel.
Degree 0 and degree 2 for a connected surface. ∂1 maps an edge to the sum of
its endpoints, so im∂1 lies in the even-weight subspace of
F2V, which has dimension ∣V∣−1; conversely, because the graph of a
cellulation of a connected surface is connected, the sum of any two vertices is the
boundary of a path between them, and these sums span the even-weight subspace. So
b0=∣V∣−(∣V∣−1)=1. For b2=dimker∂2: a set S of faces has
∂2S=0 exactly when every edge has both sides in S or both outside S
(an edge with the same face on both sides contributes nothing either way). Two faces
adjacent across an edge are therefore both in or both out, and since the faces of a
connected surface are linked by such adjacencies, ker∂2={0,F}, where the
set of all faces F is a cycle because each edge borders it twice. So b2=1.
Substituting into the general formula with m=2 gives
∣V∣−∣E∣+∣F∣=2−b1. The values χ=2−2g and χ=2−h for the
standard surfaces with g,h≥1 are computed from any one cellulation (for example a 4g-gon or
2h-gon with identified sides, which has one face, 2g or h edges and one vertex),
and independence of the cellulation is the topological invariance of homology
(Munkres).