Finding Gradient With Differentiation