Please read the following:

Chapter 6.1: The Logic of Maximizing Behavior (eText)