This textbook presents a coherent and systematic exposition of the mathematical theory of the problems of optimization and stability, both of which are topics central to economic analysis. The book is designed for readers with only an elementary knowledge of calculus and linear algebra.