Motivated by the problem of linear mode conversion between ducted internal gravity waves in a sheared flow, we construct a variational principle based on a Hermitian evolution operator, obtained from Larsson's Hamiltonian formalism.