Constraints
In practice, it is rare that we simply need to find the local and global extrema of a real scalar field. Usually, we are interested in finding extrema under certain conditions.
EXAMPLE
Imagine you are tasked with the construction of a box with a lid which should be able to fit exactly cubic metre of stuff. You want to minimise the cost and thus the amount of paperboard used for the box. In other words, you want to find what dimensions of the box which require the least material. The amount of material is given by
You can check that, by itself, this function has neither local nor global extrema. However, we also have another condition - the box should have a volume of cubic metre. This gives us a constraint for the dimensions :
This allows us to the express one variable using the other three and obtain an expression for which has only 2 variables.
This function does have a local minimum, which occurs at and . Using , we find that . Thus, a cube is the box shape which requires the least amount of material to fit cubic metre of stuff.
Definition: Equality Constraint
Let be a real scalar field.
An equality constraint is an equation of the form
for some function and some constant .
INTUITION
Constraints restrict the part of the domain of in which we are interested. Although itself might not admit extrema on its entire domain, when restricted to only those values for which the constraint is fulfilled, this might change might. In other words, might not have extrema, but its restriction on might.