Optimisation: maxima, minima and gradient methods
गेट DA160 मिनट में पढ़ें
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.
आपने इस नोट का मुफ़्त 27% हिस्सा पढ़ लिया
आगे पढ़ने के लिए Google से साइन इन करें। यह मुफ़्त है, एक टैप में होता है, और साथ में मिलता है:
- इस नोट से 7 अभ्यास सवाल
- हर नोट पूरा, साथ में PDF लाइब्रेरी
- आधिकारिक पिछले पेपर समय-सीमा वाले टेस्ट की तरह, व्याख्या के साथ
- डाउट के लिए AI ट्यूटर, हिंदी या अंग्रेज़ी में
- आपकी प्रगति, गलतियाँ और स्टडी प्लान हर डिवाइस पर सेव