4.10.17 · D3Advanced Topics (Elite Level)

Worked examples — Convex optimization — convex sets, convex functions

3,041 words14 min readBack to topic

The scenario matrix

Cell Case class What makes it tricky Example
A Convex set, prove by definition must handle the general segment, all Ex 1
B Not convex set — build the counterexample must exhibit specific that escape Ex 2
C 1-D function, smooth, test sign of , and the edge case Ex 3
D 1-D function, non-smooth (kink) — no Hessian must fall back on the definition Ex 4
E Multivariable, Hessian PSD test, all cases eigenvalues / definiteness incl. degenerate Ex 5
F Composition / combination rules which operations preserve convexity Ex 6
G Real-world word problem (optimization) translate words → convex program, use global-min theorem Ex 7
H Exam twist — a false-looking claim to disprove limiting/degenerate behaviour Ex 8

Figure s01 (below). The violet disk is the ball ; the two navy dots are an arbitrary pair ; the magenta segment joins them; the orange dot is , sitting inside the disk — the picture of step 4. The arrow from the centre marks the radius that step 3 never exceeds.

Figure — Convex optimization — convex sets, convex functions

Figure s02 (below). Only the violet rim is the set (the middle is empty). The magenta chord joins and ; its orange midpoint lands at the origin — a point not on the rim, exactly the escape found in step 3.

Figure — Convex optimization — convex sets, convex functions



Figure s03 (below). A contour map of . The orange dashed line is the flat valley (the zero-eigenvalue direction, where all along); the magenta arrow points uphill along the eigenvalue- direction where curvature is positive. Convex everywhere, but flat along the dashed line — hence not strictly convex.

Figure — Convex optimization — convex sets, convex functions




How the examples tile the matrix

Convexity questions

Sets

Functions

Prove convex - Ex1

Disprove - Ex2

Smooth 1D - Ex3

Non smooth - Ex4

Multivariable Hessian - Ex5

Combination rules - Ex6

Word problem - Ex7

Exam twist - Ex8

Recall Self-check before you move on

Which test do you use when a function has a corner? ::: The definition (chord inequality), because the Hessian test needs twice-differentiability. A Hessian with eigenvalues and means the function is...? ::: Convex but not strictly — flat in the zero-eigenvalue direction (a valley of minima). Product of two convex functions — always convex? ::: No — e.g. is not convex on . Why is the square the cheapest-perimeter rectangle guaranteed global? ::: is strictly convex on , so its unique stationary point is the global min. Precise definition of strictly convex? ::: for all — chord strictly above the graph except at endpoints.


Connections

  • Parent topic — definitions these examples exercise.
  • Norms and Inner Products — the triangle inequality powering Ex 1 and Ex 4.
  • Positive Definite Matrices — the Hessian eigenvalue test of Ex 5.
  • Gradient Descent — Ex 7's convex objective converges globally.
  • Linear Programming — polyhedra as intersections of half-spaces (Ex 6's intersection idea).
  • Jensen's Inequality — the chord inequality of Ex 3/Ex 4 generalised to averages.