Since x and z lie in D and hence in C, and since 0≤λ and λ≤1, Convex Real-Valued Function on a Convex Subset of Rn applies to the representation y=λz+(1−λ)x and gives
u(y)≤λu(z)+(1−λ)u(x).
Adding −u(x) to both sides, by claim 3 of Elementary Order Arithmetic in an Ordered Field, and simplifying the right-hand side by the field axioms,
u(y)−u(x)≤λu(z)+(1−λ)u(x)−u(x)=λ(u(z)−u(x)).
Since z∈D we have u(z)≤M, and since x∈D we have m≤u(x), so adding −u(x) to the first inequality and then M to the second, again by claim 3 of Elementary Order Arithmetic in an Ordered Field, gives
u(z)−u(x)≤M−u(x)≤M−m.
Multiplying by the nonnegative number λ, by claim 5 of Elementary Arithmetic in an Ordered Field, gives λ(u(z)−u(x))≤λ(M−m), and claim 1 of Elementary Order Arithmetic in an Ordered Field combines the two displayed inequalities into
u(y)−u(x)≤λ(M−m).