5.11 Solving Optimization Problems
In the last key topic, we began to take a look at optimization problems and even practiced a few. Let’s recap and do some more practice questions!

🔎 Understanding Optimization Problems
Optimization problems are a key aspect of real-world applications in calculus, and involve finding the maximum or minimum value of a function in applied contexts. These contexts can range from determining the dimensions for maximum volume to minimizing costs. The objective is to identify the optimal conditions that lead to an extreme value. 👾
📝 Optimization on the AP Calculus Exam
Optimization problems are presented in many formats on the AP Test— you may see them as part of multiple choice problems, and they are usually accompanied by lengthier context or story problems. You are, however, basically guaranteed to see them one way or another—which is why it’s so important to understand how to solve them!
🧩 How to Solve Optimization Problems
🧺 Identify the Objective Function
Begin by clearly defining the quantity you want to optimize. This is your objective function, often denoted by or . For instance, if you're a farmer looking to maximize your crop yield, your objective function might be for the total profit.
💥 Establish Constraints
Consider any constraints or limitations on the variables involved. Constraints could be in the form of limitations on resources, dimensions, or any other relevant factors. In our farming example, this could be the amount of land available or a budget constraint for purchasing seeds and fertilizer.
🖊️ Formulate the Optimization Equation
Create an equation that represents the quantity you want to optimize. This is the function you aim to maximize or minimize. If you're maximizing profit, your equation might involve revenue minus costs: .
🎯 Find Critical Points
Take the derivative of the objective function with respect to the variable of interest. Set the derivative equal to zero and solve for critical points. Remember, critical points are potential locations for maxima or minima.
🤔 Test Critical Points
Use the first or second derivative test to determine whether each critical point corresponds to a local maximum, minimum, or neither. This step ensures that you are pinpointing the desired extreme value.
🧠 Consider Endpoints
If the optimization problem involves a closed interval, evaluate the objective function at the endpoints as well. Include these results in your analysis.
📣 Note: This last step is especially important if you are asked to “interpret” your answer!
📈 Optimization Practice Problems
Let’s put these steps into action and give two questions a try.
🏡 Problem 1: Maximizing Area of a Rectangular Garden
You have 100 meters of fencing to enclose a rectangular garden. What dimensions will maximize the enclosed area?
First, define your variables in terms of what was given to you.
- Let be the width of the rectangle.
- The length, , will be determined by the remaining fencing: or .
Since we’re asked to maximize the area, we can define the equations with the area formula of a rectangle. The area, , of the rectangle is given by
We have our equations! Now we can find our critical points. Take the derivative of and set it equal to zero:
Test this critical point using the second derivative test. This will confirm that is a maximum.
Because is a negative value, this confirms that is a maximum.
📌 Need to review the second derivative test? Check out 5.7 Using the Second Derivative Test to Determine Extrema.
Last but not least, interpret results!
The dimensions that maximize the area are (width) and (length). Good job! 👏
📦 Problem 2: Maximize the Size of a Can
A cylindrical can is to be made to contain cubic centimeters of liquid. Find the dimensions (radius and height) of the can that minimize the amount of material needed to manufacture the can.
Let’s again define our variables. Let represent the radius of the cylinder and represent the height of the cylinder.
Now we can define and simplify our equations. The quantity to be optimized in this problem is the surface area of the cylinder, which is the sum of the lateral surface area and the area of the two circular bases. The surface area is given by:
The problem states that the can must contain cubic centimeters of liquid. The volume of a cylinder is given by:
Since , we have , which serves as the constraint equation.
Solve the constraint equation for h:
Then, substitute h into the equation for surface area, :
Simplify this equation:
Find the critical points! Take the derivative of with respect to and set it equal to zero to find critical points:
Check the values of at the endpoints of the feasible interval (in this case, cannot be negative, so only consider positive values).
Determine the minimum values. Evaluate the area function at the critical point and endpoints, and determine which one gives the minimum value. In this case, yields the minimum surface area.
Use the expression to find the corresponding value of the height . The answer is approximately .
You’re almost there! State the conclusion.
The dimensions that minimize the amount of material needed to manufacture the can are centimeters and , or approximately 63 centimeters.
🏆 Tips for Success
You made it to the end of this guide! Here are some tips for success:
- 💡 Clearly Define Variables: Ensure a clear understanding of the meaning of each variable in the problem.
- 📈 Graphical Insight: Consider graphing the function to visualize critical points and endpoints.
- 🧠 Units Matter: Pay attention to units in real-world problems. Ensure your final answer makes sense in the given context.
Happy optimizing!
Vocabulary
The following words are mentioned explicitly in the College Board Course and Exam Description for this topic.
| Term | Definition |
|---|---|
| applied contexts | Real-world situations or practical problems where mathematical functions are used to model and solve problems. |
| maximum value | The largest output value that a function attains on a given interval. |
| minimum value | The smallest output value that a function attains on a given interval. |
Frequently Asked Questions
How do I solve optimization problems step by step?
Step-by-step shortcut you can use on every AP optimization problem: 1. Read context → define the objective function (what you maximize/minimize) in one variable. If it’s given with two variables, use the constraint to eliminate one (solve for y in terms of x). 2. Identify the feasible region (domain or physical bounds from the problem). Endpoints matter on closed intervals. 3. Differentiate: compute f′(x). Find critical points where f′(x)=0 or undefined that lie in the feasible region. 4. Classify candidates: use the Second Derivative Test (f″(x)>0 → local min, <0 → local max) or the First Derivative Test. For closed intervals, evaluate f at all critical points and endpoints—the largest/smallest value is the global max/min. 5. Interpret answer in context with units and constraints (FUN-4.C). If there’s a constraint harder to eliminate, use Lagrange multipliers (BC or tougher AB contexts). Practice these steps on problems (CED-style)—see the Topic 5.11 study guide (https://library.fiveable.me/ap-calculus/unit-5/solving-optimization-problems/study-guide/u2Y3MpOG6kkTtbLH38S7) and hit practice questions (https://library.fiveable.me/practice/ap-calculus).
What's the difference between finding a maximum and minimum in optimization?
Finding a maximum vs a minimum in optimization is the same process but different interpretation and final check. You: - set up an objective function and constraint(s) to get the feasible region, - find critical points where f′(x)=0 or undefined, and then evaluate candidates (critical points and endpoints/boundary). To decide type: - use the First Derivative Test or Second Derivative Test at each critical point to classify local max vs local min, - use the Candidates Test (compare f at all critical points and endpoints) to pick the global (absolute) maximum or minimum on the feasible region. In applied problems always interpret units (FUN-4.C) and check endpoints/boundary conditions—an endpoint can be the global best even if interior points give local extrema. On the AP exam you must justify your choice (show derivative work and comparison), and explicitly state what the extremum means in context. For review, see the Topic 5.11 study guide (https://library.fiveable.me/ap-calculus/unit-5/solving-optimization-problems/study-guide/u2Y3MpOG6kkTtbLH38S7), Unit 5 overview (https://library.fiveable.me/ap-calculus/unit-5), and practice problems (https://library.fiveable.me/practice/ap-calculus).
When do I use the first derivative test vs second derivative test for optimization?
Use the first derivative test when you want to determine whether a critical point (where f′ = 0 or f′ is undefined) is a local max, local min, or neither by checking sign changes of f′ around that point. It works whenever you can evaluate f′ on either side—and it still works if f′ or f″ is messy or undefined. Use the second derivative test when f′(c) = 0 and f″ exists near c: compute f″(c). If f″(c) > 0, f has a local minimum at c; if f″(c) < 0, a local maximum. If f″(c) = 0 or f″ doesn’t exist, the second derivative test is inconclusive—go back to the first derivative test. Always remember AP requirements: check all candidates (critical points and endpoints/boundary) when finding absolute extrema (Candidates Test). Interpret your result in context (FUN-4.C). For a concise refresher and practice problems on optimization, see the Topic 5.11 study guide (https://library.fiveable.me/ap-calculus/unit-5/solving-optimization-problems/study-guide/u2Y3MpOG6kkTtbLH38S7) and the Unit 5 overview (https://library.fiveable.me/ap-calculus/unit-5).
I'm confused about setting up optimization problems - how do I know what function to optimize?
Start by identifying what quantity the problem asks you to minimize or maximize—that is your objective (or target) function. Next list the constraints: equations or inequalities that link the problem’s variables (these define the feasible region). Use the constraints to eliminate extra variables so your objective is written as a single-variable function. Quick checklist (CED-aligned): - Pick the objective (area, volume, cost, distance, etc.). - Write constraint equations from geometry or wording. - Solve the constraints for one variable and substitute into the objective to get f(x) of one variable. - Find critical points: f′(x)=0 or f′ undefined, plus check boundary/endpoint values (Candidates Test). - Use first/second derivative tests to classify local vs global extrema and then interpret the result in context (units, feasibility). Remember to always interpret your extremum in the real context (FUN-4.C): discard nonphysical solutions and report units. For worked examples and step-by-step practice aligned with AP Topic 5.11, see the Fiveable study guide (https://library.fiveable.me/ap-calculus/unit-5/solving-optimization-problems/study-guide/u2Y3MpOG6kkTtbLH38S7). For extra practice problems, check Fiveable’s practice bank (https://library.fiveable.me/practice/ap-calculus).
How do I find the constraint equation in optimization word problems?
The constraint equation comes from the fixed relationship(s) in the word problem—what cannot change. Steps to find it: 1. Define variables for the things that can change (e.g., let x = length, y = width). 2. Read the problem for a fixed total (perimeter, area, volume, budget, material, etc.). Translate that into an equation relating your variables—that’s the constraint. - Example: “fixed perimeter 100” → 2x + 2y = 100. - Example: “fixed volume V of a box” → V = x y h. 3. Use the constraint to eliminate one variable from the objective function (the quantity to maximize/minimize). That gives a single-variable function to differentiate. 4. Determine the feasible region (domain) from physical restrictions (x>0, integer, etc.) and check endpoints + critical points for global extrema. 5. Interpret your result in context (units and meaning), per FUN-4.C in the CED. For examples and practice tied to Topic 5.11, see the Fiveable study guide (https://library.fiveable.me/ap-calculus/unit-5/solving-optimization-problems/study-guide/u2Y3MpOG6kkTtbLH38S7) and try problems at https://library.fiveable.me/practice/ap-calculus.
What does it mean when they ask for the minimum cost or maximum area in a real world problem?
When a problem asks for the “minimum cost” or “maximum area” it means: build a mathematical model (an objective function) whose value measures cost or area, subject to the problem’s constraints (the feasible region). Your job is to find the input(s) (dimensions, time, number of items, etc.) in that feasible region that make the objective as small (minimum cost) or as large (maximum area) as possible, and then interpret that value with correct units. How you do it (AP-aligned): - Write the objective function and eliminate extra variables using the constraint(s). - Find critical points where f′(x)=0 or f′ is undefined, and check endpoints/boundaries of the feasible region (candidates test). - Use the first/second derivative tests or compare values to identify global min/max. - State the final answer in context (e.g., “minimum cost = $120 when length = 3 m”), including units and why it’s the global extreme (critical point vs. endpoint). This interpretation step—connecting the computed min/max back to the real-world meaning—is exactly the FUN-4.C skill on the AP CED. For worked steps and examples, see the Topic 5.11 study guide (https://library.fiveable.me/ap-calculus/unit-5/solving-optimization-problems/study-guide/u2Y3MpOG6kkTtbLH38S7) and try practice problems (https://library.fiveable.me/practice/ap-calculus).
Can someone explain how to interpret what a maximum or minimum value actually represents in context?
A max or min isn’t just a number—it’s the best/worst value of your objective in the real situation. Always say three things: (1) what variable gets that value, (2) the objective’s value with units, and (3) whether it’s global (absolute) or local and why (critical point or endpoint). Example: “The profit is maximized at x = 120 widgets; maximum profit = $3,600,” tells the reader the production level and the money you get. In constrained problems, clarify the feasible region: the optimum must satisfy constraints (e.g., rope length, budget). Use critical points (f′ = 0 or undefined) and the Candidates Test (include endpoints) to find absolute extrema; use first/second derivative tests to classify local extrema. On the AP exam you must interpret with units and context—don’t just give the x-value. For worked strategies and AP-style practice, see the Topic 5.11 study guide (https://library.fiveable.me/ap-calculus/unit-5/solving-optimization-problems/study-guide/u2Y3MpOG6kkTtbLH38S7) and Unit 5 overview (https://library.fiveable.me/ap-calculus/unit-5). For more practice problems, try (https://library.fiveable.me/practice/ap-calculus).
Why do I need to check endpoints when solving optimization problems?
You check endpoints because the absolute (global) max or min on a closed feasible region can occur there—not just at critical (stationary) points where f′(x)=0 or undefined. The Candidates Test (used on the AP exam) requires you to evaluate all critical points AND the boundary points (endpoints or other boundary conditions from the constraint) and compare f-values to decide the global extremum. In applied problems the endpoint often has real meaning (smallest/ largest possible dimension, time limit, physical constraint), so skipping it can give the wrong answer. So: (1) find critical points inside the feasible interval, (2) evaluate the objective at those points and at the endpoints/boundary, (3) pick the largest/smallest value. This matches FUN-4.C (interpret minima/maxima in context) and the Candidates Test in Topic 5.11. For extra practice, see the Topic 5.11 study guide (https://library.fiveable.me/ap-calculus/unit-5/solving-optimization-problems/study-guide/u2Y3MpOG6kkTtbLH38S7) and lots of practice problems (https://library.fiveable.me/practice/ap-calculus).
How do I know if my answer makes sense in the real world situation?
Check the answer against the real situation in these quick steps—they map to the CED keywords (feasible region, endpoints, interpretation of min/max, derivative tests): 1. Units and meaning: make sure your result has the right units and that you can state it in words (e.g., “minimum cost = $120 when width = 3 m”). That’s FUN-4.C: interpret the value in context. 2. Feasible region and constraints: confirm your critical point lies inside the allowed domain (not negative, within physical limits). If it’s outside, the real answer is an endpoint. 3. Endpoint/boundary check: evaluate the objective at endpoints and any boundary cases. The global min/max could be there (candidates test). 4. First/second derivative check: use f′ = 0 or undefined to find candidates, use f″ or first-derivative sign to classify local vs global extrema. 5. Magnitude sanity check: is the number reasonable? Compare to rough estimates or limits (order-of-magnitude). If it’s absurd, revisit model/formula. 6. Re-plug into original context: compute any dependent quantities (area, cost, time) and explain what they mean in words. For practice doing this on AP-style problems and to see worked examples that stress interpretation, check the Topic 5.11 study guide (https://library.fiveable.me/ap-calculus/unit-5/solving-optimization-problems/study-guide/u2Y3MpOG6kkTtbLH38S7) and try problems at (https://library.fiveable.me/practice/ap-calculus).
What's the formula for setting up optimization problems with constraints?
Start by naming variables and writing the objective function (what you want to maximize or minimize) and the constraint(s) (equation(s) linking the variables). 1) Variables → objective f(x, y, ...) (e.g., area, volume, cost). 2) Constraint(s) → g(x, y, ...) = 0 (e.g., perimeter fixed, budget). 3) Reduce to one variable: solve the constraint for one variable and substitute into the objective to get a single-variable function F(x). - Formulaic setup: maximize/minimize F(x) = f(x, y(x)) subject to domain from the feasible region. 4) Find critical points: solve F′(x) = 0 and check endpoints of the feasible interval (Candidates Test). 5) Classify extrema: use F″(x) (second-derivative test) or first-derivative sign analysis, and interpret in context (units, feasible region). For multi-variable constraints, use Lagrange multipliers: solve ∇f = λ∇g together with g = 0, then check feasible points and boundary values. Always justify why your candidate gives a global min/max on the feasible region (CED keywords: objective function, constraint, feasible region, critical point, candidates test, Lagrange multipliers). More practice and worked examples are in the Topic 5.11 study guide (https://library.fiveable.me/ap-calculus/unit-5/solving-optimization-problems/study-guide/u2Y3MpOG6kkTtbLH38S7) and the Unit 5 overview (https://library.fiveable.me/ap-calculus/unit-5). For lots of practice questions, see (https://library.fiveable.me/practice/ap-calculus).
How do I solve optimization problems involving geometry like rectangles and cylinders?
Start by naming the objective (what you want to max/min) and the constraint (what’s fixed). Use geometry formulas to write the objective as a single-variable function, find critical points, and test them (first/second derivative or the Candidates Test), then check endpoints/boundary of the feasible region. Steps (rectangles and cylinders): - Rectangle with fixed perimeter P: let width = x, then height = h = (P/2) − x. Area A(x) = x((P/2) − x) = (P/2)x − x^2. Compute A′(x)= (P/2) − 2x, set =0 → x = P/4 (square). Use A″(x)= −2 to confirm max, and check endpoints if domain limited. - Cylinder with fixed volume V (minimize surface area): S(r,h)=2πr^2+2πrh, constraint V=πr^2h ⇒ h = V/(πr^2). Substitute: S(r)=2πr^2 + 2V/r. Differentiate: S′(r)=4πr − 2V/r^2, set =0, solve for r; use S″(r)>0 to confirm min, check physical domain (r>0). Remember to interpret units and context (FUN-4.C). For more worked examples and AP-style practice, see the Topic 5.11 study guide (https://library.fiveable.me/ap-calculus/unit-5/solving-optimization-problems/study-guide/u2Y3MpOG6kkTtbLH38S7) and try problems at (https://library.fiveable.me/practice/ap-calculus).
What are the steps for solving applied maximum and minimum problems?
1) Read the problem and identify what you’re maximizing or minimizing (the objective function) and any constraint(s). Translate the context into an equation for the objective in terms of one variable if possible. 2) Use the constraint(s) to eliminate extra variables so your objective is a single-variable function on a feasible domain (feasible region / boundary conditions). Check domain endpoints from the context. 3) Differentiate: find f ′(x) and solve f ′(x) = 0 to get critical (stationary) points inside the feasible region. Also note where f ′ is undefined if those points lie in the domain. 4) Test candidates: evaluate the objective at all critical points and at endpoints/boundary points. Use the First Derivative Test or the Second Derivative Test (f ″(x) > 0 local min, < 0 local max) as needed to classify local extrema. For constrained multivariable problems, consider Lagrange multipliers. 5) Pick the global max/min by comparing values and interpret the answer in context (units, what the number means). State any assumptions/limitations. For AP-style applied problems, show work for each step and include endpoint analysis; see the Topic 5.11 study guide (https://library.fiveable.me/ap-calculus/unit-5/solving-optimization-problems/study-guide/u2Y3MpOG6kkTtbLH38S7) and unit review (https://library.fiveable.me/ap-calculus/unit-5). For extra practice, try problems at (https://library.fiveable.me/practice/ap-calculus).
Why do some optimization problems have no solution or multiple solutions?
Short answer: whether an optimization problem has zero, one, or many solutions depends on the objective function and the feasible region (constraints). Use the Candidates/Extreme Value tests from the CED: check critical points, endpoints/boundary, and global behavior. Why no solution - Feasible region is empty (constraints impossible). - Domain is open or unbounded and the objective is unbounded (e.g., maximize x on (0, ∞)—no maximum). - Function isn’t defined or isn’t continuous on the region so EVT doesn’t apply. Why multiple solutions - A flat region/plateau: f is constant on an interval or along a boundary so every point there attains the same extremum. - Symmetry or multiple distinct critical points give equal objective values (e.g., symmetric geometry problems). - Multiple boundary points tie for the best value. What you should always do on AP problems: identify the feasible region, find critical points, analyze endpoints/boundary, test behavior at infinity, and use first/second-derivative or EVT reasoning to justify existence/uniqueness. For a focused review, see the Topic 5.11 study guide (https://library.fiveable.me/ap-calculus/unit-5/solving-optimization-problems/study-guide/u2Y3MpOG6kkTtbLH38S7); for more practice, try the unit page (https://library.fiveable.me/ap-calculus/unit-5) and practice problems (https://library.fiveable.me/practice/ap-calculus).
How do I write my final answer for optimization FRQs to get full credit?
Write your answer like a short story that proves you followed the CED steps and interprets the result in context. Checklist (use on every optimization FRQ) - Define variables in words and with units. (e.g., “let x be the width in meters.”) - Write the objective function and any constraint(s). Show algebra that reduces to one-variable objective. - State the feasible region (domain/constraints) before differentiating. - Find critical points: compute f′(x), set = 0 (and check where f′ undefined). Show algebra or calculus steps. - Test candidates: evaluate objective at critical points AND at endpoints/boundary. Use the Candidates Test (or 2nd-derivative/1st-derivative test to justify a local extremum). - Give a clear conclusion sentence: identify the global max or min, give the value with units, and restate what the value means in context (FUN-4.C style). Example final sentence style: “The volume is maximized when x = 3 m; the maximum volume is 54 m^3.” Tip: if your calculus shows a local extremum, explicitly compare values to show it’s global. For more worked examples and phrasing, see the Topic 5.11 study guide (https://library.fiveable.me/ap-calculus/unit-5/solving-optimization-problems/study-guide/u2Y3MpOG6kkTtbLH38S7). For broader Unit 5 review and extra practice, check the unit page (https://library.fiveable.me/ap-calculus/unit-5) and the practice bank (https://library.fiveable.me/practice/ap-calculus).