4.10.17 · Maths › Advanced Topics (Elite Level)
Intuition Bada picture (WHY convexity matter karta hai)
Optimization mein hum ek region ke upar ek function ko minimize karna chahte hain. Sabse bada darr yeh hai ki hum ek local minimum mein fas jaayein jo global minimum nahi hai. Convexity woh geometric property hai jo local minima ko khatam karti hai : agar region AUR function dono "bowl-shaped" hain — koi dent nahi — toh har local minimum automatically global minimum hota hai. Yahi ek fact hai jiske wajah se convex problems woh hain jo hum actually reliably aur bade scale par solve kar sakte hain.
Ek set C ⊆ R n convex hai agar har do points x , y ∈ C aur har θ ∈ [ 0 , 1 ] ke liye:
θ x + ( 1 − θ ) y ∈ C .
Simple shabdon mein: set ke kisi bhi do points ko milane wala poora line segment set ke andar hi rehta hai .
WHAT hai θ x + ( 1 − θ ) y ? Jaise-jaise θ 0 se 1 tak jaata hai, yeh point y (jab θ = 0 ) se x (jab θ = 1 ) tak seedhe segment par chalata hai. Yeh do points ka convex combination hai.
WHY yeh definition? "Koi dent nahi, koi hole nahi." Ek disk convex hai; ek crescent moon nahi hai (ek chord bahar ja sakta hai). Ek donut nahi hai (ek chord hole se cross karta hai).
Worked example Convexity test karna
Convex: R n , koi bhi line, koi bhi ball { x : ∥ x − c ∥ ≤ r } , koi bhi half-space { x : a ⊤ x ≤ b } , koi bhi hyperplane.
Not convex: unit circle { x : ∥ x ∥ = 1 } (do points ke beech ka segment andar dip karta hai, circle ko chhodkar); set { x : ∥ x ∥ ≥ 1 } (ek ball ka exterior).
Why ek half-space convex hai (step): lo x , y jahan a ⊤ x ≤ b , a ⊤ y ≤ b . Toh a ⊤ ( θ x + ( 1 − θ ) y ) = θ a ⊤ x + ( 1 − θ ) a ⊤ y ≤ θ b + ( 1 − θ ) b = b . ✔ — Why yeh step? a ⊤ ( ⋅ ) ki linearity inequality ko seedha convex combination ke through jaane deti hai.
Definition Convex function
f : R n → R convex hai agar uska domain ek convex set hai aur sabhi x , y aur θ ∈ [ 0 , 1 ] ke liye:
f ( θ x + ( 1 − θ ) y ) ≤ θ f ( x ) + ( 1 − θ ) f ( y ) .
Matlab: graph par do points ke beech ka chord (seedhi line) graph ke upar ya uspe hi rehta hai . Strictly convex agar x = y , θ ∈ ( 0 , 1 ) ke liye "< " ho. Concave = − f convex hai (chord neeche).
WHY yeh inequality? LHS = function ki actual height midpoint-jaisi jagah par. RHS = wahan chord ki height. Convex matlab bowl apne khud ke chords ke upar kabhi bulge nahi karta.
Intuition Dono definitions ke beech ka link
Ek function convex hota hai iff uska epigraph epi ( f ) = {( x , t ) : t ≥ f ( x )} — graph ke upar ya uspar sab kuch — ek convex set hai. Toh convex functions simply woh functions hain jinka "upar-wala region" ek convex set hai. Ek concept, do chehra.
Worked example Functions ko classify karna
f ( x ) = x 2 : f ′′ = 2 ≥ 0 → convex. ✔
f ( x ) = e x : f ′′ = e x > 0 → strictly convex.
f ( x ) = log x : f ′′ = − 1/ x 2 < 0 → concave.
f ( x ) = ∥ x ∥ (koi bhi norm): triangle inequality se convex. Step: ∥ θ x + ( 1 − θ ) y ∥ ≤ θ ∥ x ∥ + ( 1 − θ ) ∥ y ∥ . Why? triangle ineq + absolute homogeneity. (0 par differentiable nahi — isliye humne definition use ki, Hessian nahi.)
f ( x , y ) = x 2 + y 2 : Hessian = ( 2 0 0 2 ) ⪰ 0 → convex.
Common mistake Classic errors ko steel-man karna
Mistake 1: "Boundary circle ∥ x ∥ = 1 convex hai kyunki circle round hoti hai."
Kyun sahi lagta hai: "round = koi corner nahi = convex." Fix: convexity filled region ke baare mein hai, na boundary curve ke baare mein. Closed disk ∥ x ∥ ≤ 1 convex hai; circle (sirf rim) nahi hai — ek chord khaali middle se guzarta hai. Convexity ≠ smoothness.
Mistake 2: "f convex ke liye f ′′ > 0 (strict) chahiye."
Kyun sahi lagta hai: parabolas mein f ′′ = 2 > 0 hota hai. Fix: convex ko sirf f ′′ ≥ 0 chahiye. Ek straight line (f ′′ = 0 ) convex hai (aur concave bhi!). Aur doosri taraf bhi dhyan rakho: f ′′ > 0 har jagah strict convexity ke liye sufficient hai lekin necessary nahi — jaise f ( x ) = x 4 strictly convex hai even though f ′′ ( 0 ) = 0 . Strict convexity chord inequality "< " wali hai, jo x 4 satisfy karta hai.
Mistake 3: "Ek convex aur ek concave function ka sum... kuch achha hota hai."
Kyun sahi lagta hai: symmetry. Fix: convex + convex = convex (chords add hote hain), lekin convex + concave kuch bhi ho sakta hai. Convexity sirf nonnegative combinations se preserve hoti hai: ∑ α i f i , α i ≥ 0 .
Recall Feynman: 12-saal ke bachche ko explain karo
Socho ek skate ramp jo bowl ki shape mein hai. Koi bhi marble andar kahin bhi giraa do — woh hamesha ek hi sabse neeche wale point par aata hai. Yahi convex function hai: sirf ek bottom hai, isliye tum kabhi ek nakli "low spot" par nahi rukoge. Ek convex set woh region hai jisme koi dent nahi, koi hole nahi: koi bhi do jagah chuno usme, unke beech seedha string kheecho, string kabhi region se bahar nahi jaayegi. Optimization hai "bottom dhundo"; convexity guarantee karta hai ki bottom dhoondna aasaan hai aur sirf ek hi hai.
"Chord upar, set beech mein, tangent neeche."
Convex function : chord graph ke upar rehta hai.
Convex set : segment beech mein rehta hai (andar).
First-order: tangent graph ke neeche rehti hai.
Linear Programming — feasible region = half-spaces ka intersection = convex polyhedron.
Gradient Descent — ek convex objective ke liye yeh global min par converge karta hai (na ki local par), provided usual algorithmic conditions hold karein: sensible step-size rule aur smoothness/Lipschitz-gradient assumptions. Convexity local-min traps hataati hai; yeh akele convergence guarantee nahi karta.
Lagrange Multipliers and KKT Conditions — KKT convexity ke under sufficient ban jaata hai (sirf necessary nahi).
Positive Definite Matrices — Hessian test ∇ 2 f ⪰ 0 .
Jensen's Inequality — convexity inequality ko expectations tak generalize kiya.
Norms and Inner Products — har norm ek convex function hai.
Ek convex set define karo. Sabhi x , y ∈ C , θ ∈ [ 0 , 1 ] ke liye, θ x + ( 1 − θ ) y ∈ C — poora segment andar rehta hai.
Ek convex function define karo. f ( θ x + ( 1 − θ ) y ) ≤ θ f ( x ) + ( 1 − θ ) f ( y ) ; chord graph ke upar/uspar rehta hai.
Convex set aur convex function ke beech geometric link kya hai? f convex ⟺ uska epigraph {( x , t ) : t ≥ f ( x )} ek convex set hai.
First-order convexity condition kya hai? f ( y ) ≥ f ( x ) + ∇ f ( x ) ⊤ ( y − x ) — graph har tangent ke upar rehta hai.
Second-order convexity condition kya hai? Hessian ∇ 2 f ( x ) ⪰ 0 sabhi x ke liye (1-D mein: f ′′ ≥ 0 ).
Convexity global minima kyun guarantee karta hai? Paas mein ek better point + segment-staying-inside + chord inequality local-minimality ka contradiction karta hai, isliye local = global.
Kya circle ∥ x ∥ = 1 convex hai? Nahi — ek chord khaali interior se guzarta hai. Closed disk ∥ x ∥ ≤ 1 convex hai.
Sets ki convexity kya preserve karta hai? Intersection aur affine images (aur isliye polyhedra { x : A x ≤ b } ).
Functions ki convexity kya preserve karta hai? Nonnegative weighted sums, convex functions ka max, affine map ke saath composition.
Kya strict convexity ke liye f ′′ > 0 har jagah zaroori hai? Nahi — f ′′ > 0 har jagah sufficient hai lekin necessary nahi; jaise x 4 strictly convex hai lekin f ′′ ( 0 ) = 0 . Non-strict convex ko sirf f ′′ ≥ 0 chahiye.
Every local min is global
Reliable large-scale solving