Transformations of the Hamiltonian