The pair of pants is the compact genus-zero surface with boundary having three boundary components. It is obtained from the sphere by deleting the interiors of three disjoint discs and is homotopy equivalent to a wedge of two circles.
Let be the surface with boundary obtained by deleting the interiors of the disks. By excision,
so and the other relative groups vanish. In the long exact sequence in relative homology, the map
sends an orientation class to , up to an overall choice of sign. It is therefore injective and has cokernel . Exactness gives and a short exact sequence
This sequence splits because its right-hand group is a free abelian group. Since is connected, we obtain