AP Calculus AB and BC
Optimization Cheat Sheet: Steps and Justifications
To solve an optimization problem, write the quantity to maximize or minimize as a function of one variable, state its domain, find the critical points, and justify the result. On a closed interval use the candidates test. On an open interval show the sign of the first or second derivative across the whole domain.
The steps
- Name the quantity to maximize or minimize and write a formula for it. This is the objective function.
- Write the constraint, the equation that links the variables.
- Solve the constraint for one variable and substitute, so the objective has a single variable.
- State the domain: the interval of values that make physical sense.
- Differentiate the objective and find the critical points inside the domain.
- Justify that the critical point gives the maximum or minimum, using one of the methods in the next table.
- Answer the question that was asked, with units. A problem may ask for the dimensions, the optimal value, or both.
Setup is taught step by step in optimization problems, and the optimization setup builder gives practice on steps 1 through 4.
Justification methods
| Method | What you need | Conclusion | Use it when |
|---|---|---|---|
| First derivative test (Topic 5.4) | changes from positive to negative at | Relative maximum at . A change from negative to positive gives a relative minimum. | The sign of is easy to read on each side of . |
| First derivative sign on the whole domain | continuous, for all in the domain, and for all in the domain | Absolute maximum at . Reversed signs give an absolute minimum. | The domain is an open or infinite interval. |
| Second derivative test (Topic 5.7) | and | Relative maximum at . If , relative minimum. If , no conclusion. | is easy to compute. |
| Concavity on the whole domain | and for every in the domain | Absolute maximum at . With throughout, absolute minimum. | has one sign on the entire interval. |
| Candidates test (Topic 5.5) | continuous on a closed interval | Evaluate at every critical point in and at both endpoints. The largest value is the absolute maximum and the smallest is the absolute minimum. | The domain is a closed interval. |
| Only one critical point | continuous on an interval with exactly one critical point , which is a relative maximum | is the absolute maximum on that interval. The same holds for a minimum. | The interval is open and there is a single critical point. |
A relative extremum is not automatically an absolute one. The second derivative test at a single point proves a relative extremum only, so pair it with the single critical point argument or with concavity on the whole domain. The underlying tests are in the first derivative test and second derivative test guides.
Common objective and constraint setups
| Problem | Objective | Constraint | One-variable function and result |
|---|---|---|---|
| Rectangle with fixed perimeter , largest area | . Maximum at , a square. | ||
| Rectangular pen against a wall, three fenced sides, fencing | . Maximum at and . | ||
| Open box from a square sheet of side , corner squares of side removed | Built into the formula | Domain . Maximum at . | |
| Closed box with square base, fixed volume , least surface area | . Minimum at , a cube. | ||
| Open-top box with square base, fixed volume , least surface area | . Minimum at , where . | ||
| Closed cylinder, fixed volume , least surface area | . Minimum at , where . | ||
| Rectangle inscribed in a semicircle of radius , largest area | . Maximum at , with area . | ||
| Point on closest to | The point lies on the curve | Minimize instead of . Both are smallest at the same . | |
| Maximum profit | None | Critical points where . |
The results in the last column are worth recognizing, but a written solution still needs the derivative, the critical point, and a justification.
Domain and endpoints
| Domain | Absolute extremum guaranteed | How to finish |
|---|---|---|
| Closed interval , continuous | Yes, by the Extreme Value Theorem | Candidates test. Include both endpoints in the comparison. |
| Open or infinite interval, one critical point | No | Show the sign of on each side across the whole domain, or show has one sign throughout. |
| Open or infinite interval, several critical points | No | Compare the values at the critical points with the limits of at the ends of the interval. |
- Endpoints often correspond to a degenerate shape, such as a box with zero height. They are still candidates on a closed interval.
- If a critical point falls outside the domain, discard it. If no critical point is left inside a closed interval, both absolute extrema are at the endpoints.
- The Extreme Value Theorem needs continuity on a closed interval. See the Extreme Value Theorem.
Common slips
- Differentiating an objective that still has two variables. Use the constraint first.
- Swapping the objective and the constraint. The objective is the quantity being maximized or minimized. The constraint is the fixed total.
- Stopping at the critical point without justifying that it is a maximum or minimum.
- Claiming an absolute extremum from alone on a domain with more than one critical point.
- Ignoring endpoints on a closed interval.
- Answering with the -value when the question asks for the maximum area, or the reverse.
Worked examples
Worked example
Least material for a can
A closed cylindrical can must hold . Find the radius and height that minimize its surface area.
- Objective: . Constraint: , so .
- One variable: , with domain .
- Differentiate: . Set : , so and .
- Justify: , which is positive for every . The graph of is concave up on its whole domain, so the critical point gives the absolute minimum.
- Height: . Surface area: .
Radius cm and height cm, for a minimum surface area of .
Worked example
Candidates test on a closed interval
Find the absolute maximum and minimum values of on .
- is a polynomial, so it is continuous on and the Extreme Value Theorem guarantees both extrema.
- Critical points: , which is zero at and . Both are inside the interval.
- Evaluate at the endpoints and critical points: , , , .
- Compare the four values: the largest is and the smallest is .
The absolute maximum is at (an endpoint) and the absolute minimum is at .
Worked example
Closest point on a curve
Find the point on the curve that is closest to the point .
- Distance squared from to : , with domain .
- Differentiate: . Set : .
- Justify: for and for , so decreases and then increases across its whole domain. The absolute minimum is at .
- The point is . The minimum distance is .
The closest point is , at distance .
Frequently asked questions
What is the difference between the objective function and the constraint?
The objective function is the quantity you are asked to make as large or as small as possible, such as area, volume, cost, or distance. The constraint is an equation that limits the variables, such as a fixed amount of fencing or a required volume. You use the constraint to rewrite the objective in one variable.
When do I need to check the endpoints?
Whenever the domain is a closed interval. The absolute maximum or minimum of a continuous function on occurs at a critical point or at an endpoint, so both endpoints belong in the comparison. On an open interval there are no endpoints to evaluate, and you justify the answer with the sign of or across the domain.
Is the second derivative test enough to justify an absolute maximum?
On its own it shows only a relative maximum at that point. It becomes an absolute maximum argument when you add one more fact: either the function is continuous with only one critical point on the interval, or on the entire domain so the graph is concave down everywhere.