Notes for chapter 5.2 of the following book.