Consider this question. I have given a proof below which only uses the openness of the domain and the continuity of the function $f$; however, this result should not be true, but still I cannot find where is the mistake in my proof.
Proof:
Let $f: A \to \mathbb{R}^n$, where $A \subseteq \mathbb{R}^m$ and $A$ is open, and $f \in C^1$. To show that $f$ is locally lipschitz, let $x\in A$ be arbitrary and $U_x$ be a open neighbourhood of $x$ in $A$. Then take a cube around $x$ that is contained in $U_x$. Since $f$ is cont. $$m_x \leq f(y) \leq M_x \quad \exists m_x , M_x \in \mathbb{R} \quad \forall y \in C_x.$$
Moreover, the function $h:C_x \to \mathbb{R}^n$ defined by $h(y) = y-x$ is also bounded, say $a_x \leq y-x \leq b_x$, hence we have either
$$1/|y-x| \leq max \{1/|a_x|, 1/|b_x|\}.$$
Also we have either $$|f(y) - f(x)/ |(y-x)| \leq max \{|M_x - f(x)|/|(y-x)|, |m_x - f(x)|/|(y-x)|\}$$ $ \quad \forall y (\not = x) \in C_x.$
Hence $$|f(y) - f(x)/ |(y-x)| \leq max \{|M_x - f(x)|/|(y-x)|, |m_x - f(x)|/|(y-x)|\} * max \{1/|a_x|, 1/|b_x|\}$$ But this implies
Hence $f$ is locally lipschitz. QED
Question:
What is wrong with the above proof ?