Let R be a commutative ring. A subset S⊆R is a multiplicative set if
1∈S, and
whenever s,t∈S, then st∈S.
Often one also assumes 0∈/S when the goal is to form the localization of a ringS−1R; if 0∈S, then 0 becomes invertible in S−1R, forcing 1=0 and hence S−1R is the zero ring.
A key source of multiplicative sets is complements of primes: if p⊂R is prime, then R∖p is multiplicative, and this choice produces the localization at a prime.
Examples
Powers of an element. For f∈R, the set
S={1,f,f2,f3,…}
is multiplicative. (If f is nilpotent, then 0∈S and the corresponding localization collapses to the zero ring.)
Complement of a prime ideal. If p is a prime ideal of R, then
S=R∖p
is multiplicative (primality ensures st∈/p whenever s,t∈/p). Localizing at this S gives Rp.
Inverting a prime number in Z. In R=Z, the subset S={1,p,p2,…} (for a prime p) is multiplicative. The localization S−1Z is the subring of Q consisting of fractions whose denominator is a power of p.
As a set, S−1R can be constructed from pairs (r,s)∈R×S modulo the equivalence relation
(r,s)∼(r′,s′)⟺∃t∈S such that t(rs′−r′s)=0 in R.
Write the class of (r,s) as sr. Addition and multiplication are defined by
sr+s′r′=ss′rs′+r′s,sr⋅s′r′=ss′rr′.
The canonical map is ι(r)=1r.
If 0∈S, then ι(0) is invertible, hence 1=0 in S−1R; in this case S−1R is the zero ring.
Universal property
The localization is characterized by the following universal mapping property:
If A is any commutative ring and φ:R→A is a ring homomorphism such that φ(s) is a unit of A for every s∈S, then there exists a unique ring homomorphism φ:S−1R→A with φ∘ι=φ. Explicitly,
A commutative ringR is a local ring if it has a unique maximal ideal. One often records this ideal and writes (R,m), where m is the unique maximal ideal.
For a commutative ring R, the following are equivalent:
R is local (i.e. it has a unique maximal ideal).
The set of nonunits in R is an ideal; this ideal is then the unique maximal ideal.
Whenever a+b=1 in R, at least one of a or b is a unit.
Local rings arise systematically from localization: if p is a prime ideal of R, then localizing at the prime produces the local ring Rp.
Many foundational results in commutative algebra are naturally stated for local rings; for instance, Nakayama's lemma is formulated for finitely generated modules over a local ring.
Examples
Fields. Any fieldk is local: its only maximal ideal is (0).
Localizing Z at a prime. For a prime number p, the ring Z(p) from localization at (p) is local, with maximal ideal pZ(p).
Localizing a polynomial ring at a maximal ideal. If k is a field, then k[x](x) is local with maximal ideal generated by x. More generally, k[x,y](x,y) is local with maximal ideal (x,y).
Let R be a commutative ring. A prime ideal of R is a proper ideal p⊊R such that whenever ab∈p (with a,b∈R), then a∈p or b∈p.
The prime spectrum of R is the set
Spec(R):={p⊂R∣p is a prime ideal}.
An element p∈Spec(R) is called a point of Spec(R).
In commutative algebra one usually studies Spec(R) together with the Zariski topology; this turns Spec(R) into a topological space whose basic opens are closely related to localizations. For a point p∈Spec(R), the associated local data are the localization Rp and its residue field κ(p).
Examples
A field has a one-point spectrum. If k is a field, the only prime ideal is (0), so Spec(k)={(0)}.
The spectrum of the integers. In R=Z, the prime ideals are (0) and (p) for primes p. Thus
Spec(Z)={(0)}∪{(p)∣pprime}.
Under the Zariski topology, the point (0) is a generic point whose closure is all of Spec(Z).
The spectrum of a polynomial ring in one variable. Let k be a field and R=k[x]. Then (0) is prime, and every nonzero prime ideal is generated by an irreducible polynomial. So
Spec(k[x])={(0)}∪{(f)∣f∈k[x]irreducible}.
If k is algebraically closed, the maximal ideals are precisely (x−a), and MaxSpec(k[x]) can be identified with the affine line over k.