Errata: In equation (7.25), the last two endpoint equations are not correct