Optimisation: maxima, minima and gradient methods
GATE DA160 min read
Critical points and how to classify them
Definitions.
- has a local maximum at if for all near . A global maximum if this holds for all in the domain. Minima are defined the same way.
- A critical point is a where or does not exist.
Fermat's theorem. At an interior local extremum where is differentiable, . The converse is false: has but no extremum there.
First-derivative test. If changes sign from to at , there is a local maximum. From to , a local minimum. If there is no sign change, there is no extremum.
Second-derivative test. At :
- means a minimum;
- means a maximum;
- means the test says nothing.
Higher-order test. Let the first non-zero derivative at be .
- If is even, there is an extremum: a minimum if , a maximum if it is negative.
- If is odd, there is no extremum. The point is a point of inflection.
Example 1.
- at 0: the first non-zero derivative is the fourth, equal to . Minimum.
- at 0: the first non-zero derivative is the third. No extremum.
- : at , and . So is a minimum, with , and is a maximum, with .
Points where does not exist can also be extrema. has its minimum at the corner .
Global extrema on a closed interval
By the extreme value theorem, a continuous function on has a global maximum and minimum. Method: evaluate at every critical point inside and at both endpoints, then compare.
Example 2. on .
- , so the critical points are 0 and 2.
- The values are , , and .
- The global maximum is 16, at (an endpoint). The global minimum is , reached at both and .
Note that the local maximum at 0 is not the global maximum.
Example 3. on .
- at .
- The values are , and .
- The minimum is 2 and the maximum is .
Convexity
Definition. is convex on an interval if the chord between any two points of its graph lies above the graph:
For twice-differentiable , this is the same as . is concave if is convex.
Why convexity matters. For a convex function, every local minimum is a global minimum. If , the minimum is unique. Least squares, ridge regression and logistic regression all have convex losses. Neural network losses do not.
You have read the free 27% of this note
Sign in with Google to keep reading. It is free, takes one tap, and you also get:
- 7 practice questions from this note
- Every note in full, plus the PDF library
- Official past papers as timed tests, with explanations
- An AI tutor for doubts, in Hindi or English
- Your progress, mistakes and study plan saved on every device