Lectures on Functional Equations and Their Applications