# Introduction to Optimization Problems

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

This module covers the core framework for solving optimization problems on the AP Calculus BC exam. You will learn to translate contextual word problems into calculus models and find absolute extrema for maximum and minimum output quantities.

**Prerequisites:** Computing derivatives of algebraic and transcendental functions; Locating and classifying critical points; Finding absolute extrema on closed intervals

## Learning objectives

- Translate contextual word problems into valid optimization models
- Apply the standardized 4-step optimization framework to solve problems
- Correctly identify and apply domain constraints for physical problems
- Find absolute extrema for optimization on open and closed intervals
- Use implicit differentiation to solve complex multi-variable optimization problems

## Core Concepts of Optimization

Optimization problems are applied extreme value problems where you find the input that maximizes or minimizes a desired output quantity (e.g., minimize production cost, maximize enclosed area, maximize business profit) given one or more constraints on available inputs. On the AP Calculus BC exam, this topic makes up 8-10% of total exam weight, appearing on both multiple-choice and free-response sections, and often integrates other topics like volume or implicit differentiation.

**Optimization Problem** — An applied extreme value problem requiring identification of the input that produces the maximum or minimum value of a target output, subject to fixed constraints on input values.

> **info**
>
> Unlike abstract extrema problems where the function is given, optimization requires you to first build the objective function from problem context. This translation step is where most errors occur on the exam.

## The 4-Step General Optimization Framework

All AP optimization problems follow a standardized 4-step framework that reduces errors and ensures you earn all method points on FRQs. The framework is:

1. Define all variables, identify the objective function (quantity to optimize) and the constraint relating variables.
2. Use the constraint to rewrite the objective as a single-variable function, then write the feasible domain based on physical/contextual constraints.
3. Find all critical points of the objective function on its domain by differentiating and setting the first derivative equal to zero.
4. Classify the critical point as an absolute maximum or minimum, then calculate the quantity the original question asks for.

**Worked example:** A rectangular garden is to be fenced off along a straight river, so no fence is needed along the river. We have 120 meters of fencing total. Find the dimensions that maximize the area of the garden.

1. 1. Define variables: Let $x$ = length of the side perpendicular to the river, $y$ = length parallel to the river. Objective: Maximize area $A = xy$. Constraint: Total fencing = $2x + y = 120$.
2. 2. Rewrite objective as a single-variable function: Solve constraint for $y = 120 - 2x$, substitute into area:
3. $$A(x) = x(120 - 2x) = 120x - 2x^2$$
4. Find domain: Lengths are positive, so $x>0$ and $120 - 2x>0 \implies 0 < x < 60$.
5. 3. Find critical points: Differentiate $A(x)$ and set equal to zero:
6. $$A'(x) = 120 - 4x = 0 \implies x = 30$$
7. 4. Classify and answer: First derivative test shows $A'(x) > 0$ for $x<30$ and $A'(x) < 0$ for $x>30$, so $x=30$ is an absolute maximum. Substitute back to find $y = 120 - 2(30) = 60$.
8. The dimensions that maximize area are 30 m (perpendicular to river) and 60 m (parallel to river).

> **Exam tip:** Always re-read the question after finding your critical point: many students lose points for answering with just the input variable when the question asks for the output quantity (like total area or cost).

## Domain Constraints and the Closed Interval Method

When the feasible domain of the objective function is a closed, bounded interval (includes endpoints, due to hard minimum/maximum bounds on the input), you must use the Closed Interval Method from the Extreme Value Theorem to find the absolute extremum.

The Extreme Value Theorem guarantees a continuous function on a closed bounded interval attains both absolute maximum and minimum, which can occur at interior critical points *or* at endpoints. Skipping endpoint evaluations is one of the most common AP exam errors.

**Worked example:** A 10 inch long piece of wire is cut into two pieces. One piece is bent into a square, the other into an equilateral triangle. The total combined area must be at least 3 square inches. Find the minimum possible combined area.

1. 1. Define variables: Let $x$ = length of wire used for the square, so $10 - x$ = length for the triangle. Hard bounds on $x$ give a closed domain $0 \leq x \leq 10$. Objective function: Minimize total area:
2. $$A(x) = \left(\frac{x}{4}\right)^2 + \frac{\sqrt{3}}{4}\left(\frac{10 - x}{3}\right)^2$$
3. 2. Find critical points by differentiating and setting equal to zero:
4. $$A'(x) = \frac{x}{8} - \frac{\sqrt{3}(10 - x)}{54} = 0 \implies x \approx 2.04$$
5. 3. Evaluate area at all candidates: $A(0) \approx 4.81$ in², $A(2.04) \approx 2.72$ in², $A(10) \approx 6.25$ in². The problem requires $A(x) \geq 3$, so the interior critical point is not feasible.
6. 4. The feasible domain boundaries occur where $A(x) = 3$, which solves to $x \approx 1.2$ and $x \approx 7.8$, both with $A(x) = 3$. The minimum feasible combined area is 3 square inches.

> **Exam tip:** AP exam graders actively deduct points for skipping endpoint evaluations when the domain is closed. Always evaluate endpoints for closed intervals.

## Implicit Differentiation for Complex Optimization

For optimization problems with non-linear constraints or 3D shapes, it can be difficult or impossible to rearrange the objective into an explicit single-variable function. In these cases, we use implicit differentiation to find the derivative without solving for the dependent variable explicitly, while still following the core 4-step framework.

**Worked example:** Find the dimensions of a right circular cylinder with total surface area $100\pi$ cm² that maximizes the volume of the cylinder.

1. 1. Define variables: $r$ = radius, $h$ = height. Objective: Maximize volume $V = \pi r^2 h$. Constraint: Total surface area = $2\pi r^2 + 2\pi r h = 100\pi$, which simplifies to $r^2 + r h = 50$.
2. 2. Differentiate the constraint implicitly with respect to $r$:
3. $$2r + h + r \frac{dh}{dr} = 0 \implies \frac{dh}{dr} = -\frac{2r + h}{r}$$
4. 3. Differentiate the volume implicitly and set the derivative equal to zero (required at extrema):
5. $$\frac{dV}{dr} = 2\pi r h + \pi r^2 \frac{dh}{dr} = 0$$
6. Divide by $\pi r$ (since $r>0$, this is valid):
7. $$2h + r \frac{dh}{dr} = 0$$
8. 4. Substitute $\frac{dh}{dr}$ from the constraint and solve:
9. $$2h + r\left(-\frac{2r + h}{r}\right) = 0 \implies h = 2r$$
10. 5. Substitute back into the original constraint to find dimensions:
11. $$r^2 + r(2r) = 50 \implies r = \sqrt{\frac{50}{3}} \approx 4.08 \text{ cm}, \quad h \approx 8.16 \text{ cm}$$
12. This critical point gives the maximum volume of the cylinder.

> **Exam tip:** Don't accidentally set the derivative of the constraint equal to zero. Only the derivative of the objective function must equal zero at the extremum.

## AP-Style Practice Worked Examples

**Check your understanding**

Test your understanding of basic optimization with this multiple-choice question:

1. The sum of two positive numbers is 30. One number is $x$, the other is $30 - x$. What is the maximum value of the product of one number and the square of the other?

   - A) 2000
   - B) 3000
   - C) 4000
   - D) 4500

   *Why:* The objective function to maximize is $P(x) = x^2(30-x)$, critical point at $x=20$, giving $P(20) = 20^2 \cdot 10 = 4000$. The first derivative test confirms this is the absolute maximum.

**Worked example:** A rectangular box with a square base and open top is constructed from 500 cm² of cardboard, with no waste. Let $x$ be the side length of the base, $h$ the height. (a) Write $V(x)$ and state the domain. (b) Find the critical point and justify it is an absolute maximum. (c) Find the maximum volume.

1. (a) Total surface area (open top) is $x^2 + 4xh = 500$. Solve for $h = \frac{500 - x^2}{4x}$. Volume is:
2. $$V(x) = x^2 h = \frac{x(500 - x^2)}{4} = 125x - \frac{1}{4}x^3$$
3. Domain: $x>0$ and $h>0 \implies 0 < x < 10\sqrt{5}$.
4. (b) Differentiate and set equal to zero:
5. $$V'(x) = 125 - \frac{3}{4}x^2 = 0 \implies x = \sqrt{\frac{500}{3}} \approx 12.91$$
6. $V'(x) > 0$ for $0 < x < \sqrt{\frac{500}{3}}$ and $V'(x) < 0$ for $x > \sqrt{\frac{500}{3}}$, so the function increases then decreases, confirming this is an absolute maximum.
7. (c) Substitute back to find maximum volume:
8. $$V\left(\sqrt{\frac{500}{3}}\right) \approx 1076 \text{ cm}^3$$

**Worked example:** A bakery produces $x$ loaves of sourdough per day, with daily profit $P(x) = -0.001x^3 + 0.15x^2 + 2x - 100$ dollars, for $0 \leq x \leq 150$. How many loaves maximize daily profit, and what is the maximum profit?

1. The domain is closed interval $[0, 150]$, so use the Closed Interval Method. First find critical points:
2. $$P'(x) = -0.003x^2 + 0.3x + 2 = 0$$
3. Solving with quadratic formula gives only one positive root in the domain: $x \approx 106.3$.
4. Evaluate profit at all candidates: $P(0) = -\$100$, $P(106.3) \approx \$794.50$, $P(150) = \$200$.
5. The bakery should produce ~106 loaves per day for a maximum daily profit of ~\$794.50.

## Common pitfalls

- **Wrong:** Stopping after finding the critical point $x$, and reporting $x$ when the question asks for the maximum area, minimum cost, or other output quantity.
  - Why it fails: Students focus on the calculus step of finding the critical point and forget to read the end of the question to confirm what output is requested.
  - Correct: After classifying extrema, re-read the original question prompt, confirm what quantity you need to report, and calculate that value before finishing.
- **Wrong:** Forgetting to evaluate the objective function at endpoints of the domain when using the Closed Interval Method, only reporting the critical point value.
  - Why it fails: Students assume the extremum is always at an interior critical point, and forget endpoints can give a more extreme value when the domain is closed.
  - Correct: Whenever your domain is a closed interval $[a,b]$, always add $f(a)$ and $f(b)$ to your list of candidate values to compare.
- **Wrong:** Defining the objective function incorrectly, mixing up the quantity to optimize and the fixed constraint.
  - Why it fails: Problem text often describes the constraint first, leading students to accidentally use the fixed constraint quantity as the objective to optimize.
  - Correct: After reading the problem, underline the quantity you need to maximize/minimize and circle the fixed constraint quantity before writing any equations.
- **Wrong:** Including negative values in the domain for physical quantities like length or area.
  - Why it fails: Students rush to find the derivative and skip writing the domain properly, leading to non-physical critical points.
  - Correct: After writing the single-variable objective function, immediately write the domain based on physical constraints, excluding all non-positive values for quantities that can't be negative.
- **Wrong:** Classifying a local extremum as absolute without justification, especially on open intervals.
  - Why it fails: Students assume the only critical point is automatically the absolute extremum without proving it.
  - Correct: On an open interval with one critical point, use the first derivative test to show the sign change of the derivative, confirming it is the absolute extremum.

## Cheatsheet

| Category | Rule / Formula | Notes |
| --- | --- | --- |
| 4-Step Optimization Framework | 1. Define objective + constraint<br>2. Rewrite objective as single-variable<br>3. Find critical points<br>4. Classify and answer the question | Applies to all AP optimization problems |
| Objective Function | $f(x)$ | Quantity to maximize/minimize; do not confuse with constraint |
| Constraint | Fixed relationship between variables | Used to reduce objective to one variable |
| Physical Domain Rule | $x > 0$ for lengths, areas, volumes | Negative values are always non-physical, excluded |
| Open Interval Optimization | One critical point = absolute extremum if first derivative changes sign | Requires sign change justification for full points |
| Closed Interval Method | Evaluate $f(x)$ at all critical points *and* endpoints | Pick largest/smallest value for max/min |
| Implicit Optimization | Differentiate objective + constraint, set $\frac{df}{dx} = 0$, solve system | Used when you can't solve for dependent variable explicitly |
| First Derivative Test | $f'$ + to - = maximum; - to + = minimum | Preferred justification for absolute extrema on open intervals |

## What's next

Optimization problems are the capstone applied skill of Unit 5: Analytical Applications of Differentiation, and mastering the 4-step framework is critical for success on many applied problems later in AP Calculus BC. Next, you will extend this framework to related rates problems that require finding maximum or minimum rates of change, then apply optimization to parametric and polar curves to maximize arc length or enclosed area. Optimization also forms the foundation for numerical methods like Newton's method, and for integral applications where you need to find maximum or minimum quantities over an interval. Strong command of the translation step from context to calculus model will help you earn full points on multi-part FRQs that integrate multiple AP topics.

- [Solving Optimization Problems](https://www.owlsprep.com/study/ap-calculus-bc-u5-solving-optimization-problems/)
- [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-introduction-to-optimization-problems/
