Functions of a single or multiple real variables have important extrema points that characterise the function, called maxima and minima. Formally, let’s set up some definitions. Let be an interval and be a function. A point is:
- A local maximum if there exists a neighbourhood of such that for all points in the neighbourhood.
- A strict local maximum if the neighbourhood is such that for all .
- A global maximum if for every , i.e., it is the highest peak
- A local minimum if there exists a neighbourhood of such that for all points in the neighbourhood.
- A global minimum if for every , i.e., it is the lowest trough.
Finding the extrema and other related characteristics of a function forms a primitive but usable example of mathematical programming (optimisation).
Definitions and theorems
We should set up a few more definitions. For an interval , a function is:
- Monotonically increasing if for every with , then .
- Monotonically decreasing if for every with , then .
- Constant if there exists such that .
If is increasing on , then is concave up. If is decreasing on , then is concave down. Then, if is continuous and changes concavity at , then it has an inflection point.
The extreme value theorem tells us that a continuous function on an interval has an absolute maximum and minimum value on that interval. Intuitively this makes a ton of sense.
Single-variable case
By theorem, the first derivative test tells us that if is differentiable at a point , and is a local extrema for , then . If is twice differentiable at , then if is a local maximum and if is a local minimum.
By the second derivative test, if , then it is concave up. If , then it is concave down on the interval. If , then has a local minimum at . If , then it has a local maximum at .
Multivariable case
In the multivariable case, if the first partial derivatives are equal to 0, we have a critical point.
Lagrange multipliers are a common method for solving multivariable optimisation problems that are constrained.