You only need to spot stationary points and read a graph.
Recall Solution L1.1
What we do: find where the slope is flat. Why: an interior optimum forces f′=0.
f′(x)=2x−6. Set 2x−6=0⇒x=3.
The stationary point is x=3 (and f(3)=9−18+5=−4).
Recall Solution L1.2
(a) f′=2x, at 0 gives 0 — yes (a minimum).
(b) f′=3x2, at 0 gives 0 — yes (but an inflection, not an extremum).
(c) f′=−sinx, at 0 gives 0 — yes (a maximum, since cos0=1 is the peak).
(d) ∇f=(2x,−2y), at (0,0) gives 0 — yes (a saddle).
All four are stationary; only some are extrema — exactly the FONC warning.
Recall Solution L1.3
False.f′(a)=0 is necessary for an interior optimum, not sufficient. Counterexample f(x)=x3 at a=0: flat but neither max nor min.
Now compute gradients and solve for the candidates.
Recall Solution L2.1
f′(x)=3x2−6x−9=3(x2−2x−3)=3(x−3)(x+1).
Set =0⇒x=3 or x=−1.
Two stationary points: x=−1 and x=3.
Recall Solution L2.2
∇f=(2x−4,2y+6). Set each to zero:
2x−4=0⇒x=2; 2y+6=0⇒y=−3.
Stationary point (2,−3), with f(2,−3)=4+9−8−18+13=0.
Recall Solution L2.3
∇f=(2x+y,x+2y−3). Solve the system
2x+y=0,x+2y−3=0.
From the first, y=−2x. Substitute: x+2(−2x)−3=0⇒−3x−3=0⇒x=−1, so y=2.
Stationary point (−1,2); f(−1,2)=1−2+4−6=−3. ✓
Combine FONC with proof, constraints, and algorithm.
Recall Solution L4.1
Errors: at the three points mxi+b−yi equals b−1, m+b−3, 2m+b−2.
S=(b−1)2+(m+b−3)2+(2m+b−2)2.
Why FONC: the minimum of this smooth bowl is interior, so ∇S=0.
∂m∂S=2(m+b−3)+2⋅2(2m+b−2)=2(5m+3b−7)=0,∂b∂S=2(b−1)+2(m+b−3)+2(2m+b−2)=2(3m+3b−6)=0.
System: 5m+3b=7 and 3m+3b=6. Subtract: 2m=1⇒m=21. Then 3(21)+3b=6⇒3b=4.5⇒b=1.5.
Best-fit line y=21x+23. (This is exactly the least-squares normal-equation logic.)
Recall Solution L4.2
(a) Substitute y=1−x: g(x)=x2+(1−x)2=2x2−2x+1. g′(x)=4x−2=0⇒x=21, so y=21, f=41+41=21.
(b) Lagrangian L=x2+y2−λ(x+y−1). FONC on L: 2x−λ=0,2y−λ=0⇒x=y. With x+y=1: x=y=21. Same answer f=21.
The boundary gradient does not vanish here — the constraint λ absorbs the leftover slope, which is exactly why plain FONC fails on constrained problems.
Recall Solution L4.3
∇f=(2x,6y); at (2,1) it is (4,6). Descent rule: xnew=xold−η∇f.
xnew=2−0.1⋅4=1.6, ynew=1−0.1⋅6=0.4.
New point (1.6,0.4). The stationary point is (0,0) where ∇f=0; distance dropped from 5≈2.236 to 1.62+0.42=2.72≈1.649. Closer. ✓
Left, h→0−: numerator ≤0, denominator <0 ⟹ quotient ≥0 ⟹ f′(x∗)≥0.
Both ⟹ f′(x∗)=0. The differentiability makes the two one-sided limits equal, and we trapped that common value at 0. ■
Recall Solution L5.2
Recall Duf(x∗)=∇f(x∗)⋅u (the directional derivative).
Take u=+∇f/∥∇f∥. Then Duf=∥∇f∥>0, so fincreases along u — beats a maximum.
Take u=−∇f/∥∇f∥. Then Duf=−∥∇f∥<0, so fdecreases — beats a minimum.
Since we can strictly improve in both the max sense and the min sense, x∗ is neither. Contrapositive: any interior extremum has ∇f=0. ■
Recall Solution L5.3
∇f=(4x3,4y3)=0 only at (0,0).
Second slopes: fxx=12x2,fyy=12y2,fxy=0; at origin all are 0, so D=0 — the test fails.
But directly f(x,y)=x4+y4≥0=f(0,0) for all (x,y), with equality only at the origin. So (0,0) is a strict global minimum. The moral: when D=0, fall back to inspecting the function itself.
Recall Solution L5.4
Let x∗ be stationary, ∇f(x∗)=0. Plug x=x∗ into the convexity inequality:
f(y)≥f(x∗)+=0∇f(x∗)⋅(y−x∗)=f(x∗)for all y.
Hence f(y)≥f(x∗) everywhere — a global minimum. This is why convexity turns the mere shortlist "stationary" into the guaranteed winner. ■
Recall Feynman check: what did this whole page really teach?
FONC (∇f=0) is a net that catches every interior peak, valley, and saddle. Levels 1–2 taught you to cast the net (solve the system). Level 3 taught you to sort the catch (Hessian D). Level 4 handled fish that swim near walls (constraints, algorithms). Level 5 proved why the net works and when the sort fails. Flat is a finalist — the Hessian, convexity, or direct inspection crowns the winner.