  By variational methods, we provide a simple proof of existence of a
heteroclinic orbit to the Hamiltonian system $u''=\nabla W(u)$ that connects
the two global minima of a double-well potential $W$. Moreover, we consider
several inhomogeneous extensions.
