01 / 20

Optimization
in Context

Learn to interpret what optimization results mean in real-world scenarios: finding maxima and minima, reading critical points, and translating calculus into answers.

Calculus 1

What Is Optimization?

Optimization is the process of finding the maximum or minimum value of a function subject to constraints. In calculus, we use derivatives to locate these extreme values.

Maximum
The largest value of \( f(x) \) on a given domain: the "peak" of the function.
Minimum
The smallest value of \( f(x) \) on a given domain: the "valley" of the function.

Why Context Matters

Finding \( f'(x) = 0 \) is only the first step. You must interpret what the critical point means in the scenario described by the problem.

Mathematical Answer
\( x = 5 \) is a critical point where \( f''(5) < 0 \).
Contextual Answer
Producing 5 thousand units maximizes profit at $12,000.

Visualizing Optimization

Units produced (thousands) Profit ($) 1 3 5 7 9 Maximum Profit slope = 0

The Optimization Method

Every optimization-in-context problem follows the same core framework. The derivative tells you where extremes occur; the second derivative (or a sign chart) tells you what kind.

Critical Points vs Endpoints

A common distinction: local extrema occur at critical points inside the interval, while absolute extrema can also occur at endpoints.

Critical Points Endpoints
Found by Setting \( f'(x) = 0 \) or where \( f' \) is undefined Given by the domain boundaries
Produces Local max/min (possibly absolute) Possibly absolute max/min
Test Second derivative test or sign chart Evaluate \( f(a) \) and \( f(b) \) directly
Context "The rate of change is zero at this production level" "The constraint is the factory's capacity"

How to Apply Optimization in Context

1
Read and identify. Determine the quantity to optimize and the variable(s) involved. Note units carefully.
2
Write the function. Express the quantity as \( f(x) \) in terms of a single variable. Use constraints to eliminate extras.
3
Find critical points. Compute \( f'(x) \), set it equal to zero, and solve.
4
Classify. Use the second derivative test or the closed interval method to determine max vs min.
5
Interpret in context. State what the optimal value means: include units, direction (max or min), and a sentence connecting back to the scenario.

Example 1: Maximum Revenue

A company's revenue in thousands of dollars is modeled by \( R(x) = -2x^2 + 24x + 10 \), where \( x \) is the price in dollars. Find the price that maximizes revenue and interpret your answer.

1
Differentiate: \( R'(x) = -4x + 24 \)
2
Set \( R'(x) = 0 \): \( -4x + 24 = 0 \implies x = 6 \)
3
Second derivative: \( R''(x) = -4 < 0 \), so \( x = 6 \) is a maximum.
4
Evaluate: \( R(6) = -2(36) + 144 + 10 = 82 \)

Example 1: Graph of \( R(x) \)

Price (dollars) Revenue ($1000s) 0 2 4 6 8 10 12 (6, 82) slope = 0

Example 2: Minimizing Cost

A manufacturer's average cost per unit (in dollars) is \( C(x) = \frac{800}{x} + 2x + 50 \), where \( x > 0 \) is the number of units produced (in hundreds). Find the production level that minimizes cost.

1
Differentiate: \( C'(x) = -\frac{800}{x^2} + 2 \)
2
Set \( C'(x) = 0 \): \( 2 = \frac{800}{x^2} \implies x^2 = 400 \implies x = 20 \) (only positive root)
3
Second derivative: \( C''(x) = \frac{1600}{x^3} \). At \( x = 20 \): \( C''(20) = \frac{1600}{8000} = 0.2 > 0 \), so it is a minimum.
4
Evaluate: \( C(20) = 40 + 40 + 50 = 130 \)

Example 3: Closed Interval Problem

The temperature in a greenhouse (in \( ^\circ\text{F} \)) over an 8-hour period is modeled by \( T(t) = -t^3 + 9t^2 - 15t + 80 \) for \( 0 \leq t \leq 8 \). Find the maximum and minimum temperatures and when they occur.

1
Differentiate: \( T'(t) = -3t^2 + 18t - 15 = -3(t^2 - 6t + 5) = -3(t-1)(t-5) \)
2
Critical points: \( t = 1 \) and \( t = 5 \), both in \([0, 8]\).
3
Evaluate: \( T(0) = 80 \), \( T(1) = 73 \), \( T(5) = 105 \), \( T(8) = 24 \)

Example 3: Graph of \( T(t) \)

Time (hours) Temperature (°F) 0 1 2 3 4 5 6 7 8 32 50 70 90 110 Max: 105°F at t=5 Local min: 73°F T(0) = 80 T(8) = 24

Interpreting Units Correctly

A frequent source of lost points: students state the optimal input but forget to evaluate the function and state the optimal output with units.

Incomplete
"The maximum occurs at \( x = 6 \)."
Complete
"A price of $6 maximizes revenue at $82,000."

Common Mistakes

✕ Forgetting Endpoints
On a closed interval, the absolute max or min can occur at the boundary: always evaluate \( f(a) \) and \( f(b) \).
✕ Confusing Max and Min
A positive second derivative means concave up: that's a minimum, not a maximum. Check the sign of \( f''(c) \) carefully.
✕ No Context in Answer
Writing "\( x = 5 \) is the answer" without stating what \( x = 5 \) represents or giving \( f(5) \) with units.

Summary of Optimization Tests

Method When to Use Key Step Result
Closed Interval Continuous \( f \) on \([a,b]\) Evaluate \( f \) at critical points and endpoints Absolute max and min
Second Derivative Test Interior critical point where \( f'(c) = 0 \) Check sign of \( f''(c) \) Local max (\( f'' < 0 \)) or min (\( f'' > 0 \))
First Derivative Sign Chart When \( f'' \) is hard to compute or \( f''(c) = 0 \) Check sign of \( f' \) on each side of \( c \) Local max (+ to −) or min (− to +)

Question 1 of 5

A particle moves along the \( x \)-axis with position \( s(t) = t^3 - 6t^2 + 9t + 2 \) for \( 0 \leq t \leq 5 \). At what time does the particle reach its maximum position?

Question 2 of 5

A company's profit function is \( P(x) = -3x^2 + 42x - 80 \), where \( x \) is units sold (in thousands). If \( P'(7) = 0 \) and \( P''(7) = -6 \), which interpretation is correct?

Question 3 of 5

The function \( f(x) = x^3 - 12x + 5 \) has a critical point at \( x = 2 \). Since \( f''(2) = 12 > 0 \), what can you conclude?

Question 4 of 5

A farmer wants to maximize the area of a rectangular pen using 120 meters of fencing. If one side uses a barn wall (no fence needed), the area function is \( A(x) = x(120 - 2x) \). What is the maximum area?

Question 5 of 5

For a continuous function \( g \) on the closed interval \([-2, 6]\), you find \( g'(x) = 0 \) at \( x = 1 \) and \( x = 4 \). You calculate \( g(-2) = 10 \), \( g(1) = 15 \), \( g(4) = 3 \), \( g(6) = 8 \). What is the absolute minimum and where does it occur?