Your function is smooth because it can be obtained from smooth functions ($x$, square root, and $\lVert x\rVert^2$) using composition and arithmetic opeations.
Your function is smooth because it can be obtained from smooth functions ($x$, square root, and $\lVert x\rVert^2$) using composition and arithmetic opeations.