WHAT is θx+(1−θ)y? As θ sweeps from 0 to 1, this point sweeps along the straight segment from y (at θ=0) to x (at θ=1). It is a convex combination of two points.
WHY this definition? "No dents, no holes." A disk is convex; a crescent moon is not (a chord can poke outside). A donut is not (a chord crosses the hole).
WHY this inequality? LHS = the function's actual height at the midpoint-ish point. RHS = the chord's height there. Convex means the bowl never bulges above its own chords.
Imagine a skate ramp shaped like a bowl. Drop a marble anywhere inside — it always rolls to the same lowest point. That's a convex function: there's just one bottom, so you can never get tricked into stopping at a fake "low spot." A convex set is a region with no dents and no holes: pick any two spots in it, stretch a string straight between them, and the string never leaves the region. Optimization is "find the bottom"; convexity guarantees the bottom is easy to find and there's only one.
Linear Programming — feasible region = intersection of half-spaces = convex polyhedron.
Gradient Descent — for a convex objective it converges to the global min (rather than a local one), provided the usual algorithmic conditions hold: a sensible step-size rule and smoothness/Lipschitz-gradient assumptions. Convexity removes local-min traps; it does not by itself guarantee convergence.
Dekho, convex optimization ka pura funda ek hi line mein hai: agar problem "bowl-shaped" hai, toh local minimum aur global minimum same ho jaate hain. Iska matlab gradient descent jaisa algorithm sahi global answer tak pahunch sakta hai — par yaad rakhna, convexity local-min trap hata deti hai, magar actual convergence ke liye sahi step-size rule aur gradient ki smoothness (Lipschitz) bhi chahiye. Isiliye convex problems woh family hai jise hum reliably solve kar paate hain.
Do cheezein samajhni hain. Pehli — convex set: koi bhi region jismein dent ya hole na ho. Test simple hai: region ke andar koi bhi do points lo, unke beech seedhi line (segment) kheencho — agar line poori region ke andar rahti hai toh set convex hai. Disk convex hai, crescent (chand) ya donut nahi, kyunki chord bahar nikal jaati hai. Half-space aur unka intersection (yani polyhedron Ax≤b) hamesha convex — yahi LP ka feasible region hai.
Doosri — convex function: graph par do points lo, unke beech chord (seedhi line) kheencho. Agar chord hamesha graph ke upar ya barabar rahe, toh function convex hai. Equivalent test: f′′(x)≥0 (multi-dimension mein Hessian PSD, yani ∇2f⪰0). Aur ek khoobsurat property — graph apni har tangent ke upar hota hai: f(y)≥f(x)+∇f(x)⊤(y−x). Isi se proof aata hai ki ∇f=0 matlab global minimum.
Common galti: "circle convex hai kyunki round hai" — galat! Bhari hui disk convex hai, sirf rim (circle) nahi, kyunki chord khaali andar se guzarti hai. Aur convex ke liye sirf f′′≥0 chahiye; strict convexity ke liye f′′>0 "everywhere" zaroori nahi hai — jaise x4 strictly convex hai par f′′(0)=0. Yaad rakhna: chord upar, set beech mein, tangent neeche.