AP Calculus AB and BC
Objective Function vs Constraint
The objective function is the quantity you maximise or minimise, and the constraint is the equation you solve in order to eliminate a variable from it. In the substitution method the constraint is solved and substituted, and only the objective is differentiated.
Objective function
Use when: The sentence asks for the largest or smallest value of this quantity, so it is the one you reduce to a single variable and then differentiate.
Constraint
Use when: The sentence fixes a number that ties the variables together, so in the substitution method you solve it for one variable and substitute rather than differentiate.
Side by side
| Objective function | Constraint | |
|---|---|---|
| What it is | The quantity being maximised or minimised | A fixed relationship the variables must satisfy |
| Wording that signals it | largest, smallest, least material, maximum area | a fixed total: metres of fence, a volume of cubic centimetres |
| What you do with it | Differentiate it, once it is down to one variable | In the substitution method, solve it for one variable and substitute into the objective |
| Variables it holds | Two at the start, one after the substitution | Two or more, and it stays that way |
| Pen against a barn with m of fence | , to be made as large as possible | , fixed by the fencing you have |
Read the problem twice and sort the sentences. One of them asks for the largest or smallest of something, and that quantity is the objective, the function you will eventually differentiate. Another fixes a number: a length of fence, a volume of tin, a point that must sit on a given curve. That one is the constraint, and its whole job is to let you rewrite the objective in a single variable.
Here is the pen those two lines come from. A rectangle is fenced against a barn wall using metres of fence for the three open sides, with the two equal sides and the side parallel to the barn. The constraint gives , so the objective becomes , and at . Then and the greatest area is square metres. In this route the constraint was solved and substituted rather than differentiated. There is a second standard route in which you do differentiate the constraint: gives , and feeding that into gives , which with the constraint returns the same , , .
Differentiating the wrong equation
Differentiating the constraint in place of the objective is the classic wrong turn. Differentiating both sides of gives , that is , which imposes no condition on or and so on its own cannot locate the maximum. If your derivative equation has no variable left to solve for, collapsing to a numerical identity such as , you differentiated the constraint instead of the objective.
Frequently asked questions
Which equation do I differentiate in an optimisation problem?
The objective. In the substitution method you differentiate it only after the constraint has cut it down to one variable. Differentiating the constraint on its own gives a relation such as that holds at every point of the constraint, so by itself it locates nothing; it is useful only when you feed it into the derivative of the objective.
How do I find the constraint in a word problem?
Hunt for the fixed number. A total length of fence, a required volume, a budget, or a curve the point must lie on each give one equation linking the variables. The sentence asking for a maximum or a minimum is the objective and is never the constraint.
Do I still have to check the endpoints?
Yes, whenever the constraint leaves a closed interval of possible values. For the pen, puts in , and the candidates test compares against and .
In the CED: Unit 5: Analytical Applications