Fiveable

♾️AP Calculus AB/BC Unit 5 Review

QR code for AP Calculus AB/BC practice questions

5.10 Introduction to Optimization Problems

5.10 Introduction to Optimization Problems

Written by the Fiveable Content Team • Last updated June 2026
Verified for the 2027 exam
Verified for the 2027 examWritten by the Fiveable Content Team • Last updated June 2026
♾️AP Calculus AB/BC
Unit & Topic Study Guides

AP Cram Sessions 2021

Pep mascot

TLDR

Optimization problems ask you to find the largest or smallest value of a quantity, like the most volume or the least surface area. You set up an objective function, use a constraint to reduce it to one variable, then use derivatives to find and confirm the minimum or maximum. This is the AP Calculus skill of using the derivative to locate extreme values in real contexts.

Why This Matters for the AP Calculus Exam

Optimization pulls together everything from earlier in Unit 5: critical points, the First Derivative Test, the Second Derivative Test, and checking endpoints. On the AP Calculus exam, you may see optimization in both multiple-choice and free-response settings, where you have to set up a function, find where its derivative is zero or undefined, and justify that you found a true maximum or minimum. Clear setup and justification matter for full, readable work, so naming your variables, stating the constraint, and confirming the type of extremum all help.

Key Takeaways

  • Optimization means finding a minimum or maximum value of a quantity using the derivative.
  • Write the quantity you want to optimize as an objective function, often with two variables at first.
  • Use the constraint equation to rewrite one variable in terms of the other so you have a single-variable function.
  • Find critical points where the derivative equals zero or does not exist.
  • Confirm whether each critical point is a minimum or maximum using the First or Second Derivative Test, and check endpoints when the interval is closed.
  • Answer the actual question asked, including the value or dimensions, not just the x value of the critical point.

What Optimization Problems Are

Optimization problems involve finding the best possible solution, usually the largest or smallest value of some quantity. "Optimizing" means maximizing or minimizing.

Calculus handles this because you already know how to find the minimum or maximum of a function: take its derivative and apply either the First Derivative Test or the Second Derivative Test.

The tricky part is that these problems usually start with two variables. The fix is one extra step: find a relationship (a constraint) between the two variables, then substitute so you can "get rid of" one. That leaves a single-variable function you already know how to differentiate.

Worked Example

Let s=x2+y2s = x^2 + y^2. If xy=36xy = -36, what xx and yy values minimize ss?

There are two variables, xx and yy, and you can only differentiate with respect to one. Rewrite one variable in terms of the other.

Because xy=36xy = -36, you can rewrite yy as 36x-\frac{36}{x}.

So you have:

s(x)=x2+(36x)2=x2+1296x2=x2+1296x2s(x) = x^2 + (-\frac{36}{x})^2=x^2+\frac{1296}{x^2}=x^2+1296x^{-2}

Note: ss becomes s(x)s(x) because the function is now written in terms of xx.

Now find the minimum of this function using the Second Derivative Test.

First, find the critical points where s(x)=0s'(x)=0:

s(x)=2x2592x3s'(x)=2x-2592x^{-3}

2x2592x3=02x-2592x^{-3}=0

2x=2592x32x=2592x^{-3}

2xx3=2592x3x32x\cdot x^3=2592x^{-3}\cdot x^3

2x4=25922x^4=2592

x4=1296x^4=1296

x=6,6x=-6, 6

Next, check the concavity of s(x)s(x) at these points to verify they are minimums.

s(x)=2+7776x4s''(x)=2+7776x^{-4}

Since the power of xx is even, s(x)s''(x) is positive for any xx. So s(x)s(x) is concave up at both x=6x=-6 and 66.

Therefore, both x=6x=-6 and 66 minimize s(x)s(x). If x=6x=-6, then y=6y=6. If x=6x=6, then y=6y=-6.

The final solution is (6,6)(-6, 6) and (6,6)(6, -6).

How to Use This on the AP Calculus Exam

Problem Solving

A reliable order of steps:

  1. Identify the quantity to optimize and write it as an objective function.
  2. Find the constraint equation that links your variables.
  3. Substitute so the objective function depends on one variable.
  4. Find critical points where the derivative equals zero or is undefined.
  5. Confirm minimum or maximum using the First or Second Derivative Test, and check endpoints if the interval is closed.
  6. Return to the original question and report the value or dimensions asked for.

Free Response

When you justify, refer to the actual function by name and state your reasoning. For example, "since s(x)>0s''(x)>0, ss is concave up, so this critical point gives a minimum." Vague statements like "it goes up" do not show calculus reasoning.

Common Trap

Stopping after you find the critical xx value. The question often wants the minimum surface area, the dimensions, or a (x,y)(x, y) pair, so plug back in and answer what was asked.

Practice Problems

Question 1

An open-topped play area with a square base is designed to hold 32 cubic feet of sand. What is the minimum exterior surface area of the play area?

Question 2

121 square inches of text is to be printed on a card. If there are to be exactly one-inch margins around all four sides of the text, what is the width and height of the smallest card that can be used?

Answers and Solutions

Question 1

The answer is 48 square feet. Here's why:

Let the side length of the square base be xx and the height be hh.

The volume can be expressed as:

V=x2hV=x^2h

Since the volume is 32 cubic feet:

x2h=32x^2h=32

Rewrite hh in terms of xx:

h=32x2h=\frac{32}{x^2}

You want to minimize the surface area of the open-topped play area:

S(x)=x2+4xh=x2+4x(32x2)S(x)=x^2+4xh=x^2+4x\cdot (\frac{32}{x^2})

This simplifies to:

S(x)=x2+128xS(x)=x^2+\frac{128}{x}

Find the critical points:

S(x)=0S'(x)=0

S(x)=2x128x2S'(x)=2x-128x^{-2}

2x128x2=02x-128x^{-2}=0

2x=128x22x=128x^{-2}

2xx2=128x2x22x \cdot x^2=128x^{-2}\cdot x^2

2x3=1282x^3=128

x3=64x^3=64

x=4x=4

Check the concavity to verify a minimum:

S(x)=2+256x3S''(x)=2+256x^{-3}

S(4)=2+25643=6S''(4)=2+256\cdot 4^{-3}=6

Since 6>06>0, S(x)S(x) is concave up at x=4x=4.

By the Second Derivative Test, x=4x=4 minimizes S(x)S(x).

The minimum surface area is:

S=42+1284=48ft2S=4^2+\frac{128}{4}=48 ft^2

Question 2

The answer is 13 inches by 13 inches. Here's the work:

Let xx be the width of the printed text and yy the height. Since the area of the printed text is 121 square inches:

y=121xy=\frac{121}{x}

Using the one-inch margins on all four sides, the width of the card is:

width=x+2width=x+2

And the height of the card is:

height=121x+2height=\frac{121}{x}+2

The area of the card is:

A(x)=(x+2)(121x+2)A(x)=(x+2)(\frac{121}{x}+2)

Expanded and simplified:

A(x)=2x+125+242xA(x)=2x+125+\frac{242}{x}

Find the critical points where A(x)=0A'(x)=0:

A(x)=2242x2A'(x)=2-\frac{242}{x^2}

2242x2=02-\frac{242}{x^2}=0

x=11,11x=-11,11

Take the positive solution because width cannot be negative.

Verify x=11x=11 is a minimum by checking concavity:

A(x)=484x3A''(x)=\frac{484}{x^3}

A(11)>0A''(11)>0

A(x)A(x) is concave up at x=11x=11.

By the Second Derivative Test, x=11x=11 minimizes A(x)A(x).

The width of the printed area is 11 inches and the height is 11 inches.

Adding the margins, the dimensions of the card are 13 inches by 13 inches.

Common Misconceptions

  • Thinking the critical xx value is the final answer. You usually need a value, an area, or full dimensions, so substitute back in.
  • Skipping the verification step. A critical point is not automatically a minimum or maximum, so use the First or Second Derivative Test to confirm.
  • Forgetting the constraint. Without using the constraint to remove a variable, you cannot reduce the problem to a single-variable function you can differentiate.
  • Ignoring the domain. Negative or zero values often do not make sense for lengths, areas, or volumes, so reject solutions that break the physical setup.
  • Forgetting to check endpoints on a closed interval. An absolute extremum can occur at an endpoint, not just at a critical point.
  • Using vague language like "it goes up" in justifications. Refer to ff, ff', or ff'' by name and state the calculus reason.

Vocabulary

The following words are mentioned explicitly in the College Board Course and Exam Description for this topic.

Term

Definition

derivative

The instantaneous rate of change of a function at a specific point, representing the slope of the tangent line to the function at that point.

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.

optimization

The process of finding the minimum or maximum value of a function on a given interval.

Frequently Asked Questions

How do I solve AP Calculus optimization problems?

Identify the quantity to maximize or minimize, write an objective function, use a constraint to make it one variable, take the derivative, find critical points, and verify the maximum or minimum with a derivative test or endpoint check.

What is an objective function in optimization?

The objective function is the quantity you want to optimize, such as area, volume, distance, or cost. It often starts with two variables, then a constraint lets you rewrite it as one-variable function.

What is a constraint in an optimization problem?

A constraint is the relationship that links the variables in the situation, such as fixed volume, fixed perimeter, or a geometry formula. You use it to substitute one variable in terms of another.

How do derivatives help with optimization?

Derivatives locate critical points where a function can have a maximum or minimum. After finding where f' is zero or undefined, you still need to confirm the extremum and answer the original question.

Do I need to check endpoints in optimization?

Yes, if the feasible domain is a closed interval. The Extreme Value Theorem says absolute extrema on a closed interval can occur at critical points or endpoints, so check both when endpoints are included.

What is the most common optimization mistake?

The most common mistake is stopping at the critical x-value. Many problems ask for dimensions, a maximum value, a minimum cost, or an ordered pair, so substitute back and answer the question in context.

Pep mascot
Upgrade your Fiveable account to print any study guide

Download study guides as beautiful PDFs See example

Print or share PDFs with your students

Always prints our latest, updated content

Mark up and annotate as you study

Click below to go to billing portal → update your plan → choose Yearly→ and select "Fiveable Share Plan". Only pay the difference

Plan is open to all students, teachers, parents, etc
Pep mascot
Upgrade your Fiveable account to export vocabulary

Download study guides as beautiful PDFs See example

Print or share PDFs with your students

Always prints our latest, updated content

Mark up and annotate as you study

Plan is open to all students, teachers, parents, etc
report an error
description

screenshots help us find and fix the issue faster (optional)

add screenshot

2,589 studying →