Welcome to Optimization: Finding the "Best" Solution

Have you ever wondered how a company decides the exact size of a box to minimize shipping costs, or how an architect determines the dimensions of a window to let in the maximum amount of light? This is the heart of optimization. In AP Calculus, optimization problems allow us to use derivatives to find the "best" (maximum or minimum) value for a specific situation. Don't worry if this seems like a lot of word problems at first—once you learn the "game plan," you’ll see they all follow a very similar pattern!

What is Optimization?

Optimization is the process of finding the absolute maximum or absolute minimum value of a function within a certain context. In Unit 5, we’ve already learned how to find extrema using the First and Second Derivative Tests. Now, we are simply applying those analytical tools to real-world scenarios.

Every optimization problem has two main components:
1. The Objective Function: This is the quantity you want to maximize or minimize (e.g., Area, Volume, Cost).
2. The Constraint: This is the limitation or "rule" you must follow (e.g., you only have 100 feet of fencing, or the volume must be exactly 500 cubic centimeters).

The 6-Step Game Plan for Success

Follow these steps to tackle any optimization problem on the AP Exam:

Step 1: Understand the Problem

Read the problem carefully. Pro tip: Always draw a picture! Label your diagram with variables. If you’re building a fence, label the sides \(x\) and \(y\). Identifying what you are looking for right away helps prevent confusion later.

Step 2: Write the Primary Equation

This is your Objective Function. Write an equation for the quantity you want to optimize.
Example: If you want to maximize area, write \(A = xy\).

Step 3: Write the Secondary Equation (The Constraint)

Often, your primary equation has too many variables (like \(x\) and \(y\)). Use the information in the problem to write a second equation that relates those variables.
Example: If you have 100 meters of fencing for a rectangular yard, your constraint is the perimeter: \(2x + 2y = 100\).

Step 4: Reduce to One Variable

Solve your secondary equation for one variable (e.g., \(y = 50 - x\)) and substitute it into your primary equation. Now your objective function should look like \(f(x)\). This makes it ready for calculus!

Step 5: Find the Critical Points

Take the derivative of your function, \(f'(x)\), and find where \(f'(x) = 0\) or where \(f'(x)\) is undefined. These are your candidates for the maximum or minimum.

Step 6: Justify Your Answer

On the AP Exam, finding the number isn't enough—you must justify that it is actually a maximum or minimum. You can use:
- The Candidates Test (Unit 5.5): If the problem has a closed interval.
- The First Derivative Test (Unit 5.4): Show that \(f'(x)\) changes sign.
- The Second Derivative Test (Unit 5.7): Show the concavity at the critical point.

A Quick Example: The Fenced Garden

The Problem: You have 40 feet of fencing to create a rectangular garden against a long brick wall (so you only need to fence three sides). What dimensions maximize the area?

1. Variables: Let \(x\) be the two sides perpendicular to the wall, and \(y\) be the side parallel to the wall.
2. Objective: Maximize Area, \(A = xy\).
3. Constraint: \(2x + y = 40\).
4. Substitute: From the constraint, \(y = 40 - 2x\). So, \(A(x) = x(40 - 2x) = 40x - 2x^2\).
5. Calculus: \(A'(x) = 40 - 4x\). Set \(40 - 4x = 0 \implies x = 10\).
6. Justify: Since \(A''(x) = -4\), the function is always concave down. By the Second Derivative Test, \(x = 10\) must be a local maximum. Since it's the only critical point, it's our absolute maximum!
Dimensions: \(x = 10\) ft, \(y = 40 - 2(10) = 20\) ft.

Common Pitfalls to Avoid

1. Forgetting the Endpoints: If your variable has a logical range (like \(x\) must be between 0 and 20), always consider if the "best" solution could be at the very start or end of that range.
2. Ignoring Units: The AP Exam is very strict about units. If the problem uses feet and minutes, your final answer and your explanations must include feet and minutes.
3. Mixing up Primary and Secondary Equations: Remember, the primary equation is what you want to change (optimize); the secondary equation is what stays fixed (the limit).

Memory Aid: The "O.C.D." Method

If you get stuck, remember O.C.D.:
- Objective function (What do I want?)
- Constraint (What is stopping me?)
- Derivative (Use the power of calculus!)

Key Takeaways

Optimization is simply finding global extrema in a specific context. The math is the same as finding local maxes and mins, but the "setup" is the new challenge. Always ensure your final function is in one variable before differentiating, and always justify your conclusion using a derivative test or the Candidates Test. Mastering this chapter connects your analytical skills (differentiation) to practical, real-world applications (Big Idea 3: Analysis of Functions).

Quick Review: If a problem asks for the "minimum cost," you are looking for the absolute minimum of the cost function. If it asks for the "largest volume," you are looking for the absolute maximum of the volume function.