 ## 凸函数
### 一般定义
![[Pasted image 20250410144644.png]]
### 凸集上的定义
![[Pasted image 20250410144830.png]]
![[Pasted image 20250410144900.png]]
## 凹函数
### 一般定义
![[Pasted image 20250410145142.png]]
![[Pasted image 20250410145152.png]]
### 凸集上的定义
![[Pasted image 20250410145304.png]]
![[Pasted image 20250410145315.png]]
## 问题
![[Pasted image 20250410145411.png]]
## 严格凸函数
![[Pasted image 20250410145522.png]]
## 严格凹函数
![[Pasted image 20250410145650.png]]
## 定理
1. ***任意有限多个凸函数的非负线性组合仍然是凸的***
![[Pasted image 20250410150319.png]]
2. ***函数为凸当且仅当限制在某一线段上凸***
![[Pasted image 20250410150830.png]]
3. 凸集上函数为凸当且仅当其上方图为凸集
![[Pasted image 20250410151224.png]]
证明如下：
![[Pasted image 20250410151346.png]]
![[Pasted image 20250410151414.png]]
推论：凸集上函数为凹当且仅当其下方图为凸集
![[Pasted image 20250410151613.png]]
4. 凸集上函数为凸，则其下水平集为凸集（反过来不一定成立，一维上有明显的反例如$f(x)=x^3$）
![[Pasted image 20250410151924.png]]
证明：
![[Pasted image 20250410152017.png]]
推论：
![[Pasted image 20250410152409.png]]
5. 可以从原定义拓展到任意有限多个点
![[Pasted image 20250410152435.png]]
6. 一簇凸集上的上有界凸函数的公共上确界也是凸函数
![[Pasted image 20250410152831.png]]
![[Pasted image 20250410153012.png]]
上方图是凸集，凸集交也是凸集，所以上定理成立
推论：
![[Pasted image 20250410154046.png]]
7. 开凸集上，凸函数连续（凸集上，凸函数在凸集内部连续）
![[Pasted image 20250410154216.png]]
![[Pasted image 20250410154534.png]]
![[Pasted image 20250410154652.png]]
![[Pasted image 20250410155342.png]]
![[Pasted image 20250410155718.png]]
### 凸函数基本定理
![[Pasted image 20250417135537.png]]
证明如下：
***hint：利用凸集分离定理：0不属于非空凸集，则存在超平面分离***
![[Pasted image 20250417140528.png]]
（上方证明中，$0 \notin \Lambda$ 是因为假设 $0 \in \Lambda$ ，则给定条件的不等式组有解，矛盾
而凸性是因为凸函数上方图为凸集，然后凸集的并为凸）
![[Pasted image 20250417141110.png]]
#### 推论
![[Pasted image 20250417141809.png]]
### 广义Gordan定理
![[Pasted image 20250417142221.png]]
证明如下：
![[Pasted image 20250417142318.png]]
### 凸函数基本定理推广
![[Pasted image 20250417143357.png]]

上定理是一个择一定理，不同于凸函数基本定理是单向的

![[Pasted image 20250417143430.png]]
![[Pasted image 20250417143417.png]]
![[Pasted image 20250417144932.png]]
