AP® CALCULUS AB & BC · UNIT 5

Solving Optimization Problems

Find the best cut size, the closest point, or the lowest cost. Use derivatives to justify the optimum and explain what the result means in the original situation.

Topic 5.11 study notes5 worked examples · 5 practice questionsUpdated 10 November 2026
Calculus notebook with limit and integral symbols, a compass and pencil on an olive and cream study desk

1. Interpret the optimum in context

Topic 5.11 asks you to interpret the maximum or minimum you calculate in an applied problem. Connect the input that achieves the optimum to the quantity being optimized. A cut size, a box’s dimensions, and its maximum volume answer different parts of the same question.

Optimal input

The allowed choice that achieves the optimum, such as a cut length, a point on a curve, or a weekly production quantity.

Optimal value

The objective evaluated at that input, such as a maximum volume, a minimum distance, or a weekly profit.

Use the original constraint to recover any other dimensions. Include units and state the physical or practical meaning of the result.

2. Build and justify a solution

  1. Translate the question. Define variables with units and identify the objective. Sketch the geometry when it helps write the constraint.
  2. Use the constraint. Write one variable in terms of another, then substitute. A symmetry claim needs a reason the symmetric choice improves or preserves the objective.
  3. Set the feasible domain. Decide whether boundary values and fractional inputs are permitted.
  4. Find candidates. Solve Q′(x)=0 for the one-variable objective Q. Include interior inputs where Q is defined and Q′ is undefined.
  5. Prove the result is absolute. For a continuous objective on a closed bounded interval, compare interior critical values and included endpoints. For open or unbounded intervals, use signs across the domain, boundary limits, or a global inequality.
  6. Interpret and check. Recover the other dimensions, evaluate the optimum, and check that the final answer satisfies the original constraint.
Use squared distance to compare points.

Distances are nonnegative, so minimizing d2 locates the same points as minimizing d. Take the square root of the minimum squared distance when reporting the distance itself.

3. Read a cut pattern and its volume graph

Cutting a square of side x from each corner of a 12-inch sheet produces a base of side 12−2x and height x. The first diagram shows the cut pattern at the optimum. The second shows how the volume changes with the cut size.

Cut pattern at the optimum

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ 0 2 10 12 Sheet width (in) 0 2 10 12 Sheet height (in) Cut Cut Cut Cut Base
Four 2-inch corner squares are removed. The blue flaps fold up around the 8-inch square base.

Volume on the feasible interval

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ 0 1 2 3 4 5 6 Cut size (in) 0 32 64 96 128 Volume (in³) Maximum
The peak is at x=2 inches. Open circles at 0 and 6 mark the degenerate cases with zero volume.

4. Five worked examples

Worked example 1

Maximize the volume of an open-top box

Cut equal squares from the corners of a 12-inch by 12-inch sheet and fold up the sides. Find the cut size that maximizes the box’s volume.

1 · Write the objective on its feasible domain

Let x be the side of each cut square in inches. The base side is 12−2x, and the height is x. These dimensions are positive when 0<x<6.

V(x)=x(12−2x)2

2 · Find the best feasible cut size

V′(x)=12(x−2)(x−6)

The only interior zero is x=2. The derivative is positive on (0,2) and negative on (2,6), so this cut gives the absolute maximum. The extension to the two limiting cuts gives zero volume.

Volume at the critical cut size and limiting boundaries
Cut (in)Volume (in3)Role
00Excluded boundary
2128Feasible maximum
60Excluded boundary

3 · Translate the cut into a box

Cut 2-inch squares. The folded box has an 8in by 8in base and a height of 2in.

V(2)=128in3
Worked example 2

Find both closest points on a parabola

Find the point or points on y=x2 closest to (0,1). Also give the minimum distance.

1 · Set up squared distance

A point on the parabola has coordinates (x,x2). Every real x is allowed.

D(x)=x2+(x2−1)2
D(x)=x4−x2+1

2 · Identify and classify the candidates

D′(x)=2x(2x2−1)

The derivative is zero at 0 and at ±22. Since D″(x)=12x2−2, the second derivative is negative at zero and positive at the other two candidates.

Candidates for the shortest distance
Input xSquared distance D(x)Local behavior
±2234Minima
01Maximum

3 · Prove that both minima are absolute

D(x)=(x2−12)2+34

The square is nonnegative for every real input. It equals zero at both inputs with x2=12, so both attain the least squared distance.

4 · Recover the coordinates and the actual distance

(±22,12)

Both points have height 12. The shortest distance from (0,1) to either point is 32 coordinate units.

Two equally close points

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −1.5 −1.0 −0.5 0.0 0.5 1.0 1.5 Horizontal position 0.0 0.5 1.0 1.5 2.0 Vertical position Given point
Both segments start at (0,1) and have the same length.

Squared distance near the minima

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −1.0 −0.5 0.0 0.5 1.0 Horizontal position 0.75 1.00 1.25 1.50 1.75 Squared distance Min Min
Both minima have value 34. The full domain includes all real inputs.
Worked example 3

Maximize the area of a Norman window

A Norman window consists of a rectangle topped by a semicircle. Its outer perimeter is 30 feet. Find the dimensions that maximize the area.

1 · Set the perimeter and area equations

Let r be the semicircle’s radius and h the rectangle’s height, in feet. The bottom is 2r, the vertical sides total 2h, and the arc is πr. The shared seam lies inside the window.

2r+2h+πr=30
A=2rh+πr22

2 · Express area using the radius

h=30−(2+π)r2

Positive radius and rectangle height require 0<r<302+π.

A(r)=30r−4+π2r2

3 · Find the maximum on that interval

A′(r)=30−(4+π)r
r=304+π

This value lies in the feasible interval. The derivative is positive before it and negative afterward throughout the interval, giving the absolute maximum.

4 · Report the width, heights, and area

The perimeter equation gives h=r. The rectangle’s height and the arc’s radius are each about 4.20ft. The full width and the total height both equal 2r, about 8.40ft.

Amax=4504+πft2

The window at the maximum area

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −4 −2 0 2 4 Horizontal position (ft) 0 2 4 6 8 Height (ft) Semicircle Rectangle
The rectangle’s height equals the radius. The dashed seam divides the two shapes inside the window.
Worked example 4

Find the most profitable weekly output

A company can sell x items per week at 200−x2 dollars per item. The weekly cost is 50x+10000 dollars. Find the production level that maximizes weekly profit.

1 · Build a profit function and set its domain

Revenue is quantity times price. Subtract weekly cost to get

P(x)=150x−x22−10000

Nonnegative price and quantity restrict the model to integers from 0 through 400.

2 · Find the peak and check that it is feasible

P′(x)=150−x

The continuous profit model rises up to 150 and falls afterward on [0,400]. Since 150 is a feasible integer, it also maximizes profit among the allowed production levels.

3 · State the quantity, price, and profit

Produce and sell 150 items per week at 125 dollars each. Weekly revenue is 18750 dollars and weekly cost is 17500 dollars. The difference is a maximum profit of 1250 dollars per week.

The continuous profit model

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ 0 100 150 200 300 400 Items per week −30000 −20000 −10000 0 Profit (dollars) Max profit
The peak at 150 is an allowed integer production level. Both model endpoints are included.
Worked example 5

Minimize cost with two material prices

An open-top rectangular container must hold 10m3. Base material costs 10 dollars per square meter and side material costs 6 dollars per square meter. Find the least-cost dimensions and the minimum cost.

1 · Express cost using the dimensions

Let the base sides be a and b, and the height be h, in meters. The volume constraint is abh=10.

C=10ab+12h(a+b)

2 · Justify using a square base

Fix the base area ab. Then h=10ab and the base cost are fixed. Minimizing the side cost amounts to minimizing a+b.

a+b≥2ab

This follows from (a−b)2≥0 because both sides are positive. Equality occurs at a=b, so for every base area the square gives the least cost.

3 · Optimize the square-base model

Let s>0 be the common base side. Then h=10s2.

C(s)=10s2+240s
C′(s)=20s−240s2

The derivative is zero at s=123. Its sign comes from 20s3−240, negative before that input and positive after it. This establishes the absolute minimum.

4 · Recover the height and total cost

h=10s2

The base is about 2.29m by 2.29m, and the height is about 1.91m. At the optimum s3=12, so 240s=20s2.

Cmin=301443

The minimum cost is about 157.24 dollars.

Cost for square-base containers

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ 1 2 3 4 5 Base side (m) 150 200 250 300 350 Cost (dollars) Minimum
The minimum occurs at the common base side 123 meters. The curve shows part of the positive-side domain.

5. Recognize common optimization models

Recognize the constraint in each situation
SituationModeling move
Fence against a wallWrite the fence equation using the three sides that need fencing. Then maximize the area.
Closed canUse fixed volume to express height using radius. Equal surface costs give h=2r at the minimum. Different material rates change that ratio.
Inscribed shapeUse an equation for the boundary to express height in terms of width.
Poster with marginsKeep the printed area fixed. Add both margins in each direction before forming the total area.
Light intensityFor an inverse-square model use I=kd2 with d>0. Use the geometry to determine the feasible distances.
Travel timeFor two legs at fixed speeds use T=d1v1+d2v2. Express both distances using the route constraint.
Cone in a sphereUse a right triangle in the spherical cross-section to relate the cone’s base radius and height.

6. Five practice questions

1. Largest rectangle in a circle

Find the dimensions of the maximum-area rectangle inscribed in a circle of radius 5.

Show solution 1

1 · Relate half-width and half-height

Let a>0 and b>0 be the half-width and half-height. Then a2+b2=25, and the area is 4ab. On 0<a<5, the area is positive.

F(a)=16a2(25−a2)

Here F is squared area, so its maximum occurs at the same rectangle as the maximum area.

2 · Find the optimal dimensions

F′(a)=32a(25−2a2)

The derivative changes from positive to negative at a=52. The constraint gives the same value for b. Both full sides are 52, and the maximum area is 50 square units.

2. Closed can with a higher-priced lid

A closed can must hold 1000cm3. The base and curved side have the same positive cost per square centimeter. The lid costs twice that rate. Find the least-cost radius and height.

Show solution 2

1 · Weight the areas by their costs

Divide the total cost by the common positive rate. The base and lid contribute 3πr2 in this scaled objective. Use h=1000πr2 for the side.

K(r)=3πr2+2000r

2 · Use the derivative and recover the height

K′(r)=6πr−2000r2
r=10003π3

On r>0, the derivative changes from negative to positive at this radius. The critical equation gives 3πr3=1000, so the least-cost height is h=3r. Both dimensions are measured in centimeters.

3. Largest rectangle on the base of a triangle

An isosceles triangle has base 10 and height 8. The rectangle’s lower edge lies on the base and its upper corners lie on the sloping sides. Find the largest-area dimensions.

Show solution 3

1 · Use similar triangles

At height h, the triangle above the rectangle has height 8−h and base equal to the rectangle’s width. The feasible heights satisfy 0<h<8.

w=10(1−h8)
A(h)=10h−5h24

2 · Interpret the maximizing height

A′(h)=10−5h2

The derivative is positive before h=4 and negative afterward. At that height the width is 5, giving maximum area 20 square units.

4. Related-rates review with a moving shadow

A 6-foot person walks away from a 20-foot light pole at 5 feet per second. How fast does the tip of the shadow move away from the pole?

Show solution 4

1 · Use the similar triangles

This Unit 4 review asks for a rate. Let x be the person’s distance from the pole and y the shadow’s length, both in feet. The tip is x+y feet from the pole.

20x+y=6y
x+y=10x7

2 · Differentiate the tip’s position

d(x+y)dt=107dxdt

The tip moves away from the pole at 507 feet per second.

5. Fence a field with one divider

A farmer has 2000 feet of fencing for a rectangle and a single straight divider parallel to one side. Find the dimensions that maximize total area.

Show solution 5

1 · Count the three parallel fence segments

Let x be the length parallel to the divider and y the perpendicular length, in feet. Then 3x+2y=2000 and 0<x<20003.

A(x)=1000x−3x22

2 · Find the maximum and report the orientation

A′(x)=1000−3x

The derivative changes from positive to negative at x=10003. The constraint gives y=500.

The side parallel to the divider is 10003 feet, and the perpendicular side is 500 feet. The maximum area is 5000003 square feet.

7. Write an AP-style justification

Write the reason the candidate gives an absolute result, then interpret it in a complete sentence. Include every quantity the prompt asks for and give its units.

AP-style justification

From a derivative to a design decision

Justify the candidate

For the open-top box, V′ is positive on (0,2) and negative on (2,6). Thus V attains its absolute maximum at x=2 on the feasible interval.

Say what the numbers mean

Cut 2-inch squares from the corners. The base side is 8 inches and the height is 2 inches, giving a maximum volume of 128 cubic inches.

  • Use the objective when comparing candidates. Check the constraint again after finding the dimensions.
  • Keep exact values through the calculation. Round the final quantities with their units.
  • If several feasible inputs attain the same optimum, report every input the question asks for.

8. Frequently asked questions

Can two different choices be equally optimal?

Yes. In the parabola example, two different points have the same minimum squared distance, 34, so both are closest.

When can I use a square base?

Use the square base when the problem requires it or when you can prove it gives the best value. In the storage example, fixing the base area fixes the height, and equal sides minimize the side cost for that base area.

What if a production quantity must be a whole number?

Check that the continuous optimum is feasible. If the model rises to a single peak and then falls, compare the closest feasible integers on either side when the peak itself is fractional.

How do I explain the optimum in context?

State the choice and the outcome with their units. For example, 150 items per week is the production quantity, and 1250 dollars per week is the maximum profit.

9. Continue studying calculus

Review the introductory optimization method and the Candidates Test. Then continue to slopes and extrema of implicitly defined curves.