How to solve an optimization problem
An optimization problem requires finding the absolute maximum or minimum of an objective function subject to given constraints. This method applies whenever you need to optimize a measurable physical quantity, such as minimizing cost or maximizing volume, over a specific domain.
The setup
Identify the objective function to be maximized or minimized and the constraint equation that limits the variables. Express the objective function in terms of a single variable by isolating one variable in the constraint equation and substituting it into the objective function.
The steps
- Write the objective function in terms of one variable. 2. Determine the valid domain of based on the physical constraints of the problem. 3. Compute the first derivative . 4. Find all critical points by setting and solving for , and identify any points where is undefined. 5. Evaluate at all critical points and at the endpoints of the domain.
Checking the result
Use the Second Derivative Test by computing . If , the critical point is a local minimum; if , it is a local maximum. Ensure that the absolute extremum occurs within the physically valid domain of the problem by comparing these local extrema to the endpoint values.
Common errors
Failing to check the endpoints of a closed interval, which often contain the absolute extrema. Forgetting to substitute the constraint equation, leading to improper differentiation of a multivariable function with respect to a single variable.
Worked example
A farmer has 2400 ft of fencing and wants to fence off a rectangular field that borders a straight river. He needs no fence along the river. What are the dimensions of the field that has the largest area?
Let be the width of the field perpendicular to the river and be the length parallel to the river. The constraint is . The objective function for area is . Substitute into to get the single-variable function: The physical domain is . Differentiate to find . Set to get the critical point . Evaluate the area at the endpoints and the critical point: , , and . The second derivative is , which is strictly negative, confirming yields a maximum. The optimal dimensions are width ft and length ft.
FAQ
Run your own problem
References: Calculus Volume 1 by OpenStax · Calculus: Early Transcendentals 8th Edition by James Stewart
See also