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

# Localization of a module

For a multiplicative subset S of a commutative ring R, the localization S^{-1}M is the module obtained by making every element of S act invertibly.

Let \(R\) be a [commutative ring](https://knowlpedia.com/algebra-rings/commutative-ring/), let \(S\subseteq R\) be a [multiplicative set](https://knowlpedia.com/algebra-commutative/multiplicative-set/), and let \(M\) be an \(R\)-module. The **localization of \(M\) at \(S\)** is the \(S^{-1}R\)-module \(S^{-1}M\) of equivalence classes of pairs \(m,s\in M\times S\), with
\[
(m,s)\sim(m',s')\Longleftrightarrow\exists t\in S\text{ such that }t(s'm-sm')=0\text{ in }M.
\]
Write the class as \(m/s\). Addition and scalar action are
\[
\frac m s+\frac {m'}{s'}=\frac {s'm+sm'}{ss'},\qquad \left(\frac r s\right)\left(\frac m t\right)=\frac {rm}{st}.
\]
Every \(s\in S\) acts invertibly, and \(m\mapsto m/1\) is \(R\)-linear.

Here \(S^{-1}R\) is the [localized ring](https://knowlpedia.com/algebra-commutative/localization-ring/).

## Universal property

Let \(N\) be an \(S^{-1}R\)-module, regarded as an \(R\)-module through \(R\to S^{-1}R\). For every \(R\)-linear map \(f:M\to N\), there is a unique \(S^{-1}R\)-linear map \(\widetilde f:S^{-1}M\to N\) such that \(\widetilde f\circ\iota_M=f\).

Here \(\iota_M\colon M\to S^{-1}M\) is the map \(m\mapsto m/1\), and the triangle commutes:

```tikz-cd
M \arrow[r, "\iota_M"] \arrow[dr, "f"'] & S^{-1}M \arrow[d, dashed, "\exists!\,\widetilde f"] \\
& N
```

## Properties

Localizing at a prime \(\mathfrak p\) means taking \(S=R\setminus\mathfrak p\) and writing
\[
M_{\mathfrak p}:=(R\setminus\mathfrak p)^{-1}M,
\]
in parallel with [localization of rings at a prime](https://knowlpedia.com/algebra-commutative/localization-at-prime/).

Localization interacts well with exact sequences: it is an exact functor on modules (see [exactness of localization](https://knowlpedia.com/algebra-commutative/localization-exact/) and compare with the general notion of an [exact sequence](https://knowlpedia.com/algebra-modules/exact-sequence-modules/)).

Finally, localization can be expressed as a base change: via [extension of scalars](https://knowlpedia.com/algebra-commutative/extension-of-scalars/) there is a natural isomorphism
\[
S^{-1}M \cong (S^{-1}R)\otimes_R M.
\]

## Examples

1. **Localizing a quotient.** If \(I\subseteq R\) is an ideal, then
   \[
   S^{-1}(R/I)\ \cong\ (S^{-1}R)/(S^{-1}I),
   \]
   where \(S^{-1}I\) denotes the image of \(I\) in \(S^{-1}R\).

2. **Torsion killed by localization.** Take \(R=\mathbb Z\), \(M=\mathbb Z/n\mathbb Z\), and localize at \(S=\mathbb Z\setminus (p)\), so \(S^{-1}\mathbb Z=\mathbb Z_{(p)}\).
   - If \(p\nmid n\), then \(n\in S\) becomes a unit, so \(S^{-1}M=0\).
   - If \(p\mid n\), then \(S^{-1}M\cong \mathbb Z_{(p)}/n\mathbb Z_{(p)}\), which is generally nonzero.

3. **An annihilator made invertible.** Let \(R=k[x]\), \(M=R/(x)\), and \(S=\{1,x,x^2,\dots\}\). In \(S^{-1}R\), the element \(x\) is a unit, but \(x\) annihilates \(M\), so \(S^{-1}M=0\).
