First-Order Conditions For Convexity

Statement of the First-Order Condition for Convexity

For a differentiable function f:RnR, f is convex on a convex set CRn if and only if for all x,yC the following inequality holds:

f(y)f(x)+f(x)(yx)

Proof

Part 1: Necessity

Assume f is convex. We need to show that the first-order condition holds.

  1. Convexity of f: By definition of convexity, for any x,yC and θ with 0θ1, we have:

    f(θy+(1θ)x)θf(y)+(1θ)f(x)

  2. Apply the Definition to a Point Slightly Away from x: Choose θ to be a small positive number h, and set z=x+h(yx). Then, the above inequality becomes:

    f(x+h(yx))hf(y)+(1h)f(x)

  3. Rearrange and Divide by h:

    f(x+h(yx))f(x)hf(y)f(x)

  4. Take the Limit as h0:

    limh0f(x+h(yx))f(x)h=f(x)(yx)

    Therefore, f(y)f(x)+f(x)(yx).

Part 2: Sufficiency

Given:

The first-order condition states that for all x,yC:

f(y)f(x)+f(x)(yx)

Goal:

To prove that f is convex, i.e., for any x,yC and for any θ with 0θ1, the following inequality holds:

f(θx+(1θ)y)θf(x)+(1θ)f(y)

Proof Steps:

Step 1: Apply First-Order Condition with x and y

For z=θx+(1θ)y and using y in the first-order condition, we have:

f(y)f(z)+f(z)(yz)

Step 2: Substitute z

f(y)f(θx+(1θ)y)+f(θx+(1θ)y)(y(θx+(1θ)y))

Step 3: Expand and Rearrange

f(y)f(θx+(1θ)y)+θf(θx+(1θ)y)(yx)

Step 4: Multiply by (1θ)

(1θ)f(y)(1θ)f(θx+(1θ)y)+θ(1θ)f(θx+(1θ)y)(yx)

Step 5: Apply First-Order Condition with x and z

Similarly, applying the condition with x and z:

f(x)f(z)+f(z)(xz)

Step 6: Substitute z and Multiply by θ

θf(x)θf(θx+(1θ)y)+θ(1θ)f(θx+(1θ)y)(xy)

Step 7: Combine and Simplify

Add the inequalities from Steps 4 and 6:

θf(x)+(1θ)f(y)θf(θx+(1θ)y)+(1θ)f(θx+(1θ)y)+[terms involving gradients]

The terms involving the gradients will cancel

out, leaving:

θf(x)+(1θ)f(y)f(θx+(1θ)y)

posted @   马路野狼  阅读(23)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· DeepSeek在M芯片Mac上本地化部署
点击右上角即可分享
微信分享提示
主题色彩