This page assumes nothing. Every squiggle in the parent note is built here from the ground up, in an order where each symbol is earned before the next one uses it. Read top to bottom.
The picture.R1 is a line. R2 is a flat sheet — a point is (x1,x2), an address "go right x1, go up x2". R3 is space around you. Beyond 3 we can't draw it, but the rules stay identical, so we picture R2 and trust it.
Why the topic needs it. Optimization asks "which point is best?" — you cannot ask that until you know what a "point" is and what "space" it lives in. Everything else is decoration on top of Rn.
Before any "θx+(1−θ)y" makes sense, we must know what it means to stretch a point and to add two points. These two operations are the whole grammar of Rn.
What it looks like — read the figure. The figure shows x scaled to 21x (shorter, same direction), and two arrows added tip-to-tail. Once you can stretch and add, you can build any mix θx+(1−θ)y: scale x by θ, scale y by 1−θ, then add the two scaled arrows.
Why the topic needs it. Every convex combination, every gradient step, every chord is literally "scale, then add." These are the only two moves; the rest of the chapter just chooses clever numbers to scale by.
Now the single most important construction of the entire chapter: the line segment between two points, written with a knob θ you can slide. It is built purely from the scale-and-add operations of Section 1.
What it looks like — read the figure. As θ slides from 0 to 1:
at θ=0: the point is 0⋅x+1⋅y=y (you're standing on y),
at θ=1: the point is 1⋅x+0⋅y=x (you've walked to x),
at θ=21: the point is 21x+21y, the exact midpoint.
So the formula traces the straight segment from y to x, and θ is your position along it. The two weights θ and 1−θ always add to 1 — that "adds to 1" is exactly what keeps you on the segment and never off it.
Why the topic needs it. "No dents, no holes" has to be said in symbols. The only tool for that is: pick two points, walk the straight segment between them, ask whether the segment stays inside. That question is convexity.
The parent writes half-spaces like {x:a⊤x≤b}. That needs three new symbols: a⊤, the dot product, and ≤ used on a whole expression.
What it looks like. Fix the arrow a. The equation a⊤x=b (for a fixed number b) draws a flat wall — a line in 2-D, a plane in 3-D — sitting perpendicular ("at right angles") to a. Sliding b up and down shifts that wall parallel to itself. See the figure: the arrow a points across the wall, and a⊤x measures how far along a's direction the point x has travelled.
Why the topic needs it. A half-space is the simplest possible convex region with a flat boundary. Stack ("intersect") many of them and you carve out a polyhedron — the feasible region of every linear program. So a⊤x≤b is the atom that convex feasible regions are built from. The dot product also returns in norms and inner products and in the gradient (Section 6).
What it looks like.{x:∥x∥≤r} = "all points within distance r of the centre" = a filled ball (a disk in 2-D). {x:∥x∥=r} = "points at exactly distance r" = the rim only. Same r, wildly different sets — the filled disk is convex, the rim is not.
Why the topic needs it. Balls are the standard example of a convex set, and the norm function f(x)=∥x∥ is the standard example of a convex function built from the triangle inequality:
∥u+v∥≤∥u∥+∥v∥("a detour is never shorter than going straight").
This is the picture behind "every norm is convex," and it links straight to Norms and Inner Products.
What it looks like — read the figure. Pick two points on a bowl-shaped graph and draw the chord between them. For a convex function the chord sits on or above the curve (the bowl never bulges up past its own strings). The epigraph — the sand above the curve — is then a dent-free region, i.e. a convex set. That is the deep secret of the whole topic: a function is convex exactly when its "above-region" is a convex set. One idea wearing two hats.
Why the topic needs it. This inequality is the engine of the whole chapter: it forces "no fake dips," which is why a convex function has exactly one bottom.
To test convexity by calculus we need "slope" and "curvature" for landscapes.
Why a second derivative and not the first? Convexity is about bending, not about tilting. A straight ramp tilts (f′=0) but doesn't bend (f′′=0) — and a ramp is convex. Only the second derivative sees the bend, which is exactly what "bowl-shaped" means. That's why the curvature test uses f′′, not f′.
This is why the first-order convexity test f(y)≥f(x)+∇f(x)⊤(y−x) looks the way it does: the right-hand side is the flat tangent plane's prediction, and convex means the true surface always sits above that flat prediction. It's also the object Gradient Descent follows downhill (walk against∇f).
Why the topic needs it. In more than one dimension a surface can curve up along one axis and down along another (a saddle). A single number can't capture that; the Hessian and the test ⪰0 can, direction by direction, through v⊤Mv.