The Core Idea: Introduction to Optimization Problems
Optimization is the process of finding the absolute maximum or absolute minimum value of a function, which represents a real-world quantity we wish to maximize (like profit or volume) or minimize (like cost or surface area). The fundamental tool for optimization is the derivative. By analyzing the derivative of a function, we can identify critical points—locations where the function might attain a maximum or minimum value.
The core of optimization involves a systematic process: modeling a situation with a function, finding the critical points of that function using its derivative, and then applying rigorous analytical tests to determine which of these points (or the endpoints of the interval) yields the absolute maximum or minimum value sought. The choice of method depends on whether the function is considered over a closed interval, where the Candidates Test is effective, or an open interval, where derivative tests are used to justify an absolute extremum.
Key Definitions and Tests
Critical Point
A critical point of a function is a point in the domain of where either or is undefined. These are the only points where a function can have a local (relative) maximum or minimum. The derivative is the tool used to locate these potential points of interest.
The Candidates Test
The Candidates Test is a method for finding the absolute maximum and minimum values of a continuous function on a closed interval. The process is as follows:
Find all critical points of the function in the open interval .
Create a list of "candidates" consisting of the endpoints and , and all critical points found in step 1.
Evaluate the function at every candidate value from step 2.
The largest function value is the absolute maximum, and the smallest function value is the absolute minimum on the interval .
The First Derivative Test
The First Derivative Test is used to determine whether a critical point is a local maximum, a local minimum, or neither. Let be a critical point of :
If changes from positive to negative at , then has a local maximum at .
If changes from negative to positive at , then has a local minimum at .
If does not change sign at , then has neither a local maximum nor a local minimum at .
The Second Derivative Test
The Second Derivative Test is another method to classify a critical point, specifically one where . Let be such a critical point:
If , then has a local minimum at . (The function is concave up).
If , then has a local maximum at . (The function is concave down).
If , the test is inconclusive, and the First Derivative Test must be used.
Understanding Justification for Absolute Extrema
A key nuance in optimization is justifying that a found extremum is absolute, not just relative (local). The method of justification depends on the interval of interest.
For a continuous function on a closed interval , the absolute extrema are guaranteed to exist by the Extreme Value Theorem. The Candidates Test is the definitive method. By evaluating the function at all critical points and at the endpoints, you are guaranteed to find the absolute maximum and minimum values.
For a continuous function on an open interval, the situation is different. There may not be an absolute maximum or minimum. However, a special and common case arises in optimization problems: if a function has only one critical point within an interval, and that critical point corresponds to a local maximum or minimum (as verified by the First or Second Derivative Test), then that local extremum is also the absolute extremum on that interval. This is a critical justification step for many word problems where the domain is naturally an open interval (e.g., lengths cannot be zero or a certain maximum value).
Core Concepts & Rules
Locating Potential Extrema: The derivative, , is used to find the critical points of a function . These are the only locations where local extrema can occur.
Absolute Extrema on a Closed Interval: To find the absolute maximum and minimum of a continuous function on , always use the Candidates Test. This involves comparing the function's values at the endpoints ( and ) and at all critical points inside the interval.
Classifying Critical Points: The First Derivative Test (analyzing the sign of ) and the Second Derivative Test (analyzing the sign of at the critical point) are used to classify a critical point as a local maximum or a local minimum.
Justifying Absolute Extrema on an Open Interval: If a continuous function has exactly one critical point on an interval, and you can show that this point is a local maximum (or minimum) using a derivative test, then you can conclude it is the absolute maximum (or minimum) on that interval.
Step-by-Step Example 1: Optimization on a Closed Interval
Problem: Find the absolute maximum and minimum values of the function on the closed interval .
Step 1: Find the derivative.
The derivative is used to locate the critical points.
Step 2: Find the critical points.
Set the derivative equal to zero and solve for . The derivative is a polynomial and is never undefined.
The critical points are and . Both of these points are within the interval .
Step 3: Apply the Candidates Test.
The candidates for the absolute extrema are the endpoints and the critical points within the interval.
Endpoint:
Critical Point:
Critical Point:
Endpoint:
Step 4: Evaluate the function at each candidate.
Step 5: Conclude the absolute maximum and minimum.
By comparing the output values:
The absolute maximum value is 8, which occurs at .
The absolute minimum value is -19, which occurs at .
Step-by-Step Example 2: Exam-Style Application
Problem: A rectangular garden is to be constructed using a rock wall as one side and wire fencing for the other three sides. If 100 feet of wire fencing is available, what is the largest possible area of the garden?
Step 1: Define variables and the primary equation.
Let be the length of the two sides perpendicular to the rock wall, and let be the length of the side parallel to the wall.
The quantity to be maximized is the area, .
Primary Equation:
Step 2: Write the secondary (constraint) equation.
The constraint is the amount of fencing available.
Secondary Equation:
Step 3: Express the primary equation in terms of a single variable.
Solve the secondary equation for : .
Substitute this into the area equation:
Step 4: Determine the relevant domain.
Since represents a length, . Also, the parallel side must be positive, so , which means , or .
The domain is the open interval .
Step 5: Find the derivative of the function to be optimized.
Step 6: Find the critical points.
Set the derivative to zero and solve.
This single critical point, , is within our domain .
Step 7: Justify that the critical point yields an absolute maximum.
We will use the Second Derivative Test.
Since , the function has a local maximum at .
Because is the only critical point on the open interval , this local maximum must also be the absolute maximum.
Step 8: Answer the question.
The question asks for the largest possible area. We found the value that maximizes the area is feet.
The corresponding area is:
The largest possible area of the garden is 1250 square feet.
Using Your Calculator
While the analytical justification for optimization must be shown on the exam, a graphing calculator is a powerful tool for verifying your results.
To solve the problem on :
Graph the Function:
Press
Y=and enterY_1 = 2X^3 - 3X^2 - 12X + 1.Set the
WINDOWto match the interval: , . Use (oftenZOOM-> ) to adjust the Y-axis, or set it manually to see the graph clearly (e.g., , ).The graph will visually confirm a maximum near and a minimum near .
Find Critical Points:
You can graph the derivative (the derivative of ).
Use the
CALC$ menu ( +TRACE`) and select .Use the cursor to find the x-intercepts of . The calculator will confirm the zeros at and .
Verify Extrema:
Go back to the graph of .
Use the
CALC$ menu and select . Move the cursor to the left of the peak, pressENTER, move to the right, pressENTER, and pressENTER` again for a guess. The calculator will show a maximum at or near .Use the menu and select . Repeat the process for the valley. The calculator will show a minimum at or near .
The calculator is excellent for checking the values you found analytically through the Candidates Test, but it is not a substitute for showing the calculus steps.
AP Exam Quick Hit
Common Question Types
Find Absolute Extrema on a Closed Interval: A straightforward question asking for the absolute maximum and minimum value of a given function on a specified interval . This is a direct application of the Candidates Test.
Optimization Word Problem: A problem describing a physical situation (e.g., minimizing surface area of a can, maximizing the volume of a box, finding the closest point on a curve to a given point) that requires you to set up the function, determine the domain, find the single critical point, and justify that it yields an absolute extremum.
Analysis of from the Graph of : You are given the graph of the derivative, , on an interval . You are asked to find the x-coordinate where attains its absolute maximum. This requires identifying critical points (where or changes sign) and endpoints as candidates, and then using areas under the graph to compare the change in between the candidates.
Common Mistakes
Forgetting to Test Endpoints: When applying the Candidates Test for a closed interval, students find the critical points but forget to evaluate the function at the endpoints, and . The absolute extremum can, and often does, occur at an endpoint.
Incomplete Justification: Stating that a critical point is a maximum or minimum without providing a valid calculus-based reason. You must explicitly use the First or Second Derivative Test and, for open intervals, state why a local extremum is also an absolute extremum (i.e., it's the only critical point in the interval).
Answering the Wrong Question: In a word problem, correctly finding the value of that optimizes a quantity but failing to use that to find the requested maximum area, minimum cost, or other dimension. Always re-read the prompt before writing your final answer.
Confusing , , and : Using the sign of instead of to find where a function is increasing, or stating that implies a point of inflection when it is only a possibility.
Assuming a Critical Point is an Extremum: Finding where and immediately assuming it must be the maximum or minimum without performing the First or Second Derivative Test to confirm.