Math · Calculus I · Concept
Optimization problems in calculus
To solve an optimization problem, write the quantity to maximize or minimize as a function of one variable, using the constraint to remove any other variable. Find the critical points where the derivative is zero, then compare the function’s values there and at the endpoints of the allowed interval.
A concrete case
Try some fields first
A farmer has
Try a few depths. A depth of
The areas at
| Depth | Long side | Area |
|---|---|---|
The rule
The largest and smallest values on an interval
An optimization problem asks for the largest or smallest value of a quantity. Once the quantity is written as a function
The Extreme Value Theorem says that a function continuous on a closed interval
That gives the closed interval method. List the critical points inside
When the interval has no endpoints
Some problems have no endpoints to test. A can’s radius can be any positive number, so its interval is
When
The second derivative gives the same verdict for a single critical point.
Why it works
Why the top of the curve is flat
Suppose the area is largest at a depth
At an endpoint this argument fails, because there is no room to step past the end. At
The same reasoning works for a minimum. Every candidate on the list is a place where stepping sideways can’t prove that a better value exists.
The method
The method in six steps
Every optimization problem follows the same six steps. The table works through the fence. Write each step down, because the derivative is rarely the hard part. Choosing the variable, using the constraint and stating the interval are where most answers go wrong.
| Step | What to do | For the fence |
|---|---|---|
| 1 | Draw the situation and name each quantity | depth |
| 2 | Write the quantity to optimize | |
| 3 | Use the constraint to leave one variable | |
| 4 | State the interval the variable can take | |
| 5 | Find the critical points and test the candidates | |
| 6 | Answer the question asked, with units |
Testing the candidates
Step 5 depends on the interval. On a closed interval, work out the function at every critical point and at both endpoints, and compare the values. Nothing else is needed.
On an open or endless interval, there are no endpoints to compare. With one critical point, use the sign of
Where it breaks
Where it breaks
The closed interval method needs a continuous function on a closed interval. Without both, a maximum or minimum can fail to exist. On
A zero derivative makes a candidate, not an answer.
A critical point outside the allowed interval is not a candidate. A negative length, or a cut wider than the sheet of cardboard, is not a real design, however neatly it solves
The method treats the variable as able to take every value in its interval. When it must be a whole number, such as a number of trucks, the calculus answer may land between two whole numbers. Work out
Check your answer
Check your answer
A maximum has to beat its neighbors, obey the constraint and sit inside the interval.
Try the neighbors. For the fence,
Check the constraint and the units. A field
Look at the extremes. A depth of
To have Chalk check the work, write it in a Math box. Put the function on the first row, such as
On , has no point where . Where is its smallest value?
At
Why a near miss costs so little
Expand the area around the best depth. Substituting
The Extreme Value Theorem is harder to prove than it looks. Its proof rests on the completeness of the real numbers, the fact that the number line has no gaps. On the rational numbers alone it fails. There,
Solving the constraint for one variable stops working when the constraint can’t be solved neatly, such as a point confined to an ellipse. Multivariable calculus handles that case with a method called Lagrange multipliers.
Common mistakes
- Differentiating before using the constraint. With
, treating as a constant gives , which says nothing useful. Substitute first, so that has one variable and . - Forgetting the endpoints. On
, has its only critical point at , where is the minimum. The maximum is , at an endpoint, which a search for alone never finds. - Keeping a critical point outside the interval. On
, has at and at . Counting , where , reports a value the interval never reaches. The true maximum is . - Answering a different question. The fence problem asks for dimensions, so
is half an answer. The full answer is deep and along the river, which encloses . - Taking
as proof of a maximum. The can’s surface area has at , and that point is the minimum. Check the sign of on each side, or the sign of , before naming it.
Key terms
- Optimization
- Finding the largest or smallest value of a quantity, often under a constraint. In calculus the candidates are the critical points inside the allowed interval and its endpoints.
- Critical point
- A point in the function’s domain where the derivative is zero or doesn’t exist. Local maxima and minima can happen only at critical points or endpoints, so these are where to look.
- Extremum
- A maximum or minimum value. A local extremum is highest or lowest among nearby values. An absolute extremum is highest or lowest over the whole domain, and it can sit at an endpoint of the domain, where the graph stops rather than turns.
- Second derivative test
- At a critical point
with , gives a local maximum and a local minimum. If the test gives no answer, and the first derivative test decides. - Derivative
- The instantaneous rate of change of a function: the limit of the average rate of change as the step shrinks to zero, when that limit exists. On a graph it is the slope of the tangent line.
Work through an example
A farmer has
Sources and scope
Authored study material. Tool results depend on the stated inputs and model assumptions.
Try it, then study it
Open the example in its tool to check steps or change values, then review the key terms as flashcards.
Graph the area in Graph Check each step in Math See the zero slope in Secant → Tangent Study the 5 key terms Open worked example on a board Optimization candidates in Math ReferenceYour existing work stays on this device. Examples open as editable copies.