定義 ():
設 V {\displaystyle V} 為向量空間,而 f : V → [ − ∞ , ∞ ] {\displaystyle f:V\to [-\infty ,\infty ]} 為一個函式。 f {\displaystyle f} 被稱為凸當且僅當對所有 v , w ∈ V {\displaystyle v,w\in V} 和 t ∈ [ 0 , 1 ] {\displaystyle t\in [0,1]} 以下恆等式成立
直觀地說,這意味著如果給出兩個點 v , w ∈ V {\displaystyle v,w\in V} ,則連線 ( v , f ( v ) ) {\displaystyle (v,f(v))} 到 ( w , f ( w ) ) {\displaystyle (w,f(w))} 的直線位於路徑 t ↦ ( t v + ( 1 − t ) w , f ( t v + ( 1 − t ) w ) ) {\displaystyle t\mapsto (tv+(1-t)w,f(tv+(1-t)w))} 之上。