In algebra, an irreducible element of an integral domain is a non-zero element that is not invertible (that is, is not a unit), and is not the product of two non-invertible elements.
The irreducible elements are the terminal elements of a factorization process; that is, they are the factors that cannot be further factorized. If the irreducible factors of every non-zero non-unit element are uniquely defined, up to the multiplication by a unit, then the integral domain is called a unique factorization domain, but this does not need to happen in general for every integral domain. It was discovered in the 19th century that the rings of integers of some number fields are not unique factorization domains, and, therefore, that some irreducible elements can appear in some factorization of an element and not in other factorizations of the same element. The ignorance of this fact is the main error in many of the wrong proofs of Fermat's Last Theorem that were given during the three centuries between Fermat's statement and Wiles's proof of Fermat's Last Theorem.
If is an integral domain, then is an irreducible element of if and only if, for all , the equation implies that the ideal generated by is equal to the ideal generated by or equal to the ideal generated by . This equivalence does not hold for general commutative rings, which is why the assumption of the ring having no nonzero zero divisors is commonly made in the definition of irreducible elements. It results also that there are several ways to extend the definition of an irreducible element to an arbitrary commutative ring.[1]