CalcWork

Optimization practice problems

Calculus optimization practice problems: maximize area, minimize cost or surface area. Set up the objective and constraint, with worked solutions. The app has 20 problems on this topic, and the first 10 are free.

The idea

goal + fixed amount → 1 variable

The fixed amount never changes; the goal is what you make biggest or smallest. Use the fixed amount to write the goal with one variable, take the derivative, set it to 0.

Why it works
At the best point the goal stops increasing, so its derivative is 0.
Example
A pen against a barn uses 40 m of fence on 3 sides: x along the barn, y on each end. Maximize the area.
goal: Maximize area
y in x: x + 2y = 40, so y = 20 − x/2
A(x) = x(20 − x/2)
A′(x) = 20 − x = 0
x = 20, y = 10

Common mistake: Answer exactly what was asked: dimensions, the max value, or the x.

Worked examples

Try each one first. Open the hints one at a time, then check the worked solution.

Example 1

Of all rectangles with perimeter 60,

which has the largest area? Give the side lengths.

Hints
  1. Read the question again. What should be as big or as small as possible? Which amount is fixed?
  2. Call the sides x and y. The perimeter is fixed: 2x + 2y = 60. Solve that for y.
  3. Put your y = … into A = x·y so only x is left. Then set A′(x) = 0 and solve for x.
Worked solution
A(x) = x(30 − x)
A′(x) = 30 − 2x = 0 → x = 15
a 15 × 15 square

goalMaximize areay in x30−xA(x)x (30−x)A′(x)30−2xx15y15

Example 2

Of all rectangles with area 144,

which has the smallest perimeter? Give the side lengths.

Hints
  1. Read the question again. What should be as big or as small as possible? Which amount is fixed?
  2. Call the sides x and y. The area is fixed: x·y = 144. Solve that for y.
  3. Put your y = … into P = 2x + 2y so only x is left. Then set P′(x) = 0 and solve for x.
Worked solution
P(x) = 2x + 288/x
P′(x) = 2 − 288/x² = 0 → x = 12
a 12 × 12 square

goalMinimize perimetery in x144xP(x)2x+288xP′(x)2−288x2x12y12

Example 3

Positive x and y with xy = 30,

such that 3x + y is as small as possible.

Hints
  1. Read the question again. What should be as big or as small as possible? Which amount is fixed?
  2. The product is fixed: xy = 30. Solve that for y.
  3. Put your y = … into S = 3x + y so only x is left. Then set S′(x) = 0 and solve for x.
Worked solution
y = 30/x, S(x) = 3x + 30/x
S′(x) = 3 − 30/x² = 0 → x = √10
y = 30/x = 3√10

goalMinimize 3x + yy in x30xS(x)3x+30xS′(x)3−30x2x10y3 10

Example 4

240 m of fence for three sides of a rectangular pen against a barn.

Dimensions that maximize the area?

Hints
  1. Read the question again. What should be as big or as small as possible? Which amount is fixed?
  2. Call each side out from the barn x, and the front side y. The fence is fixed: 2x + y = 240. Solve that for y.
  3. Put your y = … into A = x·y so only x is left. Then set A′(x) = 0 and solve for x.
Worked solution
2x + y = 240, so A(x) = x(240 − 2x)
A′(x) = 240 − 4x = 0 → x = 60
x = 60, y = 120

goalMaximize areay in x240−2xA(x)x (240−2x)A′(x)240−4xx60y120