# Trace of second-order tensor and its invariance under coordinate transformation

Let's consider an arbitrary scalar field. If I act twice on the scalar field with a gradient operator, I will obtain second-order tensor. If I will take a trace of this tensor, I will obtain another scalar field. Is the resulting scalar field invariant under coordinate transformation? For example, if I will do the same operation in spherical coordinates, do I obtain the same result?