Grade by Grade
B. Derivatives and Their Applications · Applications of Derivatives: Motion, Rates and Optimization

Optimization Basics: Absolute Maximum and Minimum Values

B2.4About 65 minutes
Learning goals
  • I can tell the difference between local and absolute extremes.
  • I can find the absolute maximum and minimum of a continuous function on a closed interval.
  • I can find absolute extremes of polynomial, simple rational and exponential functions.
  • I can justify an absolute extreme on an open interval with a single critical number.

Words to know

absolute (global) maximum
The largest value of a function over its whole domain or a given interval.
absolute (global) minimum
The smallest value of a function over its whole domain or a given interval.
critical number
A number c in the domain where f′(c) = 0 or f′(c) does not exist.
Extreme Value Theorem
A function continuous on a closed interval [a, b] has an absolute maximum and an absolute minimum on it.
closed interval
An interval that includes its endpoints, such as 0 ≤ x ≤ 5 or [0, 5].

The best possible

Optimization means finding the best value of something: the largest area, the least cost, the greatest profit, the shortest time. The Ontario curriculum (B2.4) asks you to solve optimization problems with polynomial, simple rational and exponential models, and these problems are among the most useful things calculus does. Engineers, economists, biologists and logistics planners solve them every day.

In Curve Sketching: Connecting f, f′ and f″ you found local maximums and minimums. A real problem wants the absolute (or global) maximum or minimum: the very largest or smallest value over all the allowed inputs. This lesson shows how to find it, and the next five lessons use it on real problems.

Where can the absolute extremes be?

Suppose f is continuous on a closed interval a ≤ x ≤ b. Then:

  • f has an absolute maximum and an absolute minimum on the interval. (This is the Extreme Value Theorem; you will prove it in university.)
  • Each one happens either at a critical number inside the interval (where f′(x) = 0 or f′(x) does not exist) or at an endpoint.

So you do not need to sketch the whole graph. You only need to check the candidates.

The closed-interval method

  1. Find f′(x).
  2. Find the critical numbers in the interval (a < x < b).
  3. Evaluate f at each critical number and at both endpoints a and b.
  4. The largest value is the absolute maximum; the smallest is the absolute minimum.
Worked example

Example 1: A polynomial on an interval

Find the absolute maximum and minimum of f(x) = x³ − 3x² − 9x + 5 on −2 ≤ x ≤ 6.

  1. f′(x) = 3x² − 6x − 9 = 3(x² − 2x − 3) = 3(x − 3)(x + 1).
  2. Critical numbers: x = −1 and x = 3. Both lie inside the interval.
  3. Evaluate: f(−2) = −8 − 12 + 18 + 5 = 3; f(−1) = −1 − 3 + 9 + 5 = 10; f(3) = 27 − 27 − 27 + 5 = −22; f(6) = 216 − 108 − 54 + 5 = 59.
  4. Compare the four values: 3, 10, −22, 59.

Absolute maximum 59 at x = 6 (an endpoint). Absolute minimum −22 at x = 3. The local maximum at x = −1 is not the absolute maximum.

−2−1123456−20204060x(−2, 3) endpoint(−1, 10) local max(3, −22) absolute min(6, 59) absolute maxShaded: the interval −2 ≤ x ≤ 6. Dashed: the graph outside it (ignored).
The four candidates for Example 1. The local maximum at x = −1 is beaten by the endpoint x = 6, which is why you must always check the endpoints.
Worked example

Example 2: A rational function

Find the absolute extremes of A(x) = x + 9/x on 1 ≤ x ≤ 10.

  1. Write A(x) = x + 9x⁻¹. Then A′(x) = 1 − 9x⁻² = 1 − 9/x².
  2. A′(x) = 0 when x² = 9, so x = 3 (x = −3 is outside the interval). A′ exists everywhere on the interval (x = 0 is not in it).
  3. Evaluate: A(1) = 1 + 9 = 10; A(3) = 3 + 3 = 6; A(10) = 10 + 0.9 = 10.9.

Absolute minimum 6 at x = 3; absolute maximum 10.9 at x = 10.

Worked example

Example 3: An exponential model

The concentration of a medication in the blood is C(t) = 20te^(−0.5t) mg/L, t hours after a dose, for 0 ≤ t ≤ 8. When is the concentration highest, and what is it?

  1. Product rule: C′(t) = 20e^(−0.5t) + 20t(−0.5)e^(−0.5t) = 20e^(−0.5t)(1 − 0.5t).
  2. Since e^(−0.5t) > 0 always, C′(t) = 0 only when 1 − 0.5t = 0, so t = 2.
  3. Evaluate: C(0) = 0; C(2) = 40e^(−1) ≈ 14.7; C(8) = 160e^(−4) ≈ 2.93.

The concentration is highest at t = 2 h, about 14.7 mg/L.

1234567851015t (h)C (mg/L)(2, 14.7): C′(2) = 0(8, 2.9)(0, 0)
The concentration model C(t) = 20te^(−0.5t) on 0 ≤ t ≤ 8. The highest point has a horizontal tangent; the endpoints give smaller values.

When the interval is not closed

Many real problems have an open interval, such as x > 0. Then there are no endpoints to check, and an absolute extreme might not exist. A useful test:

If f is continuous on an interval and has only one critical number c there, and f has a local minimum at c (by the first or second derivative test), then f(c) is the absolute minimum on that interval. (The same is true for a maximum.)

Why? If the graph went down again somewhere else, it would have to turn around, which would create a second critical number.

Worked example

Example 4: One critical number on an open interval

Find the absolute minimum of f(x) = x + 16/x for x > 0.

  1. f′(x) = 1 − 16/x². f′ = 0 when x² = 16, so x = 4 (the only critical number for x > 0).
  2. First derivative test: f′(2) = 1 − 4 = −3 < 0 and f′(8) = 1 − 0.25 = 0.75 > 0, so f changes from decreasing to increasing: a local minimum at x = 4.
  3. Since x = 4 is the only critical number on x > 0, the local minimum is the absolute minimum. f(4) = 4 + 4 = 8.

The absolute minimum is 8 at x = 4. There is no absolute maximum (f grows without bound as x → 0⁺ or x → ∞).

Always check

Write the domain before you differentiate, throw out critical numbers outside it, and check endpoints when there are any. Most errors in optimization come from skipping one of these.

Just for fun

The Extreme Value Theorem promises that a continuous function on a closed interval has a maximum and a minimum. It does not promise to tell you where they are. It is the math version of "your keys are definitely somewhere in this house".

Hands-on activity

Highs and lows of a day

You need: an outdoor thermometer or a weather app with an hourly forecast, graph paper, and a pencil.

  1. Record the temperature every hour from 6 a.m. to 9 p.m. (or copy the hourly forecast for one day).
  2. Plot temperature against time and join the points with a smooth curve.
  3. Mark the absolute maximum and absolute minimum on your interval. For each, decide: is it at an endpoint (6 a.m. or 9 p.m.) or at an interior point? If it is interior, is the curve flat there (horizontal tangent)?
  4. Repeat with a shorter interval, say 9 a.m. to 1 p.m.

What to look for: on a typical day the minimum is near sunrise and the maximum in mid-afternoon, so on the long interval the maximum is an interior point with a flat top. On the short interval (temperature still rising) both extremes are usually at the endpoints. That is exactly why the closed-interval method checks both.

Your turn

1

Find the absolute extremes of f(x) = x² − 6x + 1 on 0 ≤ x ≤ 5.

2

Find the absolute extremes of g(x) = 2x³ − 9x² + 12x on 0 ≤ x ≤ 3.

3

Find the absolute extremes of h(x) = x⁴ − 8x² on −1 ≤ x ≤ 3.

4

Find the absolute extremes of f(x) = x + 4/x on 1 ≤ x ≤ 5.

5

Find the absolute extremes of f(t) = 10te^(−t) on 0 ≤ t ≤ 4.

6

A spring day's temperature is T(t) = −0.5t² + 4t + 10 °C, t hours after 8 a.m., for 0 ≤ t ≤ 10. Find the highest and lowest temperatures.

7

Explain why f(x) = 1/x has no absolute maximum on −1 ≤ x ≤ 1, even though the interval is closed.

More practice: warm-up

1

For a continuous function on [a, b], where can the absolute extremes occur?

2

What is a critical number?

3

f(x) = 3x + 2 on 0 ≤ x ≤ 4. Find the absolute max and min.

4

f(x) = x² on −1 ≤ x ≤ 2. Find the absolute max and min.

5

Find the critical number of f(x) = x² − 10x.

More practice: on your own

1

Find the absolute extremes of f(x) = x³ − 12x + 1 on −3 ≤ x ≤ 5.

2

A share price is modelled by S(t) = t³ − 9t² + 24t + 10 dollars, t months after purchase, 0 ≤ t ≤ 5. Find the highest and lowest prices.

3

Find the absolute minimum of f(x) = x + 25/x for x > 0, and justify that it is absolute.

4

Find the absolute extremes of f(x) = x²e^(−x) on 0 ≤ x ≤ 4.

5

Find the absolute extremes of f(x) = sin x + cos x on 0 ≤ x ≤ π.

Challenge

1

For f(x) = x³ − ax on 0 ≤ x ≤ 3, find the value of a for which the absolute minimum occurs at x = 1, and give the minimum value.

2

f(x) = x³ on −1 ≤ x ≤ 1 has a critical number at x = 0. Is f(0) an absolute or local extreme? Explain.

3

A drug's concentration is C(t) = 20(e^(−0.2t) − e^(−t)) mg/L. Find when it is greatest and the greatest concentration.

Check your understanding

Quiz

1.

For a continuous function on a closed interval, which values must you compare to find the absolute maximum?

2.

f(x) = x² − 4x on 0 ≤ x ≤ 5. What is the absolute maximum?

3.

f(x) = x + 1/x on 0.5 ≤ x ≤ 4. Where is the absolute minimum?

4.

f(t) = te^(−t). At which t is f′(t) = 0?

5.

A function on x > 0 has exactly one critical number, at x = 3, and f′ changes from negative to positive there. What can you conclude?

6.

Which statement is true?

For parents and teachers

Big idea (B2.4): optimization is finding absolute maximums and minimums. On a closed interval, the answer is always at a critical number or an endpoint, so you compare a short list of values.

How to help: ask your teen to list the candidates before calculating anything: "Which x-values are you going to test, and why?" A good answer names every critical number in the interval and both endpoints.

Common difficulties:

  • Forgetting to check the endpoints.
  • Keeping critical numbers that are outside the interval.
  • Comparing values of f′ instead of values of f.
  • Calling a local maximum the absolute maximum without comparing.