CalcDrillFree guides

College practice · Worked answers

Optimization problems calculus practice

An optimization problem asks for the biggest or smallest possible value under a constraint. The derivative is only one part of the solution. First build a one-variable model; then check that your candidate is allowed and really gives the requested maximum or minimum.

Keep the objective and constraint separate

The objective is what you want to maximize or minimize, such as area, volume, distance, or material. A constraint is a condition the design must satisfy. Use the constraint to remove a variable before differentiating the objective.

  1. Define the variables and their units.
  2. Write the objective and the constraint as separate equations.
  3. Rewrite the objective with one independent variable.
  4. State the physically allowed domain.
  5. Find interior critical points and check relevant endpoints or limiting behavior.
  6. Compare candidates and report the requested dimensions or value.

Why setting the derivative to zero is not enough

A zero derivative marks a candidate, not a guaranteed maximum. For a continuous objective on a closed bounded interval, compare values at interior critical points and endpoints. On an open or unbounded domain, check behavior near boundaries or at infinity as appropriate. A second-derivative sign can classify a local extremum; you still need to justify the global claim the question asks for. Reviewing for the final? Try the mixed Calculus 1 final exam review.

Translate the wording before differentiating
WordingObjectivePossible constraint
Largest rectangular areaA = xyFixed fencing length
Largest open-box volumeV = height × length × widthFixed sheet dimensions
Least surface materialSurface areaFixed enclosed volume

Work through two examples

Fence three sides of a rectangle

  1. Use 60 m of fencing for three sides; an existing wall supplies the fourth. Let x be each side perpendicular to the wall and y the parallel fenced side. Then 2x + y = 60.
  2. Area is A = xy = x(60 − 2x), with 0 < x < 30. A′ = 60 − 4x, so x = 15 m and y = 30 m.
  3. A″ = −4, and area tends to 0 at either boundary. This gives the maximum area, 450 m², for a 15 m by 30 m rectangle.

Cut an open box from a square sheet

  1. A 12 cm square has squares of side x cut from its corners. Fold up the sides. The box has V = x(12 − 2x)² and domain 0 < x < 6.
  2. Differentiate: V′ = (12 − 2x)(12 − 6x). The interior critical point is x = 2; x = 6 is a degenerate boundary, not a usable box.
  3. V rises before x = 2 and falls after it; it tends to 0 at both boundaries. The maximum is V(2) = 2 × 8² = 128 cm³.

Try it yourself

Choose an answer, then check your reasoning. You can retry any question or open its solution.

1. A rectangle uses 80 m of fencing on all four sides. Which constraint fits?
Show solution 1

2x + 2y = 80. All four sides contribute to perimeter: two x sides and two y sides. Area xy is the objective, not the fencing constraint.

Why the other choices are wrong:

  • 2x + y = 80: That counts three sides, which is the setup when a wall covers the fourth.
  • xy = 80: xy is the area, which is the objective, not the fencing constraint.
  • x + y = 80: That counts only two sides. A rectangle fenced on all sides has four.
2. For that rectangle, what is A(x) after eliminating y?
Show solution 2

x(40 − x). From 2x + 2y = 80, y = 40 − x. Thus A = x(40 − x).

Why the other choices are wrong:

  • x(80 − x): That uses y = 80 − x, skipping the divide by 2. From 2x + 2y = 80, y = 40 − x.
  • 80x: That multiplies x by the perimeter, not by the other side length.
  • x(80 − 2x): That is the three-sided setup, 2x + y = 80. Here all four sides are fenced.
3. What x maximizes A(x) = 40x − x² on 0 ≤ x ≤ 40?
Show solution 3

20. A′ = 40 − 2x vanishes at 20. A(20) = 400 exceeds the endpoint values of 0.

Why the other choices are wrong:

  • 40: At x = 40, y = 0 and the area is 0. That endpoint is a minimum.
  • 10: A′(10) = 20 is still positive, so the area is still increasing there.
  • 400: 400 is the maximum area A(20), not the x value that produces it.
4. For a box cut from a 10 cm square, which domain gives a real box?
Show solution 4

0 < x < 5. The height x must be positive and the base side 10 − 2x must also be positive. Together these give 0 < x < 5.

Why the other choices are wrong:

  • 0 < x < 10: The cut comes off both ends of each side, so the base 10 − 2x must stay positive.
  • All real x: Negative cuts, or cuts bigger than half the sheet, give impossible boxes.
  • 0 < x < 2.5: Four corners doesn’t mean divide by 4. Each side loses x at each end, so 10 − 2x > 0 gives x < 5.
5. A point has f′(c) = 0. What does that alone establish?
Show solution 5

It is a candidate requiring further checking. A stationary point may be a maximum, minimum, or neither. Domain and sign/value checks are still needed.

Why the other choices are wrong:

  • It is a global maximum: It could be a maximum, a minimum, or neither. You still need sign or value checks and the endpoints.
  • It is a global minimum: A zero slope doesn’t say which way the function turns. Check signs, values, and the domain.
  • It is an inflection point: Inflection points are about concavity changing. f′(c) = 0 can happen at a max, a min, or neither.
6. An open box is made by cutting squares of side x from the corners of an 18 cm square sheet. Which cut gives the largest volume?
Show solution 6

x = 3 cm, for V = 432 cm³. V = x(18 − 2x)² on 0 < x < 9. V′ = (18 − 2x)(18 − 6x), so the interior critical point is x = 3. V rises before 3, falls after, and tends to 0 at both ends, so V(3) = 3 × 12² = 432 cm³ is the maximum.

Why the other choices are wrong:

  • x = 4.5 cm: That is 18/4, a guess from the four corners. V(4.5) = 364.5 cm³, less than V(3).
  • x = 9 cm: At x = 9 the base side 18 − 2x is 0, so there is no box. That is a degenerate endpoint.
  • x = 6 cm: x = 6 is 18/3, but solving V′ = 0 gives 18 − 6x = 0, so x = 3. V(6) is only 216 cm³.
7. For x > 0, which x minimizes f(x) = x + 16/x?
Show solution 7

x = 4. f′(x) = 1 − 16/x² = 0 gives x = 4 in the domain. f″(x) = 32/x³ > 0, and f grows without bound near 0 and as x gets large, so x = 4 gives the global minimum, f(4) = 8.

Why the other choices are wrong:

  • x = 16: That comes from differentiating 16/x as −16/x instead of −16/x². f(16) = 17, which is not the minimum.
  • x = −4: −4 solves x² = 16, but it is outside the domain x > 0.
  • x = 0: f isn’t defined at 0, and it grows without bound as x gets close to 0.
8. Where does f(x) = x³ − 3x reach its absolute maximum on [0, 3]?
Show solution 8

x = 3, where f = 18. f′(x) = 3x² − 3 = 0 gives x = 1 in the interval. Compare f(0) = 0, f(1) = −2, and f(3) = 27 − 9 = 18. The maximum is 18, at the endpoint x = 3.

Why the other choices are wrong:

  • x = 1: x = 1 is the only critical point in the interval, but f(1) = −2 is the minimum. Check the endpoints.
  • x = −1: x = −1 is a critical point, but it is outside [0, 3].
  • x = 0: f(0) = 0 is smaller than f(3) = 18.

Answer key

Open all answers
  1. 2x + 2y = 80. All four sides contribute to perimeter: two x sides and two y sides. Area xy is the objective, not the fencing constraint.
  2. x(40 − x). From 2x + 2y = 80, y = 40 − x. Thus A = x(40 − x).
  3. 20. A′ = 40 − 2x vanishes at 20. A(20) = 400 exceeds the endpoint values of 0.
  4. 0 < x < 5. The height x must be positive and the base side 10 − 2x must also be positive. Together these give 0 < x < 5.
  5. It is a candidate requiring further checking. A stationary point may be a maximum, minimum, or neither. Domain and sign/value checks are still needed.
  6. x = 3 cm, for V = 432 cm³. V = x(18 − 2x)² on 0 < x < 9. V′ = (18 − 2x)(18 − 6x), so the interior critical point is x = 3. V rises before 3, falls after, and tends to 0 at both ends, so V(3) = 3 × 12² = 432 cm³ is the maximum.
  7. x = 4. f′(x) = 1 − 16/x² = 0 gives x = 4 in the domain. f″(x) = 32/x³ > 0, and f grows without bound near 0 and as x gets large, so x = 4 gives the global minimum, f(4) = 8.
  8. x = 3, where f = 18. f′(x) = 3x² − 3 = 0 gives x = 1 in the interval. Compare f(0) = 0, f(1) = −2, and f(3) = 27 − 9 = 18. The maximum is 18, at the endpoint x = 3.

Common questions

Why does the domain matter?

It removes impossible dimensions and tells you which boundaries must be checked. A mathematically valid critical point may be physically impossible.

Can the answer occur at an endpoint?

Yes. For a continuous function on a closed bounded interval, an absolute extremum can occur at an endpoint or an interior critical point.

Should I report x or the objective value?

Read the question. It may ask for dimensions, the maximum value, or both. Include units and identify each quantity.

Keep practicing

Try 3 days free

3-day free trial, no card needed.

Sources and fact checks

Definitions and methods checked against these textbook references. Practice scenarios and worked numbers were written for this guide.