Objective and constraint
An optimization problem asks for the largest or smallest value something can take: the biggest garden a fence can enclose, the box that holds the most, the pen that needs the least fencing. Two things are always present. The objective is the quantity to be made largest or smallest, written as a formula: for a rectangular garden of depth and length , both in metres, the objective is the area . The constraint is the condition the design must obey, the fixed amount of something: metres of fencing along three sides, with a wall as the fourth, gives . Read aloud: the objective is what we want the most of; the constraint is what we have only so much of. The objective has two variables, and calculus differentiates in one, so the constraint is solved for one variable and substituted into the objective: , and . One variable, and lesson 6 can differentiate it.
The trap this lesson is named for is leaving two variables in the objective: cannot be differentiated with respect to while is still unknown, and treating as a constant gives , which is never 0 and says nothing. The constraint is the only way to remove , and the setup stages of this lesson rehearse exactly that: first the constraint solved for , then the objective with gone. With 60 m of fencing: and , a parabola opening downward, whose peak lesson 6 finds.