01 / 21

Solving
Optimization Problems

Learn to find maximum and minimum values of real-world quantities using derivatives: the core technique of applied calculus.

Calculus 1

What Is Optimization?

Optimization means finding the best possible value of a quantity: the largest area, the shortest distance, the lowest cost, or the maximum profit. In calculus, we translate the problem into a function and then use derivatives to locate its extreme values.

Why Optimization Matters

Engineering
Minimize material to build a container of given volume
Economics
Maximize profit by choosing the optimal production level
Physics
Find the angle that maximizes the range of a projectile

Visual Intuition: Extrema on a Curve

x y Local Max
\( f'(x) = 0 \)
Local Min
\( f'(x) = 0 \)

The Extreme Value Theorem

This theorem guarantees that a solution exists. The extreme values occur either at critical points (where \( f'(x) = 0 \) or \( f'(x) \) is undefined) or at the endpoints \( x = a \) and \( x = b \).

a Endpoint b Endpoint
\( c_1 \)
\( f'(c_1)=0 \)
\( c_2 \)
\( f'(c_2)=0 \)
Compare \( f(a),\; f(c_1),\; f(c_2),\; f(b) \)
Largest = absolute max, Smallest = absolute min

The Closed Interval Method

1
Find critical points. Compute \( f'(x) \) and solve \( f'(x) = 0 \). Also note where \( f'(x) \) is undefined.
2
Evaluate \( f \) at each critical point that lies inside \[a, b\].
3
Evaluate \( f \) at the endpoints \( x = a \) and \( x = b \).
4
Compare all values. The largest is the absolute maximum; the smallest is the absolute minimum.

Absolute vs Local Extrema

Absolute Extremum Local Extremum
Definition Largest/smallest value on the entire domain Largest/smallest in a neighborhood
Location Critical points or endpoints Only at critical points
Guaranteed? Yes, on closed intervals (EVT) Not always: \( f'(c)=0 \) may be an inflection
Test Compare all candidates First or Second Derivative Test

The General Strategy

1
Draw a picture and assign variables to all unknown quantities.
2
Write the objective function: the quantity to maximize or minimize, e.g. \( A(x) \).
3
Write the constraint and use it to eliminate one variable so the objective depends on a single variable.
4
Determine the domain of the objective: what values of the variable are physically meaningful?
5
Differentiate, set \( f'(x)=0 \), and solve for critical points.
6
Verify the answer: use the First/Second Derivative Test or compare endpoint values.

Example 1: Maximum Area Fence

A farmer has \( 200 \text{ m} \) of fencing and wants to enclose the largest possible rectangular area against a straight river (no fence needed on the river side). What dimensions maximize the area?

River (no fence) y y x
\( A = xy \)

Example 1: Solution

1
Objective: \( A(x) = 100x - \frac{x^2}{2} \)
2
Domain: \( 0 \leq x \leq 200 \) (fence lengths must be non-negative).
3
Differentiate: \( A'(x) = 100 - x \). Set \( A'(x) = 0 \): \( x = 100 \).
4
Second Derivative Test: \( A''(x) = -1 < 0 \), so \( x = 100 \) is a maximum.

Example 2: Minimum Material Box

An open-top box with a square base must have a volume of \( 32{,}000 \text{ cm}^3 \). Find the dimensions that minimize the amount of material used (surface area).

x x h Open top Volume:
\( V = x^2 h = 32000 \)
Surface Area:
\( S = x^2 + 4xh \)

Example 2: Solution

1
Eliminate \( h \): From \( x^2 h = 32000 \), we get \( h = \frac{32000}{x^2} \).
2
Objective in one variable: \( S(x) = x^2 + 4x \cdot \frac{32000}{x^2} = x^2 + \frac{128000}{x} \).
3
Differentiate: \( S'(x) = 2x - \frac{128000}{x^2} \). Set to zero: \( 2x = \frac{128000}{x^2} \implies x^3 = 64000 \implies x = 40 \).
4
Verify: \( S''(x) = 2 + \frac{256000}{x^3} > 0 \) for all \( x > 0 \), confirming a minimum.

Example 3: Closest Point on a Parabola

Find the point on the curve \( y = x^2 \) that is closest to the point \( (0, 1) \).

x y (0, 1) d 0 1 -1 1 2
\( y = x^2 \)

Example 3: Solution

1
Expand: \( D(x) = x^2 + x^4 - 2x^2 + 1 = x^4 - x^2 + 1 \).
2
Differentiate: \( D'(x) = 4x^3 - 2x = 2x(2x^2 - 1) \).
3
Critical points: \( x = 0 \) or \( x = \pm \frac{1}{\sqrt{2}} \).
4
Compare: \( D(0) = 1 \), \( D\!\left(\pm\frac{1}{\sqrt{2}}\right) = \frac{3}{4} \). Minimum at \( x = \pm \frac{1}{\sqrt{2}} \).

Common Mistakes to Avoid

✕ Wrong Variable Count
Differentiating an objective that still has two unknowns. Always use the constraint to reduce to one variable first.
✕ Forgetting the Domain
Not checking that critical points lie in the physically meaningful interval (e.g., lengths must be positive).
✕ Max vs Min Confusion
Finding a critical point but not verifying whether it is a max or a min. Always use the Second Derivative Test or compare endpoint values.

Summary of Optimization Methods

Step Closed Interval Open / Unbounded Domain
Find critical points Solve \( f'(x) = 0 \) Solve \( f'(x) = 0 \)
Check endpoints Evaluate \( f(a) \) and \( f(b) \) Take limits as \( x \to \) boundaries
Verify extremum Compare all \( f \)-values Second Derivative Test or sign analysis
Conclusion Largest value = absolute max If only one critical point and \( f'' > 0 \): absolute min

Question 1 of 5

A farmer has \( 120 \text{ m} \) of fencing to enclose a rectangular area against a river (no fence on the river side). What value of the width \( x \) maximizes the enclosed area?

Question 2 of 5

What is the first step in solving an optimization problem?

Question 3 of 5

For the function \( f(x) = x^3 - 12x \) on \([-3, 5]\), what is the absolute maximum value?

Question 4 of 5

If \( f''(c) > 0 \) at a critical point \( c \) where \( f'(c) = 0 \), then \( f(c) \) is a:

Question 5 of 5

An open-top box with a square base has volume \( V = x^2 h \). The surface area is \( S = x^2 + 4xh \). If \( V = 500 \), which expression gives \( S \) as a function of \( x \) alone?