Cokernel Created 2026-09-29 Updated 2026-10-14
The cokernel records output information that a linear map cannot produce. For , it is the quotient vector spaceIts elements are cosets . Two vectors represent the same class exactly when is in the image of a linear map. The zero class is the whole image of a linear map, soChanging by an attainable output does not change its obstruction. This is useful because one can test compatibility before trying to find an input. The quotient vector space construction is described in Axler's §3E. [ref]
Linear Algebra Done Right by Sheldon Axler (4th edition). Sheldon Axler, Linear Algebra Done Right, fourth edition, §3E: quotient spaces
For the linear map given by , the image of a linear map is the horizontal line. All outputs with the same second coordinate have the same cokernel class, because their difference is horizontal. Thus this cokernel is isomorphic to via . In particular, has zero class and is attainable, while has nonzero class and is unattainable.
If is finite-dimensional, the dimension rule for a quotient vector space givesCompare this with the rank-nullity theorem, . The kernel counts invisible inputs; the cokernel counts missing output directions. They need not have the same dimension: has a two-dimensional kernel and a one-dimensional cokernel. A linear map is surjective exactly when its cokernel is zero.
The cokernel is a quotient, rather than a chosen perpendicular vector subspace. With a finite-dimensional inner product space as output, one may represent each class by its unique component in the orthogonal complement of the image of a linear map. That representation depends on the chosen inner product. For matrices over the complex numbers, this complement is , leading to the cokernel compatibility equations.
The same quotient definition applies to a group homomorphism of abelian groups. For given by , the cokernel is . The equation is solvable exactly when is an even integer; the two cosets record integer parity. A quotient captures the obstruction here just as it captures a missing output coordinate for a linear map.
