Energy methods for the Cahn−Hilliard equation