An ideal of is called prime if and for all , if then or .
It is easily verified that if is a nonzero ideal, then is prime if and only if is an integral domain. In particular, is prime if and only if is an integral domain.
Example: The prime ideals of are and for prime.
An ideal of is maximal if and there is no ideal such that where the inclusions are strict.
It it easily verified that if is a nonzero ideal then is maximal if and only if is a field. This implies all maximal ideals are prime. The converse is not true in general, for example is prime in but not maximal.
Proposition: Let be a ring homomorphism and be a prime ideal of . Then is a prime ideal of .
Proof: Let be the natural map . Then so and by the fundamental homomorphism theorem this is isomorphic to some subring of . But is an integral domain since is prime, so is also an integral domain implying that is indeed prime.
Preimages of maximal ideals need not be maximal. For example, consider the identity injection . Then is not maximal in , though it is maximal in .