The function primaryDecomposition applied to an ideal I returns a list of ideals. These ideals have two key features, first, their intersection is equal to the ideal I and second the ideals are primary. Therefore these ideals form a primary decomposition of the ideal. Since the ideals are primary their corresponding varieties are irreducible. The decomposition returned is irredundant, which means that the radicals of the ideals returned are distinct prime ideals which are the associated prime ideals for I (see associated primes).



To obtain the associated prime ideals corresponding to the primary components returned by primaryDecomposition use the function associatedPrimes. Each entry in the list given by associatedPrimes is the radical of the respective entry in the list given by primary decomposition.