Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Flat at the top, flat at the bottom
Walk over a hill. Going up, the ground slopes up; going down, it slopes down. At the very top, for an instant, it’s flat. The same happens at the bottom of a valley. So to find the highest or lowest point, look for where the slope is zero. These are the critical points.
But flat doesn’t tell you which: the top of a hill and the bottom of a bowl are both flat. Check whether the ground curves like a cup (a minimum) or a cap (a maximum).
Engineers constantly ask “what’s the best?”: the lightest beam that won’t break, the antenna angle with the strongest signal, the fuel burn that maximizes a spacecraft’s range. Each of these, at its heart, is “find where the derivative is zero”.
- 1. At the very top of a smooth hill, the slope is…
- 2. A cup shape has its flat point at a…
- 3. With 20 m of fence, which rectangle encloses the most area?
Level 1: Beginner
★★☆☆☆ Basic⏱ 15 minSecondary-school mathematics: arithmetic and elementary algebra.The recipe
- Solve for the critical points.
- Classify each one with the second derivative: means a cup, so a local min; means a cap, so a local max; means the test is inconclusive.
Example. For : gives . Then , so (a local min, ) and (a local max, ).
Example. For : gives . Since , this is a minimum, with value .
- 1. The critical point of x² − 6x?
- 2. x³ − 3x at x = 1 is a…
- 3. f″(c) < 0 at a critical point means…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.Global extremes on
By the extreme value theorem (A3.1-1), a continuous has a global max and min on . They occur at critical points or at the endpoints. So you compare at all of them (the closed-interval method). On , the maximum of is at the endpoint (value 8.125), not at the local max (value 2).
When the second-derivative test is silent
, and all have , but they give a min, a max and neither. Use the first-derivative test instead: does change sign from − to + (a min) or from + to − (a max)?
Convexity makes everything easy
If everywhere ( is convex), then any critical point is a global minimum. This is the single most important fact in optimization (A6), and the reason convex problems are “solved”.
Classic problems
| Problem | Objective | Answer |
|---|---|---|
| box from a 30 × 30 sheet | , | |
| best constant estimate | the mean | |
| robust estimate | the median (not differentiable at the data points) | |
| fence enclosure, perimeter | a square |
- 1. Minimizing Σ(x − aᵢ)² gives…
- 2. Global extremes on [a, b] can occur at…
- 3. f″ ≥ 0 everywhere means every critical point is…
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.Why the second-derivative test works
If and , then is increasing near . So just left of and just right of it. By the MVT, decreases and then increases, so is a strict local min. ∎ Equivalently, Taylor’s theorem (A3.1-10) gives , which is positive near .
Convexity, three ways
For twice-differentiable , these are equivalent:
- (chords lie above the graph; Jensen, A1).
- (tangents lie below the graph).
- ( is non-decreasing).
Form 2 gives the key theorem at once: if , then for all . ∎
Inflection points are where the concavity changes. has one at , where changes sign.
Exercise 3.1: Why does minimizing Σ|x − aᵢ| give the median?
For not equal to any data point, the derivative is (number of points below ) − (number above). It is negative until half the points are below and positive after. So the minimum is where the count balances: the median.
- 1. Where is the inflection point of x³ − 3x?
- 2. Is eˣ convex?
- 3. For a convex differentiable f, the tangent line…
Level 4: Expert
★★★★★ Expert⏱ 40 minResearchers: original papers and open problems.Fermat’s principle: optimization rediscovers physics
Light takes the path of least time (Fermat, 1662). A robot crossing from pavement (fast) to grass (slow) faces the same problem. Minimizing the travel time over the crossing point, and setting , gives Snell’s law . Path planners for mixed terrain (planetary rovers on sand and rock) use exactly these cost-weighted optimal paths.
One-dimensional optimization inside big optimizers
- Line search. Most multivariable optimizers choose a direction, then solve a 1-D problem along it. Exact search (golden section, Brent’s method; Brent, 1973) or inexact search with the Armijo/Wolfe conditions (Armijo, 1966; Wolfe, 1969) is standard in L-BFGS and robot trajectory optimizers.
- Newton’s method for optimization, , converges quadratically near a minimum. But it heads for any critical point: started near a maximum, it converges to the maximum (Practice Code 4). Practical versions check or use trust regions.
- Learning-rate selection is a 1-D optimization problem. “LR range tests” sweep it and look for the steepest loss decrease (Smith, 2017).
- Robust statistics. Choosing squared vs absolute (or Huber) loss changes the optimum from the mean to the median. This matters with outlier sensor readings (Huber, 1964).
References
- P. de Fermat (c. 1636). Methodus ad disquirendam maximam et minimam. Fermat’s principle of least time: letter of 1662.
- J. Kiefer (1953). “Sequential minimax search for a maximum.” Proceedings of the AMS, 4(3). (Golden-section/Fibonacci search.)
- P. Huber (1964). “Robust estimation of a location parameter.” Annals of Mathematical Statistics, 35(1).
- L. Armijo (1966). “Minimization of functions having Lipschitz continuous first partial derivatives.” Pacific Journal of Mathematics, 16(1).
- P. Wolfe (1969). “Convergence conditions for ascent methods.” SIAM Review, 11(2).
- R. Brent (1973). Algorithms for Minimization without Derivatives. Prentice-Hall.
- J. Nocedal, S. Wright (2006). Numerical Optimization, 2nd ed. Springer. Chapter 3.
- L. Smith (2017). “Cyclical learning rates for training neural networks.” WACV.