Find The Gradient Of The Scalar Function