Summary of Optimization on Closed Intervals

Before this, knowSecond Derivative Test

Read · 2 min

Optimization is determining minima and maxima of a function. This is one of the many useful practical applications of calculus.

Given a function ff on a closed interval [a,b][a,b] that is differentiable on the open interval (a,b)(a,b), the Extreme Value Theorem states that there exist values mm and nn in [a,b][a,b] such that f(m)≥f(x)≥f(n)f(m) \ge f(x) \ge f(n) for all x∈[a,b]x\in [a,b]. We call the value f(m)f(m) the maximum value of of ff on [a,b][a,b] and f(n)f(n) the minimum value of ff on [a,b][a,b].

The values of mm and nn must be one of the following:

Case 1: a boundary value, i.e. aa or bb

Case 2: a value xx in the interval but not a boundary such that f′(x)=0f'(x) = 0

Case 3: a value xx in the interval but not a boundary such that f′(x)f'(x) is undefined (this is not a concern if ff is differentiable.

So, to determine the minimum and maximum values of a function ff, we do the following:

  1. Take the derivative of ff.

  2. Solve the derivative on the interval [a,b][a,b] and see if it is 00 at any value in the interval. Use algebra to identify zeros of f′f'.

  3. aa, bb, and any values found in Step 2 are what we call "critical values." Identify all critical values.

  4. Find the value of ff at every critical value.

  5. The minimum of the values found in Step 4 is the global minimum of ff on [a,b][a,b]. The maximum found in Step 4 is the global maximum of ff on [a,b][a,b].

Example: (disclaimer: this does not represent real-world finance) Suppose that I have 1000 dollars and I have two options for my money:

Option 1: A future contract which will return 1.2 times the amount of money I put into it.

Option 2: A friend who is willing to give you 20x20\sqrt{x} if you pay him xx dollars. (Your friend loves calculus and is doing this almost solely for the purpose of teaching you calculus).

I want to maximize my money received at the end, assuming all my money must go into either Option 1 or Option 2.

Solution: Let xx be the amount of money put into Option 2. Then f(x)=20x+1.2⋅(1000−x)f(x) = 20 \sqrt{x} + 1.2 \cdot (1000-x) is the money I receive. I want to find the maxima of ff on [0,1000][0,1000]. The derivative is f′(x)=10x−1.2f'(x) = \frac{10}{\sqrt{x}} - 1.2 This has a zero at 6259≈69.444\frac{625}{9} \approx 69.444.

So, our critical values are 0, 6259\frac{625}{9} and 1000. Evaluating ff at each value, we find f(0)=1200f(0) = 1200, f(6259)≈1283.33f(\frac{625}{9}) \approx 1283.33, and f(1000)≈632.46f(1000) \approx 632.46. So, since f(6259)f(\frac{625}{9}) is the largest of those, that means 1283.33 is the maximum amount of money I can have at the end, and it is achieved when I invest 6259\frac{625}{9} into Option 2 and 1000−62591000-\frac{625}{9} into Option 1.

This is only one way this technique can be applied!

Video · + 1 min read

(Video) The Closed Interval Method

by PatrickJMT

Here's a video by patrickJMT explaining the Closed Interval Method and how to use it to find absolute maximums and minimums.

He states that to find the absolute maximum and minimum values of a continuous function ff on the closed interval [a,b][a,b]:

  1. Find the values of ff at critical numbers of ff in (a,b)(a,b)
  2. Find the values of ff at the endpoints of the interval
  3. The largest is the absolute max; the smallest is the absolute minimum

The problem he looks at is:

Find the absolute maximum and absolute minimum of ff on the given interval: f(x)=x2−4x2+4; [−4,4]f(x)=\frac{x^2-4}{x^2+4};\ [-4,4]

First let's find the critical points. f(x)=x2−4x2+4f′(x)=[x2−4]′(x2+4)−(x2−4)[x2+4]′[x2+4]2f′(x)=2x(x2+4)−(x2−4)2x(x2+4)2f′(x)=2x3+8x−2x3+8x(x2+4)2f′(x)=16x(x2+4)2\begin{align} f(x)&=\frac{x^2-4}{x^2+4}\\ f'(x)&=\frac{\color{red}{[x^2-4]'}(x^2+4)-(x^2-4)\color{red}{[x^2+4]'}}{[x^2+4]^2}\\ f'(x)&=\frac{2x(x^2+4)-(x^2-4)2x}{(x^2+4)^2}\\ f'(x)&=\frac{2x^3+8x-2x^3+8x}{(x^2+4)^2}\\ f'(x)&=\frac{16x}{(x^2+4)^2}\\ \end{align}

Now look at where the derivative equals zero and is undefined. 16x(x2+4)2=016x=0x=0\begin{align} \frac{16x}{(x^2+4)^2}&=0\\ 16x&=0\\ x&=0 \end{align} (x2+4)2=0x2+4=0x2=−4No real solution.\begin{align} (x^2+4)^2&=0\\ x^2+4&=0\\ x^2&=-4\\ \text{No real }&\text{solution.} \end{align}

So the only critical point we have is x=0x=0. We also have the end points to test x=−4x=-4 and x=4x=4. Our next step is to plug all three of these points into our function and see what values we get out. f(−4)=(−4)2−4(−4)2+4=35f(0)=(0)2−4(0)2+4=−1f(4)=(4)2−4(4)2+4=35\begin{align} f(-4)&=\frac{\color{red}{(-4)}^2-4}{\color{red}{(-4)}^2+4}\\ &=\frac35\\ f(0)&=\frac{\color{red}{(0)}^2-4}{\color{red}{(0)}^2+4}\\ &=-1\\ f(4)&=\frac{\color{red}{(4)}^2-4}{\color{red}{(4)}^2+4}\\ &=\frac35 \end{align}

So we have an absolute minimum of −1-1 and an absolute maximum of 35\frac35. It's okay that we get an absolute maximum at both of our endpoints.

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems