In algebraic topology, a k-chainis a formal linear combination of the k-cells in a cell complex. In simplicial complexes (respectively, cubical complexes), k-chains are combinations of k-simplices (respectively, k-cubes). Chains are used in homology; the elements of a homology group are equivalence classes of chains. In algebraic topology, a k-chainis a formal linear combination of the k-cells in a cell complex. In simplicial complexes (respectively, cubical complexes), k-chains are combinations of k-simplices (respectively, k-cubes). Chains are used in homology; the elements of a homology group are equivalence classes of chains. Integration is defined on chains by taking the linear combination of integrals over the simplices in the chain with coefficients (which are typically integers).The set of all k-chains forms a group and the sequence of these groups is called a chain complex. The boundary of a chain is the linear combination of boundaries of the simplices in the chain. The boundary of a k-chain is a (k−1)-chain. Note that the boundary of a simplex is not a simplex, but a chain with coefficients 1 or −1 – thus chains are the closure of simplices under the boundary operator. Example 1: The boundary of a path is the formal difference of its endpoints: it is a telescoping sum. To illustrate, if the 1-chain c = t 1 + t 2 + t 3 {displaystyle c=t_{1}+t_{2}+t_{3},} is a path from point v 1 {displaystyle v_{1},} to point v 4 {displaystyle v_{4},} , where t 1 = [ v 1 , v 2 ] {displaystyle t_{1}=,} , t 2 = [ v 2 , v 3 ] {displaystyle t_{2}=,} and t 3 = [ v 3 , v 4 ] {displaystyle t_{3}=,} are its constituent 1-simplices, then ∂ 1 c = ∂ 1 ( t 1 + t 2 + t 3 ) = ∂ 1 ( t 1 ) + ∂ 1 ( t 2 ) + ∂ 1 ( t 3 ) = ∂ 1 ( [ v 1 , v 2 ] ) + ∂ 1 ( [ v 2 , v 3 ] ) + ∂ 1 ( [ v 3 , v 4 ] ) = ( [ v 2 ] − [ v 1 ] ) + ( [ v 3 ] − [ v 2 ] ) + ( [ v 4 ] − [ v 3 ] ) = [ v 4 ] − [ v 1 ] . {displaystyle {egin{aligned}partial _{1}c&=partial _{1}(t_{1}+t_{2}+t_{3})\&=partial _{1}(t_{1})+partial _{1}(t_{2})+partial _{1}(t_{3})\&=partial _{1}()+partial _{1}()+partial _{1}()\&=(-)+(-)+(-)\&=-.end{aligned}}} Example 2: The boundary of the triangle is a formal sum of its edges with signs arranged to make the traversal of the boundary counterclockwise. A chain is called a cycle when its boundary is zero. A chain that is the boundary of another chain is called a boundary. Boundaries are cycles,so chains form a chain complex, whose homology groups (cycles modulo boundaries) are called simplicial homology groups. Example 3: A 0-cycle is a linear combination of points such that the sum of all the coefficients is 0. Thus, the 0-homology group measures the number of path connected components of the space. Example 4: The plane punctured at the origin has nontrivial 1-homology group since the unit circle is a cycle, but not a boundary.