week 3 discretization, set of algebraic equations