Ideals in a polynomial ring

Let R be a commutative ring with 1. Use theorems in ring theory to prove:

  1. x is a prime ideal in R[x] if and only if R is an integral domain.
  2. x is a maximal ideal in R[x] if and only if R is a field.