Let $f,g:\Bbb{R}^n\to\Bbb{R} $ be defined by $f(x)=\langle x,x\rangle$ and $g(x)=\sqrt{\langle x,x\rangle}\,,$ respectively.
Prove that $f$ and $g$ are differentiable on $\Bbb{R}^n$ and $\Bbb{R}^n-\{0\}$, respectively and compute $f'(x)$ and $g'(x).$
If I may ask, does this $\langle x,x\rangle$ also mean inner product? If yes, my problem is half solved. If no, I would need some nice proofs.
$f$ is differentiable in the Frechet sense in $a$ if there exists a function $\phi: \mathbb{R^n}\mapsto \mathcal{L}( \mathbb{R^n}, \mathbb{R}) $ such that: $$f( a + h) = f(a) + \phi(a).h + o(h)$$
When $h$ approaches $0$.
In our case, $f(a+h) = \langle a+h, a+h\rangle = \langle a, a\rangle + 2\langle a, h \rangle + \langle h, h\rangle$.
Since $\langle h, h\rangle = o(h)$, $f$ is differentiable over $\mathbb{R}^n$ and we have $f'(a).h = \langle 2a, h\rangle$.
This means $f'(a) = \langle 2a, \cdot \rangle$.
Using the jacobian matrix, we have $J_f(a) = 2a^T$.
In terms of gradient, we have $\nabla f(a) = 2a$.
Now, to get $g'$ you can apply the chain rule to $g = \sqrt\cdot \circ f$.
Since $\sqrt \cdot$ is derivable over $\mathbb{R^*}$, and $f^{-1}(\{0_{\mathbb{R}}\}) = \{0_{\mathbb{R}^n}\}$, $g$ is differentiable over $\mathbb{R^n}-\{0\}$ and:
$$g'(a) = \frac{1}{2\sqrt {f(a)}} f'(a)$$