Part I. Prove Ue = - p(dot)E
For a dipole in a uniform electric field. Note that torque on the dipole is not constant and depends of the angle between p and E.
Part II. Discuss/explain why when torque is max, Ue is zero, and when torque is zero, Ue is max.