A Hamiltonian Reduction Method For Nonlinear Dynamics