Ch.2 Math formulation