←
Grade 12 Calculus · Lesson 38 · Building the function · about 5 minutes
Objective and constraint
score 0

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 xx and length yy, both in metres, the objective is the area A=xyA = xy. The constraint is the condition the design must obey, the fixed amount of something: FF metres of fencing along three sides, with a wall as the fourth, gives 2x+y=F2x + y = F. 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: y=F−2xy = F - 2x, and A(x)=x(F−2x)=−2x2+FxA(x) = x(F - 2x) = -2x^2 + Fx. One variable, and lesson 6 can differentiate it.

The trap this lesson is named for is leaving two variables in the objective: A=xyA = xy cannot be differentiated with respect to xx while yy is still unknown, and treating yy as a constant gives A′=yA' = y, which is never 0 and says nothing. The constraint is the only way to remove yy, and the setup stages of this lesson rehearse exactly that: first the constraint solved for yy, then the objective with yy gone. With 60 m of fencing: y=60−2xy = 60 - 2x and A(x)=−2x2+60xA(x) = -2x^2 + 60x, a parabola opening downward, whose peak lesson 6 finds.