This is a mathematical introduction to optimization and game theory. Convex sets, convex functions, separation theorem, Karush-Kuhn-Tucker theorem, Brouwer fixed point theorem, Ky-Fan inequality and Nash equilibrium.