Let $f:D\subset\mathbb{R}^2\rightarrow\mathbb{R}$ be a function with $D$ open and connected set such that $\nabla f=\bar{0}$ for all $x\in D$ Proof that $f$ is a constant function.
Hi! I have some problems with this exercise. I think that I have the proof, but, in this, I never use the fact that $D$ is a connected set. Can anyone help me? Please.
My proof:
First, since $\nabla f=\left(\displaystyle\frac{\partial f}{\partial x},\displaystyle\frac{\partial f}{\partial y} \right)=(0,0)$, then, $\displaystyle\frac{\partial f}{\partial x}=0$ and $\displaystyle\frac{\partial f}{\partial y} =0$. Hence, the partial derivatives are bounded, i.e., there exist a $K,M\in\mathbb{R}^{+}$ such that $\left|\displaystyle\frac{\partial f}{\partial y} \right|\leq K$ and $\left|\displaystyle\frac{\partial f}{\partial x} \right|\leq M$ (I think that anything $K$ and $M$ it works, because the partial derivatives are $0$).
Now let $a = (a_1,a_2)$ and $b = (b_1,b_2) \in D$. Then we have: \begin{align*} f(a) - f(b) &= f(a_1,a_2) - f(b_1,b_2) \\ f(a)-f(b) &= f(a_1,a_2) - f(a_1,b_2) + f(a_1,b_2) - f(b_1,b_2) \end{align*} Then, by the triangle inequality: $$|f(a)-f(b)| \leq |f(a_1,a_2) - (a_1,b_2)| + |f(a_1,b_2) - f(b_1,b_2)|$$ And since the partial derivatives exist, we can use the one-dimensional Mean Value Theorem to show that there exists some $c$ such that: $$\frac{f(a_1,a_2)-f(a_1,b_2)}{a_2-b_2} = \displaystyle\frac{\partial f}{\partial y}(a_1,c)$$ And noting how we defined $K$, it follows that $$|f(a_1,a_2) - f(a_1,b_2)| \leq K|a_2 - b_2|$$ And similarly $$|f(a_1,b_2) - f(b_1,b_2)| \leq M |a_1-b_1|$$ And using the statement we got from the triangle inequality, we have that $$|f(a)-f(b)| \leq M|a_1-b_1| + K|a_2 - b_2|$$ And by the Cauchy-Schwarz inequality, we have that $$M|a_1-b_1| + K|a_2 - b_2| \leq \sqrt{M^2 + K^2}\cdot \sqrt{(a_1-b_1)^2+(a_2-b_2)^2} = \sqrt{M^2 + K^2} \cdot ||a-b||$$ Whereby $$|f(a)-f(b)| \leq \sqrt{M^2 + K^2} \cdot ||a-b||$$ So $f$ is Lipschitz with $L = \sqrt{K^2 + M^2}$.
Hence, the function is continuous. But, $M=K=0$ works, we can consider $L=0$ and the nex equality $$0\leq|f(a)-f(b)| \leq 0$$Then $|f(b)-f(a)|=0$ and we can conclude that $f(b)=f(a)$ for all $a,b\in D$. Then, the function is constant. But, in the proof, I never used the connected of $D$. Where is the wrong? Can anyone help me? Thanks.
Oh, then, the connectedness is so important for this result. Thus, my proof is complete.
– Carlos Jiménez Dec 05 '16 at 17:29