Part 7 - Absolute max and min values

Introduction

In this part we’ll cover how we find absolute maximum and minimum values for a function.

Absolute minimum/maximum values

Let’s start with an example to understand why it’s important to find these values:

Example 1

A rectangular box is to be made from 12m212m^2 of cardboard. Find the maximum volume of such a box.

We can describe the volume of the rectangular box as V=xyzV = xyz.

We also assume we don’t have a top side, therefore the total surface area will be:

2zx+2zy+yx=122zx + 2zy + yx = 12

Solving for zz:

z=12yx2(x+y)z = \dfrac{12 - yx}{2(x + y)}

We can now write our volume function, as a function of two variables:

V(x,y)=xy(12yx)2(x+y)=12xyx2y22x+2yV(x, y) = \dfrac{xy (12 - yx)}{2(x + y)} = \dfrac{12xy - x^2y^2}{2x + 2y} \newline

As we covered last time, we need to solve f=0\nabla f = 0, let’s first find the partial derivates:

Vx(x,y)=fgfgg2=(12y2xy2)(2x+2y)(12xyx2y2)(2)(2x+2y)2=(24xy+24y24x2y24xy3)(24xy2x2y2)(2x+2y)2=24xy+24y24x2y24xy324xy+2x2y2(2x+2y)2=24y22x2y24xy3(2x+2y)2=12y2x2y22xy32(x+y)2=y2(122xyx2)2(x+y)2\begin{align*} V_x(x, y) & = \dfrac{f'\cdot g - f \cdot g'}{g^2} \newline & = \dfrac{(12y - 2xy^2)(2x + 2y) - (12xy - x^2y^2)(2)}{(2x + 2y)^2} \newline & = \dfrac{(24xy + 24y^2 - 4x^2y^2 - 4xy^3) - (24xy - 2x^2y^2)}{(2x + 2y)^2} \newline & = \dfrac{24xy + 24y^2 - 4x^2y^2 - 4xy^3 - 24xy + 2x^2y^2}{(2x + 2y)^2} \newline & = \dfrac{24y^2 - 2x^2y^2 - 4xy^3}{(2x + 2y)^2} \newline & = \dfrac{12y^2 - x^2y^2 - 2xy^3}{2(x + y)^2} \newline & = \dfrac{y^2(12 - 2xy - x^2)}{2(x + y)^2} \newline \end{align*}

We can see that this equation is symmetrical for xx and yy, therefore:

Vy=x2(122xyy2)2(x+y)2V_y = \dfrac{x^2(12 - 2xy - y^2)}{2(x + y)^2} \newline{122xyy2=0122xyx2=0\begin{cases} 12 - 2xy - y^2 = 0 \newline 12 - 2xy - x^2 = 0 \end{cases}

From this we find:

y2x2=0y2=x2y=x  since they are only positivey^2 - x^2 = 0 \newline y^2 = x^2 \newline y = x \ | \ \text{since they are only positive}

Which leads us to:

122x2x2=0123x2=03x2=12x2=4x=2y=212 - 2x^2 - x^2 = 0 \newline 12 - 3x^2 = 0 \newline 3x^2 = 12 \newline x^2 = 4 \newline x = 2 \newline y = 2 \newline

Since we cannot get an arbitrarily big volume out of 12m212m^2 of cardboard. Since there exists a critical point, this must be the absolute maximum.

Vmax=V(2,2)==4V_max = V(2, 2) = \ldots = 4

Does absolute minimum/maximum always exist?

Let’s recall for one variable, the so-called extreme variable theorem.

Recall (Extreme value theorem in one variable)

A continuous function on the interval [a,b][a, b], always has absolute minimum/maximum.

This is quite intuitive, so let’s not prove it.

Similarly, for functions of two variables, this holds, but we need to define some terminology first.

Definition 1 (Bounded set)

A bounded set in R2\mathbb{R}^2, is a set that is contained in some disc.

Definition 2 (Boundary point)

A boundary point at a set DR2D \in \mathbb{R}^2, is a point such that, any disc centered at this point contains both some points from DD and some points outside DD.

Definition 3 (Closed set)

A closed set in R2\mathbb{R}^2, is a set that is contains all of its boundary points

Example 2{(x,y)R2x2+y21}  contains boundary points, closed set\{(x, y) \in \mathbb{R}^2 | x^2 + y^2 \leq 1 \} \ | \ \text{contains boundary points, closed set}{(x,y)R2x2+y21}  does not contain boundary points, not closed set\{(x, y) \in \mathbb{R}^2 | x^2 + y^2 \le 1 \} \ | \ \text{does not contain boundary points, not closed set}{(x,y)R2x2+y21,(x,y)(0,1)}  does not contain boundary point, not closed set\{(x, y) \in \mathbb{R}^2 | x^2 + y^2 \leq 1, (x, y) \neq (0, 1) \} \ | \ \text{does not contain boundary point, not closed set}{(x,y)R2y0}  contains boundary points, closed set\{(x, y) \in \mathbb{R}^2 | y \geq 0 \} \ | \ \text{contains boundary points, closed set}

Now we can define the extreme value theorem.

Theorem 1 (Extreme value theorem)

If, ff, is a continuous function, on a bounded closed region. Then ff has absolute values.

How to find absolute values

Recall, for functions of one variable, absolute values are either critical points inside the interval, or at the boundary.

So we need to find the critical points inside DD and compute the values. Along with the boundary points, from these computations we can decipher which points are minimums and maximums.

Example 3

Find absolute minimum and maximum for f(x,y)=x22xy+2yf(x, y) = x^2 - 2xy + 2y, on the rectangle:

R={(x,y)0x3,0y2}R = \{(x, y) | \begin{align*} 0 \leq x \leq 3, 0 \leq y \leq 2 \end{align*} \}

Since ff is a continuous function, and RR is bounded closed set. By the extreme value theorem there exists absolute values.

Let’s first investigate critical points inside RR.

f=02x2y,2x+2=0\nabla f = 0 \newline \langle 2x - 2y, -2x + 2 \rangle = 0{2x2y=02x+2=0\begin{cases} 2x - 2y = 0 \newline -2x + 2 = 0 \end{cases}x=1y=1x = 1 \newline y = 1

Therefore, (1,1)(1, 1) is a critical point:

f(1,1)==1f(1, 1) = \ldots = \boxed{1}

Now we investigate the boundary, points, since this is a rectangle, we can investigate each side. We’ll call these L1,L2,L3,L4L_1, L_2, L_3, L_4:

L1={(x,y)0x3,y=0}L2={(x,y)x=3,0y2}L3={(x,y)0x3,y=2}L4={(x,y)x=0,0y2}L_1 = \{(x, y) | 0 \leq x \leq 3, y = 0 \} \newline L_2 = \{(x, y) | x = 3, 0 \leq y \leq 2 \} \newline L_3 = \{(x, y) | 0 \leq x \leq 3, y = 2 \} \newline L_4 = \{(x, y) | x = 0, 0 \leq y \leq 2 \} \newline

Let’s find the absolute minimum/maximum values on each of these.

On L1L_1:

g(x)=f(x,0)=x2g(0)=0  abs. min.g(3)=9  abs. max.g(x) = f(x, 0) = x^2 \newline g(0) = 0 \ | \ \text{abs. min.} \newline g(3) = 9 \ | \ \text{abs. max.}

On L2L_2:

g(y)=f(3,y)=94yg(2)=1  abs. min.g(0)=9  abs. max.g(y) = f(3, y) = 9 - 4y \newline g(2) = 1 \ | \ \text{abs. min.} \newline g(0) = 9 \ | \ \text{abs. max.}

On L3L_3:

g(x)=f(x,2)=x24x+4g(2)=0  abs. min.g(0)=4  abs. max.g(x) = f(x, 2) = x^2 - 4x + 4 \newline g(2) = 0 \ | \ \text{abs. min.} \newline g(0) = 4 \ | \ \text{abs. max.}

On L4L_4:

g(y)=f(0,y)=2yg(0)=0  abs. min.g(2)=4  abs. max.g(y) = f(0, y) = 2y \newline g(0) = 0 \ | \ \text{abs. min.} \newline g(2) = 4 \ | \ \text{abs. max.}

From all these computations we find that:

fmin=0fmax=9f_{min} = 0 \newline f_{max} = 9