Study Guide

Introduction to Optimization Problems

AP Calculus AB· AP Calculus AB CED — Analytical Applications of Differentiation· 14 min read

1. Core Overview of Optimization Problems★★☆☆☆⏱ 3 min

Optimization problems are applied calculus questions that ask you to find the maximum or minimum possible value of a real-world quantity (such as area, cost, profit, or volume) given a set of fixed limiting conditions. This topic accounts for 15–18% of the total AP Calculus AB exam score, and appears in both multiple-choice and free-response sections.

Synonyms for optimization in exam questions include “find the maximum possible,” “determine the minimum value,” or “what dimensions will minimize/optimize” the target quantity. Unlike abstract extrema problems, optimization requires you to first construct the function to optimize from a verbal description, which is the skill most heavily tested on the AP exam.

📘 Definition

Optimization Problem

An applied problem that requires finding the maximum or minimum value of a quantity, subject to a fixed set of limiting conditions

Example:

Finding the dimensions of a garden that maximize area for a fixed amount of fencing

2. Identifying Objective and Constraint Functions★★★☆☆⏱ 3 min

The first and most error-prone step of any optimization problem is separating the problem’s information into two core relationships:

📘 Definition

Objective Function

The function whose value you need to maximize or minimize, as stated or implied by the problem

Example:

If a question asks for dimensions that minimize material cost, cost is the objective

📘 Definition

Constraint Function

A fixed limiting condition that relates multiple variables in the objective, allowing you to reduce the objective to a single-variable function that can be differentiated

  1. Label all unknown quantities with variables

  2. Write an equation for the quantity you need to optimize (the objective)

  3. Write an equation for the fixed constraint that relates your variables

  4. Solve the constraint for one variable and substitute into the objective to get a single-variable function

📐 Worked Example

A rectangular garden is to be enclosed by 120 feet of fencing. One side of the garden borders a river, so no fencing is needed along the river. Identify the objective function and constraint function, then reduce the objective to a single-variable function for maximizing the garden’s area.

  1. 1

    Let = length of each side perpendicular to the river, and = length of the side parallel to the river. Both are positive lengths, so .

  2. 2

    We need to maximize area, so the objective function is:

  3. 3
    A=xyA = x \cdot y
  4. 4

    The total fencing available is 120 feet, with fencing only for two perpendicular sides and one parallel side, so the constraint is:

  5. 5
    2x+y=1202x + y = 120
  6. 6

    Solve the constraint for , then substitute into the objective to get the single-variable objective:

  7. 7
    A(x)=x(1202x)=120x2x2A(x) = x(120 - 2x) = 120x - 2x^2

Exam tip:

Draw a labeled diagram for all geometric optimization problems to avoid setup errors

3. Finding the Valid Contextual Domain★★★☆☆⏱ 3 min

Once you have a single-variable objective function, the next step is to find the interval of -values that make physical sense in the problem’s context. This domain is almost always a closed interval, so the Extreme Value Theorem applies: absolute extrema will occur either at critical points inside the interval or at the endpoints of the interval.

A common mistake is using the algebraic domain of the objective function instead of the contextual domain. For example, a quadratic objective function has an algebraic domain of all real numbers, but length cannot be negative or larger than the total amount of material available. To find the contextual domain:

  1. Require all original variables to be non-negative (zero is allowed for endpoints)

  2. Write inequalities for each variable, then solve for your single variable to get bounds

  3. Confirm the final domain is a closed interval

📐 Worked Example

Given the single-variable area objective function from the garden example, find the valid contextual domain for .

  1. 1

    Original variables: must be non-negative, so . The parallel length must also be non-negative.

  2. 2

    Solve the inequality for :

  3. 3
    1202x0    x60120 - 2x \geq 0 \implies x \leq 60
  4. 4

    Combine the bounds to get the valid closed domain:

  5. 5
    x[0,60]x \in [0, 60]

Exam tip:

Skipping domain setup will cost points even if your derivative is correct

4. Finding Optimal Values and Interpreting Results★★★★☆⏱ 5 min

The final step of the optimization process is testing to find the absolute maximum or minimum, then answering the question asked. For a closed interval domain, follow this process:

  1. Compute the first derivative of the objective function

  2. Find all critical points that lie inside the domain

  3. Evaluate the objective function at every interior critical point and both endpoints

  4. Select the largest value for a maximum, or the smallest for a minimum, then find any other requested values using the constraint

If the domain is open (e.g., for a radius) and there is only one critical point, you can use the second derivative test: if for all in the domain, the critical point is an absolute maximum; if , it is an absolute minimum. This works for most open-domain AP optimization problems.

📐 Worked Example

For the rectangular garden problem (maximize area with 120 feet of fencing, no fencing along the river), find the maximum area and the dimensions that produce it.

  1. 1

    We start with the objective and domain from previous steps:

  2. 2
    A(x)=120x2x2,x[0,60]A(x) = 120x - 2x^2, \quad x \in [0, 60]
  3. 3

    Compute the first derivative and find critical points:

  4. 4
    A(x)=1204x1204x=0    x=30A'(x) = 120 - 4x \\ 120 - 4x = 0 \implies x = 30
  5. 5

    is inside the domain. Evaluate at all candidate points:

  6. 6
    A(0)=0,A(30)=1800,A(60)=0A(0) = 0, \quad A(30) = 1800, \quad A(60) = 0
  7. 7

    The maximum value is 1800 square feet at . Use the constraint to find :

  8. 8
    y=1202(30)=60y = 120 - 2(30) = 60
  9. 9

    Final answer: Dimensions 30 ft (perpendicular) by 60 ft (parallel), maximum area 1800 square feet.

✓ Quick check

Test your understanding of setting up objective functions:

  1. A rectangular box with a square base is to be constructed. The total surface area of all 6 sides is 150 square inches. If is the side length of the square base, which of the following is the correct single-variable objective function for maximizing the volume of the box?

    Reveal answer
    2

    Correct. Let = height. Surface area constraint solves to . Substitute into to get the result.

📐 Worked Example

An open-top rectangular box is made by cutting out squares of equal side length from each corner of a 12 inch by 18 inch sheet of cardboard, then folding up the sides. Find the objective function, domain, critical points, and maximum volume.

  1. 1

    Height of the box equals , and base dimensions after cutting are and . The volume objective is:

  2. 2
    V(x)=x(122x)(182x)V(x) = x(12 - 2x)(18 - 2x)
  3. 3

    All dimensions must be non-negative, so domain is:

  4. 4
    x[0,6]x \in [0, 6]
  5. 5

    Expand, differentiate, and solve for critical points:

  6. 6
    V(x)=4x360x2+216xV(x)=12(x210x+18)x=5±7V(x) = 4x^3 - 60x^2 + 216x \\ V'(x) = 12(x^2 - 10x + 18) \\ x = 5 \pm \sqrt{7}
  7. 7

    Only is inside the domain. Second derivative test confirms it is a maximum:

  8. 8
    V(57)=247<0V''(5 - \sqrt{7}) = -24\sqrt{7} < 0
  9. 9

    Evaluate at candidates: , , . Final answer: Maximum volume is approximately 228 cubic inches at inches.

📐 Worked Example

A bakery's cost for a 6-inch tall round cake is dollars, where is the radius in inches, . What radius minimizes cost, and what is the minimum cost?

  1. 1

    This is an open-domain problem with one critical point. Compute first derivative and set to zero:

  2. 2
    C(r)=0.2r10r20.2r=10r2    r3=50    r3.68C'(r) = 0.2r - \frac{10}{r^2} \\ 0.2r = \frac{10}{r^2} \implies r^3 = 50 \implies r \approx 3.68
  3. 3

    Second derivative is always positive for , so this is an absolute minimum:

  4. 4
    C(r)=0.2+20r3>0r>0C''(r) = 0.2 + \frac{20}{r^3} > 0 \quad \forall r>0
  5. 5

    Evaluate cost: . Final answer: A radius of ~3.7 inches minimizes cost, for a minimum cost of ~$6.07 per cake.

5. Common Pitfalls

Wrong move:

Writing the constraint as instead of for the river-side garden problem.

Why:

Students default to memorized full perimeter formulas instead of reading that one side needs no fencing.

Correct move:

Label every side that requires material on your diagram, then add up lengths explicitly instead of relying on memorized formulas.

Wrong move:

Using the algebraic domain of the objective function instead of the contextual domain, e.g., leaving the domain as for the garden problem.

Why:

Students forget that length cannot be negative, and context restricts variables to a physically meaningful interval.

Correct move:

After writing the single-variable objective, always write inequalities requiring all original variables to be non-negative, then solve to get the closed contextual domain.

Wrong move:

Stopping after finding the critical point and not evaluating the objective function at endpoints.

Why:

Students assume the critical point must be the extremum and forget the Extreme Value Theorem requires checking endpoints.

Correct move:

Always list all interior critical points and both endpoints, evaluate the objective at all candidates, then select the maximum/minimum.

Wrong move:

After finding the optimal , forgetting to compute other requested variables from the constraint, e.g., giving only as the answer to a dimension question.

Why:

Students stop early after finding the critical point and do not confirm what the question asks for.

Correct move:

Reread the question's last sentence before writing your final answer to confirm you provided all requested values.

Wrong move:

Justifying a local maximum instead of an absolute maximum.

Why:

Students confuse local and absolute extrema, and AP requires explicit justification of absolute extrema for optimization.

Correct move:

Either evaluate the objective at all candidates to show your value is the largest, or use the second derivative test to confirm concavity over the entire domain.

Wrong move:

Solving the constraint for a squared variable, leading to square roots and unnecessary chain rule steps.

Why:

Students pick the first variable to solve for without checking which is easier.

Correct move:

Always solve the constraint for the variable that has a power of 1, to avoid roots and extra algebra errors.

6. Quick Reference Cheatsheet

Category

Rule/Formula

Notes

Objective Function

= quantity to maximize/minimize

Always single-variable after substituting constraint

Constraint Function

Fixed limiting relationship between variables

Contextual Domain Rule

All original variables

Endpoints included to form a closed interval

Closed Interval Optimization

Evaluate at all interior critical points + endpoints

Largest = absolute maximum, smallest = absolute minimum

Open Domain (Single Critical Point)

absolute max; absolute min

Applies to domains with one critical point

Closed 6-sided Box (Square Base)

SA = ,

= base side, = height

Cut-Out Open Box

= cut-out side, = original sheet dimensions

When this came up on past exams

AI-estimated based on syllabus patterns — cross-check with official past papers for accuracy. Use only as revision-focus signals.

  • 2023 · AB

    FRQ optimization of box volume

  • 2022 · AB MCQ

    Identify correct objective function

What's Next

Mastering the core 4-step optimization process is the foundation for all applied extremum problems in the AP Calculus AB curriculum. This topic ties together all prior Unit 5 concepts: derivatives, critical points, and extrema into a single applied framework that is heavily tested on both multiple-choice and free-response sections of the AP exam. Next, you will move on to more complex optimization problems, and connect these skills to related rates, where you optimize a changing quantity over time. You will also apply this same process to problems with non-linear constraints that require implicit differentiation. Without mastering this core process, more complex applied problems will be much harder to solve correctly.