Optimization
Optimization problems ask for the best possible outcome — maximum area, minimum material, shortest distance — subject to some constraint. Every single one reduces to the exact same idea: turn a two-variable problem into a one-variable function, then find its absolute extremum.
Steps for Optimization:
(1) Draw a diagram and label all quantities.
(2) Write the primary equation — the quantity you're optimizing — in terms of two variables.
(3) Write a constraint equation relating those variables, solve for one, and substitute into the primary equation so it depends on only one variable.
(4) Find the absolute extremum of that single-variable function (closed interval method, or First/Second Derivative Test).
(1) Draw a diagram and label all quantities.
(2) Write the primary equation — the quantity you're optimizing — in terms of two variables.
(3) Write a constraint equation relating those variables, solve for one, and substitute into the primary equation so it depends on only one variable.
(4) Find the absolute extremum of that single-variable function (closed interval method, or First/Second Derivative Test).
Step-by-Step SOP
- 1
Draw a Diagram and Label Everything
Identify all the quantities involved and give each one a variable name. - 2
Write the Primary and Constraint Equations
Primary: the quantity to optimize, in terms of two variables. Constraint: a relationship between those variables, from the physical setup. - 3
Reduce to One Variable and Optimize
Solve the constraint for one variable, substitute into the primary equation, then find its absolute extremum using the derivative tests you already know.
Practice Exercises
Example 01Medium
A farmer has 1200 m of fencing to enclose a rectangular field along a river (no fence is needed on the side facing the river). Find the dimensions that maximize the enclosed area.
NEED A HINT?
Let be the width of the two perpendicular sides and the length parallel to the river. The constraint only counts 3 sides of fencing.
SHOW DETAILED EXPLANATION
Step 1: Write the Constraint and Primary Equation
Constraint: . Primary equation: .
Step 2: Reduce to One Variable
, for .
Step 3: Find the Critical Point
.
Step 4: Confirm the Maximum and State Dimensions
, confirming a maximum. . Maximum area .
Example 02Medium
A 12×12 inch sheet of aluminum has a square of side cut from each corner, and the sides are folded up to form an open-top box. Find that maximizes the volume.
NEED A HINT?
The base becomes a by square, and the box height is .
SHOW DETAILED EXPLANATION
Step 1: Write the Volume Function
, for .
Step 2: Differentiate and Factor
.
Step 3: Find Critical Points in the Domain
is an endpoint (excluded), so the only interior critical point is .
Step 4: Confirm and Compute
, and — the maximum volume, achieved by cutting -inch squares.
Example 03Hard
A cylindrical can must hold exactly . Find the dimensions that minimize the amount of material (surface area) used.
NEED A HINT?
Solve the volume constraint for in terms of first, then substitute into the surface area formula so it depends only on .
SHOW DETAILED EXPLANATION
Step 1: Write the Constraint and Primary Equation
. Surface area: .
Step 2: Reduce to One Variable
.
Step 3: Differentiate and Solve
.
Step 4: Find h and Observe the Classic Result
. Substituting shows exactly — the optimal can always has height equal to its diameter.
Example 04Hard
Find the point on the curve closest to the point .
NEED A HINT?
Minimize the squared distance after substituting so it depends only on .
SHOW DETAILED EXPLANATION
Step 1: Write the Squared Distance in Terms of y
Since : .
Step 2: Differentiate
.
Step 3: Solve for the Critical Point
, so .
Step 4: Confirm and State the Answer
at , confirming a minimum. The closest point is , at distance .
Example 05Medium
A company's revenue and cost functions are and (in dollars, for units). Find the production level that maximizes profit.
NEED A HINT?
Profit is — maximize it like any other single-variable function. You should find that the maximum occurs exactly where marginal revenue equals marginal cost.
SHOW DETAILED EXPLANATION
Step 1: Write the Profit Function
.
Step 2: Differentiate and Solve
.
Step 3: Confirm the Maximum
, confirming a maximum at units — exactly the production level where (marginal revenue equals marginal cost).
Example 06Hard
A store sells 200 units of a product per week at 350 dollars each. For every 10-dollar price decrease, weekly sales increase by 20 units. Find the price that maximizes revenue.
NEED A HINT?
Let be the number of 10-dollar price decrements. Write price and quantity both in terms of , then maximize their product.
SHOW DETAILED EXPLANATION
Step 1: Set Up Price and Quantity in Terms of x
Price . Quantity .
Step 2: Write the Revenue Function
.
Step 3: Differentiate and Solve
.
Step 4: Confirm and State the Answer
confirms a maximum. New price dollars, and maximum revenue dollars.
Common Pitfalls
- ⚠Always Reduce to a Single Variable Before DifferentiatingThe primary equation almost always starts with two variables — don't differentiate until you've used the constraint to eliminate one of them.
- ⚠Don't Skip Confirming Max vs. MinSolving only gives a candidate — use the Second Derivative Test (or check the domain's endpoints) to confirm it's actually the maximum or minimum you want, not the opposite.
- ⚠State the Domain RestrictionsPhysical quantities like side lengths or radii must stay positive — always identify the valid domain (e.g. for the box problem) before hunting for extrema, since it can rule out spurious critical points.
