Away from the origin, the chain rule gives and . Differentiating once more yields the two-dimensional case of the Hessian of the Euclidean norm:
These partial derivatives are smooth wherever , so Clairaut's theorem gives . None of these formulas supplies a derivative at the origin: even the restriction has no two-sided derivative there.