Iterative and Petrov-Galerkin methods for solving a system of one-dimensional nonlinear elliptic equations