Let $f : \mathbb R^n → \mathbb R^m$ be a differentiable function such that $f (\mathbf 0) = \mathbf 0$ and $D f (\mathbf x)(\mathbf h) = 2⟨\mathbf x, \mathbf h⟩$ for any $\mathbf x, \mathbf h ∈ \mathbb R^n$. Show that $f (\mathbf x) = ⟨\mathbf x, \mathbf x⟩$.
How should I use the theorem that $f : U ⊆ \mathbb R^n → \mathbb R^m$ with $U$ open and connected. If $D f (\mathbf x) = O$ for every $x ∈ U$, then $f$ is constant to prove this?
Thanks.