# Introduction to Optimization Problems

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

This module covers the core 4-step process for solving AP Calculus AB optimization problems, including identifying functions, finding contextual domains, testing for absolute extrema, and interpreting solutions in applied context.

**Prerequisites:** Computing first and second derivatives of common functions; [Finding critical points of differentiable functions](https://www.owlsprep.com/study/ap-calculus-ab-u5-finding-critical-points/); [Testing for absolute extrema on a closed interval](https://www.owlsprep.com/study/ap-calculus-ab-u5-absolute-relative-extrema/)

## Learning objectives

- Separate optimization problems into objective and constraint functions
- Find the valid contextual domain for applied optimization problems
- Apply the 4-step process to find absolute extrema in applied contexts
- Interpret optimization solutions correctly for AP exam free-response questions

## Core Overview of Optimization Problems

Optimization problems are applied calculus questions that ask you to find the maximum or minimum possible value of a real-world quantity (such as area, cost, profit, or volume) given a set of fixed limiting conditions. This topic accounts for 15–18% of the total AP Calculus AB exam score, and appears in both multiple-choice and free-response sections.

Synonyms for optimization in exam questions include “find the maximum possible,” “determine the minimum value,” or “what dimensions will minimize/optimize” the target quantity. Unlike abstract extrema problems, optimization requires you to first construct the function to optimize from a verbal description, which is the skill most heavily tested on the AP exam.

**Optimization Problem** — An applied problem that requires finding the maximum or minimum value of a quantity, subject to a fixed set of limiting conditions

*Example:* Finding the dimensions of a garden that maximize area for a fixed amount of fencing

## Identifying Objective and Constraint Functions

The first and most error-prone step of any optimization problem is separating the problem’s information into two core relationships:

**Objective Function** — The function whose value you need to maximize or minimize, as stated or implied by the problem

*Example:* If a question asks for dimensions that minimize material cost, cost is the objective

**Constraint Function** — A fixed limiting condition that relates multiple variables in the objective, allowing you to reduce the objective to a single-variable function that can be differentiated

1. Label all unknown quantities with variables
2. Write an equation for the quantity you need to optimize (the objective)
3. Write an equation for the fixed constraint that relates your variables
4. Solve the constraint for one variable and substitute into the objective to get a single-variable function

**Worked example:** A rectangular garden is to be enclosed by 120 feet of fencing. One side of the garden borders a river, so no fencing is needed along the river. Identify the objective function and constraint function, then reduce the objective to a single-variable function for maximizing the garden’s area.

1. Let $x$ = length of each side perpendicular to the river, and $y$ = length of the side parallel to the river. Both are positive lengths, so $x>0, y>0$.
2. We need to maximize area, so the objective function is:
3. $$A = x \cdot y$$
4. The total fencing available is 120 feet, with fencing only for two perpendicular sides and one parallel side, so the constraint is:
5. $$2x + y = 120$$
6. Solve the constraint for $y = 120 - 2x$, then substitute into the objective to get the single-variable objective:
7. $$A(x) = x(120 - 2x) = 120x - 2x^2$$

> **tip**
>
> Over 70% of student errors in this step come from misinterpreting which sides require fencing or material, so always label your diagram explicitly.

> **Exam tip:** Draw a labeled diagram for all geometric optimization problems to avoid setup errors

## Finding the Valid Contextual Domain

Once you have a single-variable objective function, the next step is to find the interval of $x$-values that make physical sense in the problem’s context. This domain is almost always a closed interval, so the Extreme Value Theorem applies: absolute extrema will occur either at critical points inside the interval or at the endpoints of the interval.

A common mistake is using the algebraic domain of the objective function instead of the contextual domain. For example, a quadratic objective function has an algebraic domain of all real numbers, but length cannot be negative or larger than the total amount of material available. To find the contextual domain:

1. Require all original variables to be non-negative (zero is allowed for endpoints)
2. Write inequalities for each variable, then solve for your single variable to get bounds
3. Confirm the final domain is a closed interval

**Worked example:** Given the single-variable area objective function $A(x) = 120x - 2x^2$ from the garden example, find the valid contextual domain for $x$.

1. Original variables: $x$ must be non-negative, so $x \geq 0$. The parallel length $y = 120 - 2x$ must also be non-negative.
2. Solve the inequality for $y$:
3. $$120 - 2x \geq 0 \implies x \leq 60$$
4. Combine the bounds to get the valid closed domain:
5. $$x \in [0, 60]$$

> **Exam tip:** Skipping domain setup will cost points even if your derivative is correct

## Finding Optimal Values and Interpreting Results

The final step of the optimization process is testing to find the absolute maximum or minimum, then answering the question asked. For a closed interval domain, follow this process:

1. Compute the first derivative of the objective function
2. Find all critical points that lie inside the domain
3. Evaluate the objective function at every interior critical point and both endpoints
4. Select the largest value for a maximum, or the smallest for a minimum, then find any other requested values using the constraint

If the domain is open (e.g., $r>0$ for a radius) and there is only one critical point, you can use the second derivative test: if $f''(c) < 0$ for all $x$ in the domain, the critical point is an absolute maximum; if $f''(c) > 0$, it is an absolute minimum. This works for most open-domain AP optimization problems.

**Worked example:** For the rectangular garden problem (maximize area with 120 feet of fencing, no fencing along the river), find the maximum area and the dimensions that produce it.

1. We start with the objective and domain from previous steps:
2. $$A(x) = 120x - 2x^2, \quad x \in [0, 60]$$
3. Compute the first derivative and find critical points:
4. $$A'(x) = 120 - 4x \\ 120 - 4x = 0 \implies x = 30$$
5. $x=30$ is inside the domain. Evaluate $A(x)$ at all candidate points:
6. $$A(0) = 0, \quad A(30) = 1800, \quad A(60) = 0$$
7. The maximum value is 1800 square feet at $x=30$. Use the constraint to find $y$:
8. $$y = 120 - 2(30) = 60$$
9. Final answer: Dimensions 30 ft (perpendicular) by 60 ft (parallel), maximum area 1800 square feet.

> **tip**
>
> Always re-read the question’s final sentence. If the question asks for dimensions and you only give maximum area (or vice versa), you will lose 1 point on FRQ.

**Check your understanding**

Test your understanding of setting up objective functions:

1. A rectangular box with a square base is to be constructed. The total surface area of all 6 sides is 150 square inches. If $x$ is the side length of the square base, which of the following is the correct single-variable objective function for maximizing the volume of the box?

   - $V(x) = x^2(150 - 2x^2)$
   - $V(x) = \frac{150x - 2x^2}{4x}$
   - $V(x) = \frac{150x - 2x^3}{4}$
   - $V(x) = 150x - 6x^2$

   *Answer:* $V(x) = \frac{150x - 2x^3}{4}$

   *Why:* Correct. Let $h$ = height. Surface area constraint $2x^2 + 4xh = 150$ solves to $h = \frac{150 - 2x^2}{4x}$. Substitute into $V = x^2 h$ to get the result.

**Worked example:** An open-top rectangular box is made by cutting out squares of equal side length $x$ from each corner of a 12 inch by 18 inch sheet of cardboard, then folding up the sides. Find the objective function, domain, critical points, and maximum volume.

1. Height of the box equals $x$, and base dimensions after cutting are $(12-2x)$ and $(18-2x)$. The volume objective is:
2. $$V(x) = x(12 - 2x)(18 - 2x)$$
3. All dimensions must be non-negative, so domain is:
4. $$x \in [0, 6]$$
5. Expand, differentiate, and solve for critical points:
6. $$V(x) = 4x^3 - 60x^2 + 216x \\ V'(x) = 12(x^2 - 10x + 18) \\ x = 5 \pm \sqrt{7}$$
7. Only $x = 5 - \sqrt{7} \approx 2.35$ is inside the domain. Second derivative test confirms it is a maximum:
8. $$V''(5 - \sqrt{7}) = -24\sqrt{7} < 0$$
9. Evaluate at candidates: $V(0)=0$, $V(6)=0$, $V(2.35) \approx 228$. Final answer: Maximum volume is approximately 228 cubic inches at $x \approx 2.35$ inches.

**Worked example:** A bakery's cost for a 6-inch tall round cake is $C(r) = 0.1r^2 + \frac{10}{r} + 2$ dollars, where $r$ is the radius in inches, $r>0$. What radius minimizes cost, and what is the minimum cost?

1. This is an open-domain problem with one critical point. Compute first derivative and set to zero:
2. $$C'(r) = 0.2r - \frac{10}{r^2} \\ 0.2r = \frac{10}{r^2} \implies r^3 = 50 \implies r \approx 3.68$$
3. Second derivative is always positive for $r>0$, so this is an absolute minimum:
4. $$C''(r) = 0.2 + \frac{20}{r^3} > 0 \quad \forall r>0$$
5. Evaluate cost: $C(3.68) \approx 6.07$. Final answer: A radius of ~3.7 inches minimizes cost, for a minimum cost of ~\$6.07 per cake.

## Common pitfalls

- **Wrong:** Writing the constraint as $2x + 2y = 120$ instead of $2x + y = 120$ for the river-side garden problem.
  - Why it fails: Students default to memorized full perimeter formulas instead of reading that one side needs no fencing.
  - Correct: Label every side that requires material on your diagram, then add up lengths explicitly instead of relying on memorized formulas.
- **Wrong:** Using the algebraic domain of the objective function instead of the contextual domain, e.g., leaving the domain as $(-\infty, \infty)$ for the garden problem.
  - Why it fails: Students forget that length cannot be negative, and context restricts variables to a physically meaningful interval.
  - Correct: After writing the single-variable objective, always write inequalities requiring all original variables to be non-negative, then solve to get the closed contextual domain.
- **Wrong:** Stopping after finding the critical point and not evaluating the objective function at endpoints.
  - Why it fails: Students assume the critical point must be the extremum and forget the Extreme Value Theorem requires checking endpoints.
  - Correct: Always list all interior critical points and both endpoints, evaluate the objective at all candidates, then select the maximum/minimum.
- **Wrong:** After finding the optimal $x$, forgetting to compute other requested variables from the constraint, e.g., giving only $x=30$ as the answer to a dimension question.
  - Why it fails: Students stop early after finding the critical point and do not confirm what the question asks for.
  - Correct: Reread the question's last sentence before writing your final answer to confirm you provided all requested values.
- **Wrong:** Justifying a local maximum instead of an absolute maximum.
  - Why it fails: Students confuse local and absolute extrema, and AP requires explicit justification of absolute extrema for optimization.
  - Correct: Either evaluate the objective at all candidates to show your value is the largest, or use the second derivative test to confirm concavity over the entire domain.
- **Wrong:** Solving the constraint for a squared variable, leading to square roots and unnecessary chain rule steps.
  - Why it fails: Students pick the first variable to solve for without checking which is easier.
  - Correct: Always solve the constraint for the variable that has a power of 1, to avoid roots and extra algebra errors.

## Cheatsheet

| Category | Rule/Formula | Notes |
| --- | --- | --- |
| Objective Function | $f(x)$ = quantity to maximize/minimize | Always single-variable after substituting constraint |
| Constraint Function | $g(x,y) = \text{fixed constant}$ | Fixed limiting relationship between variables |
| Contextual Domain Rule | All original variables $\geq 0$ | Endpoints included to form a closed interval |
| Closed Interval Optimization | Evaluate $f(x)$ at all interior critical points + endpoints | Largest = absolute maximum, smallest = absolute minimum |
| Open Domain (Single Critical Point) | $f''(c) < 0 \implies$ absolute max; $f''(c) > 0 \implies$ absolute min | Applies to $(0, \infty)$ domains with one critical point |
| Closed 6-sided Box (Square Base) | SA = $2x^2 + 4xh$, $V = x^2 h$ | $x$ = base side, $h$ = height |
| Cut-Out Open Box | $V(x) = x(L - 2x)(W - 2x)$ | $x$ = cut-out side, $L,W$ = original sheet dimensions |

## What's next

Mastering the core 4-step optimization process is the foundation for all applied extremum problems in the AP Calculus AB curriculum. This topic ties together all prior Unit 5 concepts: derivatives, critical points, and extrema into a single applied framework that is heavily tested on both multiple-choice and free-response sections of the AP exam. Next, you will move on to more complex optimization problems, and connect these skills to related rates, where you optimize a changing quantity over time. You will also apply this same process to problems with non-linear constraints that require implicit differentiation. Without mastering this core process, more complex applied problems will be much harder to solve correctly.

- [Mean Value Theorem](https://www.owlsprep.com/study/ap-calculus-ab-u5-mean-value-theorem/)
- [Solving Optimization Problems](https://www.owlsprep.com/study/ap-calculus-ab-u5-solving-optimization-problems/)
- [Behaviors of implicit relations](https://www.owlsprep.com/study/ap-calculus-ab-u5-behaviors-of-implicit-relations/)

---

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-ab-u5-introduction-to-optimization-problems/
