Derive an expression for the work done in rotating an electric dipole of dipole moment 'p' in a uniform electric field 'E' from an orientation θ1 to θ2.