Note 1
Extrema and Lagrange Multiplier

This is the last topic for multivariable differential calculus. So far, we discussed about higher dimensions, functions of two or more variable, and their derivatives. In this final note for differential calculus, we are going to see applications of the topics. This may feel like just a generalization of topics from single variable calculus, but also is one of the reasons why multivariable calculus is so important! Let’s get right into it with reviewing extrema.

1.1 Maximum and Minimum

Before we get started with manximum and mimimum with multivariable functions, let’s briefly review some strategies we used for single variable. For single variable functions, we used first and second derivatives to determine local maxima and minima. Recall that when the first derivative is zero, we know that that point is a critical point since we know that there is a visual “bump.” Now, how do we know if this “bump” is min or max? We do that using second derivatives. If the second derivative is negative, then the function is concave down and we have the relative or local maximum. If it is positive, then the function at that point is concave up and we have a local min. Lastly when its zero, we have the inflection point where it is neither concave up or down. Now let’s apply this idea to multivariable.

Multivariable functions are not different! Its slightly more complicated because of the nature of functions of two or more variables, but the basic intuition transcribes. Let’s get started with the definition to see how the intuition remains.

Definition 1.1.1

Let \(f\) be a function of two variables and \(D\) be a some disk around \((x_0, y_0)\). The point \((x_0, y_0)\) is a relative maximum if \(f(x_0, y_0) \geq f(x, y)\) for all \((x, y)\) in \(D\) and in the domain of \(f\). If the inequality holds for all \((x, y)\) in the domain of \(f\), then the point is an absolute maximum.

Similarly, we can define relative and absolute minimum.

Definition 1.1.2

Given a function of two variables \(f\), let \(D\) be a disk centered around some point \((x_0, y_0)\). If \(f(x_0, y_0) \leq f(x, y)\) for all points in \(D\) and the domain of \(f\), then \((x_0, y_0)\) is a relative minimum. If the inequality holds for all points in the domain of \(f\), then \((x_0, y_0)\) is an absolute minimum.

Both relative maximum and minimum are relative extrema and absolute min and max are absolute extremum. Also, the words “local” and “relative” are used interchangeably, so let’s use “local” instead just because it sticks more.

Sometimes, a function could not have any extrema. For instance, consider the function \(f(x, y) = x + y\) for \(0 < x < 1\) and \(0 < y < 1\). Because the boundary is not included, we don’t have extrema of any sort. For cases like these and many other, we have special terms that distinguishes relative extrema. If an extremum lies in the interior of the function’s domain, then we call it interior relative extremum. If it lies on the boundary of the domain, we call it boundary relative extremum. Now we want to know what determines or which condition tells us that the function has an extremum. Here is a very important theorem on that!

Theorem 1.1.3: Extreme Value Theorem

Given a function \(f(x, y)\), if the functions is defined and continuous on some closed and bounded set, then there exists at least one exxtremum in the region.

This theorem actually holds for functions of \(n\) variables as well. The proof for this requires more knowledge from real analysis, so let’s skip the proof for now. Now recall that if the first derivative is zero for single variable, we get a critical point. One natural way to extend it to multivariable is I think to use gradient because in some ways, they tell us similar facts.

Theorem 1.1.4

Let \(f\) be a function of two variables such that \(f_x\) and \(f_y\) both exists and it has an interior relative extremum at \((x_0, y_0)\). Then, \(\nabla f(x_0, y_0) = \mathbf {0}\) holds.

Proof.

First, consider the case when \((x_0, y_0)\) is an interior relative maximum. It suffices to show that \(f(x, y) \leq f(x_0, y_0)\) for all points in some open disk \(D\) around \((x_0, y_0)\).

Let \(g(x) = f(x, y_0)\). Notice that \(g(x) \leq f(x_0, y_0) = g(x_0)\). Therefore, \(g'(x_0) = 0\) since the local maximum of \(g\) is at \(x = x_0\). In other words, \(g'(x_0) = f_x(x_0, y_0) = 0\). Similarly, let \(h(y) = f(x_0, y)\). Using the analogous argument, \(f_y(x_0, y_0) = 0\) and \(\nabla f(x_0, y_0) = \mathbf {0}\). Because the same argument applies for when \((x_0, y_0)\) is an interior relative minimum, the theorem holds.

Using this intuition, the definition of critical point can also be implemented for multivariable.

Definition 1.1.5

GIven a function \(f\) of two variables, the critical point \((x_0, y_0)\) is a point such that \(\nabla f(x_0, y_0) = \mathbf {0}\) or at least one first partial of \(f\) does not exist at \((x_0, y_0)\). A critical point that is neither a local minimum nor maximum is called a saddle point.

Finally before diving into how we can find local min and max, here is an important corollary.

Corollary 1.1.6

All relative extremum of a function \(f\) is either a critical point or a point at a boundary of its domain.

Proof.

First, assume that a relative extremum \((x_0, y_0)\) is not at a boundary of its domain. By Theorem 1.1.4, \(f_x(x_0, y_0) = f_y(x_0, y_0) = 0\) and \((x_0, y_0)\) is a critical point given that \(f_x\) and \(f_y\) exist. If one of the first partials does not exist, then \((x_0, y_0)\) is also a ciritical point. Therefore, the corollary holds.

This is it for this section! In the next section, we are going to discuss some strategies to actually find an extremum.