∑GATE DA Atlas

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.

Section 311 practice questions

Critical points

ff has a local maximum at cc if f(c)≥f(x)f(c) \ge f(x) for all xx near cc (similarly for a local minimum). Fermat's theorem: if ff has a local extremum at an interior point cc and is differentiable there, then f′(c)=0f'(c) = 0.

Critical points are where f′(c)=0f'(c) = 0 (stationary points) or f′(c)f'(c) does not exist. Every interior extremum is a critical point, but not every critical point is an extremum (x3x^3 at 0).

Tests for local extrema

First-derivative test — look at the sign of f′f' around cc:

Sign of f′f' left → rightConclusion
+→−+ \to -local maximum
−→+- \to +local minimum
no changeneither (e.g. a stationary inflection)

Second-derivative test at a stationary point (f′(c)=0f'(c) = 0):

f′′(c)f''(c)Conclusion
>0> 0local minimum (concave up)
<0< 0local maximum (concave down)
=0= 0inconclusive

Higher-order test: if f′(c)=⋯=f(n−1)(c)=0f'(c) = \dots = f^{(n-1)}(c) = 0 and f(n)(c)≠0f^{(n)}(c) \ne 0: for even nn, a minimum if f(n)(c)>0f^{(n)}(c) > 0 and a maximum if <0< 0; for odd nn, neither (inflection). This follows from the Taylor expansion f(c+h)−f(c)≈f(n)(c)n!hnf(c + h) - f(c) \approx \frac{f^{(n)}(c)}{n!}h^n.

Global extrema on a closed interval

A continuous function on [a,b][a, b] attains its global max and min (extreme value theorem). Closed-interval method:

  1. Find all critical points in (a,b)(a, b).
  2. Evaluate ff at those points and at the endpoints a,ba, b.
  3. The largest value is the global maximum; the smallest is the global minimum.

Concavity, convexity and inflection points

  • Convex (concave up) on II: f(λx+(1−λ)y)≤λf(x)+(1−λ)f(y)f(\lambda x + (1 - \lambda)y) \le \lambda f(x) + (1 - \lambda)f(y) — every chord lies above the graph. For twice-differentiable ff: f′′≥0f'' \ge 0 on II. Equivalently, the graph lies above every tangent line: f(y)≥f(x)+f′(x)(y−x)f(y) \ge f(x) + f'(x)(y - x).
  • Concave: −f-f convex; f′′≤0f'' \le 0.
  • Inflection point: where concavity changes (f′′f'' changes sign).
chord abovetangent below convex: f″ ≥ 0 chord below concave: f″ ≤ 0
Convex functions have no spurious local minima — the reason convex losses are easy to optimise.

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: exe^x, x2x^2, ∣x∣\lvert x\rvert, −ln⁡x-\ln x, xln⁡xx\ln x 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

xk+1=xk−η f′(xk).x_{k+1} = x_k - \eta\,f'(x_k).

Move downhill by a step proportional to the slope. The learning rate η\eta controls everything:

  • too small → slow convergence;
  • too large → oscillation or divergence;
  • for f(x)=L2(x−x∗)2f(x) = \frac L2(x - x^*)^2: xk+1−x∗=(1−ηL)(xk−x∗)x_{k+1} - x^* = (1 - \eta L)(x_k - x^*), converging iff 0<η<2/L0 < \eta < 2/L; η=1/L\eta = 1/L is optimal.

For general smooth convex ff with ∣f′′∣≤L\lvert f''\rvert \le L, the step size η≤1/L\eta \le 1/L guarantees steady decrease. Variants: stochastic gradient descent (gradient from a random mini-batch), momentum, adaptive methods (Adam). See neural networks.

small η: steady descent η near 2/L: zig-zag
The step size must respect the curvature.

Newton's method

Minimise the local quadratic model f(xk)+f′(xk)h+12f′′(xk)h2f(x_k) + f'(x_k)h + \frac12f''(x_k)h^2:

xk+1=xk−f′(xk)f′′(xk).x_{k+1} = x_k - \frac{f'(x_k)}{f''(x_k)}.

It is Newton's root-finding method applied to f′f'. It converges quadratically near a minimiser with f′′>0f'' > 0 (the number of correct digits roughly doubles each step) and minimises a quadratic in one step, but each step needs f′′f'', and it can head to a maximum or diverge if f′′≤0f'' \le 0 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 f′f' halves an interval where f′f' changes sign.

Optimisation in statistics and ML

  • Maximum likelihood: maximise ℓ(θ)=∑ln⁡f(xi;θ)\ell(\theta) = \sum\ln f(x_i;\theta); logs turn products into sums and keep the same maximiser. Bernoulli: p^=\hat p = successes/trials; exponential: λ^=1/xˉ\hat\lambda = 1/\bar x.
  • Least squares: minimising ∑(yi−c)2\sum(y_i - c)^2 over cc gives c=yˉc = \bar y; minimising ∑∣yi−c∣\sum\lvert y_i - c\rvert gives the median.
  • Regularisation trades fit against complexity: minimising (x−a)2+λx2(x - a)^2 + \lambda x^2 gives x=a1+λx = \frac{a}{1 + \lambda} — 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.

Q1NAT1 mark

The local minimum value of f(x)=x3−3x2+2f(x) = x^3 - 3x^2 + 2 is ______.

Q2NAT2 marks

The maximum value of f(x)=xe−xf(x) = x e^{-x} for x≥0x \ge 0 is ______ (round to two decimals).

Q3NAT2 marks

The maximum value of f(x)=x3−6x2+9x+1f(x) = x^3 - 6x^2 + 9x + 1 on the closed interval [0,5][0, 5] is ______.

Q4MCQ1 mark

At a critical point cc of a twice-differentiable function, f′(c)=0f'(c) = 0 and f′′(c)=0f''(c) = 0. Then cc

Q5NAT2 marks

Gradient descent with learning rate η=0.25\eta = 0.25 is applied to f(x)=(x−3)2f(x) = (x - 3)^2 starting from x0=0x_0 = 0. The value of x2x_2 (after two updates) is ______.

Q6NAT2 marks

Newton's method for minimising f(x)=x44−xf(x) = \frac{x^4}{4} - x is started at x0=2x_0 = 2. The next iterate x1x_1 is ______ (round to two decimals).

Q7MSQ2 marks

Which statements about convex functions on R\mathbb R are true?

One or more options are correct.

Q8NAT2 marks

Among all rectangles with perimeter 20, the maximum possible area is ______.

Q9MCQ2 marks

Gradient descent xk+1=xk−ηf′(xk)x_{k+1} = x_k - \eta f'(x_k) on f(x)=(x−3)2f(x) = (x - 3)^2 converges to the minimiser from every starting point if and only if

Q10NAT2 marks

The xx-coordinate of the point of inflection of f(x)=x3−6x2+4f(x) = x^3 - 6x^2 + 4 is ______.

Q11NAT2 marks

In 10 independent Bernoulli trials, 7 successes are observed. The value of pp that maximises the likelihood L(p)=p7(1−p)3L(p) = p^7(1 - p)^3 is ______.