We develop a general framework of using the Lagrangian variables for calculating the energy of waves on a steady Euler flow and the mean flow induced by their nonlinear interaction. With the mean flow at hand we can determine, without ambiguity, all the coefficients of the amplitude equations to third order in amplitude for a rotating flow subject to a steady perturbation breaking the circular symmetry of the streamlines. Moreover, a resonant triad of waves is identified which brings in the secondary instability of the MooreSaffman- Tsai-Widnall instability, and with the aid of the energetic viewpoint, resonant amplification of the waves without bound is numerically confirmed.