Optimization Calculus: Solving Maximum and Minimum Problems
This lesson explains how optimization problems in calculus turn real-world questions, like maximizing area or minimizing cost, into single-variable functions that can be solved using derivatives, critical numbers, and the second derivative test.
What Is Optimization in Calculus?
Optimization problems ask you to find the largest or smallest possible value of some quantity, such as the maximum area you can enclose with a fixed length of fence, the minimum amount of material needed to build a container, or the price that maximizes profit. Every one of these situations can be modeled with a function, and calculus gives you the tools to locate its maximum or minimum value exactly.
The key idea is that at a maximum or minimum point, the function is momentarily flat, so its derivative is zero (or undefined). These special input values are called the critical numbers of a function, and finding them is the heart of solving any optimization problem.
The Optimization Problem Solving Steps
Although every optimization question looks different on the surface, the underlying steps are always the same.
Worked Example: Maximizing an Enclosed Area
Suppose you have 40 meters of fencing and want to enclose the largest possible rectangular area. Let the sides be \(x\) and \(y\).
Constraint: the perimeter is fixed, so \(2x + 2y = 40\), which gives \(y = 20 - x\).
Quantity to optimize: area, \(A = xy\). Substituting the constraint turns this into a single-variable function:
\(A(x) = x(20 - x) = 20x - x^2\)
Now differentiate and set the derivative equal to zero to find the critical number:
\(A'(x) = 20 - 2x = 0 \implies x = 10\)
Since \(A''(x) = -2\), which is negative, the second derivative test confirms \(x = 10\) gives a maximum. Substituting back, \(y = 10\) as well, so the maximum area is \(A(10) = 100\) square meters, using a square shape.
Graph of \(A(x) = x(20 - x)\) showing the maximum area at \(x = 10\)
Worked Example: Minimizing Material for a Container
Optimization problems in economics contexts follow the exact same process. For example, finding the box dimensions that use the least material for a given volume, or finding the minimum average cost of production, both start by writing a constraint equation, reducing to one variable, and applying the derivative test. The only thing that changes from problem to problem is the setup: the calculus steps stay identical.
Business-style optimization problems often involve a demand function that links price to quantity sold. Once that relationship is substituted into a revenue or profit equation, the same derivative-and-critical-number process finds the price or quantity that maximizes profit.
Using the Second Derivative Test
After finding a critical number, you still need to decide whether it produces a maximum, a minimum, or neither. Two common checks are used:
Second derivative test: if \(f''(x) > 0\) at the critical number, it is a minimum; if \(f''(x) < 0\), it is a maximum.
Closed interval check: if the domain has fixed endpoints, evaluate the function there too, since the true maximum or minimum can occur at an endpoint rather than at a critical number.
When the second derivative equals zero or the domain is unbounded, comparing values on either side of the critical number (a sign chart for \(f'(x)\)) is a reliable backup method.
Common Mistakes to Avoid
Most errors in optimization problems happen before any derivative is taken: forgetting to write a constraint equation, optimizing the wrong quantity, or leaving two variables in the function instead of substituting down to one. Always double-check units, and make sure the final answer responds to the actual question asked, not just the value of \(x\) at the critical number.