Kernel (algebra)
For other uses, see Kernel. In algebra, the kernel of a homomorphism is the relation that describes how elements in the domain of the homomorphism become related in the image. A homomorphism is a function that carries the underlying algebraic structure of its domain over to its image.
When the structures have an underlying group structure, the kernel is the preimage of the group's identity element in the image. In other words, it is the set of elements in the domain that map to the identity of the image. For example, a map that sends each integer to its parity, which is 0 if the number is even and 1 if it is odd, is a homomorphism to the integers modulo 2. Its kernel is the set of even integers, since they all have parity 0.
The kernel of a homomorphism between group-like structures is a set containing only the identity exactly when the homomorphism is injective. This means that every element has a inverse image made of a single element. So the kernel can be seen as a measure of how much the homomorphism fails to be injective.
For some structures, such as abelian groups and vector spaces, the possible kernels are exactly the substructures of the same type. This is not always true. Some kernels have special names, such as normal subgroups for groups and two-sided ideals for rings. The idea of a kernel has also been extended to structures where looking at the inverse image of a single element is not enough to tell whether a homomorphism is injective. In these cases, the kernel is a congruence relation.
Kernels make it possible to define quotient objects, which are also called quotient algebras in universal algebra. For many types of algebraic structure, the fundamental theorem on homomorphisms, also known as the first isomorphism theorem, states that the image of a homomorphism is isomorphic to the quotient by the kernel.
Definition
A kernel is the set of elements in the starting group that a group homomorphism sends to the identity element of the other group. Groups use a binary operation that is associative, has an identity, and has inverses. The kernel of a group homomorphism is always a normal subgroup, so it can form a quotient group, which matches the image of the function by the first isomorphism theorem. For a ring with identity, which follows distributive rules, a ring homomorphism sends elements to the zero ideal. Its kernel is usually not a subring, but it is a rng and forms a quotient ring. A ring is commutative when multiplication works in any order, and it is a field when every nonzero element has a multiplicative inverse. The homomorphism is injective when its kernel holds only the zero element, which is always true for a field unless the target is the zero ring.
Main article: Kernel (linear algebra)
For a linear map between vector spaces over a field, which uses scalar multiplication, the kernel is the preimage of the zero subspace. It is the subset of elements sent to the zero vector. This kernel is always a linear subspace, and it forms a quotient space that is naturally isomorphic to the image. The dimension of the starting space equals the dimension of the kernel plus the dimension of the image. For a module homomorphism between modules over a ring, the kernel is a submodule that always contains zero. Kernels of abelian groups can be seen as module kernels when the ring is the integers.
Examples
Here are some examples of kernels. Take the cyclic group with six elements {0,1,2,3,4,5}, using modular addition, and map each element to its remainder after dividing by 2. The elements 0, 2 and 4 all map to 0, so they form the kernel. A mapping that is an isomorphism has a kernel with only the identity element, while a mapping into a trivial group has the whole group as its kernel. Other examples include the Quaternion group and the Klein 4-group, where the kernel is {±1}, and the circle group, made of all complex numbers with absolute value (or modulus) equal to 1, where the kernel is the integers. In the symmetric group, each permutation maps to whether it has an even or odd number of swaps, and the kernel is the alternating group, the even permutations. This alternating group is a non-abelian simple group for n≥5. The determinant of invertible matrices made from real numbers, in the general linear group, has a kernel called the special linear group, made of matrices whose determinant is exactly 1. Mapping each element to its inner automorphism gives a kernel called the center. For a normal subgroup, the kernel is the centralizer.
Ring examples work in a similar way. Mapping each integer to its parity, 0 for even and 1 for odd, has the even numbers as its kernel. Mapping each polynomial to its constant term has as its kernel the polynomials whose constant term is 0, and this happens if and only if the constant term is 0. For linear maps, the kernel is always a subspace. For example, the derivative operator on polynomials has as its kernel the constant functions, since their derivative is 0. Multiplying a polynomial by x squared has a kernel containing only the zero polynomial.
Quotient algebras
The kernel of a homomorphism can be used to build a quotient algebra. Take two groups, G and H, and a group homomorphism φ from G to H. The kernel K is the set of elements that φ sends to the identity element. The set G/K is made of fibers, where each fiber is the group of points in G that map to the same point in H. These fibers can be combined with a group operation, and the result is called the quotient group (or factor group), read as "G modulo K." The name comes from the kernel being the fiber of the identity element, while the other fibers are like shifted copies of the kernel, so the quotient group is found by "dividing out" the kernel.
The fibers can also be described using the kernel. Each fiber is a set called a left and right coset of K, and these can be defined for any subgroup of G. Using these cosets, the group operation still works no matter which element of each fiber is chosen. The first isomorphism theorem says there is a matching between the quotient group and the image of φ. For rings, modules, and vector spaces, quotient algebras are built the same way, using their addition structure, and multiplication works on the quotient in a similar way. This also applies to a field when working with vector spaces.
Kernel structures
Kernels can help build new mathematical structures called quotient algebras. For a group G and a smaller group N inside it, we can make a new group G/N by sorting the elements of G into cosets of N. This only works well when N stays the same under conjugation by any element of G. Subgroups with this property are called normal subgroups. Every kernel of a group is a normal subgroup, and every normal subgroup is a kernel of some function.
For a ring R, we can treat it as a group and make a quotient group using any subgroup I of the ring. This group is normal because the ring's addition is abelian. To multiply the groups' pieces in a fair way, I must be closed under multiplication by any element of the ring. A subgroup with this property is called an ideal. Just like normal subgroups, the ideals of a ring are exactly the kernels of certain functions.
Exact sequence
Main article: Exact sequence
Kernels are used to define exact sequences for groups and modules. Two maps in a row are called exact in the middle when the part of the first space that the first map reaches is the same as the part the second map sends to zero. An exact sequence is a chain of modules and maps where every neighboring pair of maps is exact.
Exact sequences can show whether a map is one-to-one (injective), onto (surjective), or both (an isomorphism). A special kind is a short exact sequence, written as 0→A→B→C→0. These are linked to the extension problem, which asks for the modules B where A fits inside B and the leftover part is C.
Universal algebra
Kernels can also be used in universal algebra, which studies homomorphisms between any two algebraic structures. An operation takes a list of elements from a set and gives back one element of that set. The number of elements it takes is its arity. A homomorphism is a function that respects the operations of both structures, so applying an operation and then the function gives the same result as applying the function first and then the operation.
The kernel of a homomorphism f is the set of all ordered pairs of elements from A that f sends to the same element in B. It is a subset of the direct product A×A. The kernel is an equivalence relation and a congruence relation, which means it works well with the operations. Because of this, we can form a quotient algebra made of the equivalence classes of the kernel. The first isomorphism theorem states that this quotient algebra has essentially the same structure as the image of f, which is a subalgebra of B.
Category theory
Main article: Kernel (category theory)
Further information: Abelian category
Kernels can be generalized in categories that have zero objects. The kernel of a morphism is a morphism that is universal with respect to the property that composing it with the original morphism gives the zero morphism. The kernel is the limit of a certain diagram. Reversing the directions gives the cokernel, and the image (category theory) is defined using the kernel and cokernel. These ideas lead to the definition of an abelian category, which is an additive category that has products and where every monomorphism and epimorphism behaves in a matching way with kernels and cokernels.
Main article: Equalizer (mathematics) § In category theory
Kernels can also be generalized by an equalizer, which is a special object and morphism that match two morphisms in a universal way. For abelian groups, the kernel of a homomorphism is an equalizer between that homomorphism and the zero homomorphism. The kernel pair of a morphism is the pullback of that morphism paired with itself.
See also: Regular category
Functors between categories can also have a kernel, which is described using a congruence on the category. A functor gives a congruence when two morphisms share the same domain and codomain and the functor maps them to the same result.

Quiz time!
5 questions about Kernel (algebra)
Which integers make up the kernel of the parity map, which sends each integer to 0 if it is even and 1 if it is odd?
Keep exploring
This article is a child-friendly adaptation of the Wikipedia article on Kernel (algebra), available under CC BY-SA 4.0.
Images from Wikimedia Commons. Tap any image to view credits and license.