Applications to nonlinear partial differential equations and hamiltonian systems