← MathScape

Optimization Solution Methods

MATH161
Reference: Stewart 3.7  •  Chapter: 3  •  Section: 7

Navigation: Wiki Home > Skills > Optimization Solution Methods

Optimization Solution Methods

Finding and Verifying Extreme Values

You've set up the optimization problem: an objective function $f(x)$ on some domain. Now comes the payoff—finding where $f$ achieves its maximum or minimum.

The method you use depends on the domain. A closed interval $[a, b]$ allows the Closed Interval Method. An open or infinite domain requires the First Derivative Test for Absolute Extrema. Sometimes, the geometry of the problem makes the answer obvious.

Choosing the right verification method saves time and prevents errors.

Prerequisite Map

This skill
Optimization Solution Methods

Quick Reference

Property Value
Concept Optimization
Chapter 3.7
Difficulty Intermediate
Time ~18 minutes

Method Selection: A Decision Tree

graph TD
    Q1{"Is the domain a<br/>closed interval [a,b]?"}
    Q1 -->|Yes| M1["Use Closed<br/>Interval Method"]
    Q1 -->|No| Q2{"Only one<br/>critical point?"}

    Q2 -->|Yes| M2["Use First Derivative Test<br/>for Absolute Extrema"]
    Q2 -->|No| M3["Analyze behavior<br/>at all critical points<br/>and endpoints/limits"]

    style M1 fill:#e0f2fe
    style M2 fill:#fef3c7
    style M3 fill:#fce7f3

Method 1: Closed Interval Method

When to use: The domain is a closed interval $[a, b]$.

Procedure:

  1. Find all critical numbers in $(a, b)$
  2. Evaluate $f$ at each critical number
  3. Evaluate $f$ at the endpoints $a$ and $b$
  4. The largest value is the absolute maximum; the smallest is the absolute minimum

Why it works: The Extreme Value Theorem guarantees that a continuous function on a closed interval attains both a maximum and minimum. These must occur at critical points or endpoints.

Example: Fencing Problem

From the setup skill, we found: $$A(x) = 2400x - 2x^2, \quad 0 \le x \le 1200$$

Step 1: Find critical numbers. $$A'(x) = 2400 - 4x = 0 \Rightarrow x = 600$$

Step 2: Evaluate at critical number. $$A(600) = 2400(600) - 2(600)^2 = 1{,}440{,}000 - 720{,}000 = 720{,}000$$

Step 3: Evaluate at endpoints. $$A(0) = 0, \quad A(1200) = 2400(1200) - 2(1200)^2 = 0$$

Step 4: Compare values.

$x$ $A(x)$
0 0
600 720,000
1200 0

The absolute maximum area is $720{,}000$ ft² at $x = 600$ ft.

Method 2: First Derivative Test for Absolute Extrema

When to use: The domain is not closed (open interval, half-open, or unbounded) AND there is exactly one critical number.

The Test:

Suppose $c$ is the only critical number of a continuous function $f$ on an interval.

Sign pattern of $f'$ Conclusion
$f'(x) > 0$ for $x < c$ and $f'(x) < 0$ for $x > c$ $f(c)$ is the absolute maximum
$f'(x) < 0$ for $x < c$ and $f'(x) > 0$ for $x > c$ $f(c)$ is the absolute minimum

Why it works: If $f$ is increasing before $c$ and decreasing after, then $f(c)$ is the highest point—and with only one critical number, there's nowhere else for a higher value to occur.

Example: Minimum Surface Area

A cylindrical can must hold 1 liter (1000 cm³). The surface area is: $$S(r) = 2\pi r^2 + \frac{2000}{r}, \quad r > 0$$

Find the critical number: $$S'(r) = 4\pi r - \frac{2000}{r^2} = \frac{4\pi r^3 - 2000}{r^2}$$

Setting $S'(r) = 0$: $$4\pi r^3 = 2000 \Rightarrow r^3 = \frac{500}{\pi} \Rightarrow r = \sqrt[3]{\frac{500}{\pi}} \approx 5.42 \text{ cm}$$

Verify it's a minimum:

Pattern: negative → positive at critical point → absolute minimum.

Method 3: Domain Behavior Argument

When to use: When the physics or geometry makes the answer obvious, or when endpoint behavior forces an extremum.

The Argument: If $f(x) \to \infty$ as $x$ approaches both ends of the domain, then any local minimum must be an absolute minimum.

If $f(x) \to 0$ or $f(x) \to -\infty$ at both ends, then any local maximum must be an absolute maximum.

Example: Can Problem Revisited

For $S(r) = 2\pi r^2 + \frac{2000}{r}$ on $(0, \infty)$:

Since $S \to \infty$ at both ends and $S$ is continuous, there must be a minimum somewhere in between. With only one critical point, that's where the minimum occurs.

Method 4: Second Derivative Confirmation

When to use: As a quick check, especially when you want to confirm concavity at the critical point.

If $f'(c) = 0$ and:

Warning: This only confirms local extrema. You still need to argue that the local extremum is absolute (using Methods 2 or 3).

Example: Fencing Problem

$$A(x) = 2400x - 2x^2$$ $$A''(x) = -4 < 0 \text{ for all } x$$

Since $A'' < 0$ everywhere, the function is concave down. The single critical point at $x = 600$ must be an absolute maximum.

Comparison of Methods

Method Domain Type Key Requirement Advantage
Closed Interval $[a, b]$ Finite, closed Guaranteed to work
First Derivative Test Open/unbounded One critical point Clean logical argument
Domain Behavior Open/unbounded Know endpoint limits Often avoids calculation
Second Derivative Any Easy $f''$ Quick confirmation

Practice Problems

Level 1 Choosing the Right Method

For each function and domain, identify which solution method is most appropriate.

  1. $f(x) = x^3 - 12x + 1$ on $[-3, 5]$
  2. $g(x) = x + \frac{4}{x}$ on $(0, \infty)$
  3. $h(t) = t^2 e^{-t}$ on $[0, \infty)$
Thought Process

Check the domain type:

  1. Closed interval → Closed Interval Method
  2. Open interval → Need to check critical points
  3. Half-closed, extending to infinity → Hybrid approach
Show Answer
  1. Closed Interval Method (domain is $[-3, 5]$)
  2. First Derivative Test for Absolute Extrema (domain is open, check if there's one critical point)
  3. Combination: Evaluate at $t = 0$, find critical points on $(0, \infty)$, analyze behavior as $t \to \infty$
Level 2 Closed Interval Method

Find the absolute maximum and minimum of $f(x) = x^3 - 3x^2 - 9x + 5$ on $[-2, 4]$.

Thought Process
  1. Find $f'(x)$ and set equal to zero
  2. Check which critical numbers are in $(-2, 4)$
  3. Evaluate at critical numbers and at $x = -2$ and $x = 4$
  4. Compare all values
Show Answer

Step 1: $f'(x) = 3x^2 - 6x - 9 = 3(x^2 - 2x - 3) = 3(x-3)(x+1)$

Critical numbers: $x = -1$ and $x = 3$ (both in $(-2, 4)$)

Step 2: Evaluate:

  • $f(-2) = (-8) - 12 + 18 + 5 = 3$
  • $f(-1) = (-1) - 3 + 9 + 5 = 10$
  • $f(3) = 27 - 27 - 27 + 5 = -22$
  • $f(4) = 64 - 48 - 36 + 5 = -15$

Step 3: Compare:

$x$ $f(x)$
$-2$ 3
$-1$ 10
3 $-22$
4 $-15$

Absolute maximum: 10 at $x = -1$

Absolute minimum: $-22$ at $x = 3$

Level 3 Open Domain Optimization

Find the dimensions of the rectangle of maximum area that can be inscribed under the parabola $y = 4 - x^2$ with its base on the $x$-axis.

Thought Process

By symmetry, the rectangle has vertices at $(-x, 0)$, $(x, 0)$, $(x, y)$, $(-x, y)$ where $(x, y)$ is on the parabola.

So $y = 4 - x^2$, and:

  • Width = $2x$
  • Height = $y = 4 - x^2$
  • Area = $2x(4 - x^2)$

The domain is $0 < x < 2$ (open interval), but we can include endpoints since $A(0) = A(2) = 0$.

Show Answer

Setup: $$A(x) = 2x(4 - x^2) = 8x - 2x^3, \quad 0 \le x \le 2$$

Find critical points: $$A'(x) = 8 - 6x^2 = 0 \Rightarrow x^2 = \frac{4}{3} \Rightarrow x = \frac{2}{\sqrt{3}} = \frac{2\sqrt{3}}{3}$$

Verify using Closed Interval Method:

  • $A(0) = 0$
  • $A\left(\frac{2\sqrt{3}}{3}\right) = 8 \cdot \frac{2\sqrt{3}}{3} - 2 \cdot \frac{8\sqrt{3}}{9} = \frac{16\sqrt{3}}{3} - \frac{16\sqrt{3}}{9} = \frac{32\sqrt{3}}{9}$
  • $A(2) = 0$

Dimensions:

  • Width: $2x = \frac{4\sqrt{3}}{3} \approx 2.31$
  • Height: $4 - x^2 = 4 - \frac{4}{3} = \frac{8}{3} \approx 2.67$

Maximum area: $\frac{32\sqrt{3}}{9} \approx 6.16$ square units

Level 4 Two-Mode Travel

A person at point $A$ on one bank of a 2-km wide river wants to reach point $B$ on the opposite bank, 6 km downstream. They can row at 4 km/h and walk at 5 km/h. Where should they land to minimize total travel time?

    A ──────────────────────────────
    │╲
  2 │  ╲
    │    ╲
    ├─────●───────────────────● B
    C     D                   (6 km from C)

Let $x$ = distance from $C$ to landing point $D$.

Thought Process
  1. Time = Distance / Speed
  2. Rowing distance from $A$ to $D$: Use Pythagorean theorem with river width 2 and horizontal distance $x$
  3. Walking distance from $D$ to $B$: $6 - x$
  4. Total time: rowing time + walking time
  5. Domain: $0 \le x \le 6$

The critical equation comes from setting $T'(x) = 0$. This will involve a square root.

Show Answer

Setup:

  • Rowing distance: $\sqrt{4 + x^2}$ (Pythagorean theorem)
  • Walking distance: $6 - x$
  • Total time:

$$T(x) = \frac{\sqrt{4 + x^2}}{4} + \frac{6 - x}{5}, \quad 0 \le x \le 6$$

Find critical points: $$T'(x) = \frac{x}{4\sqrt{4 + x^2}} - \frac{1}{5} = 0$$

$$\frac{x}{4\sqrt{4 + x^2}} = \frac{1}{5}$$

$$5x = 4\sqrt{4 + x^2}$$

$$25x^2 = 16(4 + x^2) = 64 + 16x^2$$

$$9x^2 = 64 \Rightarrow x = \frac{8}{3} \approx 2.67 \text{ km}$$

Verify (Closed Interval Method):

  • $T(0) = \frac{2}{4} + \frac{6}{5} = 0.5 + 1.2 = 1.7$ hours
  • $T(8/3) = \frac{\sqrt{4 + 64/9}}{4} + \frac{6 - 8/3}{5} = \frac{\sqrt{100/9}}{4} + \frac{10/3}{5} = \frac{10/3}{4} + \frac{2}{3} = \frac{5}{6} + \frac{2}{3} = \frac{3}{2} = 1.5$ hours
  • $T(6) = \frac{\sqrt{40}}{4} + 0 \approx 1.58$ hours

Minimum time: 1.5 hours when landing $\frac{8}{3}$ km from $C$.

Level 5 Proving the Method Works

Prove the First Derivative Test for Absolute Extrema (minimum case):

If $c$ is the only critical number of a continuous function $f$ on an interval $I$, and $f'(x) < 0$ for all $x < c$ in $I$ and $f'(x) > 0$ for all $x > c$ in $I$, then $f(c)$ is the absolute minimum of $f$ on $I$.

Thought Process

We need to show $f(x) \ge f(c)$ for all $x$ in $I$.

Split into cases: $x < c$ and $x > c$.

Use the Mean Value Theorem or the increasing/decreasing nature of $f$ from the sign of $f'$.

Show Answer

Proof:

Let $x$ be any point in $I$.

Case 1: $x < c$

Since $f'(t) < 0$ for all $t$ in $(x, c)$, the function $f$ is decreasing on $[x, c]$.

Therefore $f(x) > f(c)$.

Case 2: $x > c$

Since $f'(t) > 0$ for all $t$ in $(c, x)$, the function $f$ is increasing on $[c, x]$.

Therefore $f(x) > f(c)$.

Case 3: $x = c$

Trivially $f(x) = f(c)$.

Conclusion:

For all $x \in I$, we have $f(x) \ge f(c)$, with equality only when $x = c$.

Therefore $f(c)$ is the absolute minimum of $f$ on $I$. $\square$

CCI-Style Conceptual Questions

Level 2 Conceptual: Why Check Endpoints?

A student correctly finds that $f'(x) = 0$ at $x = 3$ for some function on $[0, 5]$. They conclude that the absolute maximum must occur at $x = 3$. What error did they make?

(A) They should have used the second derivative test. (B) The absolute maximum might occur at an endpoint. (C) Critical points can only give local extrema. (D) They need to verify $f$ is continuous.

Thought Process

On a closed interval, the absolute maximum could be at:

  • A critical point where $f' = 0$
  • A point where $f'$ doesn't exist
  • An endpoint

Finding one critical point doesn't guarantee it gives the absolute maximum.

Show Answer

(B) is correct.

On a closed interval, absolute extrema can occur at endpoints OR at critical points. The student must compare $f(3)$ with $f(0)$ and $f(5)$ to determine which is largest.

Mastery Checklist

Mental Model

The Landscape Metaphor:

Imagine the graph of $f(x)$ as a hiking trail along a mountain ridge.

The domain tells you the boundaries of your hike. The derivative tells you where the peaks are.


Connections

Looking back:

Looking ahead:

Real-world connections:


Previous Up Next
Optimization Problem Setup Skills Index Business Optimization

Last updated: 2026-01-22