Mapping cone (homological algebra)
In homological algebra, the mapping cone is a construction on a map of chain complexes inspired by the analogous construction in topology. In the theory of triangulated categories it is a kind of combined kernel and cokernel: if the chain complexes take their terms in an abelian category, so that we can talk about cohomology, then the cone of a map f being acyclic means that the map is a quasi-isomorphism; if we pass to the derived category of complexes, this means that f is an isomorphism there, which recalls the familiar property of maps of groups, modules over a ring, or elements of an arbitrary abelian category that if the kernel and cokernel both vanish, then the map is an isomorphism. If we are working in a t-category, then in fact the cone furnishes both the kernel and cokernel of maps between objects of its core. Definition
The cone may be defined in the category of cochain complexes over any additive category (i.e., a category whose morphisms form abelian groups and in which we may construct a direct sum of any two objects). Let  be two complexes, with differentials  i.e.,

and likewise for 

For a map of complexes  we define the cone, often denoted by  or  to be the following complex:
 on terms,
with differential
 (acting as though on column vectors). Here  is the complex with  and . Note that the differential on  is different from the natural differential on , and that some authors use a different sign convention. Thus, if for example our complexes are of abelian groups, the differential would act as

Properties
Suppose now that we are working over an abelian category, so that the homology of a complex is defined. The main use of the cone is to identify quasi-isomorphisms: if the cone is acyclic, then the map is a quasi-isomorphism. To see this, we use the existence of a triangle

where the maps  are given by the direct summands (see Homotopy category of chain complexes). Since this is a triangle, it gives rise to a long exact sequence on homology groups:

and if  is acyclic then by definition, the outer terms above are zero. Since the sequence is exact, this means that  induces an isomorphism on all homology groups, and hence (again by definition) is a quasi-isomorphism. This fact recalls the usual alternative characterization of isomorphisms in an abelian category as those maps whose kernel and cokernel both vanish. This appearance of a cone as a combined kernel and cokernel is not accidental; in fact, under certain circumstances the cone literally embodies both. Say for example that we are working over an abelian category and  have only one nonzero term in degree 0:

and therefore  is just  (as a map of objects of the underlying abelian category). Then the cone is just

(Underset text indicates the degree of each term.) The homology of this complex is then

This is not an accident and in fact occurs in every t-category. Mapping cylinder
A related notion is the mapping cylinder: let  be a morphism of chain complexes, let further  be the natural map. The mapping cylinder of f is by definition the mapping cone of g.

Topological inspiration
This complex is called the cone in analogy to the mapping cone (topology) of a continuous map of topological spaces : the complex of singular chains of the topological cone  is homotopy equivalent to the cone (in the chain-complex-sense) of the induced map of singular chains of X to Y. The mapping cylinder of a map of complexes is similarly related to the mapping cylinder of continuous maps. References
 
 
 Joeseph J. Rotman, An Introduction to Algebraic Topology (1988) Springer-Verlag  (See chapter 9)

Homological algebra