Study Guide

Solving Optimization Problems

AP Calculus ABΒ· AP Calculus AB CED β€” Unit 5 Analytical Applications of DifferentiationΒ· 14 min read

1. 1. Introduction to Optimization Problemsβ˜…β˜…β˜†β˜†β˜†β± 2 min

Optimization problems are applied absolute extrema problems that ask you to find the maximum or minimum possible value of a real-world quantity (area, volume, profit, time) under given constraints. Unlike abstract extrema problems where you are given a function directly, optimization requires you to first translate a word problem into a single-variable objective function before finding the absolute extremum.

This topic appears regularly on both multiple-choice and free-response sections of the AP Calculus AB exam, often as a multi-part FRQ worth multiple points, and counts as part of the 15-18% of Unit 5 exam score.

πŸ“˜ Definition

Optimization Problem

An applied extrema problem that requires finding the maximum or minimum value of a contextual quantity subject to fixed constraints.

Example:

Finding the maximum area of a rectangle with a fixed perimeter is a common optimization problem.

2. 2. Setting Up the Objective Function and Constraintβ˜…β˜…β˜…β˜†β˜†β± 3 min

The most challenging step of any optimization problem is correctly translating the verbal problem into mathematical equations. Every optimization problem has two key non-negotiable components.

  1. Explicitly define all variables, labeling what each represents (include units where applicable)

  2. Write the objective quantity as a function of all your variables

  3. Use the constraint to solve for one variable in terms of the other, substitute into the objective function to get a single-variable function

  4. Find the valid domain of the objective function based on physical constraints of the problem

πŸ“ Worked Example

You have 120 feet of fencing to enclose a rectangular pen along a straight river, with no fencing needed along the river. Set up the objective function for the maximum area of the pen, with correct domain.

  1. 1

    Define variables: Let = the length of each side perpendicular to the river, = length parallel to the river. All lengths are positive: .

  2. 2

    Objective: Maximize area .

  3. 3

    Constraint: Total fencing is 120 ft, so .

  4. 4

    Solve constraint for :

  5. 5
    y=120βˆ’2xy = 120 - 2x
  6. 6

    Substitute to get single-variable objective function:

  7. 7
    A(x)=x(120βˆ’2x)=120xβˆ’2x2A(x) = x(120 - 2x) = 120x - 2x^2
  8. 8

    Find domain: Since and , we get .

  9. 9

    Final result: Objective function , domain .

Exam tip:

Always explicitly find the domain before taking derivatives. Contextual problems almost always have domain restrictions that are critical to your final answer, and skipping this step can lead to invalid results.

3. 3. The Closed Interval Method for Optimizationβ˜…β˜…β˜…β˜†β˜†β± 3 min

If your objective function is continuous over a closed, bounded interval , the Extreme Value Theorem guarantees that the function has both an absolute maximum and an absolute minimum on the interval. The Closed Interval Method is the most straightforward, reliable technique for finding these absolute extrema, and it is the most commonly tested method on the AP exam.

  1. Confirm the objective function is continuous on (almost always true for AP problems)

  2. Find all critical points of on the open interval

  3. Evaluate at each critical point and at both endpoints and

  4. The largest value is the absolute maximum, the smallest value is the absolute minimum

πŸ“ Worked Example

Using the fencing pen problem from the previous section: over , find the maximum possible area of the pen.

  1. 1

    Confirm continuity: is a polynomial, so it is continuous on , so the Extreme Value Theorem applies.

  2. 2

    Find critical points: Compute first derivative:

  3. 3
    Aβ€²(x)=120βˆ’4xA'(x) = 120 - 4x
  4. 4

    Set equal to zero:

  5. 5
    120βˆ’4x=0β€…β€ŠβŸΉβ€…β€Šx=30120 - 4x = 0 \implies x=30
  6. 6

    One critical point at , inside the interval.

  7. 7

    Evaluate at all candidates: , ,

  8. 8

    The largest value is 1800, so maximum area is 1800 square feet.

Exam tip:

Even if the critical point is obviously the maximum, you must still evaluate the endpoints to earn full credit on FRQs. AP graders require explicit confirmation that the interior point is larger than the endpoints.

4. 4. Optimization on Open Intervalsβ˜…β˜…β˜…β˜†β˜†β± 3 min

Many optimization problems have a domain that is open (e.g., ) or has only one endpoint. In these cases, the Extreme Value Theorem does not guarantee an absolute extremum, but for almost all AP contextual problems, there will be exactly one critical point in the domain. We can use the First or Second Derivative Test to confirm this critical point is the absolute extremum.

  • First Derivative Test: If increasing before and decreasing after β†’ absolute maximum; if decreasing before and increasing after β†’ absolute minimum

  • Second Derivative Test: If (concave down) β†’ absolute maximum; if (concave up) β†’ absolute minimum

πŸ“ Worked Example

A small business sells custom phone cases, and daily profit from producing cases is given by , for . Find the maximum possible daily profit.

  1. 1

    Domain is , an open interval, so we use the Second Derivative Test.

  2. 2

    Find critical points: First derivative:

  3. 3
    Pβ€²(x)=βˆ’x+35P'(x) = -x + 35
  4. 4

    Set equal to zero:

  5. 5
    βˆ’x+35=0β€…β€ŠβŸΉβ€…β€Šx=35-x + 35 = 0 \implies x=35
  6. 6

    is the only critical point in the domain.

  7. 7

    Second derivative:

  8. 8
    Pβ€²β€²(x)=βˆ’1P''(x) = -1
  9. 9

    for all , so is a local maximum. Since it is the only critical point, it is the absolute maximum.

  10. 10

    Calculate profit:

  11. 11
    P(35)=βˆ’0.5(35)2+35(35)βˆ’150=462.5P(35) = -0.5(35)^2 + 35(35) - 150 = 462.5
  12. 12

    Final result: Maximum daily profit is $462.50.

Exam tip:

If you have only one critical point in the domain, always explicitly state that it is the absolute extremum because of the test result β€” this is a required step for full credit on FRQs.

5. 5. Additional AP-Style Worked Examplesβ˜…β˜…β˜…β˜…β˜†β± 3 min

πŸ“ Worked Example

You have 80 meters of fencing to enclose a rectangular garden, with fencing required on all four sides. What is the maximum possible area of the garden?
A) B) C) D)

  1. 1

    Define variables: = length of one side, = adjacent side. Objective: Maximize . Constraint: Perimeter = 80 β†’ . Domain .

  2. 2

    Objective function:

  3. 3
    A(x)=x(40βˆ’x)=40xβˆ’x2A(x) = x(40 - x) = 40x - x^2
  4. 4

    Find critical point:

  5. 5
    Aβ€²(x)=40βˆ’2x=0β€…β€ŠβŸΉβ€…β€Šx=20A'(x) = 40 - 2x = 0 \implies x=20
  6. 6

    Evaluate candidates: , , . Maximum area is , correct answer is C.

πŸ“ Worked Example

An open-top cardboard box is made by cutting equal squares of side from each corner of a 10in Γ— 15in cardboard sheet, then folding up sides. (a) Write and state its domain. (b) Find and classify critical points. (c) Find maximum volume and justify.

  1. 1

    Part (a): After cutting, base dimensions are Γ— , height . Volume:

  2. 2
    V(x)=x(15βˆ’2x)(10βˆ’2x)=4x3βˆ’50x2+150xV(x) = x(15-2x)(10-2x) = 4x^3 - 50x^2 + 150x
  3. 3

    All sides positive β†’ domain .

  4. 4

    Part (b): First derivative:

  5. 5
    Vβ€²(x)=12x2βˆ’100x+150V'(x) = 12x^2 - 100x + 150
  6. 6

    Quadratic formula gives roots , only is inside the domain. , so it is a local maximum. Endpoints are minima with .

  7. 7

    Part (c): By Closed Interval Method, cubic inches, which is larger than endpoints. Maximum volume is ~132 cubic inches.

πŸ“ Worked Example

A hiker is 2 miles off a straight paved road. They hike 4 mph off-road and 5 mph on-road. They want to reach a parking lot 6 miles down the road from the nearest point. Find the minimum possible travel time.

  1. 1

    Let = distance along road from nearest point to exit point. Off-road distance: , on-road distance: . Domain .

  2. 2

    Time = distance/speed, so:

  3. 3
    T(x)=x2+44+6βˆ’x5T(x) = \frac{\sqrt{x^2 + 4}}{4} + \frac{6-x}{5}
  4. 4

    Derivative set to zero: β†’ solving gives , inside domain.

  5. 5

    Evaluate candidates: hours, hours, hours. Minimum time is 1.5 hours (90 minutes).

6. Common Pitfalls

Wrong move:

Forgetting to restrict the domain of the objective function to physically valid values, e.g., allowing negative side lengths.

Why:

Students rush to take derivatives after setting up the function and skip the domain step, leading to testing invalid -values.

Correct move:

Always write the domain explicitly after setting up the objective function, before proceeding to find critical points.

Wrong move:

Stopping at finding the critical point and not confirming it is the absolute maximum/minimum, especially on open intervals.

Why:

Students assume any critical point is the desired extremum without justifying it, which loses points on FRQs.

Correct move:

For closed intervals, evaluate at endpoints and critical points; for open intervals, apply the first or second derivative test and explicitly state the conclusion that it is the absolute extremum.

Wrong move:

Maximizing or minimizing the wrong quantity, e.g., maximizing side length instead of area in a fencing problem.

Why:

Students misread the problem statement and mix up the objective and the constraint.

Correct move:

Underline the quantity the problem asks you to maximize/minimize when you first read the problem, and label your objective function clearly with that quantity.

Wrong move:

Leaving the objective function as a function of two variables after substitution.

Why:

Students are careless with substitution and don't check that all extra variables are eliminated.

Correct move:

After substitution, confirm that your objective function only has one independent variable, with no other variables remaining.

Wrong move:

Forgetting that the absolute extremum can occur at an endpoint of the domain, even if it is not a critical point.

Why:

Students only test critical points and skip endpoints, leading to the wrong answer when the maximum/minimum is at the boundary.

Correct move:

For closed intervals, always add endpoints to your list of candidate points to evaluate.

Wrong move:

Using the second derivative test when or does not exist.

Why:

Students overgeneralize the second derivative test and forget its limitations.

Correct move:

If or does not exist, use the first derivative test to classify the critical point instead.

7. Quick Reference Cheatsheet

Category

Formula / Steps

Notes

Objective Function

= quantity to maximize/minimize

Must be single-variable after constraint substitution

Constraint

Fixed relationship between variables

Used to eliminate extra variables; do not confuse with objective

Closed Interval Method

  1. Find critical points; 2. Evaluate at critical points + endpoints; 3. Select largest/smallest value

Only for continuous functions on closed bounded intervals; required for full AP FRQ credit

First Derivative Test (Open Interval)

Increasing before , decreasing after β†’ absolute max; decreasing before, increasing after β†’ absolute min

Use when exactly one critical point in open domain

Second Derivative Test (Open Interval)

β†’ absolute max; β†’ absolute min

Only works if and ; use first derivative if

Domain Restriction

must satisfy physical constraints

All lengths, areas, counts are positive; domain required before finding extrema

Extreme Value Theorem

Continuous on has absolute max and min on

Guarantees extrema exist for closed interval optimization

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 Β· FRQ

    Multi-part box volume optimization

  • 2022 Β· MCQ

    Profit maximization problem

Going deeper

What's Next

Solving optimization problems is the capstone applied skill for Unit 5: Analytical Applications of Differentiation. After mastering optimization, you will next apply the same core skills of translating context to mathematical equations to related rates problems, which require implicit differentiation to solve for unknown rates of change. Without mastering variable definition, equation setup, and derivative-based extrema classification from this topic, related rates and other applied derivative problems will be significantly harder to solve correctly. Optimization also builds on the extrema concepts you learned earlier in Unit 5, and it prepares you for integration applications like finding total profit from marginal cost functions later in the AP Calculus AB course.