Solve a nonlinear system of equations