The potential energy of a dipole in an electric field is given by: \[ U = - \mathbf{p} \cdot \mathbf{E} = - pE \cos \theta \] Initially, the dipole is aligned with the field (\(\theta = 0^\circ\)), so the initial energy is: \[ U_i = - pE \] When the dipole is flipped opposite to the field (\(\theta = 180^\circ\)), the final energy is: \[ U_f = pE \] The work required to rotate the dipole is: \[ W = U_f - U_i = pE - (-pE) = 2pE \] Substituting values: \[ W = 2 \times (6 \times 10^{-6}) \times (10^6) \] \[ W = 12 \times 10^{-3} = 6 \times 10^{-3} \, \text{J} \]