Review of 1D theory

A regular point of a function is a point where . A critical point is a point where is either zero or undefined. In calculus, the theory of optimization (finding extremal values) is largely a theory of critical points.

Given a function of a single variable, its extrema occur either on boundary points of the region, or at critical points of in the interior of the region. For a closed interval , the boundary points are and , while the interior is the open interval . Every interior point is either regular or critical. To find extrema, therefore, it suffices to check boundary points, interior points of non-differentiability, and interior points where the derivative is zero.

All of this reasoning may be derived from the linear approximation:

Linear approximation:

If exists at , we can write near as:

Here , , and . Now rewrite this as . If , then for small enough, because as . This means there are points close to for which (with ), and points for which (with ). Conversely, if , there are points near for which and for which .

It follows that if is a regular point, meaning , then is certainly neither a local maximum nor minimum.

The critical points can be evaluated using the first and second derivative tests. For example, if the sign of crosses zero at from above, or if , the point is a local maximum.

2D theory

The 1D theory may be applied directly to the trace curves of a function , i.e. the curves given by or . The result is that if , or if , then is neither a local maximum nor minimum, but rather it would be possible to increase or decrease by moving along the respective trace curve.

A critical point of is a point such that either , or at least one of doesn’t exist. All extreme values of in the interior of a region must occur, therefore, at critical points.

(Note: the situation where, say, fails to exist while , counts as a critical point in these notes, but some other authors would not count it. Such points cannot be local extrema by the trace-curve reasoning applied to .)

The definition of critical points can be encapsulated in a single statement about the gradient:

Info

The point is a critical point of if and only if: or is undefined.

Global extrema are either local extrema (critical points in the interior), or they lie on the boundary. To check the boundary, one must find a parametrization of the boundary as a curve , and then optimize the scalar function of the single variable using the 1D theory. The extrema on the boundary should then be compared with the local extrema in the interior.

As in the 1D theory, critical points of can be either maxima or minima or neither, and there is a tool involving second-order partials that allows us to classify critical points in many cases. It is called the discriminant. Suppose that exist and are continuous near , a critical point of . Define the discriminant by the formula:

This formula is easy to remember as the determinant of the matrix of second-order partials:

Discriminant test

Let be a critical point near which the second-order partials are continuous.

  • If the test is inconclusive
  • If then is a saddle point
  • If then is a max/min:
    • If or then is a min
    • If or then is a max

Attachments/Pasted image 20231027131023.png
Attachments/Pasted image 20231027131101.png
Attachments/Pasted image 20231027131209.png

nD theory

(The technique for D requires knowledge of linear algebra, so the next discussion will not be tested in this course.)

In 3D, the same argument about trace curves shows that where is a non-zero vector, there is not a local extremum. At such a point, motion in the direction of will increase the value of , and motion in the (opposite) direction of will decrease the value of .

Similarly, in D one defines critical points as those points where is either or undefined. Local extrema of can only occur at critical points.

The matrix of second-order partials has a general form called the Hessian matrix:

In 3D the Hessian matrix looks like this:

In order to use to classify critical points, you have to compute its eigenvalues and count the number of positive and number of negative eigenvalues. (All positive minimum, all negative maximum, various signs saddle.) The determinant is the product of the eigenvalues, so in the 2D theory the discriminant reveals whether the eigenvalues have the same or opposite signs. This explains the discriminant rule that is used in 2D.