# Solving Optimization Problems

> AP Calculus BC · Unit 5: Analytical Applications of Differentiation
> Source: https://www.owlsprep.com/study/ap-calculus-bc-u5-solving-optimization-problems/

This guide covers core methods for solving optimization problems for AP Calculus BC, including the standard 4-step framework, context-based domain restrictions, finding absolute extrema on closed and open intervals, and applied problems in geometry and economics.

**Prerequisites:** Computing derivatives of all elementary function types; [Finding critical points and applying the Extreme Value Theorem](https://www.owlsprep.com/study/ap-calculus-bc-u5-extreme-value-theorem/); Using first and second derivative tests to classify local extrema

## Learning objectives

- Apply the 4-step optimization framework to solve contextual problems
- Identify contextually appropriate domain restrictions for target functions
- Find and justify absolute extrema on closed and open intervals
- Solve applied optimization problems in geometry and economics contexts

## What is Optimization?

Solving optimization problems uses differentiation to find the maximum or minimum possible value of a target quantity, subject to fixed constraints in contextual or abstract problems. This topic contributes 2-4% of total AP Calculus BC exam points, appearing in both multiple-choice and free-response sections.

**Optimization** — The process of finding the absolute (global) maximum or minimum value of a target function over a contextually defined domain.

*Example:* Maximizing the area of a rectangle with fixed perimeter, or minimizing the production cost of a good.

AP exam questions use phrasing like "find the maximum possible value", "determine the minimum dimensions", "maximize profit", or "minimize cost" to indicate optimization problems, all requiring the same core problem-solving process.

## The 4-Step General Optimization Framework

All optimization problems have two core components: a target function (the quantity you want to maximize or minimize) and a constraint (a fixed relationship between variables that lets you reduce the problem to a single variable). This 4-step framework aligns with AP exam grading rubrics.

1. Label all unknown quantities, explicitly name your target quantity, and write the constraint as an equation relating variables.
2. Use the constraint to eliminate all but one independent variable, resulting in a single-variable target function $f(x)$. *Critical:* Define the domain of $x$ based on problem context, not just the mathematical domain of $f(x)$. Most problems have a closed interval domain $[a,b]$, where the Extreme Value Theorem guarantees an absolute extremum exists.
3. Find all critical points of $f(x)$ on $(a,b)$ by computing $f'(x)$, setting it equal to zero, and solving for $x$. Remember that critical points also include points where $f'(x)$ is undefined.
4. Evaluate $f(x)$ at every interior critical point and at both endpoints; the largest value is the absolute maximum, the smallest is the absolute minimum. Always answer the original question in context.

> **tip**
>
> AP problems often ask for the input that gives the extremum (e.g., dimensions) not the extremum itself (e.g., area). Always re-read the question before giving your final answer.

**Worked example:** A rectangle has a perimeter of 120 cm. Find the dimensions that maximize the area of the rectangle.

1. Define variables and constraint: Let $x$ = length of one side, $y$ = length of the adjacent side, $A$ = area (target to maximize). Constraint: $2x + 2y = 120$.
2. Eliminate $y$ and write target function with domain: Solve constraint for $y$ to get $y = 60 - x$. Substitute into area to get:
3. $$A(x) = x(60 - x) = 60x - x^2$$
4. Both sides are non-negative, so domain is $[0, 60]$.
5. Find critical points:
6. $$A'(x) = 60 - 2x \\ 60 - 2x = 0 \implies x = 30$$
7. Evaluate and conclude: $A(0) = 0$, $A(30) = 900$, $A(60) = 0$. The maximum area occurs at $x=30$, so $y = 60 - 30 = 30$. The optimal dimensions are 30 cm by 30 cm (a square).

> **Exam tip:** Following this explicit order earns you partial credit even if your final answer is incorrect

## Classifying Absolute Extrema on Open Intervals

Many optimization problems have open domains (e.g., $x>0$ with no upper bound from context), so the Extreme Value Theorem does not guarantee an extremum exists. If you find only one critical point on the domain, you can use the first or second derivative test to confirm that the local extremum is also the global (absolute) extremum, which is accepted for full justification on AP FRQ.

**Worked example:** Find the positive number $x$ that minimizes the sum $S = x + \frac{32}{x^2}$ for $x>0$.

1. Define target and domain: We need to minimize $S(x) = x + 32x^{-2}$, with domain $x \in (0, \infty)$ (open interval, no other constraints).
2. Find critical points:
3. $$S'(x) = 1 - \frac{64}{x^3} \\ 1 - \frac{64}{x^3} = 0 \implies x^3 = 64 \implies x = 4$$
4. There is only one critical point at $x=4$ in the domain. Classify with the second derivative test:
5. $$S''(x) = \frac{192}{x^3}$$
6. $S''(x)$ is always positive for all $x>0$, so $S''(4) = 3>0$, meaning $x=4$ is a local minimum.
7. Conclude: Since there is only one critical point on the open domain, $x=4$ is the absolute minimum.

> **tip**
>
> On open domains, you must explicitly justify that your critical point is an absolute extremum to earn full credit on AP FRQs.

## Contextual Applied Optimization

The AP exam heavily prioritizes applied optimization problems in real-world contexts, with common scenarios including geometry (maximizing volume/minimizing surface area), economics (maximizing profit/minimizing cost), and engineering (minimizing material or travel cost). The biggest challenge for most students is correctly translating the verbal description into a valid target function and constraint.

> **tip**
>
> For geometry problems, always confirm if a container is open-top or closed-top before writing the surface area formula: this changes the function entirely. For economics, remember profit = revenue - total cost.

**Worked example:** A small business produces $x$ custom backpacks per week. The total weekly cost in dollars is given by $C(x) = 5000 + 20x + 0.01x^2$. Revenue is $R(x) = 80x$. Find the number of backpacks the business should produce to maximize weekly profit.

1. Define target: Weekly profit $P(x)$ is the quantity to maximize, domain $x \geq 0$.
2. Write the target function:
3. $$P(x) = 80x - (5000 + 20x + 0.01x^2) = -0.01x^2 + 60x - 5000$$
4. Domain is $[0, 5915]$, the range of non-negative profit.
5. Find critical points:
6. $$P'(x) = -0.02x + 60 \\ -0.02x + 60 = 0 \implies x = 3000$$
7. $x=3000$ is inside the domain. Classify: $P''(x) = -0.02 < 0$ for all $x$, so $x=3000$ is a local maximum, which is the absolute maximum.
8. Conclude: Maximum weekly profit is $P(3000) = \$85000$, so the business should produce 3000 backpacks per week.

> **tip**
>
> A useful shortcut for economic optimization: maximum profit occurs when marginal revenue equals marginal cost ($MR = MC$), which saves time on multiple-choice questions.

**Worked example:** An open-top box is made by cutting equal-sized squares from each corner of a 10 inch by 15 inch rectangular sheet of cardboard, then folding up the sides. Find the maximum possible volume of the box.

1. Write volume function and domain: After cutting out squares of side $x$, base dimensions are $(10-2x)$ and $(15-2x)$, height is $x$.
2. $$V(x) = x(10-2x)(15-2x) = 4x^3 - 50x^2 + 150x$$
3. All sides must be positive, so domain is $[0, 5]$.
4. Find critical points:
5. $$V'(x) = 12x^2 - 100x + 150 = 0 \\ 6x^2 - 50x + 75 = 0$$
6. Solving with the quadratic formula gives only one critical point inside the domain: $x = \frac{25 - 5\sqrt{7}}{6} \approx 1.96$.
7. Evaluate candidates: $V(0) = 0$, $V(5) = 0$, $V(1.96) \approx 132$ cubic inches. The maximum volume is approximately $132 \text{ in}^3$.

**Check your understanding**

Test your understanding with this AP-style multiple choice question:

1. Which of the following gives the radius $r$ that minimizes the surface area of a closed right circular cylinder with fixed volume $1000 \text{ cm}^3$? (Surface area $S = 2\pi r^2 + 2\pi rh$, volume $V = \pi r^2h$)

   - $r = \sqrt[3]{\frac{1000}{\pi}}$
   - $r = \sqrt[3]{\frac{500}{\pi}}$
   - $r = \sqrt{\frac{1000}{\pi}}$
   - $r = \frac{500}{\pi}$

   *Answer:* $r = \sqrt[3]{\frac{500}{\pi}}$

   *Why:* Correct! Use the volume constraint to substitute $h = \frac{1000}{\pi r^2}$ into $S(r)$, take the derivative, and solve for $r$ to get this result.

*Calculator:* allowed

## Common pitfalls

- **Wrong:** Stopping after finding critical point $x=c$, and reporting $c$ when the problem asks for the maximum value of the target function (or vice versa).
  - Why it fails: Students rush after finding the critical point and forget to check what the question actually asks for.
  - Correct: After finding all extrema, re-read the question stem to confirm which quantity you need to report, then explicitly compute that quantity.
- **Wrong:** Using the mathematical domain of the target function instead of the context-imposed domain, leading to invalid negative lengths or impossible production levels.
  - Why it fails: Students often skip writing down the domain entirely, resulting in extraneous critical points outside the valid range.
  - Correct: Always write the domain of the target function explicitly after defining it, using context to set bounds on the independent variable.
- **Wrong:** Forgetting to check endpoint values when the domain is closed, assuming the extremum must be at an interior critical point.
  - Why it fails: Students are used to finding extrema at critical points and forget endpoints can give absolute extrema.
  - Correct: For any closed interval domain, always evaluate the target function at both endpoints and all interior critical points before selecting the absolute maximum/minimum.
- **Wrong:** On an open domain with one critical point, failing to justify that the critical point is an absolute extremum.
  - Why it fails: Students assume finding a critical point is enough, but AP grading requires explicit justification that it is a global extremum.
  - Correct: Apply the first or second derivative test to show the critical point is a local extremum, then note that since it is the only critical point it must be the global extremum.
- **Wrong:** Making algebraic errors when rearranging the constraint to eliminate a variable, leading to an incorrect target function.
  - Why it fails: Students rush the algebra step to get to differentiation, and small sign or coefficient errors change the entire problem.
  - Correct: After writing the target function, plug in a test value to check that it satisfies the original constraint to catch errors before differentiating.

## Cheatsheet

| Category | Process / Formula | Notes |
| --- | --- | --- |
| General 4-Step Framework | 1. Define variables → 2. Write target + domain → 3. Find critical points → 4. Evaluate for absolute extremum | Aligns with AP grading rubrics for full process points |
| Absolute Extrema on Closed $[a,b]$ | Evaluate $f(x)$ at all interior critical points and endpoints | Guaranteed to exist for continuous $f$ by Extreme Value Theorem |
| Absolute Extrema on Open Domain (1 critical point) | If $f''(c)<0$ → absolute max at $c$; if $f''(c)>0$ → absolute min at $c$ | Must include this justification for full AP credit |
| Profit Maximization | $P(x) = R(x) - C(x)$, max at $P'(x)=0 \implies MR = MC$ | $MR$ = marginal revenue, $MC$ = marginal cost |
| Closed Cylinder | $S = 2\pi r^2 + 2\pi r h$, $V = \pi r^2 h$ | Subtract $\pi r^2$ for open-top cylinder |
| Open-Top Cut-Out Box | $V(x) = x(L-2x)(W-2x)$ | Domain: $0 < x < \frac{\min(L,W)}{2}$ |
| Mixed Path Cost Minimization | $C(x) = c_1x + c_2\sqrt{(D-x)^2 + d^2}$ | Always check endpoints in addition to critical point |

## What's next

Solving optimization problems is a capstone skill for Unit 5: Analytical Applications of Differentiation, and it builds directly into the next core topic of related rates. Both topics require you to translate verbal, contextual descriptions into mathematical equations with multiple variables, then simplify to a single variable to apply differentiation techniques. Mastering the variable definition, constraint writing, and domain restriction skills you learned here will make solving related rates problems much more straightforward. Optimization also appears frequently in multi-concept FRQ questions, often paired with integration or curve sketching, so it is important to practice the 4-step framework until it becomes automatic.

- [Unit 5 Overview](https://www.owlsprep.com/study/ap-calculus-bc-u5-overview/)
- [Behaviors of implicit relations](https://www.owlsprep.com/study/ap-calculus-bc-u5-behaviors-of-implicit-relations/)
- [Integration and Accumulation of Change Overview](https://www.owlsprep.com/study/ap-calculus-bc-u6-overview/)

---

From [OwlsPrep](https://www.owlsprep.com) — free study guides for A-Level, IB, AP and IGCSE, written against the official syllabus. Canonical page: https://www.owlsprep.com/study/ap-calculus-bc-u5-solving-optimization-problems/
