Kahibaro
Discord Login Register

10.3.1 Optimization

Understanding Optimization Problems

In this chapter you use derivatives to solve optimization problems: problems where something must be made as large or as small as possible, usually under some constraint.

Typical phrases that signal an optimization problem include:

The goal is to translate a word description into a function $f(x)$ and then choose $x$ so that $f(x)$ is as large or as small as possible on a given interval.

We will assume you already know what derivatives are and how to compute them; here we focus on how to set up and interpret optimization problems.


General Strategy for Solving Optimization Problems

Most single-variable optimization problems in calculus follow a standard pattern:

  1. Read and understand the problem.
    Identify what quantity must be maximized or minimized (area, volume, cost, distance, etc.).
  2. Choose a variable and draw a diagram (if helpful).
    Pick a symbol (often $x$) for a key unknown quantity. A sketch with labels often clarifies relationships.
  3. Express the quantity to optimize as a function.
    • Write a formula for the quantity you’re optimizing in terms of one or more variables.
    • Use given constraints (like fixed perimeter, fixed volume, fixed budget) to eliminate extra variables so you end up with a function of a single variable:
      $$Q = f(x).$$
  4. Determine the domain.
    Figure out for which $x$ values the problem makes sense (lengths must be nonnegative, dimensions must be positive, etc.). This gives you:
    $$a \le x \le b \quad\text{or}\quad x > 0,\ \text{etc.}$$
  5. Find critical points.
    Compute $f'(x)$ and find all $x$ in the domain where:
    • $f'(x) = 0$, or
    • $f'(x)$ does not exist (but $f$ does).
  6. Test for maxima or minima.
    Use one of the following (both rely on earlier derivative concepts):
    • First derivative test:
      Examine the sign of $f'(x)$ just before and after each critical point.
      • If $f'$ changes from positive to negative → local maximum.
      • If $f'$ changes from negative to positive → local minimum.
    • Second derivative test:
      If $f''(c)$ exists and $f'(c) = 0$:
      • $f''(c) > 0$ → local minimum at $x = c$.
      • $f''(c) < 0$ → local maximum at $x = c$.

For problems on a closed interval $[a,b]$, you must also compare values at:

  1. Answer the original question in words.
    State clearly:
    • which value of $x$ optimizes the quantity, and
    • what the maximum or minimum value actually is (if asked).

Include units if the problem includes them.


Local vs Global Extrema in Optimization

Optimization problems in applications are usually about global (absolute) maxima or minima, not just local ones.

In practice:

Optimization problems usually have some physical, geometric, or practical constraint that effectively restricts the domain.


Common Types of Optimization Problems

Below are common patterns you will encounter, along with the key modeling idea for each. The calculus steps (taking derivatives, finding critical points, etc.) are the same; what changes is the function you build.

1. Geometric Optimization: Area and Perimeter

These problems involve shapes (rectangles, boxes, cylinders, etc.) where you maximize area or volume, or minimize perimeter, subject to constraints.

Example Pattern: Largest Area Rectangle with Fixed Perimeter

Suppose a rectangle has fixed perimeter $P$ and sides $x$ and $y$. Then:

Use the constraint to eliminate one variable:
$$y = \frac{P}{2} - x,\quad A(x) = x\left(\frac{P}{2} - x\right).$$

Then $A(x)$ is a quadratic function. To maximize $A$, you:

A famous conclusion (which you should be able to derive) is that this rectangle is a square.

Example Pattern: Fencing Problems

You might be given:

You:

2. Volume Optimization: Boxes and Containers

These problems involve maximizing the volume of a three-dimensional object given some material constraints.

Common Pattern: Open-Top Box from a Sheet

You start with a rectangular piece of material, cut equal squares of side $x$ from each corner, and fold up sides to form an open-top box.

The domain is limited by geometry: $0 < x < \min\{L/2,\, W/2\}$ so the dimensions remain positive.

Then you:

Other Container Problems

Similar structure appears with:

The key is always:

3. Economic Optimization: Cost, Revenue, and Profit

In many applications, you want to:

There is usually a demand relationship that connects price and quantity.

Basic Setup

Let:

To maximize profit, you:

Constraints might include maximum capacity, minimum orders, or nonnegative quantities ($q \ge 0$).

These problems do not usually require drawing physical diagrams but do require careful interpretation of functions and domains.

4. Distance and Shortest Path Problems

These problems ask for the shortest distance between a moving point and some fixed object, or for a path that minimizes distance or time.

Common Pattern: Shortest Distance to a Point or Line

Often you express the distance between objects as a function of a single variable.

For example, suppose a point $P$ moves along the $x$-axis and you want the minimal distance to a fixed point $Q$.

If $P(x, 0)$ and $Q$ has fixed coordinates $(a, b)$, the distance is:
$$D(x) = \sqrt{(x - a)^2 + b^2}.$$

Since the square root is an increasing function for positive inputs, minimizing $D(x)$ is equivalent to minimizing:
$$D^2(x) = (x - a)^2 + b^2,$$
which is often easier to differentiate.

So you:

Shortest Time Problems

If speed is constant on each part of a path, then:
$$\text{time} = \frac{\text{distance}}{\text{speed}}.$$

For multiple segments with different speeds, total time is a sum of such fractions. Express that total time as a function of one variable and minimize using derivatives.


Working with Constraints and Domains

In real optimization problems, constraints are crucial. They:

Types of Constraints

  1. Physical constraints
    • Lengths, areas, volumes must be nonnegative.
    • Dimensions must be strictly positive to represent real objects.
  2. Resource constraints
    • Limited material (e.g., fixed perimeter or surface area).
    • Budget limits.
  3. Problem-specific constraints
    • The object must fit in a given space.
    • Angles or positions are limited by design.

Finding the Domain

For a function $f(x)$ from your model:

For example, for $V(x) = x(L - 2x)(W - 2x)$:

When optimizing on a closed interval $[a,b]$:

Choosing and Testing Critical Points

Once you have a function $f(x)$ and its derivative $f'(x)$, you must decide which critical points actually solve the problem.

First Derivative Test (Applied)

For each critical point $c$:

This is especially important if the domain is not closed or if your formula describes a broad range but only part of it makes practical sense.

Second Derivative Test (Applied)

If you know $f''(x)$, then for a critical point $c$ with $f'(c) = 0$:

If $f''(c) = 0$, this test is inconclusive; you may need the first derivative test or another method.

Endpoints

Do not forget endpoints when the domain is closed:

Common Pitfalls in Optimization

When solving optimization problems, watch out for these frequent mistakes:

  1. Not clearly identifying what to optimize.
    Determine first: Are you maximizing area, volume, profit, or something else?
  2. Using too many variables.
    Always aim to express the quantity to be optimized as a function of one variable, using constraints to eliminate others.
  3. Ignoring the domain.
    Solutions where dimensions are negative, or where a length exceeds some limit, are not physically meaningful even if they come from solving $f'(x)=0$.
  4. Forgetting endpoints.
    On a closed interval, endpoints must be checked along with critical points.
  5. Misinterpreting the result.
    • Label your answer: “The rectangle should be … by …” or “The maximum profit is …”.
    • Include units (meters, dollars, seconds, etc.) if present.
  6. Assuming any critical point is a maximum or minimum.
    Always verify using the first or second derivative test, or by comparing values.

Summary

Optimization with derivatives follows a consistent pattern:

With practice, the main challenge becomes setting up the problem correctly; the calculus steps then follow the standard procedures you already know for derivatives.

Views: 61

Comments

Please login to add a comment.

Don't have an account? Register now!