This paper discusses the matching conditions resulting from the controlled Lagrangians method and the interconnection and damping assignment passivity based control (IDA-PBC) method. Both methods have been presented recently in the literature as means to stabilize a desired equilibrium point of an Euler±Lagrange, respectively Hamiltonian, system. In the context of mechanical systems with symmetry, the original controlled Lagrangians method is reviewed, and an interpretation of the matching assumptions in terms of the matching of kinetic and potential energy is given. Secondly, both methods are applied to the general class of underactuated mechanical systems and it is shown that the controlled Lagrangians method is contained in the IDA-PBC method. The -method as described in recent papers for the controlled Lagrangians method, transforming the matching conditions (a set of non-linear PDEs) into a set of linear PDEs, is discussed. The method is used to transform the matching conditions obtained in the IDA-PBC method into a set of quadratic and linear PDEs. Finally, the extra freedom obtained in the IDA-PBC method (with respect to the controlled Lagrangians method) is used to discuss the integrability of the closed-loop system. Explicit conditions are derived under which the closed-loop Hamiltonian system is integrable, leading to the introduction of gyroscopic terms.