Write ∥⋅∥ for the Euclidean norm, dE for the Euclidean distance, and 0Rn for the origin of Rn. Throughout, the field axioms of the field R and the identity (−a)b=−(ab), which follows from ab+(−a)b=(a+(−a))b=0 and claim 1 of Additive Cancellation and Elementary Additive Identities in a Field, are used for entrywise computations, together with claims 4 and 5 of that lemma. The identity 0a=0 is also used; it follows from 0a+0a=(0+0)a=0a+0 and claim 2 of the same lemma.
Step 1: the auxiliary function and its Hessian. Let q:U→R be the function whose value at y is (λ/2)dE(y,0Rn)2. By claim 2 of Elementary Properties of the Euclidean Norm on Rn and y−0Rn=y, which holds coordinatewise by claim 4 of Additive Cancellation and Elementary Additive Identities in a Field, we have dE(y,0Rn)=∥y∥, so
q(y)=2λ∥y∥2.
By claims 2 and 3 of A Scaled Squared Distance to a Point is of Class C2, with Gradient and Hessian, applied with the point 0Rn and the constant λ/2, the function q is of class C2 on U and D2q(y)=(2(λ/2))In=λIn for every y∈U.
Let g:U→R be the function whose value at y is f(y)+q(y). By Semiconvex Function on a Convex Subset of Rn, semiconvexity of f on U with constant λ says exactly that g is convex on U.
Step 2: g is of class C2, with D2g=D2f+λIn. Let k0:U→R be the constant function with value 0 and let q~=k0−q. By claim 2 of Differences and Constants for Functions of Class C2 on a Euclidean Open Set the function k0 is of class C2 with vanishing Hessian, so by claim 1 of that lemma q~ is of class C2 with D2q~(x)=0n−λIn, where 0n is the real n×n matrix all of whose entries are 0. Moreover q~(y)=0−q(y)=−q(y) by claim 4 of Additive Cancellation and Elementary Additive Identities in a Field, so
f(y)−q~(y)=f(y)−(−q(y))=f(y)+q(y)=g(y)
by claim 5 of that lemma; that is, g=f−q~. Claim 1 of Differences and Constants for Functions of Class C2 on a Euclidean Open Set therefore shows that g is of class C2 on U and that, for every x∈U,
D2g(x)=D2f(x)−(0n−λIn).
Computing entries with Difference of Real Matrices and Scalar Multiple of a Real Matrix, the (i,j) entry of 0n−λIn is 0−λ(In)ij=−(λ(In)ij), so the (i,j) entry of D2g(x) is (D2f(x))ij+λ(In)ij. Hence, again entrywise,
D2f(x)=D2g(x)−λIn.
Step 3: conclusion. Fix x∈U and z∈Rn. Since U is open and convex and g is of class C2 and convex on U, A Convex Function of Class C2 has Positive Semidefinite Hessian gives 0n⪯D2g(x). By Matrix-Vector Product, the identity 0a=0 and claim 3 of Properties of Finite Sums with the factor 0, the ith coordinate of 0nz is ∑j=1n0zj=0, and the same computation gives z⋅(0nz)=∑i=1nzi0=0; so by The Positive Semidefinite Ordering on Symmetric Matrices the displayed comparison means
0≤z⋅(D2g(x)z).
By claims 1 and 2 of Linearity of the Matrix-Vector Product and the Quadratic Form as a Double Sum,
((−λ)In)z=(−λ)(Inz)=(−λ)z,(λIn)z=λz,(D2g(x)−λIn)z=D2g(x)z−λz,
and by claim 5 of Bilinearity and Symmetry of the Dot Product on Rn,
z⋅((−λ)z)=(−λ)(z⋅z),z⋅(D2g(x)z−λz)=z⋅(D2g(x)z)−λ(z⋅z).
Using step 2, the asserted inequality z⋅((−λ)Inz)≤z⋅(D2f(x)z) therefore reads
(−λ)(z⋅z)≤z⋅(D2g(x)z)−λ(z⋅z).
Translating by λ(z⋅z) using claim 3 of Elementary Arithmetic in an Ordered Field, and using (−λ)(z⋅z)+λ(z⋅z)=0, this is equivalent to 0≤z⋅(D2g(x)z), which was established above. As z∈Rn was arbitrary, (−λ)In⪯D2f(x).