Let U⊂Rn be an open set and let f:U→R be a differentiable function on U such that ∥Df∣x∥⩽M for some constant M and all x∈U, where ∥Df∣x∥ denotes the operator norm of the linear map Df∣x. Let [a,b]={ta+(1−t)b:0⩽t⩽1}(a,b,∈Rn) be a straight-line segment contained in U. Prove that ∣f(b)−f(a)∣⩽M∥b−a∥, where ∥⋅∥ denotes the Euclidean norm on Rn.
Prove that if U is an open ball and Df∣x=0 for each x∈U, then f is constant on U.