Reason: First published version. Proves the difference rule for partial derivatives directly from the epsilon-delta definition, transfers continuity of differences through the agreement of Euclidean and metric continuity, and assembles these into the C^2 statement together with the gradient and Hessian identities and the constant-function case.
Step 1 (partial derivatives of a difference).Let g,h:U→R, let a∈U and i∈{1,…,n}, and suppose that the partial derivatives∂g/∂xi(a) and ∂h/∂xi(a) exist, each definition being applied with m=1 and with the function as its single coordinate function. Then the partial derivative of g−h with respect to the ith variable exists at a, and
∂xi∂(g−h)(a)=∂xi∂g(a)−∂xi∂h(a).
Write L=∂g/∂xi(a) and M=∂h/∂xi(a). By claim 1 of Slice Function and the Partial Derivative there is ρ∈R with 0<ρ such that a[s]∈U for every s∈R with ∣s−ai∣<ρ; in particular a[ai+t]∈U whenever ∣t∣<ρ, so all the difference quotients below are defined.
Let ε∈R with 0<ε. By claim 8 of Elementary Order Arithmetic in an Ordered Field we have 0<ε⋅2−1 and ε⋅2−1+ε⋅2−1=ε. By the definition of the partial derivative there are δ1,δ2∈R with 0<δ1 and 0<δ2 such that every t∈R with 0<∣t∣<δ1 satisfies
Let t∈R with 0<∣t∣<δ. By claim 2 of Elementary Order Arithmetic in an Ordered Field we get ∣t∣<ρ, ∣t∣<δ1 and ∣t∣<δ2, so both displayed estimates apply and a[ai+t]∈U. Since t=0, the field arithmetic of R gives
As ε was arbitrary, the real number L−M witnesses the definition of the partial derivative of g−h with respect to the ith variable at a, which proves Step 1.
Step 2 (continuity of a difference).Let g,h:U→R and a∈U, and suppose that g and h are continuous at a in the Euclidean sense, each regarded as a map into Rm with m=1. Then g−h is continuous at a in the Euclidean sense.
Step 3 (proof of claim 1). By claim 1 of the definition of class C2, both u and φ are of class C1 on U. By the definition of class C1 this means that u and φ are continuous at every point of U in the Euclidean sense, that all the partial derivatives ∂u/∂xi and ∂φ/∂xi exist at every point of U, and that the resulting functions from U to R are continuous at every point of U in the Euclidean sense.
By Step 2, u−φ is continuous at every point of U in the Euclidean sense. By Step 1, for every x∈U and every i∈{1,…,n} the partial derivative ∂(u−φ)/∂xi(x) exists and equals ∂u/∂xi(x)−∂φ/∂xi(x); that is, as functions on U,
∂xi∂(u−φ)=∂xi∂u−∂xi∂φ.
Applying Step 2 to the two continuous functions ∂u/∂xi and ∂φ/∂xi shows that ∂(u−φ)/∂xi is continuous at every point of U in the Euclidean sense. Hence u−φ is of class C1 on U.
By claim 2 of the definition of class C2, for each i the functions ∂u/∂xi and ∂φ/∂xi are of class C1 on U. Repeating the previous paragraph with u and φ replaced by ∂u/∂xi and ∂φ/∂xi, and using the displayed identity of functions, we conclude that ∂(u−φ)/∂xi is of class C1 on U for every i. Together with the preceding paragraph this shows that u−φ is of class C2 on U.
By the definition of the Hessian matrix, the entry of D2(u−φ)(x) in row i and column j is ∂2(u−φ)/∂xi∂xj(x), which by the notation introduced in C^2 Real-Valued Map on an Open Subset of Euclidean Space is the partial derivative with respect to the ith variable, at x, of the function ∂(u−φ)/∂xj on U. By the displayed identity of functions that function is ∂u/∂xj−∂φ/∂xj, so Step 1 gives
which by the definition of the difference of real matrices is exactly the entry of D2u(x)−D2φ(x) in row i and column j. As this holds for all i and j, the two matrices coincide. This proves claim 1.
Step 4 (proof of claim 2). Let c∈R and let a∈U.
First, kc is continuous at a in the Euclidean sense: given ε∈R with 0<ε, take δ=ε; every x∈U satisfies (kc(x)−kc(a))2=(c−c)2=0, and 0<ε2 by claim 5 of Elementary Order Arithmetic in an Ordered Field, so the required implication holds.
Second, fix i∈{1,…,n}. By claim 1 of Slice Function and the Partial Derivative there is ρ∈R with 0<ρ such that a[s]∈U whenever ∣s−ai∣<ρ. Given ε∈R with 0<ε, take δ=ρ: for every t∈R with 0<∣t∣<ρ we have a[ai+t]∈U and
Since a∈U was arbitrary, kc is continuous at every point of U and all its first partial derivatives exist on U, the function ∂kc/∂xi being the constant function k0 for every i. The two paragraphs above, applied to k0, show that k0 is continuous at every point of U and that all its first partial derivatives exist and vanish on U. Hence kc is of class C1 on U, and each ∂kc/∂xi=k0 is of class C1 on U, so kc is of class C2 on U.
Finally, for x∈U the ith coordinate of Dkc(x) is ∂kc/∂xi(x)=0 by Gradient of a Real-Valued Function on a Euclidean Open Set, so Dkc(x) is the origin of Rn; and the entry of D2kc(x) in row i and column j is the partial derivative with respect to the ith variable, at x, of the function ∂kc/∂xj=k0, which is 0, so D2kc(x) is the n×n real matrix all of whose entries are 0. This proves claim 2.