The Core Idea: Introduction to Optimization Problems
Optimization is the process of finding the maximum or minimum value of a function under a specific set of conditions or constraints. In real-world applications, this allows us to determine the most efficient, most profitable, or least costly outcome for a given situation. The core idea of this topic is to use the derivative as a tool to solve these problems.
The process involves translating a real-world scenario into a mathematical model. This model consists of an objective function, which is the quantity we wish to maximize or minimize (e.g., area, volume, profit, cost), and one or more constraints, which are equations or inequalities that represent the restrictions of the problem (e.g., a fixed amount of fencing, a required volume for a container). By using calculus to find the critical points of the objective function, we can identify the values that yield the optimal solution.
Key Definitions & Process
This topic focuses on a problem-solving process rather than a single formula. The key components are:
Objective Function: The function whose maximum or minimum value we are trying to find. It represents the primary quantity of interest in the problem.
Constraint(s): An equation or inequality that places a restriction on the variables in the problem. The constraint is used to express the objective function in terms of a single variable.
The general process for solving optimization problems is as follows:
Identify the Objective: Determine the quantity to be maximized or minimized and write an equation for it. This is the objective function.
Identify the Constraint(s): Identify the restriction(s) in the problem and write an equation or inequality for it.
Create a Single-Variable Function: Use the constraint equation to solve for one variable in terms of another. Substitute this expression into the objective function to rewrite it as a function of a single variable. Determine the practical domain (interval) for this variable.
Find Critical Points: Take the derivative of the single-variable objective function with respect to its variable. Set the derivative equal to zero and solve to find the critical points.
Test and Justify: The optimal value will occur at a critical point or at an endpoint of the function's domain. Use methods like the First or Second Derivative Test, or the Candidates Test (testing critical points and endpoints), to find and justify the absolute maximum or minimum value.
Answer the Question: Reread the problem to ensure you are providing the requested information (e.g., the dimensions, the maximum area, the minimum cost).
Understanding the Modeling Process
The most critical and often most challenging part of an optimization problem is the initial setup. The calculus itself—finding a derivative and setting it to zero—is usually straightforward. The nuance lies in correctly translating the words of the problem into a mathematical model.
The key is to clearly distinguish between the quantity you are trying to optimize and the information that is limiting you. For example, if a problem asks for the "largest possible area" of a rectangle with a "fixed perimeter of 100 feet," the objective is to maximize the area, and the constraint is the fixed perimeter.
Objective Function: Area,
Constraint Equation: Perimeter,
You cannot find the derivative of as it is, because it has two independent variables. The entire purpose of the constraint equation is to eliminate one of these variables. By solving the constraint for (e.g., ), you can substitute it into the objective function to get a new function in terms of a single variable, :
This function, , can now be differentiated with respect to to find the critical points that will lead to the maximum area. The process of finding an absolute extremum on an interval is the foundation of optimization. The optimal value must occur at a critical point where the derivative is zero or undefined, or at an endpoint of the feasible domain for the variable.
Core Concepts & Rules
The derivative is the fundamental tool used to solve optimization problems by locating potential maximum or minimum values of a function.
Every optimization problem involves an objective function, which is the specific quantity (like area, volume, or cost) that needs to be maximized or minimized.
The problem will also include one or more constraints, which are equations or inequalities that model the given restrictions or limitations.
A crucial step in the process is to use the constraint equation to rewrite the objective function in terms of a single variable.
After creating a single-variable objective function, its derivative is calculated and set to zero to find the critical points.
The absolute maximum or minimum value for the objective function will be found at one of the critical points or at an endpoint of the interval that defines the problem's domain.
Step-by-Step Example 1: Basic Application
Problem: A farmer has 200 feet of fencing to enclose a rectangular garden. One side of the garden will be against an existing barn wall, so it needs no fencing. What dimensions should the garden have to enclose the largest possible area?
Step 1: Identify the Objective and Constraint
Objective: Maximize the area . The formula for the area of a rectangle is .
Constraint: The amount of fencing is limited to 200 feet. The fence will cover three sides: two sides of length and one side of length . The constraint equation is .
Step 2: Create a Single-Variable Function
Solve the constraint equation for : .
Substitute this expression for into the objective function:
Determine the domain. The length must be positive, so . Also, the length must be positive, so , which means , or . The domain is .
Step 3: Find Critical Points
Take the derivative of with respect to :
Set the derivative equal to zero and solve for :
This is the only critical point in our domain .
Step 4: Test and Justify
We can use the Second Derivative Test to confirm this is a maximum.
Since for all , the function is always concave down, and the critical point at must be an absolute maximum.
Step 5: Answer the Question
The question asks for the dimensions of the garden. We found feet.
Now find the corresponding value using the constraint relationship:
The dimensions that maximize the area are 50 feet by 100 feet.
Step-by-Step Example 2: Exam-Style Application
Problem: A company is designing a cylindrical can that must hold a volume of . The material for the top and bottom of the can costs 0.10 per cm^2, and the material for the side costs $0.05 per cm^2. Find the radius of the can that minimizes the total cost of the material. **Step 1: Identify the Objective and Constraint** * **Objective:** Minimize the cost $C. The cost is based on the surface area.
* Area of top and bottom (2 circles):
* Area of the side (a rectangle):
* Cost function: Constraint: The volume must be . The formula for the volume of a cylinder is .
- Constraint equation:
Step 2: Create a Single-Variable Function
Solve the constraint equation for : .
Substitute this expression for into the cost function:
Simplify the function:
The domain for the radius must be .
Step 3: Find Critical Points
Take the derivative of with respect to :
Set the derivative equal to zero and solve for :
Step 4: Test and Justify
We can use the First Derivative Test. Let .
Pick a test value less than , like . . The cost is decreasing.
Pick a test value greater than , like . . The cost is increasing.
Since the derivative changes from negative to positive at , this corresponds to a local minimum. Because it is the only critical point on the domain , it is the absolute minimum.
Step 5: Answer the Question
The question asks for the radius of the can that minimizes the cost.
The radius is .
Using Your Calculator
Optimization problems are primarily solved through analytical methods (by hand). The calculator is best used as a tool to check your work or to handle calculations that are difficult to do manually.
Graphing the Objective Function: Once you have the objective function in a single variable, such as , you can graph it in your calculator.
Press
Y=and enter your function.Set an appropriate
WINDOWbased on the problem's domain (e.g., , ).Press
GRAPH. You can visually inspect the curve to see where the maximum or minimum occurs.Use the
CALCmenu (2nd+TRACE) and select4:maximumor3:minimumto have the calculator find the optimal point. This is an excellent way to verify the critical point you found algebraically.
Solving for Critical Points: If setting the derivative equal to zero results in an equation that is hard to solve by hand, you can use the calculator.
Let's say your derivative is . In the
Y=screen, setY1 = f'(x).Graph
Y1.Use the
CALCmenu (2nd+TRACE) and select2:zero. The calculator will find the x-intercepts of the derivative's graph, which are the critical points of the original function .
AP Exam Quick Hit
Common Question Types
Geometric Optimization: These problems ask you to find the dimensions that maximize an area or volume, or minimize a perimeter or surface area, given a constraint.
- Example: Find the dimensions of the cylinder with the largest volume that can be inscribed in a sphere of radius 10.
Distance and Time Optimization: These problems ask you to find the path or configuration that minimizes the distance, travel time, or cost associated with a path.
- Example: A person in a rowboat is 2 miles from the nearest point on a straight shoreline. They wish to reach a house 6 miles down the shore. If they can row at 3 mph and walk at 5 mph, where should they land the boat to minimize the total travel time?
Common Mistakes
Not Checking Endpoints: The absolute maximum or minimum on a closed interval can occur at an endpoint. Students often find the critical point and assume it is the answer without testing the endpoints of the domain.
Answering the Wrong Question: A very common error is to solve for the variable (e.g., ) and stop, when the question asks for the maximum area, the minimum cost, or the other dimension (e.g., ). Always reread the prompt before writing your final answer.
Incorrect Setup of Functions: Errors in the initial setup are fatal. Students may confuse the objective function with the constraint, or use an incorrect geometric formula (e.g., area of a circle instead of circumference).
Forgetting to Create a Single-Variable Function: Attempting to differentiate a function with two or more variables (like ) before using the constraint to substitute and eliminate a variable. You can only differentiate with respect to a single variable in this context.
Lack of Justification: Simply finding a critical point is not enough. You must use a calculus-based argument (like the First Derivative Test, Second Derivative Test, or Candidates Test) to justify that your result is indeed a maximum or a minimum.