Ideals in a polynomial ring

Let R be a commutative ring with 1. Use theorems in ring theory to prove:
(a) ⟨x⟩ is a prime ideal in R[x] if and only if R is an integral domain.
(b) ⟨x⟩ is a maximal ideal in R[x] if and only if R is a field.