$\bigtriangledown f(x) = 2|x|$ is continuous, so based on $C^1$ function definition $f(x)$ is $C^1$ function.
Can someone help me to confirm this? Thanks in advance.
$\bigtriangledown f(x) = 2|x|$ is continuous, so based on $C^1$ function definition $f(x)$ is $C^1$ function.
Can someone help me to confirm this? Thanks in advance.
Notice that $$f(x)=|x|^2=x^2$$
It is a polynomial function, hence it is a $C^1$ function.
Remark:
The compute $\nabla f$ that you computed is nonnegative, which is not the case. The derivative should be $2x$.