I'm trying to understand the partial chain rule and want to check my understanding.
Let $$g(\mathbf{x})=\Vert{\mathbf{f}(\mathbf{x})}\Vert^2=\mathbf{f}(\mathbf{x})^T\mathbf{f}(\mathbf{x})$$
Then am I right in saying $$\frac{\text{d}g}{\text{d}\mathbf{x}}=2(\mathbf{J}(\mathbf{f})(\mathbf{x}))^T\mathbf{f}(\mathbf{x})$$