Canonical: https://knowlpedia.com/algebra-commutative/localization-ring/

# Localization of a ring

The universal ring in which every element of a multiplicative subset becomes invertible.

Let \(R\) be a [commutative ring](https://knowlpedia.com/algebra-rings/commutative-ring/) and \(S\subseteq R\) a [multiplicative set](https://knowlpedia.com/algebra-commutative/multiplicative-set/). A **localization of \(R\) at \(S\)** is a commutative ring \(S^{-1}R\) with a homomorphism
\[
\iota:R\longrightarrow S^{-1}R
\]
such that every \(\iota(s)\), for \(s\in S\), is a unit and the following universal property holds: if \(\varphi:R\to A\) sends every element of \(S\) to a unit of a commutative ring \(A\), there is a unique homomorphism \(\widetilde\varphi:S^{-1}R\to A\) satisfying \(\widetilde\varphi\circ\iota=\varphi\).

As a diagram, the triangle commutes:

```tikz-cd
R \arrow[r, "\iota"] \arrow[dr, "\varphi"'] & S^{-1}R \arrow[d, dashed, "\exists!\,\widetilde\varphi"] \\
& A
```

## Construction by fractions

As a set, \(S^{-1}R\) can be constructed from pairs \((r,s)\in R\times S\) modulo the equivalence relation
\[
(r,s)\sim (r',s') \quad \Longleftrightarrow \quad \exists\,t\in S\text{ such that } t(rs'-r's)=0 \text{ in }R.
\]
Write the class of \((r,s)\) as \(\frac{r}{s}\). Addition and multiplication are defined by
\[
\frac{r}{s}+\frac{r'}{s'}=\frac{rs'+r's}{ss'},\qquad
\frac{r}{s}\cdot\frac{r'}{s'}=\frac{rr'}{ss'}.
\]
The canonical map is \(\iota(r)=\frac{r}{1}\).

If \(0\in S\), then \(S^{-1}R\) is the zero ring.

## Universal map

The homomorphism supplied by the universal property is explicitly
\[
\widetilde\varphi\!\left(\frac{r}{s}\right)=\varphi(r)\,\varphi(s)^{-1}.
\]

This same “invert \(S\)” construction for modules is treated in [localization of a module](https://knowlpedia.com/algebra-commutative/localization-module/).

A basic structural fact is that primes of \(S^{-1}R\) correspond to primes of \(R\) disjoint from \(S\); see [prime correspondence under localization](https://knowlpedia.com/algebra-commutative/localization-prime-correspondence/).

## Examples

1. **Inverting a prime number.** Take \(R=\mathbb Z\) and \(S=\{1,p,p^2,\dots\}\). Then
   \[
   S^{-1}\mathbb Z \cong \mathbb Z\!\left[\frac{1}{p}\right]
   =\left\{\frac{a}{p^n}:a\in\mathbb Z,\ n\ge 0\right\}\subseteq\mathbb Q.
   \]

2. **Laurent polynomials.** If \(R=k[x]\) and \(S=\{1,x,x^2,\dots\}\), then
   \[
   S^{-1}R \cong k[x,x^{-1}],
   \]
   since \(x\) becomes invertible.

3. **Localizing at a prime ideal.** If \(\mathfrak p\subset R\) is prime and \(S=R\setminus\mathfrak p\), then \(S^{-1}R\) is the [localization at the prime](https://knowlpedia.com/algebra-commutative/localization-at-prime/) \(R_{\mathfrak p}\), which is a [local ring](https://knowlpedia.com/algebra-commutative/local-ring/).
