The Core Idea: Solving 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 calculus, we leverage the derivative to solve these applied problems. The core idea is that the maximum or minimum value of a differentiable function must occur at a point where its derivative is zero or undefined (a critical point), or at an endpoint of its domain.
By translating a real-world problem—such as maximizing the volume of a container, minimizing the cost of materials, or finding the shortest distance between a point and a curve—into a mathematical function, we can use the tools of differential calculus to find the optimal solution. This involves identifying the quantity to be optimized, expressing it as a function of a single variable, and then analyzing that function's derivative to locate and justify the required maximum or minimum value.
Key Concepts: The Optimization Process
The Essential Knowledge for this topic outlines a structured, multi-step process for solving optimization problems. There are no new formulas to memorize; rather, the key is to master this analytical procedure.
The process is as follows:
Understand the Problem: Read the problem carefully to identify the specific quantity that needs to be maximized or minimized. Identify all given information and any constraints.
Write a Primary Equation: This is the equation for the quantity you wish to optimize. For example, if you are maximizing area, this is your area formula (). This equation may initially involve more than one independent variable.
Write a Secondary Equation (Constraint): If the primary equation has more than one variable, you must find a relationship between those variables. This relationship, given by the problem's constraints, is the secondary equation. For example, a fixed amount of fencing would be a perimeter constraint ().
Express the Primary Equation in Terms of a Single Variable: Use the secondary equation to solve for one variable and substitute it into the primary equation. This creates a function of a single variable that you can analyze using calculus.
Determine a Relevant Domain: Based on the physical constraints of the problem, determine the feasible domain for your single-variable function. For instance, lengths, areas, and volumes cannot be negative. This domain may be a closed or open interval.
Use Calculus to Find the Optimal Value:
Find the derivative of your single-variable function.
Find the critical points by setting the derivative equal to zero and finding where it is undefined.
Evaluate the function at the critical points and at the endpoints of the domain (if it is a closed interval).
Justify that your result is a maximum or minimum using the First Derivative Test or the Second Derivative Test.
Understanding the Domain and Justification
A critical nuance in solving optimization problems is the careful consideration of the domain and the formal justification of your answer.
The Domain: The domain represents the set of all possible input values (e.g., length, radius, time) that are physically realistic for the problem. For example, if represents the side length of a box, the domain must be . If you are cutting squares of side length from the corners of a 10-inch by 12-inch piece of cardboard, the amount you cut, , cannot exceed the shorter side, so , which means . Establishing this domain is crucial because the absolute maximum or minimum might occur at an endpoint of a closed interval domain, not just at a critical point.
Justification: Finding a critical point is not enough. The AP exam requires you to prove that this critical point yields the desired maximum or minimum. There are two primary methods for this justification:
The First Derivative Test: Analyze the sign of the derivative () on either side of the critical point .
For a relative maximum, must change from positive to negative at .
For a relative minimum, must change from negative to positive at .
The Second Derivative Test: Find the second derivative () and evaluate its sign at the critical point (where ).
If , the function is concave down, and is a relative maximum.
If , the function is concave up, and is a relative minimum.
If the domain is a closed interval , you must also use the Candidates Test. This involves evaluating the function at all critical points within the interval and at the endpoints and . The largest of these values is the absolute maximum, and the smallest is the absolute minimum.
Core Concepts & Rules
The derivative is the fundamental tool used to solve optimization problems by locating potential maximum and minimum values.
The first step in any optimization problem is to define a primary equation, which is a function representing the quantity to be maximized or minimized.
If the primary equation contains more than one independent variable, a secondary equation must be established based on the constraints of the problem.
The secondary equation is used to rewrite the primary equation as a function of a single variable.
A practical and relevant domain for the primary function must be determined from the physical limitations described in the problem.
Calculus techniques, such as finding critical points and using the First or Second Derivative Test, are required to find the optimal value and, crucially, to justify that the result is a maximum or a minimum.
Step-by-Step Example 1: Maximizing Area
Problem: A farmer has 400 feet of fencing to enclose a rectangular pen that borders a straight river. No fencing is needed along the river. What are the dimensions of the pen that will have the largest possible area?
Step 1: Understand the Problem
Goal: Maximize the area of a rectangular pen.
Constraint: The total fencing available is 400 feet. The pen has three fenced sides.
Let be the length of the two sides perpendicular to the river and be the length of the side parallel to the river.
Step 2: Write a Primary Equation
The quantity to be maximized is Area, .
The primary equation is:
Step 3: Write a Secondary Equation
The constraint is the amount of fencing. The perimeter of the three fenced sides is 400 feet.
The secondary equation is:
Step 4: Express as a Single-Variable Function
Solve the secondary equation for : .
Substitute this into the primary equation: .
Step 5: Determine the Domain
The side length must be positive, so .
The side length must also be positive: .
The relevant domain is .
Step 6: Use Calculus to Find the Optimal Value
Find the derivative:.
Find critical points: Set .
This critical point is within our domain .
Justify the maximum: We will use the Second Derivative Test.
Find the second derivative: .
Since , the function is concave down at , which confirms that this critical point corresponds to a local maximum. Since it is the only critical point on the open interval, it is the absolute maximum.
Find the dimensions:
feet.
Find using the secondary equation: feet.
Answer: The dimensions of the pen with the largest area are 100 feet by 200 feet.
Step-by-Step Example 2: Minimizing Surface Area
Problem: A company needs to manufacture a cylindrical can with a volume of . What should the radius and height of the can be to minimize the amount of material used (i.e., minimize the surface area)?
Step 1: Understand the Problem
Goal: Minimize the surface area of a cylinder.
Constraint: The volume of the cylinder must be .
Let be the radius and be the height of the can.
Step 2: Write a Primary Equation
The quantity to be minimized is Surface Area, . The surface area of a cylinder is the area of the top and bottom circles plus the area of the side.
Primary equation:
Step 3: Write a Secondary Equation
The constraint is the volume. The volume of a cylinder is .
Secondary equation:
Step 4: Express as a Single-Variable Function
Solve the secondary equation for : .
Substitute this into the primary equation:
Step 5: Determine the Domain
The radius must be a positive value.
The domain is .
Step 6: Use Calculus to Find the Optimal Value
Find the derivative: First, rewrite .
Find critical points: Set .
Justify the minimum: We will use the First Derivative Test.
The critical point is .
Pick a test point in , such as . .
Pick a test point in , such as . .
Since changes from negative to positive at , this corresponds to a local minimum. As it's the only critical point on the domain, it is the absolute minimum.
Find the dimensions:
Radius: .
Height: .
Answer: The material is minimized when the radius is cm and the height is cm.
Using Your Calculator
While the setup and justification for optimization problems must be done analytically, a graphing calculator can be a powerful tool for finding numerical answers and verifying your work.
To find a critical point and optimal value:
Enter the Function: After deriving your single-variable primary equation, such as [Xmin, Xmax]to match the domain you determined for the problem (e.g., $Xmin=0, ).
Find the Maximum/Minimum Graphically:
Press
[2nd][TRACE]to access theCALCmenu.Select
4:maximumor3:minimum.The calculator will prompt you for a "Left Bound," "Right Bound," and "Guess." Move the cursor to the left of the max/min and press
[ENTER], then to the right and press[ENTER], and finally near the point for a guess and press[ENTER].The calculator will display the coordinates of the maximum or minimum point. The x-coordinate is the location of the optimum, and the y-coordinate is the optimal value.
Find the Critical Point using the Derivative:
In
Y2, enter the derivative ofY1using thenDerivfunction:Y2 = nDeriv(Y1, X, X).Graph both
Y1andY2.Use the
CALCmenu and select2:zero. Use this function onY2to find the x-intercept, which corresponds to the critical point where the derivative is zero.
Important Note: On a Free-Response Question, you must still show the analytical work. You must write down the derivative, set it equal to zero, and provide a justification (like a sign chart or second derivative test). You can state that you used a calculator to solve the equation (e.g., ), but the setup must be there.
AP Exam Quick Hit
Common Question Types
Geometric Optimization: These are the most common type. You might be asked to find the dimensions of a shape (rectangle, cylinder, box) that maximize area or volume, or minimize perimeter or surface area, given a constraint.
- Example: "Find the dimensions of the rectangle with maximum area that can be inscribed under the curve in the first quadrant."
Distance Optimization: Finding the point on a given curve that is closest to a fixed point. This involves minimizing the distance formula.
- Example: "Find the coordinates of the point on the graph of that is closest to the point ."
Business/Economic Optimization: Finding the production level, price, or other variable that will maximize profit or revenue, or minimize cost, based on given functions.
- Example: "The profit from selling items is given by . How many items must be sold to maximize profit?"
Common Mistakes
Forgetting to Justify the Optimum: A student finds the correct critical point but fails to use the First or Second Derivative Test to prove it yields a maximum or a minimum. An answer without justification will not receive full credit.
Answering the Wrong Question: The problem asks for the maximum area, but the student provides only the dimensions ( and ). Or, it asks for the dimensions, and the student provides only the area. Read the prompt carefully to ensure you are providing the requested information.
Ignoring Endpoints: For problems on a closed interval , students often forget to check the function's value at the endpoints and . The absolute maximum or minimum can occur at an endpoint.
Incorrect Setup: Making an error when translating the word problem into the primary and secondary equations. For example, using the formula for the volume of a cone instead of a cylinder.
Solving for the Wrong Variable: After finding the optimal value for one variable (e.g., ), forgetting to solve for the other variable () if the question asks for both dimensions.