We've seen how the notion of a ring acting on an abelian group leads to the structure of a module. Can a ring act on another ring? Or, to phrase the question a bit differently, if a ring acts on a module , is it possible for to have a second operation that's both compatible with the given -action and makes into a ring? These two questions lead to the following two equivalent definitions of a structure known as an algebra.
Rings have unity
Recall our standing assumption on rings, namely that all rings have a multiplicative identity ("unity") and that ring morphisms send unities to unities. In other words, our rings are always drawn from the category , of rings with unity together with unity-preserving ring morphisms.
Definition of an algebra (via modules)
Let be a commutative ring. An -algebra is an -module that is also equipped with a multiplication that makes into a ring, with the following compatibility property between the -action and the multiplication in :
for all and .
We can think of the above condition as the formalization of the idea that " can act before or after multiplication." In other words, given elements and , we can either multiply the elements in the algebra together first and then act by , or act by on one of the elements and then multiply the result by the other element.
In particular, notice that it looks symbolically like the element "commutes with" the elements of the algebra. This is not technically true, since the elements of the ring are not elements of the algebra , but it justifies the condition in the ring-focused definition, below.
Definition of an algebra (via rings)
Let be a commutative ring. An -algebra is a ring together with a ring morphism whose image is contained in the center of .
Let's quickly verify these two definitions are actually equivalent. First suppose is an -algebra in the first sense. For the sake of this analysis, let's use a to denote the action of an element on an element , and reserve a (or no notation at all) for a product of elements in . Then is a ring (with unity) and we can consider the map defined by . We claim this is a ring morphism whose image is in the center of . First note we certainly have , since part of the assumption of the -action on the module is that the identity element acts as the identity on . Next note that properties of the -action on the module guarantee that
Finally, observe that
So, our map really is a ring morphism. Moreover, for every the compatibility condition guarantees that for every we have
Thus, is in the center of .
Conversely, suppose is a ring morphism whose image is contained in the center of . Then is an abelian group (under its additive operation) and we can define a set map by . We claim this defines a left action of on . First note that
and
We also have
and
So, we have indeed defined a left action of on , giving the structure of an -module. We also have
and also (since the image of is in the center of )
Associative? Unital?
We assume rings have unity, which means we're assuming every algebra also has unity. There is an alternative definition without that assumption, which one would call a non-unital algebra.
There is also an alternative definition that results in a very similar structure to an algebra, with the notable exception that the multiplication in is not (assumed to be) associative. When the multiplication is not associative such a structure is called a non-associative algebra.
We will not worry about these slightly more general structures.
Examples
Every ring is a -algebra. For each ring , there is a unique ring morphism and the image of that ring morphism is always contained in the center of .
If is a commutative ring, then is itself an -algebra. More generally, if is a ring and is a subring of the center of , then is an -algebra.
The ring of matrices with entries in a commutative ring is an -algebra. The ring morphism sends each ring element to , the diagonal matrix with on the diagonal.
More generally, if is an -module then the endomorphism ring is an -algebra.
The field of complex numbers is a commutative -algebra, via the inclusion morphism .
The quaternions is an -algebra but not a -algebra, as the complex numbers are not in the center of the quaternions.
The polynomial ring is the free commutative -algebra on the set .
Note that in the above examples we often said things like "Every ring is a -algebra ... ", which is somewhat incorrect. We should really be careful to specify the categories in which we are working, saying things like "There is a functor with object function sending each ring to the -algebra defined by the unique ring morphism ." Can you figure out how to make each example above formally correct?
Morphisms of algebras
As might be expected, morphisms of -algebras should be maps that respect "the algebraic structures." From the ring-centric definition, that would mean:
Definition of an algebra morphism (via rings)
Suppose and are two -algebras. An -algebra morphism from to is a ring morphism such that for every and .
In other words, if and are the ring morphisms giving and their -actions, then we should have a commutative diagram
Definition of algebra morphism (via modules)
Suppose and are two -algebras. An -algebra morphism from to is an -module morphism that is also a ring morphism of and as rings. In other words, it is a set map satisfying the following properties:
for all
for all
for all and .
We can now form the category whose objects are -algebras and morphisms are morphisms of -algebras. Note that, by construction, we have forgetful functors both to the category of rings and to the category of -modules:
The forgetful functor to rings is not full (i.e., surjective on hom sets): for two -algebras and , there are ring morphisms that are not compatible with the given -actions (and hence are not of the form for some -algebra morphism ).
The same is true for the forgetful functor to -modules, for analogous reasons.
Category theoretic interpretation
Much like a ring is a monoid object in the category of abelian groups, an -algebra is a monoid object in the category of -modules. Since I haven't (yet) typed up any notes on monoidal categories and monoid objects, I won't say any more here.