Optimization

Use derivatives to find maximum and minimum values

Finding the best possible outcome is something you do every day without even thinking about it. You look for the shortest route to work, the best price for a product, or the fastest way to complete a task. Mathematicians call this optimization, and it turns out that calculus gives you a systematic way to find these “best” values with precision.

The key insight is simple: at maximum and minimum points, curves flatten out. Think about climbing a hill - at the very top, the ground is momentarily level before it starts going back down. Derivatives measure slope, and when the slope equals zero, you have found a candidate for a maximum or minimum. This connection between zeros of derivatives and extreme values is the engine that powers all optimization in calculus.

If the idea of word problems makes you nervous, take a breath. Optimization problems do follow a pattern, and once you see the pattern, they become much more approachable. By the end of this lesson, you will have a systematic strategy for tackling these problems, and you will see why calculus is such a powerful tool for making decisions in the real world.

Core Concepts

What Is Optimization?

Optimization is the process of finding the maximum or minimum value of a function. In practical terms, you are looking for the best possible outcome given certain constraints - the largest area, the smallest cost, the shortest time, or the maximum profit.

Calculus transforms optimization from guesswork into a precise procedure. Instead of trying different values and hoping for the best, you can use derivatives to locate exactly where maximum and minimum values occur.

Local vs. Absolute Extrema

Before diving into techniques, you need to understand the distinction between two types of extreme values.

A local maximum (also called a relative maximum) is a point where the function value is higher than at all nearby points. Think of it as the top of a hill - you are at the highest point in your immediate neighborhood, even if there are taller mountains elsewhere.

A local minimum (also called a relative minimum) is a point where the function value is lower than at all nearby points. This is the bottom of a valley.

An absolute maximum (also called a global maximum) is the highest value the function achieves on its entire domain. This is the tallest peak of all.

An absolute minimum (also called a global minimum) is the lowest value the function achieves on its entire domain. This is the deepest valley of all.

A function can have many local maxima and minima, but on a given domain, it can have at most one absolute maximum value and one absolute minimum value (though these values might be achieved at multiple points).

Critical Points: Where Extrema Can Occur

A critical point of a function $f$ is a value $x = c$ in the domain of $f$ where either:

  1. $f’(c) = 0$, or
  2. $f’(c)$ does not exist (but $f(c)$ does exist)

Critical points are important because of this fundamental theorem:

Fermat’s Theorem: If $f$ has a local maximum or minimum at $c$, and if $f’(c)$ exists, then $f’(c) = 0$.

In other words, local extrema can only occur at critical points. This does not mean every critical point is an extremum - some critical points are neither maxima nor minima. But if you are hunting for extrema, critical points are the only places you need to look (along with endpoints, as we will see).

Why does this work? At a local maximum, the function is increasing as you approach from the left (positive slope) and decreasing as you leave toward the right (negative slope). The only way the slope can transition from positive to negative continuously is by passing through zero. The same logic applies to local minima with the signs reversed.

The First Derivative Test

Once you have found the critical points, how do you determine which are maxima, which are minima, and which are neither? The First Derivative Test answers this by examining the sign of $f’$ around each critical point.

For a critical point at $x = c$:

  1. Local Maximum: If $f’(x) > 0$ for $x < c$ (function increasing) and $f’(x) < 0$ for $x > c$ (function decreasing), then $f$ has a local maximum at $c$.

  2. Local Minimum: If $f’(x) < 0$ for $x < c$ (function decreasing) and $f’(x) > 0$ for $x > c$ (function increasing), then $f$ has a local minimum at $c$.

  3. Neither: If $f’(x)$ has the same sign on both sides of $c$, then $c$ is neither a local max nor a local min. This often indicates an inflection point.

The first derivative test makes intuitive sense: a maximum occurs where the function rises and then falls, while a minimum occurs where it falls and then rises.

The Second Derivative Test

There is an alternative method that is often faster when the second derivative is easy to compute. The Second Derivative Test uses the concavity of the function to classify critical points.

For a critical point at $x = c$ where $f’(c) = 0$:

  1. If $f’’(c) > 0$, then $f$ has a local minimum at $c$. (The graph is concave up - shaped like a cup that holds water.)

  2. If $f’’(c) < 0$, then $f$ has a local maximum at $c$. (The graph is concave down - shaped like a cap that sheds water.)

  3. If $f’’(c) = 0$, the test is inconclusive. You must use the First Derivative Test instead.

Why does this work? If $f’’(c) > 0$, the function is concave up at $c$, meaning the graph curves upward like a smile. A horizontal tangent line ($f’(c) = 0$) on a concave-up curve must be at the bottom of the curve - a minimum. The opposite reasoning applies when $f’’(c) < 0$.

The Closed Interval Method

When you need to find the absolute maximum and minimum values of a continuous function on a closed interval $[a, b]$, there is a straightforward procedure called the Closed Interval Method:

  1. Find all critical points of $f$ in the open interval $(a, b)$.
  2. Evaluate $f$ at each critical point.
  3. Evaluate $f$ at the endpoints $a$ and $b$.
  4. The largest value from steps 2-3 is the absolute maximum; the smallest is the absolute minimum.

This method works because of the Extreme Value Theorem: a continuous function on a closed interval $[a, b]$ is guaranteed to achieve both an absolute maximum and an absolute minimum somewhere on that interval. These extrema must occur either at critical points or at endpoints - there are no other options.

The closed interval method is particularly clean because you do not need to classify each critical point. You simply evaluate the function at all candidate locations and compare the values.

Applied Optimization: Setting Up the Problem

The real power of optimization emerges in applied problems - finding the best dimensions for a container, the maximum profit for a business, or the minimum material needed for construction. These problems require translating a real-world situation into mathematical functions.

Here is a systematic strategy for solving applied optimization problems:

Step 1: Understand the Problem Read the problem carefully. Identify what quantity you want to maximize or minimize. Draw a diagram if applicable. Assign variables to unknown quantities.

Step 2: Write the Objective Function Express the quantity to be optimized as a function of one or more variables. This is called the objective function. For example, if you want to maximize area, write an expression for area in terms of your variables.

Step 3: Identify Constraints Find any equations that relate your variables. These are called constraints. Common constraints include fixed perimeter, fixed volume, fixed budget, or fixed amount of material.

Step 4: Reduce to a Single Variable Use the constraint equation(s) to eliminate variables from the objective function until you have a function of a single variable. This is crucial - you need a function of one variable to use single-variable calculus.

Step 5: Determine the Domain Identify the realistic values your variable can take. Physical constraints often impose restrictions (lengths must be positive, quantities cannot exceed a supply limit, etc.).

Step 6: Find Critical Points and Endpoints Take the derivative of your objective function, set it equal to zero, and solve. Also consider any points where the derivative does not exist, and check the endpoints of your domain.

Step 7: Determine the Optimal Value Use the first derivative test, second derivative test, or closed interval method to identify which critical point gives the maximum or minimum you seek.

Step 8: Answer the Question and Verify Make sure you answer what the problem asked for. If it asked for dimensions, give dimensions. If it asked for maximum area, give the area. Always verify that your answer makes sense in the context of the problem.

Common Objective Functions and Constraints

Certain combinations appear repeatedly in optimization problems:

Geometry Problems:

  • Area of rectangle: $A = lw$
  • Perimeter of rectangle: $P = 2l + 2w$
  • Volume of box: $V = lwh$
  • Surface area of box: $S = 2lw + 2lh + 2wh$
  • Volume of cylinder: $V = \pi r^2 h$
  • Surface area of cylinder: $S = 2\pi r^2 + 2\pi rh$

Distance Problems:

  • Distance between points: $d = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2}$
  • Often easier to minimize distance squared: $d^2 = (x_2-x_1)^2 + (y_2-y_1)^2$

Economics Problems:

  • Revenue: $R = (\text{price}) \times (\text{quantity})$
  • Profit: $P = R - C$ (revenue minus cost)
  • Cost often has fixed and variable components

Notation and Terminology

Term Meaning Example
Critical point A value $c$ where $f’(c) = 0$ or $f’(c)$ is undefined For $f(x) = x^3 - 3x$, critical points are $x = \pm 1$
Local maximum Point higher than all nearby points The top of a hill
Local minimum Point lower than all nearby points The bottom of a valley
Absolute maximum Highest value on the entire domain The tallest peak overall
Absolute minimum Lowest value on the entire domain The deepest point overall
Objective function The function being optimized Area $A = xy$ to maximize
Constraint A restriction relating variables Perimeter fixed: $2x + 2y = 100$
Closed interval An interval including both endpoints $[0, 5]$
Open interval An interval excluding endpoints $(0, 5)$

Examples

Example 1: Finding Critical Points

Find the critical points of $f(x) = x^3 - 3x$.

Solution:

Step 1: Find the derivative. $$f’(x) = 3x^2 - 3$$

Step 2: Set the derivative equal to zero and solve. $$3x^2 - 3 = 0$$ $$3x^2 = 3$$ $$x^2 = 1$$ $$x = \pm 1$$

Step 3: Check if the derivative is undefined anywhere.

The derivative $f’(x) = 3x^2 - 3$ is a polynomial, which is defined for all real numbers. There are no additional critical points from undefined derivatives.

Answer: The critical points are $x = -1$ and $x = 1$.

Verification: We can check that $f’(-1) = 3(1) - 3 = 0$ and $f’(1) = 3(1) - 3 = 0$.

Example 2: Absolute Extrema on a Closed Interval

Find the absolute maximum and minimum values of $f(x) = x^2 - 4x$ on the interval $[0, 5]$.

Solution:

Step 1: Find the derivative and critical points. $$f’(x) = 2x - 4$$

Set equal to zero: $$2x - 4 = 0$$ $$x = 2$$

Since $x = 2$ is in the interval $(0, 5)$, it is a valid critical point.

Step 2: Evaluate $f$ at the critical point and endpoints.

At $x = 0$ (left endpoint): $$f(0) = 0^2 - 4(0) = 0$$

At $x = 2$ (critical point): $$f(2) = 2^2 - 4(2) = 4 - 8 = -4$$

At $x = 5$ (right endpoint): $$f(5) = 5^2 - 4(5) = 25 - 20 = 5$$

Step 3: Compare values.

$x$ $f(x)$
0 0
2 $-4$
5 5

Answer: The absolute minimum is $-4$ at $x = 2$. The absolute maximum is $5$ at $x = 5$.

Example 3: Classifying Critical Points with the First Derivative Test

For $f(x) = x^3 - 6x^2 + 9x + 1$, find all critical points and classify each as a local maximum, local minimum, or neither.

Solution:

Step 1: Find the derivative. $$f’(x) = 3x^2 - 12x + 9$$

Step 2: Find critical points by setting $f’(x) = 0$. $$3x^2 - 12x + 9 = 0$$ $$3(x^2 - 4x + 3) = 0$$ $$3(x - 1)(x - 3) = 0$$

Critical points: $x = 1$ and $x = 3$

Step 3: Apply the First Derivative Test.

Create a sign chart for $f’(x) = 3(x-1)(x-3)$:

  • For $x < 1$: Choose $x = 0$. Then $f’(0) = 3(-1)(-3) = 9 > 0$ (increasing)
  • For $1 < x < 3$: Choose $x = 2$. Then $f’(2) = 3(1)(-1) = -3 < 0$ (decreasing)
  • For $x > 3$: Choose $x = 4$. Then $f’(4) = 3(3)(1) = 9 > 0$ (increasing)

At $x = 1$: $f’$ changes from positive to negative, so $f$ has a local maximum at $x = 1$.

At $x = 3$: $f’$ changes from negative to positive, so $f$ has a local minimum at $x = 3$.

Step 4: Find the function values at the critical points. $$f(1) = 1 - 6 + 9 + 1 = 5$$ $$f(3) = 27 - 54 + 27 + 1 = 1$$

Answer: Local maximum of $5$ at $x = 1$. Local minimum of $1$ at $x = 3$.

Example 4: Using the Second Derivative Test

Use the Second Derivative Test to classify the critical points of $f(x) = x^4 - 8x^2 + 16$.

Solution:

Step 1: Find the first derivative and critical points. $$f’(x) = 4x^3 - 16x = 4x(x^2 - 4) = 4x(x-2)(x+2)$$

Setting $f’(x) = 0$: $x = 0$, $x = 2$, or $x = -2$

Step 2: Find the second derivative. $$f’’(x) = 12x^2 - 16$$

Step 3: Evaluate $f’’$ at each critical point.

At $x = -2$: $$f’’(-2) = 12(4) - 16 = 48 - 16 = 32 > 0$$ Since $f’’(-2) > 0$, there is a local minimum at $x = -2$.

At $x = 0$: $$f’’(0) = 12(0) - 16 = -16 < 0$$ Since $f’’(0) < 0$, there is a local maximum at $x = 0$.

At $x = 2$: $$f’’(2) = 12(4) - 16 = 48 - 16 = 32 > 0$$ Since $f’’(2) > 0$, there is a local minimum at $x = 2$.

Step 4: Find the function values. $$f(-2) = 16 - 32 + 16 = 0$$ $$f(0) = 0 - 0 + 16 = 16$$ $$f(2) = 16 - 32 + 16 = 0$$

Answer: Local minimum of $0$ at $x = -2$ and $x = 2$. Local maximum of $16$ at $x = 0$.

Example 5: Rectangle with Maximum Area

A farmer has 200 meters of fencing to enclose a rectangular field. What dimensions will maximize the enclosed area?

Solution:

Step 1: Draw a diagram and assign variables.

Let $x$ = length and $y$ = width of the rectangle.

Step 2: Write the objective function.

We want to maximize area: $$A = xy$$

Step 3: Identify the constraint.

The perimeter is fixed at 200 meters: $$2x + 2y = 200$$

Step 4: Use the constraint to eliminate a variable.

Solve for $y$: $$2y = 200 - 2x$$ $$y = 100 - x$$

Substitute into the area formula: $$A(x) = x(100 - x) = 100x - x^2$$

Step 5: Determine the domain.

Both $x$ and $y$ must be positive:

  • $x > 0$
  • $y = 100 - x > 0$, so $x < 100$

Domain: $0 < x < 100$

Step 6: Find critical points. $$A’(x) = 100 - 2x$$

Set equal to zero: $$100 - 2x = 0$$ $$x = 50$$

Step 7: Verify this is a maximum.

Using the Second Derivative Test: $$A’’(x) = -2$$

Since $A’’(50) = -2 < 0$, the function is concave down, confirming a maximum at $x = 50$.

Step 8: Find the dimensions. $$x = 50 \text{ meters}$$ $$y = 100 - 50 = 50 \text{ meters}$$

Answer: The field should be a square with dimensions $50$ meters by $50$ meters, giving maximum area $A = 2500$ square meters.

Verification: The perimeter is $2(50) + 2(50) = 200$ meters, as required.

Example 6: Closest Point on a Curve

Find the point on the parabola $y = x^2$ that is closest to the point $(0, 3)$.

Solution:

Step 1: Set up the problem.

Let $(x, y)$ be a point on the parabola. Since it is on the parabola, we have $y = x^2$.

Step 2: Write the objective function.

The distance from $(x, y)$ to $(0, 3)$ is: $$d = \sqrt{(x - 0)^2 + (y - 3)^2} = \sqrt{x^2 + (y - 3)^2}$$

Key insight: Minimizing distance is equivalent to minimizing distance squared (since the square root function is increasing). This eliminates the square root and makes differentiation easier.

$$D = d^2 = x^2 + (y - 3)^2$$

Step 3: Use the constraint $y = x^2$ to reduce to one variable. $$D(x) = x^2 + (x^2 - 3)^2$$ $$D(x) = x^2 + x^4 - 6x^2 + 9$$ $$D(x) = x^4 - 5x^2 + 9$$

Step 4: Find critical points. $$D’(x) = 4x^3 - 10x = 2x(2x^2 - 5)$$

Set equal to zero: $$2x(2x^2 - 5) = 0$$

Either $x = 0$ or $2x^2 - 5 = 0$.

From $2x^2 = 5$: $x^2 = \frac{5}{2}$, so $x = \pm\sqrt{\frac{5}{2}} = \pm\frac{\sqrt{10}}{2}$

Critical points: $x = 0$, $x = \frac{\sqrt{10}}{2}$, $x = -\frac{\sqrt{10}}{2}$

Step 5: Evaluate $D(x)$ at each critical point.

At $x = 0$: $$D(0) = 0 - 0 + 9 = 9$$

At $x = \pm\frac{\sqrt{10}}{2}$ (same value for both due to symmetry): $$x^2 = \frac{5}{2}, \quad x^4 = \frac{25}{4}$$ $$D = \frac{25}{4} - 5 \cdot \frac{5}{2} + 9 = \frac{25}{4} - \frac{25}{2} + 9 = \frac{25}{4} - \frac{50}{4} + \frac{36}{4} = \frac{11}{4}$$

Step 6: Compare values.

$D(0) = 9$ and $D\left(\pm\frac{\sqrt{10}}{2}\right) = \frac{11}{4} = 2.75$

The minimum distance squared is $\frac{11}{4}$, occurring at $x = \pm\frac{\sqrt{10}}{2}$.

Step 7: Find the coordinates.

When $x = \pm\frac{\sqrt{10}}{2}$: $$y = x^2 = \frac{5}{2}$$

Answer: The closest points are $\left(\frac{\sqrt{10}}{2}, \frac{5}{2}\right)$ and $\left(-\frac{\sqrt{10}}{2}, \frac{5}{2}\right)$.

Both points are at distance $\sqrt{\frac{11}{4}} = \frac{\sqrt{11}}{2} \approx 1.66$ from $(0, 3)$.

Example 7: Minimizing Surface Area of a Can

A cylindrical can must hold $1000$ cm$^3$ of liquid. Find the dimensions that minimize the amount of material needed (the surface area).

Solution:

Step 1: Draw a diagram and assign variables.

Let $r$ = radius of the base and $h$ = height of the cylinder.

Step 2: Write the objective function.

The total surface area of a cylinder (top + bottom + side) is: $$S = 2\pi r^2 + 2\pi rh$$

This is what we want to minimize.

Step 3: Identify the constraint.

The volume must be 1000 cm$^3$: $$V = \pi r^2 h = 1000$$

Step 4: Use the constraint to eliminate a variable.

Solve for $h$: $$h = \frac{1000}{\pi r^2}$$

Substitute into the surface area formula: $$S(r) = 2\pi r^2 + 2\pi r \cdot \frac{1000}{\pi r^2}$$ $$S(r) = 2\pi r^2 + \frac{2000}{r}$$

Step 5: Determine the domain.

The radius must be positive: $r > 0$

There is no upper bound on $r$ (though extremely large $r$ would give tiny $h$).

Domain: $r > 0$

Step 6: Find critical points. $$S’(r) = 4\pi r - \frac{2000}{r^2}$$

Set equal to zero: $$4\pi r - \frac{2000}{r^2} = 0$$ $$4\pi r = \frac{2000}{r^2}$$ $$4\pi r^3 = 2000$$ $$r^3 = \frac{2000}{4\pi} = \frac{500}{\pi}$$ $$r = \sqrt[3]{\frac{500}{\pi}} \approx 5.42 \text{ cm}$$

Step 7: Verify this is a minimum.

Using the Second Derivative Test: $$S’’(r) = 4\pi + \frac{4000}{r^3}$$

For $r > 0$, we have $S’’(r) > 0$, confirming the function is concave up and $r = \sqrt[3]{\frac{500}{\pi}}$ gives a minimum.

Alternatively, note that as $r \to 0^+$, $S \to \infty$ (the $\frac{2000}{r}$ term dominates), and as $r \to \infty$, $S \to \infty$ (the $2\pi r^2$ term dominates). Since there is exactly one critical point and $S$ goes to infinity at both extremes, this critical point must be the minimum.

Step 8: Find the dimensions.

Radius: $$r = \sqrt[3]{\frac{500}{\pi}} \approx 5.42 \text{ cm}$$

Height: $$h = \frac{1000}{\pi r^2} = \frac{1000}{\pi \left(\frac{500}{\pi}\right)^{2/3}}$$

Let us simplify. Since $r^3 = \frac{500}{\pi}$, we have $r^2 = \left(\frac{500}{\pi}\right)^{2/3}$: $$h = \frac{1000}{\pi \cdot \left(\frac{500}{\pi}\right)^{2/3}}$$

This simplifies to: $$h = \frac{1000}{\pi^{1/3} \cdot 500^{2/3}} = \frac{1000}{500^{2/3} \cdot \pi^{1/3}}$$ $$h = \frac{1000}{500^{2/3} \cdot \pi^{1/3}} = \frac{2 \cdot 500}{500^{2/3} \cdot \pi^{1/3}} = \frac{2 \cdot 500^{1/3}}{\pi^{1/3}} = 2\sqrt[3]{\frac{500}{\pi}}$$

Notice that $h = 2r$!

$$h = 2\sqrt[3]{\frac{500}{\pi}} \approx 10.84 \text{ cm}$$

Answer: The optimal dimensions are radius $r \approx 5.42$ cm and height $h \approx 10.84$ cm.

Insight: The optimal can has height equal to its diameter ($h = 2r$). This is a beautiful result that applies to any cylinder minimizing surface area for a given volume.

Example 8: Maximizing Revenue

A concert venue has found that when tickets are priced at $\$50$, they sell $8000$ tickets. Market research suggests that for every $\$1$ increase in price, they sell $100$ fewer tickets. What ticket price maximizes revenue?

Solution:

Step 1: Define variables.

Let $x$ = the number of $\$1$ price increases from $\$50$.

Then:

  • Ticket price = $50 + x$ dollars
  • Number of tickets sold = $8000 - 100x$

Step 2: Write the objective function.

Revenue = (price per ticket) $\times$ (number of tickets sold) $$R(x) = (50 + x)(8000 - 100x)$$

Expand: $$R(x) = 400000 - 5000x + 8000x - 100x^2$$ $$R(x) = 400000 + 3000x - 100x^2$$

Step 3: Determine the domain.

Both price and quantity must be non-negative:

  • $50 + x \geq 0 \Rightarrow x \geq -50$
  • $8000 - 100x \geq 0 \Rightarrow x \leq 80$

Domain: $-50 \leq x \leq 80$

Step 4: Find critical points. $$R’(x) = 3000 - 200x$$

Set equal to zero: $$3000 - 200x = 0$$ $$x = 15$$

Step 5: Verify this is a maximum.

$$R’’(x) = -200 < 0$$

Since $R’’(x) < 0$ for all $x$, the function is concave down everywhere, confirming $x = 15$ gives a maximum.

Step 6: Find the optimal price and revenue.

Price = $50 + 15 = \$65$

Tickets sold = $8000 - 100(15) = 8000 - 1500 = 6500$

Maximum revenue: $$R(15) = 65 \times 6500 = \$422{,}500$$

Verification: Check that this exceeds the original revenue: Original revenue = $50 \times 8000 = \$400{,}000$

Indeed, $\$422{,}500 > \$400{,}000$.

Answer: The revenue-maximizing ticket price is $\$65$, generating $\$422{,}500$ in revenue.

Key Properties and Rules

Finding Critical Points

  1. Compute $f’(x)$.
  2. Find all values where $f’(x) = 0$.
  3. Find all values where $f’(x)$ does not exist (but $f(x)$ does).
  4. These are your critical points.

First Derivative Test Summary

Sign of $f’$ before $c$ Sign of $f’$ after $c$ Conclusion at $x = c$
Positive ($+$) Negative ($-$) Local maximum
Negative ($-$) Positive ($+$) Local minimum
Positive ($+$) Positive ($+$) Neither (increasing through $c$)
Negative ($-$) Negative ($-$) Neither (decreasing through $c$)

Second Derivative Test Summary

For a critical point $c$ where $f’(c) = 0$:

Value of $f’’(c)$ Conclusion
$f’’(c) > 0$ Local minimum (concave up)
$f’’(c) < 0$ Local maximum (concave down)
$f’’(c) = 0$ Test inconclusive; use First Derivative Test

Closed Interval Method Summary

To find absolute extrema of a continuous function $f$ on $[a, b]$:

  1. Find all critical points in $(a, b)$.
  2. Evaluate $f$ at critical points and endpoints.
  3. Largest value = absolute maximum.
  4. Smallest value = absolute minimum.

Applied Optimization Strategy

  1. Understand: Read carefully, draw diagrams, assign variables.
  2. Objective: Write the quantity to optimize as a function.
  3. Constraint: Find equations relating variables.
  4. Reduce: Use constraints to get a single-variable function.
  5. Domain: Determine valid values from physical constraints.
  6. Solve: Find critical points, test endpoints.
  7. Classify: Determine max or min using derivative tests.
  8. Answer: State the solution in context and verify.

Common Mistakes to Avoid

  • Forgetting endpoints: On a closed interval, extrema can occur at endpoints.
  • Accepting all critical points: Not every critical point is an extremum - you must test.
  • Wrong domain: Physical problems often have restrictions (positive lengths, etc.).
  • Optimizing the wrong thing: Make sure your objective function matches what the problem asks.
  • Not verifying: Always check that your answer makes physical sense.

Real-World Applications

Business and Economics

Maximizing Profit: Companies use optimization to determine production levels. If profit $P(x)$ depends on the quantity $x$ produced, finding where $P’(x) = 0$ identifies the optimal production level.

Pricing Strategies: As seen in Example 8, finding the price that maximizes revenue involves balancing higher prices (more revenue per unit) against lower sales volume.

Minimizing Cost: Manufacturing processes are optimized to minimize material costs while meeting production requirements.

Engineering and Design

Optimal Container Design: As shown in Example 7, engineers design containers (cans, boxes, tanks) to minimize material usage while holding a required volume. This saves money and reduces environmental impact.

Structural Engineering: Beams and bridges are designed to maximize strength while minimizing weight. This involves finding optimal cross-sectional shapes and material distributions.

Heat Dissipation: Electronic components are designed with optimal surface areas to maximize heat transfer and prevent overheating.

Transportation and Logistics

Shortest Path Problems: Finding the quickest route between locations is an optimization problem. GPS navigation systems solve these continuously.

Fuel Efficiency: Airlines and shipping companies optimize routes and speeds to minimize fuel consumption.

Medicine and Biology

Drug Dosage: Determining optimal medication doses involves maximizing therapeutic effect while minimizing side effects.

Population Models: Ecologists use optimization to understand sustainable harvest levels for fish populations and forest resources.

Personal Finance

Investment Portfolios: Financial optimization balances risk and return to find the best allocation of investments.

Mortgage Decisions: Choosing between different loan options involves optimizing total cost over time.

Self-Test Problems

Problem 1: Find all critical points of $f(x) = x^3 - 12x + 5$.

Show Answer

Find the derivative: $$f’(x) = 3x^2 - 12$$

Set equal to zero: $$3x^2 - 12 = 0$$ $$3x^2 = 12$$ $$x^2 = 4$$ $$x = \pm 2$$

The critical points are $x = -2$ and $x = 2$.

Problem 2: Find the absolute maximum and minimum of $f(x) = x^3 - 3x^2$ on $[-1, 4]$.

Show Answer

Step 1: Find critical points. $$f’(x) = 3x^2 - 6x = 3x(x - 2)$$

Setting $f’(x) = 0$: $x = 0$ or $x = 2$

Both are in the interval $(-1, 4)$.

Step 2: Evaluate at critical points and endpoints.

$f(-1) = (-1)^3 - 3(-1)^2 = -1 - 3 = -4$

$f(0) = 0 - 0 = 0$

$f(2) = 8 - 12 = -4$

$f(4) = 64 - 48 = 16$

Answer: Absolute minimum is $-4$ (at $x = -1$ and $x = 2$). Absolute maximum is $16$ (at $x = 4$).

Problem 3: Use the Second Derivative Test to classify the critical points of $f(x) = x^4 - 4x^3 + 4x^2$.

Show Answer

Step 1: Find critical points. $$f’(x) = 4x^3 - 12x^2 + 8x = 4x(x^2 - 3x + 2) = 4x(x-1)(x-2)$$

Critical points: $x = 0$, $x = 1$, $x = 2$

Step 2: Find second derivative. $$f’’(x) = 12x^2 - 24x + 8$$

Step 3: Evaluate at each critical point.

$f’’(0) = 0 - 0 + 8 = 8 > 0$ $\Rightarrow$ Local minimum at $x = 0$

$f’’(1) = 12 - 24 + 8 = -4 < 0$ $\Rightarrow$ Local maximum at $x = 1$

$f’’(2) = 48 - 48 + 8 = 8 > 0$ $\Rightarrow$ Local minimum at $x = 2$

The function values are: $f(0) = 0$, $f(1) = 1$, $f(2) = 0$.

Problem 4: The sum of two positive numbers is 100. Find the numbers if their product is to be as large as possible.

Show Answer

Let the numbers be $x$ and $y$.

Constraint: $x + y = 100$, so $y = 100 - x$

Objective: Maximize $P = xy = x(100-x) = 100x - x^2$

Domain: $0 < x < 100$

Find critical points: $$P’(x) = 100 - 2x = 0$$ $$x = 50$$

Verify maximum: $P’’(x) = -2 < 0$, so concave down confirms maximum.

Answer: Both numbers are $50$. (Maximum product = $2500$)

Problem 5: A rectangular poster must contain 150 square inches of printed material. The top and bottom margins are 3 inches each, and the side margins are 2 inches each. Find the dimensions of the poster that minimize the total area.

Show Answer

Let $x$ = width and $y$ = height of the printed area.

Constraint: $xy = 150$, so $y = \frac{150}{x}$

Poster dimensions:

  • Poster width = $x + 4$ (add 2 inches on each side)
  • Poster height = $y + 6$ (add 3 inches top and bottom)

Objective: Minimize total poster area: $$A = (x + 4)(y + 6) = (x + 4)\left(\frac{150}{x} + 6\right)$$ $$A = 150 + 6x + \frac{600}{x} + 24 = 174 + 6x + \frac{600}{x}$$

Domain: $x > 0$

Find critical points: $$A’(x) = 6 - \frac{600}{x^2} = 0$$ $$6 = \frac{600}{x^2}$$ $$x^2 = 100$$ $$x = 10$$ (taking positive root)

Verify minimum: $A’’(x) = \frac{1200}{x^3} > 0$ for $x > 0$, confirming minimum.

Find dimensions:

  • Printed area: $x = 10$ inches, $y = 15$ inches
  • Poster: $10 + 4 = 14$ inches by $15 + 6 = 21$ inches

Answer: The poster should be $14$ inches wide and $21$ inches tall.

Problem 6: A box with a square base and no top must have a volume of 32 cubic feet. Find the dimensions that minimize the surface area.

Show Answer

Let $x$ = side of the square base and $h$ = height.

Constraint: $V = x^2 h = 32$, so $h = \frac{32}{x^2}$

Objective: Minimize surface area (base + four sides, no top): $$S = x^2 + 4xh = x^2 + 4x \cdot \frac{32}{x^2} = x^2 + \frac{128}{x}$$

Domain: $x > 0$

Find critical points: $$S’(x) = 2x - \frac{128}{x^2} = 0$$ $$2x = \frac{128}{x^2}$$ $$2x^3 = 128$$ $$x^3 = 64$$ $$x = 4$$

Verify minimum: $S’’(x) = 2 + \frac{256}{x^3} > 0$ for all $x > 0$, confirming minimum.

Find dimensions: $$x = 4 \text{ ft}$$ $$h = \frac{32}{16} = 2 \text{ ft}$$

Answer: The box should have a base of $4$ ft by $4$ ft and height of $2$ ft.

Summary

  • Optimization uses calculus to find maximum and minimum values of functions.

  • Critical points occur where $f’(x) = 0$ or where $f’(x)$ is undefined. Local extrema can only occur at critical points.

  • The First Derivative Test classifies critical points by examining the sign of $f’$ on either side:

    • Sign change from $+$ to $-$: local maximum
    • Sign change from $-$ to $+$: local minimum
  • The Second Derivative Test uses concavity to classify critical points where $f’(c) = 0$:

    • $f’’(c) > 0$: local minimum (concave up)
    • $f’’(c) < 0$: local maximum (concave down)
  • The Closed Interval Method finds absolute extrema by evaluating $f$ at all critical points and endpoints, then comparing values.

  • Applied optimization problems follow a systematic strategy:

    1. Identify the objective function (what to optimize)
    2. Identify constraints (restrictions on variables)
    3. Use constraints to reduce to a single-variable function
    4. Find and test critical points
    5. Verify the answer makes sense
  • Common applications include minimizing cost, maximizing profit, finding optimal dimensions for containers, determining best prices, and finding shortest paths.

  • Always verify that your solution satisfies all constraints and makes sense in the physical context of the problem.

Optimization is where calculus shows its true practical power. The techniques you have learned here are used daily by engineers, economists, scientists, and analysts to make better decisions. When you encounter a problem asking for “the best,” “the most,” or “the least,” you now have the tools to find it precisely.