Tutorials › AP Calculus › Optimization: Maximizing Area and Volume
← All AP Calculus Tutorials
AP Calculus AB & BC Intermediate

Optimization: Maximizing Area and Volume

How to turn a real-world problem into a function, use derivatives to find its maximum or minimum, and determine the dimensions that maximize area or volume.

What Optimization Problems Are Really Asking

Optimization problems ask you to find the largest or smallest possible value of some quantity. In AP Calculus, that quantity might be area, volume, distance, cost, revenue, or another measurable quantity.

The calculus itself is usually not the hardest part. The challenging step is translating the words of the problem into a mathematical function that you can differentiate.

For an area or volume problem, the basic strategy is:

  1. Identify what quantity you are trying to maximize or minimize.
  2. Write a formula for that quantity.
  3. Use the given information to express everything in terms of one variable.
  4. Find the critical points by setting the derivative equal to zero or identifying where it is undefined.
  5. Determine which critical point gives the maximum or minimum.
  6. Answer the question in the context of the original problem.

The Central Idea

Suppose the quantity you want to maximize is represented by . A maximum can occur at a critical point, where the derivative is zero or does not exist, or at an endpoint of the domain.

Geometrically, a maximum occurs when the graph of the objective function changes from increasing to decreasing. At a smooth interior maximum, the tangent line is horizontal.

The most important practical rule is this: do not differentiate until you have reduced the problem to one variable.

A Step-by-Step Optimization Method

Step 1: Define the variables

Give names to the unknown dimensions. For example, if a rectangle has length and width, let and .

Step 2: Identify the objective

Ask: What am I trying to maximize or minimize? That quantity becomes your objective function.

For a rectangle, area is . For a rectangular box, volume is .

Step 3: Find the constraint

The problem normally gives you some restriction connecting the variables. This is the constraint equation.

Step 4: Rewrite the objective using one variable

Use the constraint to solve for one variable and substitute it into the objective function.

Step 5: Differentiate

Find the derivative of the one-variable objective function.

Step 6: Find critical points

Solve and check any points where the derivative does not exist.

Step 7: Verify the maximum

A critical point is not automatically a maximum. Use the first derivative test, second derivative test, or compare the critical point with the endpoints of the domain.

Step 8: State the answer with units

If the question asks for dimensions, give dimensions. If it asks for maximum area, give square units. If it asks for maximum volume, give cubic units.

Worked Examples

Example 1: Maximum Area with a Fixed Perimeter

A rectangle has a perimeter of 40 units. What dimensions maximize its area?

Step 1: Let the length be and the width be .
Step 2 — Constraint: The perimeter is 40, so .
Step 3 — Solve for one variable: .
Step 4 — Objective: Rectangle area is .
Step 5 — Write area in terms of one variable: .
Step 6 — Differentiate: .
Step 7 — Critical point: Set the derivative equal to zero: .
Step 8 — Find the other dimension: .
Result: The maximum-area rectangle is a square with dimensions .
Maximum area: .
Example 2: Maximum Area with a Fixed Amount of Fencing

A farmer has 100 meters of fencing to enclose a rectangular field along a straight river. No fencing is needed along the river. What dimensions maximize the area?

Step 1: Let represent the width perpendicular to the river and represent the length along the river.
Step 2 — Constraint: Only three sides require fencing: .
Step 3 — Solve for the length: .
Step 4 — Objective: The area is .
Step 5 — Substitute: .
Step 6 — Differentiate: .
Step 7 — Critical point: .
Step 8 — Find the length: .
Result: The dimensions that maximize area are .
Maximum area: .
Example 3: Maximum Volume of an Open-Top Box

Squares of side length are cut from each corner of a 20-by-12-inch sheet of cardboard. The sides are folded upward to form an open-top box. What value of maximizes the volume?

Step 1 — Identify the dimensions: After cutting out the squares, the box has height , length , and width .
Step 2 — Write the volume: .
Step 3 — Expand if useful: .
Step 4 — Differentiate: .
Step 5 — Find critical points: Set the derivative equal to zero: .
Step 6 — Solve: .
Step 7 — Select the feasible value: Since , the valid critical point is .
Result: The volume is maximized when the corner squares have side length .
Maximum volume: .
Example 4: Maximum Volume of a Cylinder

A cylinder has a fixed volume of . Find the relationship between its radius and height that minimizes its surface area.

Step 1 — Constraint: The volume of a cylinder is .
Step 2 — Solve for height: .
Step 3 — Objective: The total surface area, including the top and bottom, is .
Step 4 — Substitute: .
Step 5 — Differentiate: .
Step 6 — Set equal to zero: .
Result: . Thus, at the minimum-surface-area configuration, the height equals the diameter.

How to Know You Found a Maximum

Finding only tells you that you found a critical point. You still need to establish whether that point produces a maximum.

One useful method is the first derivative test. If the derivative changes from positive to negative, the function changes from increasing to decreasing, so the critical point is a local maximum.

Another method is the second derivative test. If at a critical point, the graph is concave down there, indicating a local maximum.

For many AP Calculus optimization problems, you can also use the endpoints of the feasible interval. If the objective function has only one interior critical point and the endpoint values are smaller, you have established the absolute maximum.

Common Mistakes

Differentiating before eliminating a variable

An optimization problem may begin with two or more variables, but your objective function should normally be written in terms of one variable before you differentiate. Use the constraint first.

Using the wrong constraint

Read the geometry carefully. If a rectangle is next to a river, for example, the river may replace one side of the fencing. If a box is open on top, there is no top face in the surface-area constraint.

Finding a critical point but not checking whether it is feasible

Algebra can produce critical points that make no physical sense. A length cannot be negative, and a cutout in a box cannot be larger than half of the corresponding sheet dimension.

Assuming every critical point is a maximum

A critical point could be a minimum or neither. Use the first derivative test, second derivative test, or compare the endpoints.

Giving the wrong quantity as the final answer

If the question asks for the dimensions, do not stop after finding the maximum area or volume. If it asks for the maximum area, report the area rather than only the dimensions.

Practice Problems

Question 1

A rectangle has a perimeter of 60 units. What dimensions maximize its area?

Show answer
Question 2

A farmer has 120 meters of fencing to enclose a rectangular field along a river. No fencing is required along the river. What dimensions maximize the area?

Show answer
Question 3

A 30-by-18-inch sheet of cardboard is used to make an open-top box by cutting equal squares from each corner. What side length of the squares maximizes the volume?

Show answer
Question 4 (Combined Optimization)

A rectangle is inscribed under the curve and above the x-axis, with its base on the x-axis. Find the dimensions that maximize its area.

Show answer

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon