What an Optimization Problem Is
An optimization problem asks you to find the largest or smallest possible value of some quantity. In calculus, that usually means finding a maximum or minimum of a function.
The challenge is that an optimization problem often does not give you the function directly. Instead, you are given a situation involving lengths, areas, volumes, distances, costs, or other quantities. Your first job is to translate the situation into mathematics.
Once you have written the quantity you want to maximize or minimize as a function of one variable, the calculus part is familiar: find critical points, check endpoints when appropriate, and determine which candidate produces the desired maximum or minimum.
The Basic Optimization Strategy
Most AP Calculus optimization problems can be organized into the same sequence:
- Identify what must be maximized or minimized. This is your objective quantity.
- Write an equation for the objective quantity.
- Use the given information to eliminate extra variables. This is the constraint step.
- Rewrite the objective as a function of one variable.
- Find the critical points by solving where the derivative is zero or undefined.
- Check the relevant endpoints or boundaries.
- Determine the answer in the context of the problem.
The important idea is that the derivative does not usually give you the final answer by itself. It gives you the locations where a maximum or minimum might occur. You still need to evaluate the candidates and interpret the result.
Objective Function vs. Constraint
Two equations are especially important in optimization problems: the objective function and the constraint.
The Objective Function
The objective function describes the quantity you are trying to maximize or minimize. For example, if the problem asks for the largest possible area, then area is the objective.
The Constraint
The constraint is the information that limits the possible values of the variables. For example, if a rectangle has a fixed perimeter, that perimeter equation connects its length and width.
The constraint is often what allows you to turn a two-variable objective function into a one-variable function that can actually be differentiated.
Worked Example 1: Maximum Area with a Fixed Perimeter
A rectangle has a perimeter of 40 units. What dimensions give the rectangle the maximum possible area?
Notice what happened: the original area formula contained two variables, but the perimeter constraint allowed us to rewrite it using only one variable. That is the key setup step in many optimization problems.
Why Critical Points Matter
Suppose the objective function is . At an interior maximum or minimum, the graph must temporarily stop increasing or decreasing. For a differentiable function, that means the derivative is zero.
These values are called critical points. They are candidates for local maxima or minima, but a critical point is not automatically the answer to an optimization problem.
You must also consider the domain of the problem. If the variable is a length, for example, negative values usually make no physical sense. The relevant interval may have endpoints that also need to be checked.
Worked Example 2: Minimum Distance
Find the point on the parabola that is closest to the point .
This example illustrates an important optimization trick: sometimes you can optimize a simpler function instead of the original quantity. Since squaring preserves which nonnegative distance is smaller, minimizing distance and minimizing squared distance produce the same point.
Worked Example 3: Maximum Volume
A rectangular piece of cardboard is 20 units by 30 units. Equal squares of side length are cut from each corner, and the sides are folded upward to create an open-top box. What value of gives the maximum volume?
Worked Example 4: Optimization with a Cost Function
A company wants to build a rectangular enclosure against a straight wall. The wall forms one side, so fencing is needed for only the other three sides. The company has 200 meters of fencing. What dimensions maximize the enclosed area?
Finding the Maximum or Minimum Correctly
Once you have found critical points, there are several ways to determine whether a candidate gives the desired optimum.
- First Derivative Test: Determine whether the derivative changes from positive to negative for a local maximum, or from negative to positive for a local minimum.
- Second Derivative Test: If at a critical point, the function has a local maximum there; if , it has a local minimum.
- Absolute extrema: Compare the objective function at all relevant critical points and endpoints.
For AP Calculus optimization problems, the safest approach is to use the actual domain and compare the relevant candidates. Do not simply solve and stop.
Common Mistakes
Before differentiating anything, ask exactly what the problem wants to maximize or minimize. If it asks for maximum area, your objective must be an area function. If it asks for minimum cost, your objective must represent cost.
The constraint is what connects the variables. If your objective still contains two independent variables when you are ready to differentiate, you probably have not used the constraint yet.
Algebra may produce critical points that make no physical sense. A length cannot be negative, and an expression representing a box dimension cannot be allowed to become zero or negative if the problem requires a three-dimensional box.
A critical point is a candidate, not a guarantee. Evaluate the objective at the relevant candidates and endpoints, or use an appropriate derivative test to establish the maximum or minimum.
Optimization problems are applications. State what your numerical answer represents and include appropriate units. For example, say "the maximum area is 1,000 square meters" rather than simply writing "1,000."
A Reliable AP Calculus Checklist
If you can consistently follow these steps, optimization problems become much less mysterious. The calculus itself is usually straightforward; the real skill is translating the words of the problem into the correct objective function and constraint.
Practice Problems
A rectangle has a perimeter of 60 meters. Find the dimensions that maximize its area.
Show answer
An open-top box is made by cutting equal squares from the corners of a 16-by-24-inch sheet of cardboard. Find the cut size that maximizes the volume.
Show answer
Find the point on the parabola closest to the point .
Show answer
A farmer has 240 meters of fencing and wants to enclose a rectangular region along a straight river. No fence is needed along the river. What dimensions maximize the enclosed area?
Show answer
Test yourself: AP Calculus practice exams
Ready to check what you know? Work an AP-style practice exam, then open the full solutions.
Want all 1,114 practice problems?
This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.
Get the Calc Pass App
Scan to download and practice on the go, with instant scoring.
Vol. 1: 1,114 Questions
The complete practice question bank, organized by AB & BC topic.
View on Amazon