Optimization problems, step by step
6 min read
Short answer
Write the quantity to optimize as a function of one variable (using the constraint to eliminate the others), find where its derivative is or undefined, and check with the second derivative or the endpoints that you really have a maximum or minimum.
The method
- Draw and name the variables.
- Write the objective (what you optimize) and the constraint.
- Solve the constraint for one variable and substitute, so the objective has one variable.
- Find the domain, then solve .
- Test the critical points and the endpoints. Answer the question that was asked.
Checking the answer
If at a critical point it is a local maximum; if , a local minimum. On a closed interval, compare at the critical points and at both endpoints.
Worked example
You have 40 m of fence for a rectangular pen against a wall (no fence needed on the wall side). What dimensions maximize the area?
Let the two sides perpendicular to the wall be and the side parallel to it be . Area . Then gives and (a maximum). The pen is m by m, with area .
Try it yourself
Find two positive numbers with sum whose product is as large as possible.
Show the answer
Let the numbers be and . , , so . Both numbers are , product .
Keep going with practice
Vidi's multivariable lessons extend this to several variables with the second derivative test and Lagrange multipliers.