scalingGrad function

Gradient of the dimensional Scaling function