Chapter 2 - Periodic Functions and Right Triangle Problems