Canonical: https://knowlpedia.com/algebra-rings/ufd/

# Unique factorization domain

An integral domain where every element factors uniquely into irreducibles up to associates and order.

A **unique factorization domain (UFD)** is an [integral domain](https://knowlpedia.com/algebra-rings/integral-domain/) \(R\) such that:

1. every nonzero nonunit is a finite product of [irreducible elements](https://knowlpedia.com/algebra-rings/irreducible-element/); and
2. any two such factorizations differ only by reordering the factors and replacing factors by [associates](https://knowlpedia.com/algebra-rings/associated-elements/).

## Remarks

In a UFD, every [irreducible element](https://knowlpedia.com/algebra-rings/irreducible-element/) is [prime](https://knowlpedia.com/algebra-rings/prime-element/). If \(R\) is a UFD, then \(R[x]\) is a UFD; by iteration, so is \(R[x_1,\dots,x_n]\).

## Examples

- \(\mathbb{Z}\) is a UFD.
- If \(k\) is a field, then \(k[x,y]\) is a UFD.
- \(\mathbb{Z}[\sqrt{-5}]\) is not a UFD (e.g. \(6\) has essentially different factorizations).
