Maxima, Minima and Single-Variable Optimization
Critical points, the first, second and higher-order derivative tests, global extrema on closed intervals, concavity, convexity and inflection points, why convexity guarantees global optima, applied optimisation problems, and the algorithms of data science — gradient descent (with learning-rate analysis), Newton's method and bracketing methods — plus maximum likelihood as an optimisation problem.
Critical points
has a local maximum at if for all near (similarly for a local minimum). Fermat's theorem: if has a local extremum at an interior point and is differentiable there, then .
Critical points are where (stationary points) or does not exist. Every interior extremum is a critical point, but not every critical point is an extremum ( at 0).
Tests for local extrema
First-derivative test — look at the sign of around :
| Sign of left → right | Conclusion |
|---|---|
| local maximum | |
| local minimum | |
| no change | neither (e.g. a stationary inflection) |
Second-derivative test at a stationary point ():
| Conclusion | |
|---|---|
| local minimum (concave up) | |
| local maximum (concave down) | |
| inconclusive |
Higher-order test: if and : for even , a minimum if and a maximum if ; for odd , neither (inflection). This follows from the Taylor expansion .
Global extrema on a closed interval
A continuous function on attains its global max and min (extreme value theorem). Closed-interval method:
- Find all critical points in .
- Evaluate at those points and at the endpoints .
- The largest value is the global maximum; the smallest is the global minimum.
Concavity, convexity and inflection points
- Convex (concave up) on : — every chord lies above the graph. For twice-differentiable : on . Equivalently, the graph lies above every tangent line: .
- Concave: convex; .
- Inflection point: where concavity changes ( changes sign).
Why convexity matters: for a convex function, every local minimum is global, and a stationary point is a global minimiser. Linear regression's squared loss, logistic regression's log-loss, the SVM hinge loss and L1/L2 penalties are convex; neural network losses are not.
Useful facts: , , , , are convex; non-negative weighted sums and maxima of convex functions are convex; a convex function of an affine function is convex.
Applied optimisation problems
Optimisation algorithms
Gradient descent
Move downhill by a step proportional to the slope. The learning rate controls everything:
- too small → slow convergence;
- too large → oscillation or divergence;
- for : , converging iff ; is optimal.
For general smooth convex with , the step size guarantees steady decrease. Variants: stochastic gradient descent (gradient from a random mini-batch), momentum, adaptive methods (Adam). See neural networks.
Newton's method
Minimise the local quadratic model :
It is Newton's root-finding method applied to . It converges quadratically near a minimiser with (the number of correct digits roughly doubles each step) and minimises a quadratic in one step, but each step needs , and it can head to a maximum or diverge if or the start is poor.
Bracketing methods
Without derivatives: golden-section search shrinks an interval containing the minimum of a unimodal function by the factor 0.618 per step; bisection on halves an interval where changes sign.
Optimisation in statistics and ML
- Maximum likelihood: maximise ; logs turn products into sums and keep the same maximiser. Bernoulli: successes/trials; exponential: .
- Least squares: minimising over gives ; minimising gives the median.
- Regularisation trades fit against complexity: minimising gives — shrinkage, the one-dimensional picture of ridge regression.
Quick revision
Practice questions
GATE-style questions: 2 one-mark and 9 two-mark. Wrong MCQs cost ⅓ of their marks in the real exam; MSQ and NAT have no negative marking. Attempt each before opening the solution.
The local minimum value of is ______.
The maximum value of for is ______ (round to two decimals).
The maximum value of on the closed interval is ______.
At a critical point of a twice-differentiable function, and . Then
Gradient descent with learning rate is applied to starting from . The value of (after two updates) is ______.
Newton's method for minimising is started at . The next iterate is ______ (round to two decimals).
Which statements about convex functions on are true?
One or more options are correct.
Among all rectangles with perimeter 20, the maximum possible area is ______.
Gradient descent on converges to the minimiser from every starting point if and only if
The -coordinate of the point of inflection of is ______.
In 10 independent Bernoulli trials, 7 successes are observed. The value of that maximises the likelihood is ______.