2. Convex Functions

A function f: K → ℝ is convex if, for all x, y ∈ K and λ ∈ [0,1], the inequality holds:

f(λx + (1-λ)y) ≤ λf(x) + (1-λ)f(y)

Slide λ to move the interpolated point between x (λ=1) and y (λ=0).

Left side (Curve): 0.00

Right side (Secant): 0.00

Difference: 0.00 ≥ 0