It’s the ultimate tool yielded by multivariable differentiation: the method of Lagrange multipliers. Use this intuitive theorem and some simple algebra to optimize functions subject not just to boundaries, but to constraints given by multivariable functions. Apply this tool to a real-world cost-optimization example of constructing a box.