Optimization is the practice of finding maximum or minimum values of a function. Standard procedure:
- Set up the function to maximise/minimise from the problem statement.
- Differentiate to get .
- Find critical points: solve (and identify where doesn't exist).
- Classify each: second derivative test ( → min; → max), or first derivative sign change.
- Compare with endpoints if on a closed interval (Extreme Value Theorem).
Classic problems: largest rectangle in a circle, cheapest cylindrical can holding a fixed volume, box of maximum volume from a square sheet.
Multi-variable optimization uses the gradient () and the Hessian matrix. Constrained optimization uses Lagrange multipliers. The technique underlies engineering design, economics, and ML training.