Skip to main content

5.11 Solving Optimization Problems

add to ChatGPT
Verified for the 2027 examUpdated October 2026Fiveable Content Team
Fiveable

♾️AP Calculus AB/BC Unit 5 Review

QR code for AP Calculus AB/BC practice questions

5.11 Solving Optimization Problems

Solving optimization problems means using derivatives to find the maximum or minimum value of a quantity in a real situation, then explaining what that value means in context. You set up an objective function, use any constraint to reduce it to one variable, find critical points, confirm whether they give a max or min, and interpret the answer with correct units. For AP Calculus, define variables and units before writing the objective function.

Optimization AP Calc AB

Optimization in AP Calc AB means using derivatives to find the maximum or minimum value of a quantity in context. The key setup is always the same: define variables, write the objective function, use the constraint to get one variable, then find and justify the absolute maximum or minimum.

The AP exam rewards both setup and interpretation. A correct derivative is not enough by itself. You need to show why your candidate gives the requested extreme value and explain the answer with units in the original situation.

Optimization pulls together critical points, the first and second derivative tests, and the candidates test from earlier in Unit 5, so it can show up in both multiple-choice and free-response questions.

Setting Up and Justifying an Optimization Answer

  • Write an objective function for the quantity you want to maximize or minimize.
  • Use the constraint equation to rewrite the objective in terms of one variable.
  • Find critical points where the derivative equals zero or does not exist.
  • Confirm max vs min using the first derivative test, second derivative test, or candidates test, and check endpoints on a closed interval.
  • Interpret the result in context with correct units, not just a bare number.
  • The single-critical-point shortcut: if a continuous function has exactly one critical point on an interval and it is a local extremum, it is also the absolute extremum there.

Writing a Justified Optimization Solution

Problem Solving: Follow a consistent order so you do not lose track of variables or units.

  1. Define variables. Name each variable and what it measures.
  2. Identify the objective function. This is the quantity to maximize or minimize, often written as f(x)f(x).
  3. Use the constraint. Solve the constraint for one variable and substitute so the objective depends on a single variable.
  4. Find critical points. Take the derivative, set it equal to zero, and solve. Also note where the derivative is undefined.
  5. Confirm the extremum. Use the first or second derivative test. On a closed interval, also evaluate the endpoints.
  6. Interpret in context. State the answer with units and explain what it means.

Free Response: Interpretation is where many points are earned or lost. If a question asks you to interpret a maximum or minimum, write a sentence that names the quantity, gives the value with units, and says what condition produces it. A justification like "this is a minimum because A′′(r)>0A''(r) > 0" is stronger than just reporting a number.

Common Trap: Do not skip the test that confirms whether a critical point is a max or a min. Setting the derivative to zero only finds candidates. You still have to show why your point is the extremum the problem asks for.


How to Solve Optimization Problems

Identify the Objective Function

Clearly define the quantity you want to optimize. This is your objective function, often denoted by f(x)f(x) or f(y)f(y). For example, if you want to maximize profit, your objective function might be P(x)P(x) for total profit.

Establish Constraints

Consider any limits on the variables involved. Constraints could be limited resources, fixed dimensions, or a budget. In a farming example, this could be the amount of land available or a budget for seeds and fertilizer.

Formulate the Optimization Equation

Create an equation for the quantity you want to optimize. If you are maximizing profit, your equation might involve revenue minus costs: P(x)=R(x)−C(x)P(x) = R(x) - C(x).

Find Critical Points

Take the derivative of the objective function with respect to the variable of interest. Set the derivative equal to zero and solve for critical points. Critical points are the possible locations for maxima or minima.

Test Critical Points

Use the first or second derivative test to decide whether each critical point is a local maximum, minimum, or neither. This step confirms you found the extreme value you need.

Consider Endpoints

If the problem involves a closed interval, evaluate the objective function at the endpoints too, and include those values in your analysis.

Note: This last step matters especially when you are asked to interpret your answer.


Optimization Practice Problems

Let's put these steps into action with two problems.

Problem 1: Maximizing Area of a Rectangular Garden

You have 100 meters of fencing to enclose a rectangular garden. What dimensions will maximize the enclosed area?

First, define your variables in terms of what was given.

  • Let xx be the width of the rectangle.
  • The length, yy, is set by the remaining fencing: 2x+2y=1002x+2y=100, or y=50−xy=50-x.

Since you are maximizing area, set up the equation with the area formula of a rectangle. The area, AA, is given by

A=xy=x(50−x)A = xy = x(50-x)

A(x)=x(50−x)=50x−x2A(x) = x(50-x)=50x-x^2

Now find the critical points. Take the derivative of A(x)A(x) and set it equal to zero:

A′(x)=50−2x=0A'(x) = 50-2x = 0

x=25x=25

Test this critical point using the second derivative test:

A′′(x)=−2A''(x) = -2

Because A′′(x)A''(x) is negative, this confirms that x=25x = 25 gives a maximum.

Need to review the second derivative test? Check out 5.7 Using the Second Derivative Test to Determine Extrema.

Last, interpret the result.

The dimensions that maximize the area are x=25 mx = 25 \ m (width) and y=25 my = 25 \ m (length). Nice work.

Problem 2: Minimizing the Material of a Can

A cylindrical can is to contain 1,000π1,000\pi cubic centimeters of liquid. Find the dimensions (radius and height) that minimize the amount of material needed to make the can.

Define your variables. Let rr be the radius and hh be the height of the cylinder.

The quantity to optimize is the surface area, which is the lateral surface plus the two circular bases. The surface area AA is given by:

A=2πr2+2πrhA = 2\pi r^2 + 2\pi rh

The can must contain 1,000π1,000\pi cubic centimeters. The volume VV of a cylinder is:

V=πr2hV = \pi r^2h

Since V=1000π=πr2hV = 1000\pi = \pi r^2h, you get r2h=1000r^2h = 1000, which is the constraint equation.

Solve the constraint for hh:

h=1000r2h = \frac{1000}{r^2}

Then substitute hh into the surface area equation:

A=2πr2+2πr(1000r2)A = 2\pi r^2 + 2\pi r\left(\frac{1000}{r^2}\right)

Simplify:

A=2πr2+2000πrA = 2\pi r^2 + \frac{2000\pi}{r}

Find the critical points. Take the derivative of AA with respect to rr and set it equal to zero:

dAdr=4πr−2000πr2=0\frac{dA}{dr} = 4\pi r - \frac{2000\pi}{r^2}= 0

r=5003r = \sqrt[3]{500}

Here rr cannot be negative, so only positive values make sense in context. With one positive critical point and the surface area increasing without bound as rr approaches 00 or grows large, this critical point gives the minimum surface area.

Use h=1000r2h = \frac{1000}{r^2} to find the matching height, which is approximately h=15.9h = 15.9 (note that h=2rh = 2r).

State the conclusion.

The dimensions that minimize the material needed are r=5003r = \sqrt[3]{500} centimeters and h=1000(5003)2h = \frac{1000}{(\sqrt[3]{500})^2}, or approximately 15.9 centimeters.


Common Misconceptions

  • Misconception: Critical points are automatically maxima or minima.
    Actually: Critical points are not automatically maxima or minima. Setting the derivative to zero finds candidates. You still need a test to confirm which extremum you have.
  • Misconception: Endpoints do not need to be checked on a closed interval.
    Actually: On a closed interval, the absolute extremum can occur at an endpoint, not only at a critical point. Always check the endpoints too.
  • Misconception: You can skip the constraint equation.
    Actually: You usually start with two variables. The constraint equation lets you rewrite the objective in one variable, which is what makes the derivative useful.
  • Misconception: An answer with just a number is complete.
    Actually: An answer like "x=25x = 25" is incomplete in an applied problem. State the units and what the value represents, like the width that gives the largest area.
  • Misconception: The objective function and constraint are the same.
    Actually: Keep the objective function and the constraint separate. The objective is what you maximize or minimize, the constraint is the fixed condition.
  • Misconception: The domain from context can be ignored.
    Actually: Lengths, radii, and times cannot be negative. The realistic domain can rule out some critical points before you test them.

Tips for Success

  • Clearly define variables. Be sure you know what each variable means in the problem.
  • Use graphical insight. Graphing the function can help you see critical points and endpoints.
  • Watch your units. In real-world problems, make sure your final answer makes sense in context.

Practice Questions for 5.11

1 of 10

The graph above models the profit P(x)P(x), in thousands of dollars, a bakery earns when selling cakes at a price of xx dollars each.

The maximum value on the graph represents the highest possible profit. Which of the following applied optimization problems shares the same underlying mathematical structure as this profit model?

A.

Determining the maximum velocity of an object whose position is modeled by an exponential growth function.

B.

Determining the time at which a population growing logistically reaches its carrying capacity.

C.

Determining the dimensions of a cylindrical can with a fixed volume that minimizes the surface area.

D.

Determining the dimensions of a rectangular enclosure with a fixed perimeter that maximizes the enclosed area.

Vocabulary

The following words are mentioned explicitly in the AP® course framework for this topic.

Term

Definition

applied contexts

Real-world situations or practical problems where mathematical functions are used to model and solve problems.

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.

See Fiveable more often in Google

Mark Fiveable as a preferred source and Google is more likely to show you our guides in Top Stories, with a "preferred" badge in AI Mode and AI Overviews.

Prefer us on Google