Skip to content
Study Hall
Lesson 3 of 4Applications of Derivatives
Unit 4 · Lesson 3 of 4

Optimization Problems

Optimization means finding the largest or smallest possible value of a quantity, such as the biggest box or the can that uses the least metal. Model the quantity as a function of one variable, use the context to fix the domain, then let the derivative find the best value.

5 min read11 practice questionsInteractiveAsk AI about this →

Key things to remember

  1. 1On a closed interval, the absolute maximum and minimum occur at critical numbers or endpoints: evaluate them all and compare.
  2. 2Use the constraint to write the quantity to optimize as a function of ONE variable, then state its domain.
  3. 3Reject critical numbers outside the domain; confirm a max or min with the first or second derivative test.
  4. 4Open box from an sheet: with .
  5. 5To minimize a distance, minimize instead; the same gives the minimum.

A packaging company wants a box that holds as much as possible from a fixed sheet of cardboard. A farmer wants to fence the biggest field with the fencing she owns. A drink company wants a can that holds 500 mL using as little aluminium as possible. Each is a trade-off: making one dimension bigger forces another to be smaller, so there is a best value somewhere in between. In Unit 3 you learned that, inside its domain, a smooth function can only reach a local maximum or minimum where its derivative is zero. Optimization turns a word problem into a function so that fact can find the best design.

The goal is the ABSOLUTE (global) maximum or minimum on the domain the situation allows. On a closed interval , a continuous function always has one, and it occurs either at a critical number inside the interval or at an endpoint, so you compare the values at all of them. On an open interval, check what happens to the function near the ends and use the first or second derivative test to confirm the critical number gives the extreme you want.

StepExample: 600 m of fence by a river1Draw and labelSketch it; name every variable.width x, length y, river on one side2Write the quantity to optimizeUse the constraint: one variable only.2x + y = 600, so A = x(600 − 2x)3State the domainWhich values make physical sense?0 < x < 3004Differentiate, solve f′ = 0Find the critical numbers.A′(x) = 600 − 4x = 0 → x = 1505Test critical points and endsCompare f there and at the endpoints.A(150) = 45 000; A → 0 at x = 0, 3006Answer with unitsAnswer the question that was asked.150 m by 300 m: 45 000 m²
Fig 1The six steps of an optimization problem, with the river-fence example worked beside each one: draw and label, write the quantity as a function of one variable using the constraint, state the domain, differentiate and solve f′ = 0, test the critical points and endpoints, and answer with units.
  1. Draw a diagram and label every quantity that can change. Name the quantity to optimize.
  2. Write that quantity as a formula. If it has two variables, use the constraint (the fixed amount of fencing, cardboard or volume) to eliminate one.
  3. State the domain from the context: lengths must be positive, a cut cannot exceed half the sheet, and so on.
  4. Differentiate and solve . Reject any solution outside the domain.
  5. Test: compare values at critical numbers and endpoints, or use the first or second derivative test.
  6. Answer the question that was asked, in a sentence, with units. Often it asks for dimensions, not just the maximum value.
VideoOntario teacher JensenMath runs the same steps on a simple rectangle with a fixed perimeter: write the area as a function of one variable, find the critical number and confirm it gives the maximum.Watch on YouTube

The open box

1. Cut x × x corners2. Fold up the sides3. Maximize V(x)xxxx30 cmbase30 − 2xdashed: fold lines30 − 2x30 − 2xxat x = 5: 20 × 20 × 5 cmxV5101510002000max (5, 2000)V′ = 0V(x) = x(30 − 2x)², 0 < x < 15V′(x) = (30 − 2x)(30 − 6x) = 0 → x = 5Largest box: 5 cm deep, 20 cm × 20 cm base, V = 2000 cm³ (x = 15 gives V = 0)
Fig 2A 30 cm by 30 cm square sheet with an x by x square cut from each corner, folded into an open box. The small graph of V(x) = x(30 − 2x)² peaks at x = 5, where V = 2000 cm³.

Cut squares of side from the corners of a cm by cm sheet and fold up the sides. The base becomes by and the height is , so . Tiny squares give a flat box with almost no volume; squares close to cm leave almost no base. The domain is , and the best cut is somewhere in between. The product and chain rules give which is zero at (outside the domain) and . So the best box has height cm, base cm by cm, and volume .

VideoThe open box problem with a square sheet of cardboard and squares cut from the corners, solved with the derivative just like the example above.Watch on YouTube

Fencing beside a river

river (no fence on this side)x150 mx600 − 2x = 300 mA = x(600 − 2x)= 45 000 m²fence: x + (600 − 2x) + x = 600 mxA15030020 00040 000max (150, 45 000)A′(x) = 600 − 4x = 0 → x = 150 m; domain 0 < x < 300Best field: 150 m by 300 m, area 45 000 m²
Fig 3A rectangular field along a straight river with 600 m of fence on the other three sides. A(x) = x(600 − 2x) is greatest when each side perpendicular to the river is x = 150 m, making the side along the river 300 m and the area 45 000 m².

With m of fence and no fence needed along the river, let be each side perpendicular to the river. The side parallel to the river gets what is left, , so for . Then at . is positive before and negative after, so this is the maximum: a m by m field of area . Notice the answer is not a square, because the river saves one side of fencing.

Loading interactive…
Choose the open box, the fence by a river or the can of least metal. Drag the slider to change the shape, watch the objective graph and the sign of the derivative, then press Find the optimum for the full calculus solution.
Always check the domain and the endpoints
Solving only finds candidates. A root outside the domain (like for the box) must be rejected. On a closed interval, an endpoint can beat every critical number, so evaluate the function at the endpoints too.
Minimize the square of a distance
A distance is smallest exactly when is smallest, because the square root is an increasing function. Minimizing avoids differentiating a square root and gives the same .

Worked examples

Reveal one step at a time and try to beat it to the next line.

Example 1
Squares of side are cut from the corners of a cm by cm sheet, and the sides are folded up to make an open box. Find the maximum volume.
Example 2
A closed cylindrical can must hold . Find the radius and height that use the least metal.
Example 3
Find the point on the curve that is closest to the point .
Example 4
A rectangle has its base on the -axis and its upper corners on the parabola . Find the largest possible area.

Where marks get lost

  • Leaving the function in two variables and differentiating anyway. Use the constraint to eliminate one variable first.
  • Keeping a critical number outside the domain, such as for the cm box, which leaves no base at all.
  • Forgetting the endpoints of a closed interval: the absolute extreme can be at an endpoint, not at a critical number.
  • Stopping at when the question asks for the maximum volume or the dimensions. Reread the question and answer it in a sentence with units.
  • Assuming the best rectangle is always a square. With a river on one side, the best field is twice as long as it is wide.

Flashcards 7

Absolute extremes on a closed interval
Constraint
Open box from a 30 by 30 sheet
Field by a river, 600 m of fence
+ 3 more

Practice

1
Equal squares of side cm are cut from the corners of a cm by cm sheet to make an open box. What value of gives the maximum volume?
cm
2
An open box is made from a cm by cm sheet by cutting squares of side from the corners. Find the maximum volume in .
cm³
3
A farmer has m of fence to enclose a rectangular field along a straight river (no fence on the river side). What is the maximum area, in square metres?
m²
4
A rectangle must have an area of . What is the smallest possible perimeter, in metres?
m
5
Two positive numbers and add to . Find the maximum value of .
6
Find the shortest distance from the point to the parabola , to 2 decimal places.
7
For the cm by cm open box, gives or . Why is rejected?
8
A closed can of fixed volume uses the least metal when which is true?
9
Match each problem to the function to optimize.
  1. A.
  2. B.
  3. C.
  4. D.
Open box from a cm square sheet
Field beside a river with m of fence
Closed can holding
Point on closest to
10
Put the steps of an optimization problem in order.
  1. 1Answer the question in a sentence, with units
  2. 2Compare values at the critical numbers in the domain and at the endpoints
  3. 3Differentiate and solve
  4. 4Draw a diagram and label the variables
  5. 5Use the constraint to write the quantity to optimize as a function of one variable
11
On a closed interval, the absolute maximum can occur at a critical number or at one of the ______ of the interval.

Spot a mistake on this page? Let us know